PageSourceSearch

https://booking.dipietrotodd.com/Common/Scripts/webstore2/common.js?v=20260909124128

js dipietrotodd.com collected 2026-09-24 20:14:01 UTC 3,090 bytes, 74 lines download raw bytes

1function DetectBrowser() {
2    var nVer = navigator.appVersion;
3    var nAgent = navigator.userAgent;
4    var browserName = navigator.appName;
5    var FVersion = '' + parseFloat(navigator.appVersion);
6    var MVersion = parseInt(navigator.appVersion, 10);
7
8    var NameOffSet, VersionOffSet, IndexOfVersion;
9    if ((VersionOffSet = nAgent.indexOf("Trident")) != -1) {
10        browserName = "IE";
11    } else if ((VersionOffSet = nAgent.indexOf("Chrome")) != -1) {
12        browserName = "Chrome";
13        FVersion = nAgent.substring(VersionOffSet + 7);
14    } else if ((VersionOffSet = nAgent.indexOf("Safari")) != -1) {
15        browserName = "Safari";
16        FVersion = nAgent.substring(VersionOffSet + 7);
17        if ((VersionOffSet = nAgent.indexOf("Version")) != -1) {
18            FVersion = nAgent.substring(VersionOffSet + 8);
19        }
20    } else if ((VersionOffSet = nAgent.indexOf("Firefox")) != -1) {
21        browserName = "Firefox";
22        FVersion = nAgent.substring(VersionOffSet + 8);
23    } else if ((VersionOffSet = nAgent.indexOf("Edge")) != -1) {
24        browserName = "Edge";
25        FVersion = nAgent.substring(VersionOffSet + 5);
26    } else if (((VersionOffSet = nAgent.indexOf("FBAN")) > -1) || ((VersionOffSet = nAgent.indexOf("FBAV")) > -1)) {
27        browserName = "Facebook";
28    } else if ((NameOffSet = nAgent.lastIndexOf(' ') + 1) <
29        (VersionOffSet = nAgent.lastIndexOf('/'))) {
30        browserName = nAgent.substring(NameOffSet, VersionOffSet);
31        FVersion = nAgent.substring(VersionOffSet + 1);
32        if (browserName.toLowerCase() == browserName.toUpperCase()) {
33            browserName = navigator.appName;
34        }
35    }
36
37    if ((IndexOfVersion = FVersion.indexOf(";")) != -1) {
38        FVersion = FVersion.substring(0, IndexOfVersion);
39    }
40
41    if ((IndexOfVersion = FVersion.indexOf(" ")) != -1) {
42        FVersion = FVersion.substring(0, IndexOfVersion);
43    }
44
45    MVersion = parseInt('' + FVersion, 10);
46
47    if (isNaN(MVersion)) {
48        FVersion = '' + parseFloat(navigator.appVersion);
49        MVersion = parseInt(navigator.appVersion, 10);
50    }
51
52    var ffver = '';
53    ffver = '' + FVersion;
54
55    var loc = new String(window.parent.document.location);
56
57    var locat = loc.split(":");
58    winlocation = loc.replace("http", "https")
59
60    var varray = ffver.split(".");
61    var FullVersion = varray[0] * 1;
62
63    if (browserName == 'IE') {
64        window.location = "/webstore/supported_browsers.html";
65    }
66}
67
68function CheckBrowserCompatibility() {
69    var browserName = platform.name.toLowerCase();
70    var browserVersion = parseInt(platform.version, 10);
71    if ((browserName == "ie") || ((browserName == "chrome" || browserName == "chrome mobile") && browserVersion < 38) || ((browserName == "firefox" || browserName == "firefox mobile") && browserVersion < 27) || (browserName == "safari" && browserVersion < 7) || (browserName == "microsoft edge" && browserVersion < 12)) {
72        window.location = "/webstore/supported_browsers.html";
73    }    
74}

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.