PageSourceSearch

http://350.primariacraiova.ro/assets/js/cookies-client.js

js primariacraiova.ro collected 2026-10-02 04:42:30 UTC 2,414 bytes, 66 lines download raw bytes

1function setCookie(cname, cvalue, exdays) {
2    var d = new Date();
3    d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
4    var expires = "expires=" + d.toUTCString();
5    document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
6
7    var c_panel = document.getElementById("cp-dialog");
8    var c_overlay = document.getElementById("cp-overlay");
9    c_overlay.setAttribute("style", "display: none;");
10    c_panel.setAttribute("style", "display: none;");
11}
12
13function getCookie(cname) {
14    var name = cname + "=";
15    var ca = document.cookie.split(';');
16    for (var i = 0; i < ca.length; i++) {
17        var c = ca[i];
18        while (c.charAt(0) === ' ') {
19            c = c.substring(1);
20        }
21        if (c.indexOf(name) === 0) {
22            return c.substring(name.length, c.length);
23        }
24    }
25    return "";
26}
27
28function closeCookie() {
29    var c_panel = document.getElementById("cp-dialog");
30    var c_overlay = document.getElementById("cp-overlay");
31    c_overlay.setAttribute("style", "display: none;");
32    c_panel.setAttribute("style", "display: none;");
33}
34
35window.onload = function () {
36    var c_panel = document.getElementById("cp-dialog");
37    var c_overlay = document.getElementById("cp-overlay");
38    if (getCookie('mdrap') !== "") {
39        c_overlay.setAttribute("style", "display: none;");
40        c_panel.setAttribute("style", "display: none;");
41    } else {
42        c_overlay.setAttribute("style", "position: fixed; width: 100%; height: 100%; background-color: black; filter: alpha(opacity=50); -moz-opacity: 0.5; opacity: 0.5; left: 0; top: 0; z-index: 999998; display: block;");
43        c_panel.setAttribute("style", "position: fixed; left: 0; bottom: 0; width: 100%; z-index: 999999; color: white; display: block;");
44    }
45};
46
47
48
49
50//    $("html").on("contextmenu",function(e){
51  //      return false;
52 //   });
53    // Disable cut, copy and paste on web page
54//   $('html').bind('cut copy paste', function (e) {
55//         e.preventDefault();
56//   });
57   
58//   $('html').keydown(function(event) {
59  //     var pressedKey = String.fromCharCode(event.keyCode).toLowerCase();
60
61    //   if (event.ctrlKey && (pressedKey == "c" || pressedKey == "u" || pressedKey == "s" || pressedKey == "p")) {
62      //     alert('Ne pare rău, această funcționalitate a fost dezactivată!');
63//           disable key press porcessing
64        //   return false;
65//        }
66//    });

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.