hyla 1.0.7.pre.5 → 1.0.7.pre.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,131 +1,160 @@
1
- !function (n) {
2
- function t() {
3
- p || (p = !0, u(y, function (n) {
4
- f(n)
1
+ /**
2
+ Head JS The only script in your <HEAD>
3
+ Copyright Tero Piirainen (tipiirai)
4
+ License MIT / http://bit.ly/mit-license
5
+ Version 0.96
6
+
7
+ http://headjs.com
8
+ */
9
+ (function (a) {
10
+ function z() {
11
+ d || (d = !0, s(e, function (a) {
12
+ p(a)
5
13
  }))
6
14
  }
7
15
 
8
- function e(t, e) {
9
- var a = n.createElement("script");
10
- a.type = "text/" + (t.type || "javascript"), a.src = t.src || t, a.async = !1, a.onreadystatechange = a.onload = function () {
11
- var n = a.readyState;
12
- !e.done && (!n || /loaded|complete/.test(n)) && (e.done = !0, e())
13
- }, (n.body || v).appendChild(a)
16
+ function y(c, d) {
17
+ var e = a.createElement("script");
18
+ e.type = "text/" + (c.type || "javascript"), e.src = c.src || c, e.async = !1, e.onreadystatechange = e.onload = function () {
19
+ var a = e.readyState;
20
+ !d.done && (!a || /loaded|complete/.test(a)) && (d.done = !0, d())
21
+ }, (a.body || b).appendChild(e)
14
22
  }
15
23
 
16
- function a(n, t) {
17
- return n.state == O ? t && t() : n.state == b ? E.ready(n.name, t) : n.state == S ? n.onpreload.push(function () {
18
- a(n, t)
19
- }) : (n.state = b, void e(n.url, function () {
20
- n.state = O, t && t(), u(h[n.name], function (n) {
21
- f(n)
22
- }), c() && p && u(h.ALL, function (n) {
23
- f(n)
24
+ function x(a, b) {
25
+ if (a.state == o)return b && b();
26
+ if (a.state == n)return k.ready(a.name, b);
27
+ if (a.state == m)return a.onpreload.push(function () {
28
+ x(a, b)
29
+ });
30
+ a.state = n, y(a.url, function () {
31
+ a.state = o, b && b(), s(g[a.name], function (a) {
32
+ p(a)
33
+ }), u() && d && s(g.ALL, function (a) {
34
+ p(a)
24
35
  })
25
- }))
36
+ })
26
37
  }
27
38
 
28
- function o(n) {
29
- void 0 === n.state && (n.state = S, n.onpreload = [], e({src: n.url, type: "cache"}, function () {
30
- r(n)
39
+ function w(a, b) {
40
+ a.state === undefined && (a.state = m, a.onpreload = [], y({src: a.url, type: "cache"}, function () {
41
+ v(a)
31
42
  }))
32
43
  }
33
44
 
34
- function r(n) {
35
- n.state = j, u(n.onpreload, function (n) {
36
- n.call()
45
+ function v(a) {
46
+ a.state = l, s(a.onpreload, function (a) {
47
+ a.call()
37
48
  })
38
49
  }
39
50
 
40
- function c(n) {
41
- n = n || w;
42
- var t;
43
- for (var e in n) {
44
- if (n.hasOwnProperty(e) && n[e].state != O)return !1;
45
- t = !0
51
+ function u(a) {
52
+ a = a || h;
53
+ var b;
54
+ for (var c in a) {
55
+ if (a.hasOwnProperty(c) && a[c].state != o)return !1;
56
+ b = !0
46
57
  }
47
- return t
58
+ return b
48
59
  }
49
60
 
50
- function i(n) {
51
- return "[object Function]" == Object.prototype.toString.call(n)
61
+ function t(a) {
62
+ return Object.prototype.toString.call(a) == "[object Function]"
52
63
  }
53
64
 
54
- function u(n, t) {
55
- if (n) {
56
- "object" == typeof n && (n = [].slice.call(n));
57
- for (var e = 0; e < n.length; e++)t.call(n, n[e], e)
65
+ function s(a, b) {
66
+ if (!!a) {
67
+ typeof a == "object" && (a = [].slice.call(a));
68
+ for (var c = 0; c < a.length; c++)b.call(a, a[c], c)
58
69
  }
59
70
  }
60
71
 
61
- function d(n) {
62
- var t;
63
- if ("object" == typeof n)for (var e in n)n[e] && (t = {name: e, url: n[e]}); else t = {name: l(n), url: n};
64
- var a = w[t.name];
65
- return a && a.url === t.url ? a : (w[t.name] = t, t)
72
+ function r(a) {
73
+ var b;
74
+ if (typeof a == "object")for (var c in a)a[c] && (b = {name: c, url: a[c]}); else b = {name: q(a), url: a};
75
+ var d = h[b.name];
76
+ if (d && d.url === b.url)return d;
77
+ h[b.name] = b;
78
+ return b
66
79
  }
67
80
 
68
- function l(n) {
69
- var t = n.split("/"), e = t[t.length - 1], a = e.indexOf("?");
70
- return -1 != a ? e.substring(0, a) : e
81
+ function q(a) {
82
+ var b = a.split("/"), c = b[b.length - 1], d = c.indexOf("?");
83
+ return d != -1 ? c.substring(0, d) : c
71
84
  }
72
85
 
73
- function f(n) {
74
- n._done || (n(), n._done = 1)
86
+ function p(a) {
87
+ a._done || (a(), a._done = 1)
75
88
  }
76
89
 
77
- var s, p, v = n.documentElement, y = [], m = [], h = {}, w = {}, L = n.createElement("script").async === !0 || "MozAppearance"in n.documentElement.style || window.opera, g = window.head_conf && head_conf.head || "head", E = window[g] = window[g] || function () {
78
- E.ready.apply(null, arguments)
79
- }, j = 1, S = 2, b = 3, O = 4;
80
- if (E.js = L ? function () {
81
- var n = arguments, t = n[n.length - 1], e = {};
82
- return i(t) || (t = null), u(n, function (o, r) {
83
- o != t && (o = d(o), e[o.name] = o, a(o, t && r == n.length - 2 ? function () {
84
- c(e) && f(t)
85
- } : null))
86
- }), E
87
- } : function () {
88
- var n = arguments, t = [].slice.call(n, 1), e = t[0];
89
- return s ? (e ? (u(t, function (n) {
90
- i(n) || o(d(n))
91
- }), a(d(n[0]), i(e) ? e : function () {
92
- E.js.apply(null, t)
93
- })) : a(d(n[0])), E) : (m.push(function () {
94
- E.js.apply(null, n)
95
- }), E)
96
- }, E.ready = function (t, e) {
97
- if (t == n)return p ? f(e) : y.push(e), E;
98
- if (i(t) && (e = t, t = "ALL"), "string" != typeof t || !i(e))return E;
99
- var a = w[t];
100
- if (a && a.state == O || "ALL" == t && c() && p)return f(e), E;
101
- var o = h[t];
102
- return o ? o.push(e) : o = h[t] = [e], E
103
- }, E.ready(n, function () {
104
- c() && u(h.ALL, function (n) {
105
- f(n)
106
- }), E.feature && E.feature("domloaded", !0)
107
- }), window.addEventListener)n.addEventListener("DOMContentLoaded", t, !1), window.addEventListener("load", t, !1); else if (window.attachEvent) {
108
- n.attachEvent("onreadystatechange", function () {
109
- "complete" === n.readyState && t()
90
+ var b = a.documentElement, c, d, e = [], f = [], g = {}, h = {}, i = a.createElement("script").async === !0 || "MozAppearance"in a.documentElement.style || window.opera, j = window.head_conf && head_conf.head || "head", k = window[j] = window[j] || function () {
91
+ k.ready.apply(null, arguments)
92
+ }, l = 1, m = 2, n = 3, o = 4;
93
+ i ? k.js = function () {
94
+ var a = arguments, b = a[a.length - 1], c = {};
95
+ t(b) || (b = null), s(a, function (d, e) {
96
+ d != b && (d = r(d), c[d.name] = d, x(d, b && e == a.length - 2 ? function () {
97
+ u(c) && p(b)
98
+ } : null))
99
+ });
100
+ return k
101
+ } : k.js = function () {
102
+ var a = arguments, b = [].slice.call(a, 1), d = b[0];
103
+ if (!c) {
104
+ f.push(function () {
105
+ k.js.apply(null, a)
106
+ });
107
+ return k
108
+ }
109
+ d ? (s(b, function (a) {
110
+ t(a) || w(r(a))
111
+ }), x(r(a[0]), t(d) ? d : function () {
112
+ k.js.apply(null, b)
113
+ })) : x(r(a[0]));
114
+ return k
115
+ }, k.ready = function (b, c) {
116
+ if (b == a) {
117
+ d ? p(c) : e.push(c);
118
+ return k
119
+ }
120
+ t(b) && (c = b, b = "ALL");
121
+ if (typeof b != "string" || !t(c))return k;
122
+ var f = h[b];
123
+ if (f && f.state == o || b == "ALL" && u() && d) {
124
+ p(c);
125
+ return k
126
+ }
127
+ var i = g[b];
128
+ i ? i.push(c) : i = g[b] = [c];
129
+ return k
130
+ }, k.ready(a, function () {
131
+ u() && s(g.ALL, function (a) {
132
+ p(a)
133
+ }), k.feature && k.feature("domloaded", !0)
134
+ });
135
+ if (window.addEventListener)a.addEventListener("DOMContentLoaded", z, !1), window.addEventListener("load", z, !1); else if (window.attachEvent) {
136
+ a.attachEvent("onreadystatechange", function () {
137
+ a.readyState === "complete" && z()
110
138
  });
111
139
  var A = 1;
112
140
  try {
113
141
  A = window.frameElement
114
- } catch (C) {
142
+ } catch (B) {
115
143
  }
116
- !A && v.doScroll && function () {
144
+ !A && b.doScroll && function () {
117
145
  try {
118
- v.doScroll("left"), t()
119
- } catch (n) {
120
- return void setTimeout(arguments.callee, 1)
146
+ b.doScroll("left"), z()
147
+ } catch (a) {
148
+ setTimeout(arguments.callee, 1);
149
+ return
121
150
  }
122
- }(), window.attachEvent("onload", t)
151
+ }(), window.attachEvent("onload", z)
123
152
  }
124
- !n.readyState && n.addEventListener && (n.readyState = "loading", n.addEventListener("DOMContentLoaded", handler = function () {
125
- n.removeEventListener("DOMContentLoaded", handler, !1), n.readyState = "complete"
153
+ !a.readyState && a.addEventListener && (a.readyState = "loading", a.addEventListener("DOMContentLoaded", handler = function () {
154
+ a.removeEventListener("DOMContentLoaded", handler, !1), a.readyState = "complete"
126
155
  }, !1)), setTimeout(function () {
127
- s = !0, u(m, function (n) {
128
- n()
156
+ c = !0, s(f, function (a) {
157
+ a()
129
158
  })
130
159
  }, 300)
131
- }(document);
160
+ })(document)