PageSourceSearch

https://www.madopskrifter.nu/Adds/da/GoogleAnalytics.js

js madopskrifter.nu collected 2026-10-02 06:39:37 UTC 3,417 bytes, 114 lines download raw bytes

1
vendor: 398 bytes, lines 1-8
1(function (i, s, o, g, r, a, m) {
2    i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
3        (i[r].q = i[r].q || []).push(arguments)
4    }, i[r].l = 1 * new Date(); a = s.createElement(o),
5  m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
6})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
7
8ga('create', '
8UA-1635503-1
vendor: 56 bytes, lines 8-12
8', 'madopskrifter.nu');
9ga('send', 'pageview');
10
11
12
13function setCookie(c_name, value, exdays) {
14    var exdate = new Date();
15    exdate.setDate(exdate.getDate() + exdays);
16    var c_value = escape(value) + ((exdays == null) ? "" : "; expires=" + exdate.toUTCString());
17    document.cookie = c_name + "=" + c_value;
18}
19
20
21function getCookie(c_name) {
22    var i, x, y, ARRcookies = document.cookie.split(";");
23    for (i = 0; i < ARRcookies.length; i++) {
24        x = ARRcookies[i].substr(0, ARRcookies[i].indexOf("="));
25        y = ARRcookies[i].substr(ARRcookies[i].indexOf("=") + 1);
26        x = x.replace(/^\s+|\s+$/g, "");
27        if (x == c_name) {
28            return unescape(y);
29        }
30    }
31}
32
33function displayAppTeaserDA() 
34{
35    var myvalueMAD = 'iOSDAMAD';
36
37    var value = getCookie("AppAlert");
38
39    if (value != null && value != "" && value == myvalueMAD) 
40    {
41    }
42      else {
43          $(document).ready(function () {
44              $.colorbox({ href: "/pages/iphone/MadopskrifternuiPhoneTeaser_Offer.aspx", close: "Luk vindue" });
45              $.colorbox({ innerHeight: "700" });
46          });
47
48        if (myvalueMAD != null && myvalueMAD != "") {
49            setCookie("AppAlert", myvalueMAD, 30);
50            return;
51        }
52    }
53}
54
55
56function displayWin8AppTeaserDA() {
57   
58    var myvalueMAD = 'Win8DAMAD';
59
60    var value = getCookie(myvalueMAD);
61
62    if (value != null && value != "" && value == myvalueMAD) {
63    }
64    else {
65        $(document).ready(function () {
66            $.colorbox({ href: "/pages/W8/Win8AppTeaser1.htm", close: "Luk vindue" });
67            $.colorbox({ width: "750" });
68            $.colorbox({ height: "750" });
69        });
70
71        if (myvalueMAD != null && myvalueMAD != "") {
72            setCookie(myvalueMAD, myvalueMAD, 30);
73            return;
74        }
75    }
76}
77
78var isAgentType = {
79
80    Win8: function () {
81        return navigator.userAgent.match(/Windows NT 6.2/i) || navigator.userAgent.match(/Windows NT 6.3/i) || navigator.userAgent.match(/Windows NT 10.0/i) || navigator.userAgent.match(/Windows Phone 10.0/i);
82    },
83
84    Android: function () {
85        return navigator.userAgent.match(/Android/i);
86    },
87    BlackBerry: function () {
88        return navigator.userAgent.match(/BlackBerry/i);
89    },
90    iOS: function () {
91        return navigator.userAgent.match(/iPhone|iPad|iPod/i);
92    },
93    Opera: function () {
94        return navigator.userAgent.match(/Opera Mini/i);
95    },
96    Windows: function () {
97        return navigator.userAgent.match(/IEMobile/i);
98    },
99    any: function () {
100        return (isAgentType.Android() || isAgentType.BlackBerry() || isAgentType.iOS() || isAgentType.Opera() || isAgentType.Windows() || isAgentType.Win8());
101    }
102};
103
104if (isAgentType.Win8())
105 {
106         if (typeof $ == 'function') {
107        displayWin8AppTeaserDA();
108    }
109}
110
111
112/*if (isAgentType.iOS()) {
113    displayAppTeaserDA();
114}*/

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.