PageSourceSearch

https://www.codemotion.com/js/cm-script.js

js codemotion.com collected 2026-09-24 08:49:24 UTC 9,881 bytes, 106 lines download raw bytes

1var userLang = navigator.language || navigator.userLanguage;
2var path = location.href;
3var isBannerActive = false; // Toggle banner var for future smarter implementation
4
5if (isBannerActive) {
6    var isBannerSet = false;
7    var waitForNuxt = function () {
8        if (window.onNuxtReady) {
9            window.onNuxtReady(addBanner);
10            setTimeout(addBanner, 2000);
11            return;
12        } else {
13            setTimeout(waitForNuxt, 250);
14        }
15    };
16
17    var addBanner = function () {
18        if (isBannerSet) {
19            return;
20        }
21
22        var page = document.getElementById("cm-page");
23        if (!page) {
24            return;
25        }
26
27        var banner = document.createElement("div");
28        banner.setAttribute(
29            "class",
30            "alert-banner px-md-11 px-5 py-1 align-center flex-column flex-md-row"
31        );
32        banner.setAttribute(
33            "style",
34            `
35                position: relative;
36                font-family: sans-serif;
37                width: 100%;
38                background: #ff5c00;
39                color: #fff;
40                text-align: center;
41                min-height: 76px;
42                box-shadow: 0 0 10px rgba(0,0,0,.09)!important;
43                z-index: 4;
44                display: flex;
45                justify-content: center;
46                flex-wrap: wrap;
47            `
48        );
49        banner.innerHTML = `
50                <a
51                    class="alert-close"
52                    id="alert-close"
53                    aria-label="close"
54                    style="
55                        cursor: pointer;
56                        position: absolute;
57                        right: 20px;
58                        font-size: 26px;
59                        height: 24px;
60                        width: 24px;
61                        line-height: 24px;
62                        color: #fff;
63                        background: rgba(255, 255, 255, 0.2);
64                        border-radius: 100px;
65                        text-decoration: none;"
66                    >&times;
67                </a>
68                                <div class="d-flex align-center pr-13 pr-md-0">
69                    <!--<div class="mr-md-6 mr-3 py-2 px-1" style="background: white; height: 30px; width: 150px; border-radius: 10px;">!-->
70                        <!--<svg class="ma-auto" width="30" height="23" viewBox="0 0 30 23" fill="none" xmlns="http://www.w3.org/2000/svg">!-->
71						
72						 
73					<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 500" style="enable-background:new 0 0 1000 500;" xml:space="preserve" width="150" height="60" fill="none"> 
74						<style>
75							.st1 {
76								fill: #0e1e30
77							}
78						</style>
79						<path d="M834.4 480.5H169.6c-82.9 0-150.1-67.2-150.1-150.1V169.6c0-82.9 67.2-150.1 150.1-150.1h664.8c82.9 0 150.1 67.2 150.1 150.1v160.8c0 82.9-67.2 150.1-150.1 150.1z" style="fill:#fff" id="Layer_1"></path>
80						<g id="Layer_2"></g>
81						<g id="Layer_3">
82							<path class="st1" d="M499.8 224.5c-.2 2.8-.8 5.4-1.8 7.7s-2.5 4.2-4.2 5.8c-1.8 1.6-3.9 2.8-6.3 3.7-2.4.9-5.1 1.3-8.1 1.3-3.3 0-6.3-.6-8.9-1.8-2.6-1.2-4.8-3-6.5-5.2-1.8-2.2-3.1-4.9-4-8-.9-3.1-1.4-6.5-1.4-10.3v-7.6c0-3.8.5-7.2 1.5-10.3s2.4-5.8 4.2-8c1.8-2.2 4-4 6.6-5.2 2.6-1.2 5.5-1.8 8.7-1.8 3.1 0 5.9.4 8.3 1.3 2.4.9 4.5 2.1 6.2 3.8 1.7 1.6 3.1 3.6 4 6s1.6 5 1.9 8h-11c-.1-1.7-.4-3.2-.8-4.4-.4-1.3-1-2.3-1.7-3.2-.8-.8-1.7-1.5-2.9-1.9-1.2-.4-2.5-.6-4.1-.6-1.7 0-3.1.4-4.4 1.1-1.2.7-2.3 1.8-3.1 3.2-.8 1.4-1.4 3.1-1.8 5.1-.4 2-.6 4.3-.6 6.9v7.7c0 5.6.8 9.7 2.3 12.4 1.6 2.7 4 4 7.4 4 2.8 0 5.1-.8 6.8-2.3 1.7-1.5 2.6-4 2.8-7.4h10.9zm48-6.4c0 3.6-.5 7-1.4 10-1 3.1-2.3 5.7-4.2 7.9-1.8 2.2-4 3.9-6.6 5.1-2.6 1.2-5.5 1.8-8.8 1.8-3.3 0-6.2-.6-8.7-1.8-2.5-1.2-4.7-3-6.4-5.2-1.7-2.2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9.2z"></path>
83							<path d="M283.6 192.6c0-6.1-5.2-11.3-11.3-11.3h-8.4v-23.7h8.4c19.5 0 35.2 15.6 35.2 35v47.1c3.5 2 9.3 5.8 13.7 8.4v27.8l-13.7 7.2v47.4c0 19.6-15.7 35.3-35.2 35.3h-8.4v-24h8.4c6.1 0 11.3-5.2 11.3-11.3V281l24.4-19.4-24.4-20v-49zM108.5 330.8c0 6.1 5.2 11.3 11.3 11.3h8.4v23.7h-8.4c-19.5 0-35.2-15.6-35.2-35v-47.1c-3.5-2-9.3-5.8-13.7-8.4v-27.8l13.7-7.2v-47.4c0-19.7 15.7-35.3 35.2-35.3h8.4v24h-8.4c-6.1 0-11.3 5.2-11.3 11.3v49.5l-24.4 19.4 24.4 19.9v49.1z" style="fill:#ff5c00"></path>
84							<path class="st1" d="M171 315.7s56.4-.1 57.4-.1v-21.4h-47.1l-11.8 21.4c.4 0 .9.1 1.5.1m-8.7-30.2v-12h17.4l11.1-20.1h-28.5v-16.7c0-4.8 3.9-8.6 8.7-8.6h33.8l11.9-21.5H171c-16.8 0-30.3 13.5-30.3 30.2v48.8c0 12 7.2 22.4 17.4 27.2l10.4-19c-3.6-1.1-6.2-4.4-6.2-8.3m66.5-77.6-11.1 20.2h2.4c4.8 0 8.7 3.9 8.7 8.6v16.7h-25l-11.1 20.1h57.8v-36.9c-.2-13.6-9.3-25-21.7-28.7"></path>
85						</g>
86					</svg>	
87                        
88                   <!--< </div> !-->
89				WE'RE LIVE AGAIN! Conference 18-19 October 2022 | MILAN 
90                </div>
91                <a target="_blank" href="https://codemo.tech/conference_milan22" class="mt-3 mt-md-0 ml-md-6" style="color: #fff;text-decoration: none; white-space: nowrap; background: #0e1e30; border-radius: 10px; padding: 12px 20px; height: 100%; line-height: 18px; font-size: 16px;">Buy your ticket!</a>
92            `;
93
94        page.prepend(banner);
95
96        var close = document.getElementById("alert-close");
97
98        close.addEventListener("click", function () {
99            banner.remove();
100        });
101
102        isBannerSet = true;
103    };
104
105    waitForNuxt();
106}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.