PageSourceSearch

http://www.activa.com.au/js/modernizr.js

js activa.com.au collected 2026-10-06 13:15:05 UTC 15,152 bytes, 346 lines download raw bytes

vendor: 15,152 bytes, lines 1-346
1;
2window.Modernizr = function(a, b, c) {
3        function x(a) {
4            j.cssText = a
5        }
6
7        function y(a, b) {
8            return x(prefixes.join(a + ";") + (b || ""))
9        }
10
11        function z(a, b) {
12            return typeof a === b
13        }
14
15        function A(a, b) {
16            return !!~("" + a).indexOf(b)
17        }
18
19        function B(a, b) {
20            for (var d in a) {
21                var e = a[d];
22                if (!A(e, "-") && j[e] !== c) return b == "pfx" ? e : !0
23            }
24            return !1
25        }
26
27        function C(a, b, d) {
28            for (var e in a) {
29                var f = b[a[e]];
30                if (f !== c) return d === !1 ? a[e] : z(f, "function") ? f.bind(d || b) : f
31            }
32            return !1
33        }
34
35        function D(a, b, c) {
36            var d = a.charAt(0).toUpperCase() + a.slice(1),
37                e = (a + " " + n.join(d + " ") + d).split(" ");
38            return z(b, "string") || z(b, "undefined") ? B(e, b) : (e = (a + " " + o.join(d + " ") + d).split(" "), C(e, b, c))
39        }
40        var d = "2.6.2",
41            e = {},
42            f = !0,
43            g = b.documentElement,
44            h = "modernizr",
45            i = b.createElement(h),
46            j = i.style,
47            k, l = {}.toString,
48            m = "Webkit Moz O ms",
49            n = m.split(" "),
50            o = m.toLowerCase().split(" "),
51            p = {},
52            q = {},
53            r = {},
54            s = [],
55            t = s.slice,
56            u, v = {}.hasOwnProperty,
57            w;
58        !z(v, "undefined") && !z(v.call, "undefined") ? w = function(a, b) {
59            return v.call(a, b)
60        } : w = function(a, b) {
61            return b in a && z(a.constructor.prototype[b], "undefined")
62        }, Function.prototype.bind || (Function.prototype.bind = function(b) {
63            var c = this;
64            if (typeof c != "function") throw new TypeError;
65            var d = t.call(arguments, 1),
66                e = function() {
67                    if (this instanceof e) {
68                        var a = function() {};
69                        a.prototype = c.prototype;
70                        var f = new a,
71                            g = c.apply(f, d.concat(t.call(arguments)));
72                        return Object(g) === g ? g : f
73                    }
74                    return c.apply(b, d.concat(t.call(arguments)))
75                };
76            return e
77        }), p.borderradius = function() {
78            return D("borderRadius")
79        }, p.boxshadow = function() {
80            return D("boxShadow")
81        };
82        for (var E in p) w(p, E) && (u = E.toLowerCase(), e[u] = p[E](), s.push((e[u] ? "" : "no-") + u));
83        return e.addTest = function(a, b) {
84                if (typeof a == "object")
85                    for (var d in a) w(a, d) && e.addTest(d, a[d]);
86                else {
87                    a = a.toLowerCase();
88                    if (e[a] !== c) return e;
89                    b = typeof b == "function" ? b() : b, typeof f != "undefined" && f && (g.className += " " + (b ? "" : "no-") + a), e[a] = b
90                }
91                return e
92            }, x(""), i = k = null,
93            function(a, b) {
94                function k(a, b) {
95                    var c = a.createElement("p"),
96                        d = a.getElementsByTagName("head")[0] || a.documentElement;
97                    return c.innerHTML = "x<style>" + b + "</style>", d.insertBefore(c.lastChild, d.firstChild)
98                }
99
100                function l() {
101                    var a = r.elements;
102                    return typeof a == "string" ? a.split(" ") : a
103                }
104
105                function m(a) {
106                    var b = i[a[g]];
107                    return b || (b = {}, h++, a[g] = h, i[h] = b), b
108                }
109
110                function n(a, c, f) {
111                    c || (c = b);
112                    if (j) return c.createElement(a);
113                    f || (f = m(c));
114                    var g;
115                    return f.cache[a] ? g = f.cache[a].cloneNode() : e.test(a) ? g = (f.cache[a] = f.createElem(a)).cloneNode() : g = f.createElem(a), g.canHaveChildren && !d.test(a) ? f.frag.appendChild(g) : g
116                }
117
118                function o(a, c) {
119                    a || (a = b);
120                    if (j) return a.createDocumentFragment();
121                    c = c || m(a);
122                    var d = c.frag.cloneNode(),
123                        e = 0,
124                        f = l(),
125                        g = f.length;
126                    for (; e < g; e++) d.createElement(f[e]);
127                    return d
128                }
129
130                function p(a, b) {
131                    b.cache || (b.cache = {}, b.createElem = a.createElement, b.createFrag = a.createDocumentFragment, b.frag = b.createFrag()), a.createElement = function(c) {
132                        return r.shivMethods ? n(c, a, b) : b.createElem(c)
133                    }, a.createDocumentFragment = Function("h,f", "return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&(" + l().join().replace(/\w+/g, function(a) {
134                        return b.createElem(a), b.frag.createElement(a), 'c("' + a + '")'
135                    }) + ");return n}")(r, b.frag)
136                }
137
138                function q(a) {
139                    a || (a = b);
140                    var c = m(a);
141                    return r.shivCSS && !f && !c.hasCSS && (c.hasCSS = !!k(a, "article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")), j || p(a, c), a
142                }
143                var c = a.html5 || {},
144                    d = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,
145                    e = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,
146                    f, g = "_html5shiv",
147                    h = 0,
148                    i = {},
149                    j;
150                (function() {
151                    try {
152                        var a = b.createElement("a");
153                        a.innerHTML = "<xyz></xyz>", f = "hidden" in a, j = a.childNodes.length == 1 || function() {
154                            b.createElement("a");
155                            var a = b.createDocumentFragment();
156                            return typeof a.cloneNode == "undefined" || typeof a.createDocumentFragment == "undefined" || typeof a.createElement == "undefined"
157                        }()
158                    } catch (c) {
159                        f = !0, j = !0
160                    }
161                })();
162                var r = {
163                    elements: c.elements || "abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",
164                    shivCSS: c.shivCSS !== !1,
165                    supportsUnknownElements: j,
166                    shivMethods: c.shivMethods !== !1,
167                    type: "default",
168                    shivDocument: q,
169                    createElement: n,
170                    createDocumentFragment: o
171                };
172                a.html5 = r, q(b)
173            }(this, b), e._version = d, e._domPrefixes = o, e._cssomPrefixes = n, e.testProp = function(a) {
174                return B([a])
175            }, e.testAllProps = D, g.className = g.className.replace(/(^|\s)no-js(\s|$)/, "$1$2") + (f ? " js " + s.join(" ") : ""), e
176    }(this, this.document),
177    function(a, b, c) {
178        function d(a) {
179            return "[object Function]" == o.call(a)
180        }
181
182        function e(a) {
183            return "string" == typeof a
184        }
185
186        function f() {}
187
188        function g(a) {
189            return !a || "loaded" == a || "complete" == a || "uninitialized" == a
190        }
191
192        function h() {
193            var a = p.shift();
194            q = 1, a ? a.t ? m(function() {
195                ("c" == a.t ? B.injectCss : B.injectJs)(a.s, 0, a.a, a.x, a.e, 1)
196            }, 0) : (a(), h()) : q = 0
197        }
198
199        function i(a, c, d, e, f, i, j) {
200            function k(b) {
201                if (!o && g(l.readyState) && (u.r = o = 1, !q && h(), l.onload = l.onreadystatechange = null, b)) {
202                    "img" != a && m(function() {
203                        t.removeChild(l)
204                    }, 50);
205                    for (var d in y[c]) y[c].hasOwnProperty(d) && y[c][d].onload()
206                }
207            }
208            var j = j || B.errorTimeout,
209                l = b.createElement(a),
210                o = 0,
211                r = 0,
212                u = {
213                    t: d,
214                    s: c,
215                    e: f,
216                    a: i,
217                    x: j
218                };
219            1 === y[c] && (r = 1, y[c] = []), "object" == a ? l.data = c : (l.src = c, l.type = a), l.width = l.height = "0", l.onerror = l.onload = l.onreadystatechange = function() {
220                k.call(this, r)
221            }, p.splice(e, 0, u), "img" != a && (r || 2 === y[c] ? (t.insertBefore(l, s ? null : n), m(k, j)) : y[c].push(l))
222        }
223
224        function j(a, b, c, d, f) {
225            return q = 0, b = b || "j", e(a) ? i("c" == b ? v : u, a, b, this.i++, c, d, f) : (p.splice(this.i++, 0, a), 1 == p.length && h()), this
226        }
227
228        function k() {
229            var a = B;
230            return a.loader = {
231                load: j,
232                i: 0
233            }, a
234        }
235        var l = b.documentElement,
236            m = a.setTimeout,
237            n = b.getElementsByTagName("script")[0],
238            o = {}.toString,
239            p = [],
240            q = 0,
241            r = "MozAppearance" in l.style,
242            s = r && !!b.createRange().compareNode,
243            t = s ? l : n.parentNode,
244            l = a.opera && "[object Opera]" == o.call(a.opera),
245            l = !!b.attachEvent && !l,
246            u = r ? "object" : l ? "script" : "img",
247            v = l ? "script" : u,
248            w = Array.isArray || function(a) {
249                return "[object Array]" == o.call(a)
250            },
251            x = [],
252            y = {},
253            z = {
254                timeout: function(a, b) {
255                    return b.length && (a.timeout = b[0]), a
256                }
257            },
258            A, B;
259        B = function(a) {
260            function b(a) {
261                var a = a.split("!"),
262                    b = x.length,
263                    c = a.pop(),
264                    d = a.length,
265                    c = {
266                        url: c,
267                        origUrl: c,
268                        prefixes: a
269                    },
270                    e, f, g;
271                for (f = 0; f < d; f++) g = a[f].split("="), (e = z[g.shift()]) && (c = e(c, g));
272                for (f = 0; f < b; f++) c = x[f](c);
273                return c
274            }
275
276            function g(a, e, f, g, h) {
277                var i = b(a),
278                    j = i.autoCallback;
279                i.url.split(".").pop().split("?").shift(), i.bypass || (e && (e = d(e) ? e : e[a] || e[g] || e[a.split("/").pop().split("?")[0]]), i.instead ? i.instead(a, e, f, g, h) : (y[i.url] ? i.noexec = !0 : y[i.url] = 1, f.load(i.url, i.forceCSS || !i.forceJS && "css" == i.url.split(".").pop().split("?").shift() ? "c" : c, i.noexec, i.attrs, i.timeout), (d(e) || d(j)) && f.load(function() {
280                    k(), e && e(i.origUrl, h, g), j && j(i.origUrl, h, g), y[i.url] = 2
281                })))
282            }
283
284            function h(a, b) {
285                function c(a, c) {
286                    if (a) {
287                        if (e(a)) c || (j = function() {
288                            var a = [].slice.call(arguments);
289                            k.apply(this, a), l()
290                        }), g(a, j, b, 0, h);
291                        else if (Object(a) === a)
292                            for (n in m = function() {
293                                    var b = 0,
294                                        c;
295                                    for (c in a) a.hasOwnProperty(c) && b++;
296                                    return b
297                                }(), a) a.hasOwnProperty(n) && (!c && !--m && (d(j) ? j = function() {
298                                var a = [].slice.call(arguments);
299                                k.apply(this, a), l()
300                            } : j[n] = function(a) {
301                                return function() {
302                                    var b = [].slice.call(arguments);
303                                    a && a.apply(this, b), l()
304                                }
305                            }(k[n])), g(a[n], j, b, n, h))
306                    } else !c && l()
307                }
308                var h = !!a.test,
309                    i = a.load || a.both,
310                    j = a.callback || f,
311                    k = j,
312                    l = a.complete || f,
313                    m, n;
314                c(h ? a.yep : a.nope, !!i), i && c(i)
315            }
316            var i, j, l = this.yepnope.loader;
317            if (e(a)) g(a, 0, l, 0);
318            else if (w(a))
319                for (i = 0; i < a.length; i++) j = a[i], e(j) ? g(j, 0, l, 0) : w(j) ? B(j) : Object(j) === j && h(j, l);
320            else Object(a) === a && h(a, l)
321        }, B.addPrefix = function(a, b) {
322            z[a] = b
323        }, B.addFilter = function(a) {
324            x.push(a)
325        }, B.errorTimeout = 1e4, null == b.readyState && b.addEventListener && (b.readyState = "loading", b.addEventListener("DOMContentLoaded", A = function() {
326            b.removeEventListener("DOMContentLoaded", A, 0), b.readyState = "complete"
327        }, 0)), a.yepnope = k(), a.yepnope.executeStack = h, a.yepnope.injectJs = function(a, c, d, e, i, j) {
328            var k = b.createElement("script"),
329                l, o, e = e || B.errorTimeout;
330            k.src = a;
331            for (o in d) k.setAttribute(o, d[o]);
332            c = j ? h : c || f, k.onreadystatechange = k.onload = function() {
333                !l && g(k.readyState) && (l = 1, c(), k.onload = k.onreadystatechange = null)
334            }, m(function() {
335                l || (l = 1, c(1))
336            }, e), i ? k.onload() : n.parentNode.insertBefore(k, n)
337        }, a.yepnope.injectCss = function(a, c, d, e, g, i) {
338            var e = b.createElement("link"),
339                j, c = i ? h : c || f;
340            e.href = a, e.rel = "stylesheet", e.type = "text/css";
341            for (j in d) e.setAttribute(j, d[j]);
342            g || (n.parentNode.insertBefore(e, n), m(c, 0))
343        }
344    }(this, document), Modernizr.load = function() {
345        yepnope.apply(window, [].slice.call(arguments, 0))
346    };

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.