PageSourceSearch

https://www.ristoranteilcaminettocabras.com/js/cmsjs.js?leverageCache

js ristoranteilcaminettocabras.com collected 2026-10-04 23:29:23 UTC 3,872 bytes, 133 lines download raw bytes

1function MostraDivOp(nomeDiv) {
2    try {
3        var divOpe = document.getElementById(nomeDiv);
4        if (divOpe != null)
5            divOpe.style.display = '';
6
7    }
8    catch (e) {
9        alert(e);
10    }
11}
12
13function NascondiDivOp(nomeDiv) {
14    try {
15        var divOpe = document.getElementById(nomeDiv);
16        if (divOpe != null)
17            divOpe.style.display = 'none';
18
19    }
20    catch (e) {
21        alert(e);
22    }
23}
24function isEmail(string) {
25    //if (string.search(/^\w+((-\w+)|(\.\w+))*\@\w+((\.|-)\w+)*\.\w+$/) != -1)
26    //    return 1;
27    //else
28    //    return 0;
29
30    var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
31    if (re.test(string) == true)
32        return 1;
33    else
34        return 0;
35}
36String.prototype.trim = function () {
37    return this.replace(/^\s*/, "").replace(/\s*$/, "");
38}
39function loginAreaRiservata(siglaflag) {
40    try {
41        var email = document.getElementById("emailLogin").value.trim();
42        var pwd = document.getElementById("pwdLogin").value.trim();
43
44        if (email == "") {
45            alert("Email obbligatorio");
46            document.getElementById("emailLogin").focus();
47            return false;
48        }
49        if (pwd == "") {
50            alert("Password obbligatoria");
51            document.getElementById("pwdLogin").focus();
52            return false;
53        }
54        if (!checkLoginAreaRiservata(email, pwd)) {
55            alert("Utente o Password non Validi!");
56            return false;
57        }
58
59        //location.href = "areariservata.php";
60        var nomepagina = "areariservata.php";
61        if (siglaflag !== "") nomepagina = "areariservata-" + siglaflag + ".php";
62
63        location.href = nomepagina;
64
65    }
66    catch (e) {
67        alert(e);
68        return false;
69    }
70}
71function createRequestObj() {
72    if (window.ActiveXObject) {
73        xhr = new ActiveXObject("Microsoft.XMLHttp");
74    } else {
75        xhr = new XMLHttpRequest();
76    }
77    return xhr;
78}
79function checkLoginAreaRiservata(userName, password) {
80
81    try {
82
83        var xmlHttp = createRequestObj();        
84        xmlHttp.open("POST", "loginAreaRiservata.php", false);
85        
86        xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
87        parametriScript = "emailLogin=" + userName + "&pwdLogin=" + password;
88        var checkLogin = xmlHttp.send(parametriScript);
89        if (xmlHttp.readyState == 4) {
90            if (xmlHttp.status == 200) {
91                if (xmlHttp.responseText == "OK")
92                    return true;
93                else {
94                    return false;
95                }
96            }
97        }
98        return false;
99    }
100    catch (e) {
101        alert('Impossibile contattare la pagina di verfica login!');
102        return false;
103    }
104}
105function setDesktopView(desktopView) {
106
107    try {
108
109        var xmlHttp = createRequestObj();
110        xmlHttp.open("POST", "viewMode.php", false);
111
112        xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
113        
114        parametriScript = desktopView == "S" ? "desktopView=" + desktopView : "";
115        xmlHttp.send(parametriScript);
116        if (xmlHttp.readyState == 4) {
117            if (xmlHttp.status == 200) {
118                if (xmlHttp.responseText == "OK") {
119                    document.location.reload();
120                    return true;
121                }
122                else {
123                    return false;
124                }
125            }
126        }
127        return false;
128    }
129    catch (e) {
130        alert('Impossibile contattare la pagina di cambio modalita visualizzazione!');
131        return false;
132    }
133}

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.