PageSourceSearch

https://www.talenta.co/wp-content/themes/talenta/scripts/header.js?ver=1790224944

js talenta.co collected 2026-09-24 09:37:17 UTC 1,914 bytes, 62 lines download raw bytes

1function getCookie(cname) {
2    var name = cname + "=";
3    var ca = document.cookie.split(";");
4    for (var i = 0; i < ca.length; i++) {
5        var c = ca[i];
6        while (c.charAt(0) == " ") {
7            c = c.substring(1);
8        }
9        if (c.indexOf(name) == 0) {
10            return c.substring(name.length, c.length);
11        }
12    }
13    return "";
14}
15
16function setCookie(cname, cvalue, exdays) {
17    var d = new Date();
18    d.setTime(d.getTime() + exdays * 24 * 60 * 60 * 1000);
19    var expires = "expires=" + d.toUTCString();
20    document.cookie =
21        cname + "=" + cvalue + ";" + expires + ";path=/;domain=" + document.domain.match(/[^\.]*\.[^.]*$/)[0] + ";";
22}
23
24function updateCookie(cname, cvalue) {
25    var ed = getCookie("created_at");
26    if (ed) {
27        var d = new Date(ed);
28        var expires = "expires=" + d.toUTCString();
29        document.cookie =
30            cname + "=" + cvalue + ";" + expires + ";path=/;domain=" + document.domain.match(/[^\.]*\.[^.]*$/)[0] + ";";
31    }
32}
33
34setTimeout(function () {
35    // console.log('header')
36    var header = document.querySelector(".header");
37    if (header) {
38        if (!header.classList.contains("is-ready")) {
39            var headermain = header.querySelector(".header__main");
40            if (headermain) {
41                if (!headermain.classList.contains("is-ready")) {
42                    headermain.classList.add("is-ready");
43                    header.classList.add("is-ready");
44                }
45            }
46        }
47    }
48
49    var masthead_img = document.querySelector(".masthead--home");
50    if (masthead_img) {
51        if (!masthead_img.classList.contains("is-ready")) {
52            masthead_img.classList.add("is-ready");
53        }
54    }
55
56    var tbs = document.querySelector(".tbs");
57    if (tbs) {
58        if (!tbs.classList.contains("is-ready")) {
59            tbs.classList.add("is-ready");
60        }
61    }
62}, 500);

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.