vliz-be-theme 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +50 -0
- data/_config.yml +4 -0
- data/_data/articles.yml +43 -0
- data/_data/bg_with_block.yml +5 -0
- data/_data/carrousel.yml +28 -0
- data/_data/carrousel_two.yml +33 -0
- data/_data/main_banner.yml +24 -0
- data/_data/simple_questions.yml +16 -0
- data/_includes/banner/banner.html +50 -0
- data/_includes/banner/main.html +35 -0
- data/_includes/banner/topic.html +20 -0
- data/_includes/block_gallery_cards/card.html +36 -0
- data/_includes/block_gallery_cards/first_card.html +50 -0
- data/_includes/block_gallery_cards/main.html +40 -0
- data/_includes/carrousel_block/item.html +21 -0
- data/_includes/carrousel_block/main.html +22 -0
- data/_includes/carrousel_w_waves/item.html +27 -0
- data/_includes/carrousel_w_waves/main.html +39 -0
- data/_includes/footer/main.html +312 -0
- data/_includes/image_bg_white_card/main.html +26 -0
- data/_includes/image_w_descr_curly/main.html +48 -0
- data/_includes/light_bg_block/item.html +12 -0
- data/_includes/light_bg_block/main.html +19 -0
- data/_includes/mobile-overlay/main.html +419 -0
- data/_includes/navigation/main.html +515 -0
- data/_includes/navigation/search-overlay.html +49 -0
- data/_includes/no_bg_cards/item.html +24 -0
- data/_includes/no_bg_cards/main.html +21 -0
- data/_includes/no_bg_colored_blocks/item.html +19 -0
- data/_includes/no_bg_colored_blocks/main.html +34 -0
- data/_includes/simple_color_boxes/item.html +11 -0
- data/_includes/simple_color_boxes/main.html +29 -0
- data/_layouts/default.html +150 -0
- data/_layouts/page.html +5 -0
- data/_layouts/post.html +5 -0
- data/assets/core/misc/Vlaanderen_verbeelding werkt.png +0 -0
- data/assets/core/misc/bib_publications_bg.jpg +0 -0
- data/assets/core/misc/calendar.svg +1 -0
- data/assets/core/misc/check.svg +1 -0
- data/assets/core/misc/close.png +0 -0
- data/assets/core/misc/error.svg +1 -0
- data/assets/core/misc/gradient.png +0 -0
- data/assets/core/misc/loading-small.gif +0 -0
- data/assets/core/misc/move.svg +1 -0
- data/assets/core/misc/person.svg +1 -0
- data/assets/core/misc/privacyshield.png +0 -0
- data/assets/core/misc/share-Facebook.png +0 -0
- data/assets/core/misc/share-Fave.png +0 -0
- data/assets/core/misc/share-LinkedIn.png +0 -0
- data/assets/core/misc/share-Mailto.png +0 -0
- data/assets/core/misc/share-Print.png +0 -0
- data/assets/core/misc/share-RSS.png +0 -0
- data/assets/core/misc/share-Twitter.png +0 -0
- data/assets/core/misc/swoosh.svg +3 -0
- data/assets/core/misc/swoosh_bg.svg +11 -0
- data/assets/core/misc/throbber-active.gif +0 -0
- data/assets/core/misc/throbber-inactive.png +0 -0
- data/assets/core/misc/tree-bottom.png +0 -0
- data/assets/core/misc/tree.png +0 -0
- data/assets/core/misc/twistie-down.svg +1 -0
- data/assets/core/misc/twistie-up.svg +1 -0
- data/assets/core/misc/warning.svg +1 -0
- data/assets/core/misc/west_vlaanderen_logo.png +0 -0
- data/assets/css/custom_style.css +5 -0
- data/assets/css/stylesheet_one.css +2461 -0
- data/assets/css/stylesheet_two.css +9753 -0
- data/assets/css/tablesaw-base.css +601 -0
- data/assets/css/tablesaw-responsive.css +189 -0
- data/assets/js/brands.js +3448 -0
- data/assets/js/fontawesome-icons.js +6 -0
- data/assets/js/fontawesome.js +2355 -0
- data/assets/js/regular.js +1354 -0
- data/assets/js/script_one.js +3361 -0
- data/assets/js/script_three.js +1160 -0
- data/assets/js/script_two.js +3913 -0
- data/assets/js/solid.js +9921 -0
- data/assets/js/tablesaw-init.js +18 -0
- data/assets/js/tablesaw.min.js +1408 -0
- data/assets/media/img/SquidRNA.webp +0 -0
- data/assets/media/img/graph_concept_art.jpg +0 -0
- data/assets/media/img/placeholder.png +0 -0
- data/assets/media/video/Homepage_website_SimonStevin.mp4 +0 -0
- metadata +140 -0
|
@@ -0,0 +1,1160 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* jQuery Form Plugin
|
|
3
|
+
* version: 4.3.0
|
|
4
|
+
* Requires jQuery v1.7.2 or later
|
|
5
|
+
* Project repository: https://github.com/jquery-form/form
|
|
6
|
+
|
|
7
|
+
* Copyright 2017 Kevin Morris
|
|
8
|
+
* Copyright 2006 M. Alsup
|
|
9
|
+
|
|
10
|
+
* Dual licensed under the LGPL-2.1+ or MIT licenses
|
|
11
|
+
* https://github.com/jquery-form/form#license
|
|
12
|
+
|
|
13
|
+
* This library is free software; you can redistribute it and/or
|
|
14
|
+
* modify it under the terms of the GNU Lesser General Public
|
|
15
|
+
* License as published by the Free Software Foundation; either
|
|
16
|
+
* version 2.1 of the License, or (at your option) any later version.
|
|
17
|
+
* This library is distributed in the hope that it will be useful,
|
|
18
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
19
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
20
|
+
* Lesser General Public License for more details.
|
|
21
|
+
*/
|
|
22
|
+
!(function (r) {
|
|
23
|
+
"function" == typeof define && define.amd
|
|
24
|
+
? define(["jquery"], r)
|
|
25
|
+
: "object" == typeof module && module.exports
|
|
26
|
+
? (module.exports = function (e, t) {
|
|
27
|
+
return (
|
|
28
|
+
void 0 === t &&
|
|
29
|
+
(t =
|
|
30
|
+
"undefined" != typeof window
|
|
31
|
+
? require("jquery")
|
|
32
|
+
: require("jquery")(e)),
|
|
33
|
+
r(t),
|
|
34
|
+
t
|
|
35
|
+
);
|
|
36
|
+
})
|
|
37
|
+
: r(jQuery);
|
|
38
|
+
})(function (q) {
|
|
39
|
+
"use strict";
|
|
40
|
+
var m = /\r?\n/g,
|
|
41
|
+
S = {};
|
|
42
|
+
(S.fileapi = void 0 !== q('<input type="file">').get(0).files),
|
|
43
|
+
(S.formdata = void 0 !== window.FormData);
|
|
44
|
+
var _ = !!q.fn.prop;
|
|
45
|
+
function o(e) {
|
|
46
|
+
var t = e.data;
|
|
47
|
+
e.isDefaultPrevented() ||
|
|
48
|
+
(e.preventDefault(), q(e.target).closest("form").ajaxSubmit(t));
|
|
49
|
+
}
|
|
50
|
+
function i(e) {
|
|
51
|
+
var t = e.target,
|
|
52
|
+
r = q(t);
|
|
53
|
+
if (!r.is("[type=submit],[type=image]")) {
|
|
54
|
+
var a = r.closest("[type=submit]");
|
|
55
|
+
if (0 === a.length) return;
|
|
56
|
+
t = a[0];
|
|
57
|
+
}
|
|
58
|
+
var n,
|
|
59
|
+
o = t.form;
|
|
60
|
+
"image" === (o.clk = t).type &&
|
|
61
|
+
(void 0 !== e.offsetX
|
|
62
|
+
? ((o.clk_x = e.offsetX), (o.clk_y = e.offsetY))
|
|
63
|
+
: "function" == typeof q.fn.offset
|
|
64
|
+
? ((n = r.offset()),
|
|
65
|
+
(o.clk_x = e.pageX - n.left),
|
|
66
|
+
(o.clk_y = e.pageY - n.top))
|
|
67
|
+
: ((o.clk_x = e.pageX - t.offsetLeft),
|
|
68
|
+
(o.clk_y = e.pageY - t.offsetTop))),
|
|
69
|
+
setTimeout(function () {
|
|
70
|
+
o.clk = o.clk_x = o.clk_y = null;
|
|
71
|
+
}, 100);
|
|
72
|
+
}
|
|
73
|
+
function N() {
|
|
74
|
+
var e;
|
|
75
|
+
q.fn.ajaxSubmit.debug &&
|
|
76
|
+
((e = "[jquery.form] " + Array.prototype.join.call(arguments, "")),
|
|
77
|
+
window.console && window.console.log
|
|
78
|
+
? window.console.log(e)
|
|
79
|
+
: window.opera && window.opera.postError && window.opera.postError(e));
|
|
80
|
+
}
|
|
81
|
+
(q.fn.attr2 = function () {
|
|
82
|
+
if (!_) return this.attr.apply(this, arguments);
|
|
83
|
+
var e = this.prop.apply(this, arguments);
|
|
84
|
+
return (e && e.jquery) || "string" == typeof e
|
|
85
|
+
? e
|
|
86
|
+
: this.attr.apply(this, arguments);
|
|
87
|
+
}),
|
|
88
|
+
(q.fn.ajaxSubmit = function (M, e, t, r) {
|
|
89
|
+
if (!this.length)
|
|
90
|
+
return (
|
|
91
|
+
N("ajaxSubmit: skipping submit process - no element selected"), this
|
|
92
|
+
);
|
|
93
|
+
var O,
|
|
94
|
+
a,
|
|
95
|
+
n,
|
|
96
|
+
o,
|
|
97
|
+
X = this;
|
|
98
|
+
"function" == typeof M
|
|
99
|
+
? (M = { success: M })
|
|
100
|
+
: "string" == typeof M || (!1 === M && 0 < arguments.length)
|
|
101
|
+
? ((M = { url: M, data: e, dataType: t }),
|
|
102
|
+
"function" == typeof r && (M.success = r))
|
|
103
|
+
: void 0 === M && (M = {}),
|
|
104
|
+
(O = M.method || M.type || this.attr2("method")),
|
|
105
|
+
(n =
|
|
106
|
+
(n =
|
|
107
|
+
(n =
|
|
108
|
+
"string" == typeof (a = M.url || this.attr2("action"))
|
|
109
|
+
? q.trim(a)
|
|
110
|
+
: "") ||
|
|
111
|
+
window.location.href ||
|
|
112
|
+
"") && (n.match(/^([^#]+)/) || [])[1]),
|
|
113
|
+
(o =
|
|
114
|
+
/(MSIE|Trident)/.test(navigator.userAgent || "") &&
|
|
115
|
+
/^https/i.test(window.location.href || "")
|
|
116
|
+
? "javascript:false"
|
|
117
|
+
: "about:blank"),
|
|
118
|
+
(M = q.extend(
|
|
119
|
+
!0,
|
|
120
|
+
{
|
|
121
|
+
url: n,
|
|
122
|
+
success: q.ajaxSettings.success,
|
|
123
|
+
type: O || q.ajaxSettings.type,
|
|
124
|
+
iframeSrc: o,
|
|
125
|
+
},
|
|
126
|
+
M
|
|
127
|
+
));
|
|
128
|
+
var i = {};
|
|
129
|
+
if ((this.trigger("form-pre-serialize", [this, M, i]), i.veto))
|
|
130
|
+
return (
|
|
131
|
+
N("ajaxSubmit: submit vetoed via form-pre-serialize trigger"), this
|
|
132
|
+
);
|
|
133
|
+
if (M.beforeSerialize && !1 === M.beforeSerialize(this, M))
|
|
134
|
+
return (
|
|
135
|
+
N("ajaxSubmit: submit aborted via beforeSerialize callback"), this
|
|
136
|
+
);
|
|
137
|
+
var s = M.traditional;
|
|
138
|
+
void 0 === s && (s = q.ajaxSettings.traditional);
|
|
139
|
+
var u,
|
|
140
|
+
c,
|
|
141
|
+
C = [],
|
|
142
|
+
l = this.formToArray(M.semantic, C, M.filtering);
|
|
143
|
+
if (
|
|
144
|
+
(M.data &&
|
|
145
|
+
((c = q.isFunction(M.data) ? M.data(l) : M.data),
|
|
146
|
+
(M.extraData = c),
|
|
147
|
+
(u = q.param(c, s))),
|
|
148
|
+
M.beforeSubmit && !1 === M.beforeSubmit(l, this, M))
|
|
149
|
+
)
|
|
150
|
+
return N("ajaxSubmit: submit aborted via beforeSubmit callback"), this;
|
|
151
|
+
if ((this.trigger("form-submit-validate", [l, this, M, i]), i.veto))
|
|
152
|
+
return (
|
|
153
|
+
N("ajaxSubmit: submit vetoed via form-submit-validate trigger"), this
|
|
154
|
+
);
|
|
155
|
+
var f = q.param(l, s);
|
|
156
|
+
u && (f = f ? f + "&" + u : u),
|
|
157
|
+
"GET" === M.type.toUpperCase()
|
|
158
|
+
? ((M.url += (0 <= M.url.indexOf("?") ? "&" : "?") + f),
|
|
159
|
+
(M.data = null))
|
|
160
|
+
: (M.data = f);
|
|
161
|
+
var d,
|
|
162
|
+
m,
|
|
163
|
+
p,
|
|
164
|
+
h = [];
|
|
165
|
+
M.resetForm &&
|
|
166
|
+
h.push(function () {
|
|
167
|
+
X.resetForm();
|
|
168
|
+
}),
|
|
169
|
+
M.clearForm &&
|
|
170
|
+
h.push(function () {
|
|
171
|
+
X.clearForm(M.includeHidden);
|
|
172
|
+
}),
|
|
173
|
+
!M.dataType && M.target
|
|
174
|
+
? ((d = M.success || function () {}),
|
|
175
|
+
h.push(function (e, t, r) {
|
|
176
|
+
var a = arguments,
|
|
177
|
+
n = M.replaceTarget ? "replaceWith" : "html";
|
|
178
|
+
q(M.target)
|
|
179
|
+
[n](e)
|
|
180
|
+
.each(function () {
|
|
181
|
+
d.apply(this, a);
|
|
182
|
+
});
|
|
183
|
+
}))
|
|
184
|
+
: M.success &&
|
|
185
|
+
(q.isArray(M.success) ? q.merge(h, M.success) : h.push(M.success)),
|
|
186
|
+
(M.success = function (e, t, r) {
|
|
187
|
+
for (var a = M.context || this, n = 0, o = h.length; n < o; n++)
|
|
188
|
+
h[n].apply(a, [e, t, r || X, X]);
|
|
189
|
+
}),
|
|
190
|
+
M.error &&
|
|
191
|
+
((m = M.error),
|
|
192
|
+
(M.error = function (e, t, r) {
|
|
193
|
+
var a = M.context || this;
|
|
194
|
+
m.apply(a, [e, t, r, X]);
|
|
195
|
+
})),
|
|
196
|
+
M.complete &&
|
|
197
|
+
((p = M.complete),
|
|
198
|
+
(M.complete = function (e, t) {
|
|
199
|
+
var r = M.context || this;
|
|
200
|
+
p.apply(r, [e, t, X]);
|
|
201
|
+
}));
|
|
202
|
+
var v =
|
|
203
|
+
0 <
|
|
204
|
+
q("input[type=file]:enabled", this).filter(function () {
|
|
205
|
+
return "" !== q(this).val();
|
|
206
|
+
}).length,
|
|
207
|
+
g = "multipart/form-data",
|
|
208
|
+
x = X.attr("enctype") === g || X.attr("encoding") === g,
|
|
209
|
+
y = S.fileapi && S.formdata;
|
|
210
|
+
N("fileAPI :" + y);
|
|
211
|
+
var b,
|
|
212
|
+
T = (v || x) && !y;
|
|
213
|
+
!1 !== M.iframe && (M.iframe || T)
|
|
214
|
+
? M.closeKeepAlive
|
|
215
|
+
? q.get(M.closeKeepAlive, function () {
|
|
216
|
+
b = w(l);
|
|
217
|
+
})
|
|
218
|
+
: (b = w(l))
|
|
219
|
+
: (b =
|
|
220
|
+
(v || x) && y
|
|
221
|
+
? (function (e) {
|
|
222
|
+
for (var r = new FormData(), t = 0; t < e.length; t++)
|
|
223
|
+
r.append(e[t].name, e[t].value);
|
|
224
|
+
if (M.extraData) {
|
|
225
|
+
var a = (function (e) {
|
|
226
|
+
var t,
|
|
227
|
+
r,
|
|
228
|
+
a = q.param(e, M.traditional).split("&"),
|
|
229
|
+
n = a.length,
|
|
230
|
+
o = [];
|
|
231
|
+
for (t = 0; t < n; t++)
|
|
232
|
+
(a[t] = a[t].replace(/\+/g, " ")),
|
|
233
|
+
(r = a[t].split("=")),
|
|
234
|
+
o.push([
|
|
235
|
+
decodeURIComponent(r[0]),
|
|
236
|
+
decodeURIComponent(r[1]),
|
|
237
|
+
]);
|
|
238
|
+
return o;
|
|
239
|
+
})(M.extraData);
|
|
240
|
+
for (t = 0; t < a.length; t++)
|
|
241
|
+
a[t] && r.append(a[t][0], a[t][1]);
|
|
242
|
+
}
|
|
243
|
+
M.data = null;
|
|
244
|
+
var n = q.extend(!0, {}, q.ajaxSettings, M, {
|
|
245
|
+
contentType: !1,
|
|
246
|
+
processData: !1,
|
|
247
|
+
cache: !1,
|
|
248
|
+
type: O || "POST",
|
|
249
|
+
});
|
|
250
|
+
M.uploadProgress &&
|
|
251
|
+
(n.xhr = function () {
|
|
252
|
+
var e = q.ajaxSettings.xhr();
|
|
253
|
+
return (
|
|
254
|
+
e.upload &&
|
|
255
|
+
e.upload.addEventListener(
|
|
256
|
+
"progress",
|
|
257
|
+
function (e) {
|
|
258
|
+
var t = 0,
|
|
259
|
+
r = e.loaded || e.position,
|
|
260
|
+
a = e.total;
|
|
261
|
+
e.lengthComputable &&
|
|
262
|
+
(t = Math.ceil((r / a) * 100)),
|
|
263
|
+
M.uploadProgress(e, r, a, t);
|
|
264
|
+
},
|
|
265
|
+
!1
|
|
266
|
+
),
|
|
267
|
+
e
|
|
268
|
+
);
|
|
269
|
+
});
|
|
270
|
+
n.data = null;
|
|
271
|
+
var o = n.beforeSend;
|
|
272
|
+
return (
|
|
273
|
+
(n.beforeSend = function (e, t) {
|
|
274
|
+
M.formData ? (t.data = M.formData) : (t.data = r),
|
|
275
|
+
o && o.call(this, e, t);
|
|
276
|
+
}),
|
|
277
|
+
q.ajax(n)
|
|
278
|
+
);
|
|
279
|
+
})(l)
|
|
280
|
+
: q.ajax(M)),
|
|
281
|
+
X.removeData("jqxhr").data("jqxhr", b);
|
|
282
|
+
for (var j = 0; j < C.length; j++) C[j] = null;
|
|
283
|
+
return this.trigger("form-submit-notify", [this, M]), this;
|
|
284
|
+
function w(e) {
|
|
285
|
+
var t,
|
|
286
|
+
r,
|
|
287
|
+
l,
|
|
288
|
+
f,
|
|
289
|
+
o,
|
|
290
|
+
d,
|
|
291
|
+
m,
|
|
292
|
+
p,
|
|
293
|
+
a,
|
|
294
|
+
n,
|
|
295
|
+
h,
|
|
296
|
+
v,
|
|
297
|
+
i = X[0],
|
|
298
|
+
g = q.Deferred();
|
|
299
|
+
if (
|
|
300
|
+
((g.abort = function (e) {
|
|
301
|
+
p.abort(e);
|
|
302
|
+
}),
|
|
303
|
+
e)
|
|
304
|
+
)
|
|
305
|
+
for (r = 0; r < C.length; r++)
|
|
306
|
+
(t = q(C[r])),
|
|
307
|
+
_ ? t.prop("disabled", !1) : t.removeAttr("disabled");
|
|
308
|
+
((l = q.extend(!0, {}, q.ajaxSettings, M)).context = l.context || l),
|
|
309
|
+
(o = "jqFormIO" + new Date().getTime());
|
|
310
|
+
var s = i.ownerDocument,
|
|
311
|
+
u = X.closest("body");
|
|
312
|
+
if (
|
|
313
|
+
(l.iframeTarget
|
|
314
|
+
? (n = (d = q(l.iframeTarget, s)).attr2("name"))
|
|
315
|
+
? (o = n)
|
|
316
|
+
: d.attr2("name", o)
|
|
317
|
+
: (d = q(
|
|
318
|
+
'<iframe name="' + o + '" src="' + l.iframeSrc + '" />',
|
|
319
|
+
s
|
|
320
|
+
)).css({ position: "absolute", top: "-1000px", left: "-1000px" }),
|
|
321
|
+
(m = d[0]),
|
|
322
|
+
(p = {
|
|
323
|
+
aborted: 0,
|
|
324
|
+
responseText: null,
|
|
325
|
+
responseXML: null,
|
|
326
|
+
status: 0,
|
|
327
|
+
statusText: "n/a",
|
|
328
|
+
getAllResponseHeaders: function () {},
|
|
329
|
+
getResponseHeader: function () {},
|
|
330
|
+
setRequestHeader: function () {},
|
|
331
|
+
abort: function (e) {
|
|
332
|
+
var t = "timeout" === e ? "timeout" : "aborted";
|
|
333
|
+
N("aborting upload... " + t), (this.aborted = 1);
|
|
334
|
+
try {
|
|
335
|
+
m.contentWindow.document.execCommand &&
|
|
336
|
+
m.contentWindow.document.execCommand("Stop");
|
|
337
|
+
} catch (e) {}
|
|
338
|
+
d.attr("src", l.iframeSrc),
|
|
339
|
+
(p.error = t),
|
|
340
|
+
l.error && l.error.call(l.context, p, t, e),
|
|
341
|
+
f && q.event.trigger("ajaxError", [p, l, t]),
|
|
342
|
+
l.complete && l.complete.call(l.context, p, t);
|
|
343
|
+
},
|
|
344
|
+
}),
|
|
345
|
+
(f = l.global) && 0 == q.active++ && q.event.trigger("ajaxStart"),
|
|
346
|
+
f && q.event.trigger("ajaxSend", [p, l]),
|
|
347
|
+
l.beforeSend && !1 === l.beforeSend.call(l.context, p, l))
|
|
348
|
+
)
|
|
349
|
+
return l.global && q.active--, g.reject(), g;
|
|
350
|
+
if (p.aborted) return g.reject(), g;
|
|
351
|
+
(a = i.clk) &&
|
|
352
|
+
(n = a.name) &&
|
|
353
|
+
!a.disabled &&
|
|
354
|
+
((l.extraData = l.extraData || {}),
|
|
355
|
+
(l.extraData[n] = a.value),
|
|
356
|
+
"image" === a.type &&
|
|
357
|
+
((l.extraData[n + ".x"] = i.clk_x),
|
|
358
|
+
(l.extraData[n + ".y"] = i.clk_y)));
|
|
359
|
+
var x = 1,
|
|
360
|
+
y = 2;
|
|
361
|
+
function b(t) {
|
|
362
|
+
var r = null;
|
|
363
|
+
try {
|
|
364
|
+
t.contentWindow && (r = t.contentWindow.document);
|
|
365
|
+
} catch (e) {
|
|
366
|
+
N("cannot get iframe.contentWindow document: " + e);
|
|
367
|
+
}
|
|
368
|
+
if (r) return r;
|
|
369
|
+
try {
|
|
370
|
+
r = t.contentDocument ? t.contentDocument : t.document;
|
|
371
|
+
} catch (e) {
|
|
372
|
+
N("cannot get iframe.contentDocument: " + e), (r = t.document);
|
|
373
|
+
}
|
|
374
|
+
return r;
|
|
375
|
+
}
|
|
376
|
+
var c = q("meta[name=csrf-token]").attr("content"),
|
|
377
|
+
T = q("meta[name=csrf-param]").attr("content");
|
|
378
|
+
function j() {
|
|
379
|
+
var e = X.attr2("target"),
|
|
380
|
+
t = X.attr2("action"),
|
|
381
|
+
r =
|
|
382
|
+
X.attr("enctype") || X.attr("encoding") || "multipart/form-data";
|
|
383
|
+
i.setAttribute("target", o),
|
|
384
|
+
(O && !/post/i.test(O)) || i.setAttribute("method", "POST"),
|
|
385
|
+
t !== l.url && i.setAttribute("action", l.url),
|
|
386
|
+
l.skipEncodingOverride ||
|
|
387
|
+
(O && !/post/i.test(O)) ||
|
|
388
|
+
X.attr({
|
|
389
|
+
encoding: "multipart/form-data",
|
|
390
|
+
enctype: "multipart/form-data",
|
|
391
|
+
}),
|
|
392
|
+
l.timeout &&
|
|
393
|
+
(v = setTimeout(function () {
|
|
394
|
+
(h = !0), A(x);
|
|
395
|
+
}, l.timeout));
|
|
396
|
+
var a = [];
|
|
397
|
+
try {
|
|
398
|
+
if (l.extraData)
|
|
399
|
+
for (var n in l.extraData)
|
|
400
|
+
l.extraData.hasOwnProperty(n) &&
|
|
401
|
+
(q.isPlainObject(l.extraData[n]) &&
|
|
402
|
+
l.extraData[n].hasOwnProperty("name") &&
|
|
403
|
+
l.extraData[n].hasOwnProperty("value")
|
|
404
|
+
? a.push(
|
|
405
|
+
q(
|
|
406
|
+
'<input type="hidden" name="' +
|
|
407
|
+
l.extraData[n].name +
|
|
408
|
+
'">',
|
|
409
|
+
s
|
|
410
|
+
)
|
|
411
|
+
.val(l.extraData[n].value)
|
|
412
|
+
.appendTo(i)[0]
|
|
413
|
+
)
|
|
414
|
+
: a.push(
|
|
415
|
+
q('<input type="hidden" name="' + n + '">', s)
|
|
416
|
+
.val(l.extraData[n])
|
|
417
|
+
.appendTo(i)[0]
|
|
418
|
+
));
|
|
419
|
+
l.iframeTarget || d.appendTo(u),
|
|
420
|
+
m.attachEvent
|
|
421
|
+
? m.attachEvent("onload", A)
|
|
422
|
+
: m.addEventListener("load", A, !1),
|
|
423
|
+
setTimeout(function e() {
|
|
424
|
+
try {
|
|
425
|
+
var t = b(m).readyState;
|
|
426
|
+
N("state = " + t),
|
|
427
|
+
t &&
|
|
428
|
+
"uninitialized" === t.toLowerCase() &&
|
|
429
|
+
setTimeout(e, 50);
|
|
430
|
+
} catch (e) {
|
|
431
|
+
N("Server abort: ", e, " (", e.name, ")"),
|
|
432
|
+
A(y),
|
|
433
|
+
v && clearTimeout(v),
|
|
434
|
+
(v = void 0);
|
|
435
|
+
}
|
|
436
|
+
}, 15);
|
|
437
|
+
try {
|
|
438
|
+
i.submit();
|
|
439
|
+
} catch (e) {
|
|
440
|
+
document.createElement("form").submit.apply(i);
|
|
441
|
+
}
|
|
442
|
+
} finally {
|
|
443
|
+
i.setAttribute("action", t),
|
|
444
|
+
i.setAttribute("enctype", r),
|
|
445
|
+
e ? i.setAttribute("target", e) : X.removeAttr("target"),
|
|
446
|
+
q(a).remove();
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
T && c && ((l.extraData = l.extraData || {}), (l.extraData[T] = c)),
|
|
450
|
+
l.forceSync ? j() : setTimeout(j, 10);
|
|
451
|
+
var w,
|
|
452
|
+
S,
|
|
453
|
+
k,
|
|
454
|
+
D = 50;
|
|
455
|
+
function A(e) {
|
|
456
|
+
if (!p.aborted && !k) {
|
|
457
|
+
if (
|
|
458
|
+
((S = b(m)) || (N("cannot access response document"), (e = y)),
|
|
459
|
+
e === x && p)
|
|
460
|
+
)
|
|
461
|
+
return p.abort("timeout"), void g.reject(p, "timeout");
|
|
462
|
+
if (e === y && p)
|
|
463
|
+
return (
|
|
464
|
+
p.abort("server abort"),
|
|
465
|
+
void g.reject(p, "error", "server abort")
|
|
466
|
+
);
|
|
467
|
+
if ((S && S.location.href !== l.iframeSrc) || h) {
|
|
468
|
+
m.detachEvent
|
|
469
|
+
? m.detachEvent("onload", A)
|
|
470
|
+
: m.removeEventListener("load", A, !1);
|
|
471
|
+
var t,
|
|
472
|
+
r = "success";
|
|
473
|
+
try {
|
|
474
|
+
if (h) throw "timeout";
|
|
475
|
+
var a = "xml" === l.dataType || S.XMLDocument || q.isXMLDoc(S);
|
|
476
|
+
if (
|
|
477
|
+
(N("isXml=" + a),
|
|
478
|
+
!a &&
|
|
479
|
+
window.opera &&
|
|
480
|
+
(null === S.body || !S.body.innerHTML) &&
|
|
481
|
+
--D)
|
|
482
|
+
)
|
|
483
|
+
return (
|
|
484
|
+
N("requeing onLoad callback, DOM not available"),
|
|
485
|
+
void setTimeout(A, 250)
|
|
486
|
+
);
|
|
487
|
+
var n = S.body ? S.body : S.documentElement;
|
|
488
|
+
(p.responseText = n ? n.innerHTML : null),
|
|
489
|
+
(p.responseXML = S.XMLDocument ? S.XMLDocument : S),
|
|
490
|
+
a && (l.dataType = "xml"),
|
|
491
|
+
(p.getResponseHeader = function (e) {
|
|
492
|
+
return { "content-type": l.dataType }[e.toLowerCase()];
|
|
493
|
+
}),
|
|
494
|
+
n &&
|
|
495
|
+
((p.status = Number(n.getAttribute("status")) || p.status),
|
|
496
|
+
(p.statusText =
|
|
497
|
+
n.getAttribute("statusText") || p.statusText));
|
|
498
|
+
var o,
|
|
499
|
+
i,
|
|
500
|
+
s,
|
|
501
|
+
u = (l.dataType || "").toLowerCase(),
|
|
502
|
+
c = /(json|script|text)/.test(u);
|
|
503
|
+
c || l.textarea
|
|
504
|
+
? (o = S.getElementsByTagName("textarea")[0])
|
|
505
|
+
? ((p.responseText = o.value),
|
|
506
|
+
(p.status = Number(o.getAttribute("status")) || p.status),
|
|
507
|
+
(p.statusText =
|
|
508
|
+
o.getAttribute("statusText") || p.statusText))
|
|
509
|
+
: c &&
|
|
510
|
+
((i = S.getElementsByTagName("pre")[0]),
|
|
511
|
+
(s = S.getElementsByTagName("body")[0]),
|
|
512
|
+
i
|
|
513
|
+
? (p.responseText = i.textContent
|
|
514
|
+
? i.textContent
|
|
515
|
+
: i.innerText)
|
|
516
|
+
: s &&
|
|
517
|
+
(p.responseText = s.textContent
|
|
518
|
+
? s.textContent
|
|
519
|
+
: s.innerText))
|
|
520
|
+
: "xml" === u &&
|
|
521
|
+
!p.responseXML &&
|
|
522
|
+
p.responseText &&
|
|
523
|
+
(p.responseXML = F(p.responseText));
|
|
524
|
+
try {
|
|
525
|
+
w = E(p, u, l);
|
|
526
|
+
} catch (e) {
|
|
527
|
+
(r = "parsererror"), (p.error = t = e || r);
|
|
528
|
+
}
|
|
529
|
+
} catch (e) {
|
|
530
|
+
N("error caught: ", e), (r = "error"), (p.error = t = e || r);
|
|
531
|
+
}
|
|
532
|
+
p.aborted && (N("upload aborted"), (r = null)),
|
|
533
|
+
p.status &&
|
|
534
|
+
(r =
|
|
535
|
+
(200 <= p.status && p.status < 300) || 304 === p.status
|
|
536
|
+
? "success"
|
|
537
|
+
: "error"),
|
|
538
|
+
"success" === r
|
|
539
|
+
? (l.success && l.success.call(l.context, w, "success", p),
|
|
540
|
+
g.resolve(p.responseText, "success", p),
|
|
541
|
+
f && q.event.trigger("ajaxSuccess", [p, l]))
|
|
542
|
+
: r &&
|
|
543
|
+
(void 0 === t && (t = p.statusText),
|
|
544
|
+
l.error && l.error.call(l.context, p, r, t),
|
|
545
|
+
g.reject(p, "error", t),
|
|
546
|
+
f && q.event.trigger("ajaxError", [p, l, t])),
|
|
547
|
+
f && q.event.trigger("ajaxComplete", [p, l]),
|
|
548
|
+
f && !--q.active && q.event.trigger("ajaxStop"),
|
|
549
|
+
l.complete && l.complete.call(l.context, p, r),
|
|
550
|
+
(k = !0),
|
|
551
|
+
l.timeout && clearTimeout(v),
|
|
552
|
+
setTimeout(function () {
|
|
553
|
+
l.iframeTarget ? d.attr("src", l.iframeSrc) : d.remove(),
|
|
554
|
+
(p.responseXML = null);
|
|
555
|
+
}, 100);
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
var F =
|
|
560
|
+
q.parseXML ||
|
|
561
|
+
function (e, t) {
|
|
562
|
+
return (
|
|
563
|
+
window.ActiveXObject
|
|
564
|
+
? (((t = new ActiveXObject("Microsoft.XMLDOM")).async =
|
|
565
|
+
"false"),
|
|
566
|
+
t.loadXML(e))
|
|
567
|
+
: (t = new DOMParser().parseFromString(e, "text/xml")),
|
|
568
|
+
t &&
|
|
569
|
+
t.documentElement &&
|
|
570
|
+
"parsererror" !== t.documentElement.nodeName
|
|
571
|
+
? t
|
|
572
|
+
: null
|
|
573
|
+
);
|
|
574
|
+
},
|
|
575
|
+
L =
|
|
576
|
+
q.parseJSON ||
|
|
577
|
+
function (e) {
|
|
578
|
+
return window.eval("(" + e + ")");
|
|
579
|
+
},
|
|
580
|
+
E = function (e, t, r) {
|
|
581
|
+
var a = e.getResponseHeader("content-type") || "",
|
|
582
|
+
n = ("xml" === t || !t) && 0 <= a.indexOf("xml"),
|
|
583
|
+
o = n ? e.responseXML : e.responseText;
|
|
584
|
+
return (
|
|
585
|
+
n &&
|
|
586
|
+
"parsererror" === o.documentElement.nodeName &&
|
|
587
|
+
q.error &&
|
|
588
|
+
q.error("parsererror"),
|
|
589
|
+
r && r.dataFilter && (o = r.dataFilter(o, t)),
|
|
590
|
+
"string" == typeof o &&
|
|
591
|
+
(("json" === t || !t) && 0 <= a.indexOf("json")
|
|
592
|
+
? (o = L(o))
|
|
593
|
+
: ("script" === t || !t) &&
|
|
594
|
+
0 <= a.indexOf("javascript") &&
|
|
595
|
+
q.globalEval(o)),
|
|
596
|
+
o
|
|
597
|
+
);
|
|
598
|
+
};
|
|
599
|
+
return g;
|
|
600
|
+
}
|
|
601
|
+
}),
|
|
602
|
+
(q.fn.ajaxForm = function (e, t, r, a) {
|
|
603
|
+
if (
|
|
604
|
+
(("string" == typeof e || (!1 === e && 0 < arguments.length)) &&
|
|
605
|
+
((e = { url: e, data: t, dataType: r }),
|
|
606
|
+
"function" == typeof a && (e.success = a)),
|
|
607
|
+
((e = e || {}).delegation = e.delegation && q.isFunction(q.fn.on)),
|
|
608
|
+
e.delegation || 0 !== this.length)
|
|
609
|
+
)
|
|
610
|
+
return e.delegation
|
|
611
|
+
? (q(document)
|
|
612
|
+
.off("submit.form-plugin", this.selector, o)
|
|
613
|
+
.off("click.form-plugin", this.selector, i)
|
|
614
|
+
.on("submit.form-plugin", this.selector, e, o)
|
|
615
|
+
.on("click.form-plugin", this.selector, e, i),
|
|
616
|
+
this)
|
|
617
|
+
: (e.beforeFormUnbind && e.beforeFormUnbind(this, e),
|
|
618
|
+
this.ajaxFormUnbind()
|
|
619
|
+
.on("submit.form-plugin", e, o)
|
|
620
|
+
.on("click.form-plugin", e, i));
|
|
621
|
+
var n = { s: this.selector, c: this.context };
|
|
622
|
+
return (
|
|
623
|
+
!q.isReady && n.s
|
|
624
|
+
? (N("DOM not ready, queuing ajaxForm"),
|
|
625
|
+
q(function () {
|
|
626
|
+
q(n.s, n.c).ajaxForm(e);
|
|
627
|
+
}))
|
|
628
|
+
: N(
|
|
629
|
+
"terminating; zero elements found by selector" +
|
|
630
|
+
(q.isReady ? "" : " (DOM not ready)")
|
|
631
|
+
),
|
|
632
|
+
this
|
|
633
|
+
);
|
|
634
|
+
}),
|
|
635
|
+
(q.fn.ajaxFormUnbind = function () {
|
|
636
|
+
return this.off("submit.form-plugin click.form-plugin");
|
|
637
|
+
}),
|
|
638
|
+
(q.fn.formToArray = function (e, t, r) {
|
|
639
|
+
var a = [];
|
|
640
|
+
if (0 === this.length) return a;
|
|
641
|
+
var n,
|
|
642
|
+
o,
|
|
643
|
+
i,
|
|
644
|
+
s,
|
|
645
|
+
u,
|
|
646
|
+
c,
|
|
647
|
+
l,
|
|
648
|
+
f,
|
|
649
|
+
d,
|
|
650
|
+
m,
|
|
651
|
+
p = this[0],
|
|
652
|
+
h = this.attr("id"),
|
|
653
|
+
v =
|
|
654
|
+
(v =
|
|
655
|
+
e || void 0 === p.elements
|
|
656
|
+
? p.getElementsByTagName("*")
|
|
657
|
+
: p.elements) && q.makeArray(v);
|
|
658
|
+
if (
|
|
659
|
+
(h &&
|
|
660
|
+
(e || /(Edge|Trident)\//.test(navigator.userAgent)) &&
|
|
661
|
+
(n = q(':input[form="' + h + '"]').get()).length &&
|
|
662
|
+
(v = (v || []).concat(n)),
|
|
663
|
+
!v || !v.length)
|
|
664
|
+
)
|
|
665
|
+
return a;
|
|
666
|
+
for (
|
|
667
|
+
q.isFunction(r) && (v = q.map(v, r)), o = 0, c = v.length;
|
|
668
|
+
o < c;
|
|
669
|
+
o++
|
|
670
|
+
)
|
|
671
|
+
if ((m = (u = v[o]).name) && !u.disabled)
|
|
672
|
+
if (e && p.clk && "image" === u.type)
|
|
673
|
+
p.clk === u &&
|
|
674
|
+
(a.push({ name: m, value: q(u).val(), type: u.type }),
|
|
675
|
+
a.push(
|
|
676
|
+
{ name: m + ".x", value: p.clk_x },
|
|
677
|
+
{ name: m + ".y", value: p.clk_y }
|
|
678
|
+
));
|
|
679
|
+
else if ((s = q.fieldValue(u, !0)) && s.constructor === Array)
|
|
680
|
+
for (t && t.push(u), i = 0, l = s.length; i < l; i++)
|
|
681
|
+
a.push({ name: m, value: s[i] });
|
|
682
|
+
else if (S.fileapi && "file" === u.type) {
|
|
683
|
+
t && t.push(u);
|
|
684
|
+
var g = u.files;
|
|
685
|
+
if (g.length)
|
|
686
|
+
for (i = 0; i < g.length; i++)
|
|
687
|
+
a.push({ name: m, value: g[i], type: u.type });
|
|
688
|
+
else a.push({ name: m, value: "", type: u.type });
|
|
689
|
+
} else
|
|
690
|
+
null != s &&
|
|
691
|
+
(t && t.push(u),
|
|
692
|
+
a.push({
|
|
693
|
+
name: m,
|
|
694
|
+
value: s,
|
|
695
|
+
type: u.type,
|
|
696
|
+
required: u.required,
|
|
697
|
+
}));
|
|
698
|
+
return (
|
|
699
|
+
e ||
|
|
700
|
+
!p.clk ||
|
|
701
|
+
((m = (d = (f = q(p.clk))[0]).name) &&
|
|
702
|
+
!d.disabled &&
|
|
703
|
+
"image" === d.type &&
|
|
704
|
+
(a.push({ name: m, value: f.val() }),
|
|
705
|
+
a.push(
|
|
706
|
+
{ name: m + ".x", value: p.clk_x },
|
|
707
|
+
{ name: m + ".y", value: p.clk_y }
|
|
708
|
+
))),
|
|
709
|
+
a
|
|
710
|
+
);
|
|
711
|
+
}),
|
|
712
|
+
(q.fn.formSerialize = function (e) {
|
|
713
|
+
return q.param(this.formToArray(e));
|
|
714
|
+
}),
|
|
715
|
+
(q.fn.fieldSerialize = function (n) {
|
|
716
|
+
var o = [];
|
|
717
|
+
return (
|
|
718
|
+
this.each(function () {
|
|
719
|
+
var e = this.name;
|
|
720
|
+
if (e) {
|
|
721
|
+
var t = q.fieldValue(this, n);
|
|
722
|
+
if (t && t.constructor === Array)
|
|
723
|
+
for (var r = 0, a = t.length; r < a; r++)
|
|
724
|
+
o.push({ name: e, value: t[r] });
|
|
725
|
+
else null != t && o.push({ name: this.name, value: t });
|
|
726
|
+
}
|
|
727
|
+
}),
|
|
728
|
+
q.param(o)
|
|
729
|
+
);
|
|
730
|
+
}),
|
|
731
|
+
(q.fn.fieldValue = function (e) {
|
|
732
|
+
for (var t = [], r = 0, a = this.length; r < a; r++) {
|
|
733
|
+
var n = this[r],
|
|
734
|
+
o = q.fieldValue(n, e);
|
|
735
|
+
null == o ||
|
|
736
|
+
(o.constructor === Array && !o.length) ||
|
|
737
|
+
(o.constructor === Array ? q.merge(t, o) : t.push(o));
|
|
738
|
+
}
|
|
739
|
+
return t;
|
|
740
|
+
}),
|
|
741
|
+
(q.fieldValue = function (e, t) {
|
|
742
|
+
var r = e.name,
|
|
743
|
+
a = e.type,
|
|
744
|
+
n = e.tagName.toLowerCase();
|
|
745
|
+
if (
|
|
746
|
+
(void 0 === t && (t = !0),
|
|
747
|
+
t &&
|
|
748
|
+
(!r ||
|
|
749
|
+
e.disabled ||
|
|
750
|
+
"reset" === a ||
|
|
751
|
+
"button" === a ||
|
|
752
|
+
(("checkbox" === a || "radio" === a) && !e.checked) ||
|
|
753
|
+
(("submit" === a || "image" === a) && e.form && e.form.clk !== e) ||
|
|
754
|
+
("select" === n && -1 === e.selectedIndex)))
|
|
755
|
+
)
|
|
756
|
+
return null;
|
|
757
|
+
if ("select" !== n) return q(e).val().replace(m, "\r\n");
|
|
758
|
+
var o = e.selectedIndex;
|
|
759
|
+
if (o < 0) return null;
|
|
760
|
+
for (
|
|
761
|
+
var i = [],
|
|
762
|
+
s = e.options,
|
|
763
|
+
u = "select-one" === a,
|
|
764
|
+
c = u ? o + 1 : s.length,
|
|
765
|
+
l = u ? o : 0;
|
|
766
|
+
l < c;
|
|
767
|
+
l++
|
|
768
|
+
) {
|
|
769
|
+
var f = s[l];
|
|
770
|
+
if (f.selected && !f.disabled) {
|
|
771
|
+
var d =
|
|
772
|
+
(d = f.value) ||
|
|
773
|
+
(f.attributes && f.attributes.value && !f.attributes.value.specified
|
|
774
|
+
? f.text
|
|
775
|
+
: f.value);
|
|
776
|
+
if (u) return d;
|
|
777
|
+
i.push(d);
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
return i;
|
|
781
|
+
}),
|
|
782
|
+
(q.fn.clearForm = function (e) {
|
|
783
|
+
return this.each(function () {
|
|
784
|
+
q("input,select,textarea", this).clearFields(e);
|
|
785
|
+
});
|
|
786
|
+
}),
|
|
787
|
+
(q.fn.clearFields = q.fn.clearInputs =
|
|
788
|
+
function (r) {
|
|
789
|
+
var a =
|
|
790
|
+
/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;
|
|
791
|
+
return this.each(function () {
|
|
792
|
+
var e = this.type,
|
|
793
|
+
t = this.tagName.toLowerCase();
|
|
794
|
+
a.test(e) || "textarea" === t
|
|
795
|
+
? (this.value = "")
|
|
796
|
+
: "checkbox" === e || "radio" === e
|
|
797
|
+
? (this.checked = !1)
|
|
798
|
+
: "select" === t
|
|
799
|
+
? (this.selectedIndex = -1)
|
|
800
|
+
: "file" === e
|
|
801
|
+
? /MSIE/.test(navigator.userAgent)
|
|
802
|
+
? q(this).replaceWith(q(this).clone(!0))
|
|
803
|
+
: q(this).val("")
|
|
804
|
+
: r &&
|
|
805
|
+
((!0 === r && /hidden/.test(e)) ||
|
|
806
|
+
("string" == typeof r && q(this).is(r))) &&
|
|
807
|
+
(this.value = "");
|
|
808
|
+
});
|
|
809
|
+
}),
|
|
810
|
+
(q.fn.resetForm = function () {
|
|
811
|
+
return this.each(function () {
|
|
812
|
+
var t = q(this),
|
|
813
|
+
e = this.tagName.toLowerCase();
|
|
814
|
+
switch (e) {
|
|
815
|
+
case "input":
|
|
816
|
+
this.checked = this.defaultChecked;
|
|
817
|
+
case "textarea":
|
|
818
|
+
return (this.value = this.defaultValue), !0;
|
|
819
|
+
case "option":
|
|
820
|
+
case "optgroup":
|
|
821
|
+
var r = t.parents("select");
|
|
822
|
+
return (
|
|
823
|
+
r.length && r[0].multiple
|
|
824
|
+
? "option" === e
|
|
825
|
+
? (this.selected = this.defaultSelected)
|
|
826
|
+
: t.find("option").resetForm()
|
|
827
|
+
: r.resetForm(),
|
|
828
|
+
!0
|
|
829
|
+
);
|
|
830
|
+
case "select":
|
|
831
|
+
return (
|
|
832
|
+
t.find("option").each(function (e) {
|
|
833
|
+
if (
|
|
834
|
+
((this.selected = this.defaultSelected),
|
|
835
|
+
this.defaultSelected && !t[0].multiple)
|
|
836
|
+
)
|
|
837
|
+
return (t[0].selectedIndex = e), !1;
|
|
838
|
+
}),
|
|
839
|
+
!0
|
|
840
|
+
);
|
|
841
|
+
case "label":
|
|
842
|
+
var a = q(t.attr("for")),
|
|
843
|
+
n = t.find("input,select,textarea");
|
|
844
|
+
return a[0] && n.unshift(a[0]), n.resetForm(), !0;
|
|
845
|
+
case "form":
|
|
846
|
+
return (
|
|
847
|
+
("function" != typeof this.reset &&
|
|
848
|
+
("object" != typeof this.reset || this.reset.nodeType)) ||
|
|
849
|
+
this.reset(),
|
|
850
|
+
!0
|
|
851
|
+
);
|
|
852
|
+
default:
|
|
853
|
+
return t.find("form,input,label,select,textarea").resetForm(), !0;
|
|
854
|
+
}
|
|
855
|
+
});
|
|
856
|
+
}),
|
|
857
|
+
(q.fn.enable = function (e) {
|
|
858
|
+
return (
|
|
859
|
+
void 0 === e && (e = !0),
|
|
860
|
+
this.each(function () {
|
|
861
|
+
this.disabled = !e;
|
|
862
|
+
})
|
|
863
|
+
);
|
|
864
|
+
}),
|
|
865
|
+
(q.fn.selected = function (r) {
|
|
866
|
+
return (
|
|
867
|
+
void 0 === r && (r = !0),
|
|
868
|
+
this.each(function () {
|
|
869
|
+
var e,
|
|
870
|
+
t = this.type;
|
|
871
|
+
"checkbox" === t || "radio" === t
|
|
872
|
+
? (this.checked = r)
|
|
873
|
+
: "option" === this.tagName.toLowerCase() &&
|
|
874
|
+
((e = q(this).parent("select")),
|
|
875
|
+
r &&
|
|
876
|
+
e[0] &&
|
|
877
|
+
"select-one" === e[0].type &&
|
|
878
|
+
e.find("option").selected(!1),
|
|
879
|
+
(this.selected = r));
|
|
880
|
+
})
|
|
881
|
+
);
|
|
882
|
+
}),
|
|
883
|
+
(q.fn.ajaxSubmit.debug = !1);
|
|
884
|
+
});
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* DO NOT EDIT THIS FILE.
|
|
888
|
+
* See the following change record for more information,
|
|
889
|
+
* https://www.drupal.org/node/2815083
|
|
890
|
+
* @preserve
|
|
891
|
+
**/
|
|
892
|
+
(function ($, Drupal, drupalSettings) {
|
|
893
|
+
Drupal.Views = {};
|
|
894
|
+
Drupal.Views.parseQueryString = function (query) {
|
|
895
|
+
var args = {};
|
|
896
|
+
var pos = query.indexOf("?");
|
|
897
|
+
if (pos !== -1) {
|
|
898
|
+
query = query.substring(pos + 1);
|
|
899
|
+
}
|
|
900
|
+
var pair;
|
|
901
|
+
var pairs = query.split("&");
|
|
902
|
+
for (var i = 0; i < pairs.length; i++) {
|
|
903
|
+
pair = pairs[i].split("=");
|
|
904
|
+
if (pair[0] !== "q" && pair[1]) {
|
|
905
|
+
args[decodeURIComponent(pair[0].replace(/\+/g, " "))] =
|
|
906
|
+
decodeURIComponent(pair[1].replace(/\+/g, " "));
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
return args;
|
|
910
|
+
};
|
|
911
|
+
Drupal.Views.parseViewArgs = function (href, viewPath) {
|
|
912
|
+
var returnObj = {};
|
|
913
|
+
var path = Drupal.Views.getPath(href);
|
|
914
|
+
var viewHref = Drupal.url(viewPath).substring(
|
|
915
|
+
drupalSettings.path.baseUrl.length
|
|
916
|
+
);
|
|
917
|
+
if (
|
|
918
|
+
viewHref &&
|
|
919
|
+
path.substring(0, viewHref.length + 1) === "".concat(viewHref, "/")
|
|
920
|
+
) {
|
|
921
|
+
returnObj.view_args = decodeURIComponent(
|
|
922
|
+
path.substring(viewHref.length + 1, path.length)
|
|
923
|
+
);
|
|
924
|
+
returnObj.view_path = path;
|
|
925
|
+
}
|
|
926
|
+
return returnObj;
|
|
927
|
+
};
|
|
928
|
+
Drupal.Views.pathPortion = function (href) {
|
|
929
|
+
var protocol = window.location.protocol;
|
|
930
|
+
if (href.substring(0, protocol.length) === protocol) {
|
|
931
|
+
href = href.substring(href.indexOf("/", protocol.length + 2));
|
|
932
|
+
}
|
|
933
|
+
return href;
|
|
934
|
+
};
|
|
935
|
+
Drupal.Views.getPath = function (href) {
|
|
936
|
+
href = Drupal.Views.pathPortion(href);
|
|
937
|
+
href = href.substring(drupalSettings.path.baseUrl.length, href.length);
|
|
938
|
+
if (href.substring(0, 3) === "?q=") {
|
|
939
|
+
href = href.substring(3, href.length);
|
|
940
|
+
}
|
|
941
|
+
var chars = ["#", "?", "&"];
|
|
942
|
+
for (var i = 0; i < chars.length; i++) {
|
|
943
|
+
if (href.indexOf(chars[i]) > -1) {
|
|
944
|
+
href = href.substr(0, href.indexOf(chars[i]));
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
return href;
|
|
948
|
+
};
|
|
949
|
+
})(jQuery, Drupal, drupalSettings);
|
|
950
|
+
/**
|
|
951
|
+
* DO NOT EDIT THIS FILE.
|
|
952
|
+
* See the following change record for more information,
|
|
953
|
+
* https://www.drupal.org/node/2815083
|
|
954
|
+
* @preserve
|
|
955
|
+
**/
|
|
956
|
+
(function ($, Drupal, drupalSettings) {
|
|
957
|
+
Drupal.behaviors.ViewsAjaxView = {};
|
|
958
|
+
Drupal.behaviors.ViewsAjaxView.attach = function (context, settings) {
|
|
959
|
+
if (settings && settings.views && settings.views.ajaxViews) {
|
|
960
|
+
var ajaxViews = settings.views.ajaxViews;
|
|
961
|
+
Object.keys(ajaxViews || {}).forEach(function (i) {
|
|
962
|
+
Drupal.views.instances[i] = new Drupal.views.ajaxView(ajaxViews[i]);
|
|
963
|
+
});
|
|
964
|
+
}
|
|
965
|
+
};
|
|
966
|
+
Drupal.behaviors.ViewsAjaxView.detach = function (
|
|
967
|
+
context,
|
|
968
|
+
settings,
|
|
969
|
+
trigger
|
|
970
|
+
) {
|
|
971
|
+
if (trigger === "unload") {
|
|
972
|
+
if (settings && settings.views && settings.views.ajaxViews) {
|
|
973
|
+
var ajaxViews = settings.views.ajaxViews;
|
|
974
|
+
Object.keys(ajaxViews || {}).forEach(function (i) {
|
|
975
|
+
var selector = ".js-view-dom-id-".concat(ajaxViews[i].view_dom_id);
|
|
976
|
+
if ($(selector, context).length) {
|
|
977
|
+
delete Drupal.views.instances[i];
|
|
978
|
+
delete settings.views.ajaxViews[i];
|
|
979
|
+
}
|
|
980
|
+
});
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
};
|
|
984
|
+
Drupal.views = {};
|
|
985
|
+
Drupal.views.instances = {};
|
|
986
|
+
Drupal.views.ajaxView = function (settings) {
|
|
987
|
+
var selector = ".js-view-dom-id-".concat(settings.view_dom_id);
|
|
988
|
+
this.$view = $(selector);
|
|
989
|
+
var ajaxPath = drupalSettings.views.ajax_path;
|
|
990
|
+
if (ajaxPath.constructor.toString().indexOf("Array") !== -1) {
|
|
991
|
+
ajaxPath = ajaxPath[0];
|
|
992
|
+
}
|
|
993
|
+
var queryString = window.location.search || "";
|
|
994
|
+
if (queryString !== "") {
|
|
995
|
+
queryString = queryString
|
|
996
|
+
.slice(1)
|
|
997
|
+
.replace(/q=[^&]+&?|&?render=[^&]+/, "");
|
|
998
|
+
if (queryString !== "") {
|
|
999
|
+
queryString = (/\?/.test(ajaxPath) ? "&" : "?") + queryString;
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
this.element_settings = {
|
|
1003
|
+
url: ajaxPath + queryString,
|
|
1004
|
+
submit: settings,
|
|
1005
|
+
setClick: true,
|
|
1006
|
+
event: "click",
|
|
1007
|
+
selector: selector,
|
|
1008
|
+
progress: {
|
|
1009
|
+
type: "fullscreen",
|
|
1010
|
+
},
|
|
1011
|
+
};
|
|
1012
|
+
this.settings = settings;
|
|
1013
|
+
this.$exposed_form = $(
|
|
1014
|
+
"form#views-exposed-form-"
|
|
1015
|
+
.concat(settings.view_name.replace(/_/g, "-"), "-")
|
|
1016
|
+
.concat(settings.view_display_id.replace(/_/g, "-"))
|
|
1017
|
+
);
|
|
1018
|
+
once("exposed-form", this.$exposed_form).forEach(
|
|
1019
|
+
$.proxy(this.attachExposedFormAjax, this)
|
|
1020
|
+
);
|
|
1021
|
+
once(
|
|
1022
|
+
"ajax-pager",
|
|
1023
|
+
this.$view.filter($.proxy(this.filterNestedViews, this))
|
|
1024
|
+
).forEach($.proxy(this.attachPagerAjax, this));
|
|
1025
|
+
var selfSettings = $.extend({}, this.element_settings, {
|
|
1026
|
+
event: "RefreshView",
|
|
1027
|
+
base: this.selector,
|
|
1028
|
+
element: this.$view.get(0),
|
|
1029
|
+
});
|
|
1030
|
+
this.refreshViewAjax = Drupal.ajax(selfSettings);
|
|
1031
|
+
};
|
|
1032
|
+
Drupal.views.ajaxView.prototype.attachExposedFormAjax = function () {
|
|
1033
|
+
var that = this;
|
|
1034
|
+
this.exposedFormAjax = [];
|
|
1035
|
+
$(
|
|
1036
|
+
"input[type=submit], button[type=submit], input[type=image]",
|
|
1037
|
+
this.$exposed_form
|
|
1038
|
+
)
|
|
1039
|
+
.not("[data-drupal-selector=edit-reset]")
|
|
1040
|
+
.each(function (index) {
|
|
1041
|
+
var selfSettings = $.extend({}, that.element_settings, {
|
|
1042
|
+
base: $(this).attr("id"),
|
|
1043
|
+
element: this,
|
|
1044
|
+
});
|
|
1045
|
+
that.exposedFormAjax[index] = Drupal.ajax(selfSettings);
|
|
1046
|
+
});
|
|
1047
|
+
};
|
|
1048
|
+
Drupal.views.ajaxView.prototype.filterNestedViews = function () {
|
|
1049
|
+
return !this.$view.parents(".view").length;
|
|
1050
|
+
};
|
|
1051
|
+
Drupal.views.ajaxView.prototype.attachPagerAjax = function () {
|
|
1052
|
+
this.$view
|
|
1053
|
+
.find(
|
|
1054
|
+
"ul.js-pager__items > li > a, th.views-field a, .attachment .views-summary a"
|
|
1055
|
+
)
|
|
1056
|
+
.each($.proxy(this.attachPagerLinkAjax, this));
|
|
1057
|
+
};
|
|
1058
|
+
Drupal.views.ajaxView.prototype.attachPagerLinkAjax = function (id, link) {
|
|
1059
|
+
var $link = $(link);
|
|
1060
|
+
var viewData = {};
|
|
1061
|
+
var href = $link.attr("href");
|
|
1062
|
+
$.extend(
|
|
1063
|
+
viewData,
|
|
1064
|
+
this.settings,
|
|
1065
|
+
Drupal.Views.parseQueryString(href),
|
|
1066
|
+
Drupal.Views.parseViewArgs(href, this.settings.view_base_path)
|
|
1067
|
+
);
|
|
1068
|
+
var selfSettings = $.extend({}, this.element_settings, {
|
|
1069
|
+
submit: viewData,
|
|
1070
|
+
base: false,
|
|
1071
|
+
element: link,
|
|
1072
|
+
});
|
|
1073
|
+
this.pagerAjax = Drupal.ajax(selfSettings);
|
|
1074
|
+
};
|
|
1075
|
+
Drupal.AjaxCommands.prototype.viewsScrollTop = function (ajax, response) {
|
|
1076
|
+
var offset = $(response.selector).offset();
|
|
1077
|
+
var scrollTarget = response.selector;
|
|
1078
|
+
while ($(scrollTarget).scrollTop() === 0 && $(scrollTarget).parent()) {
|
|
1079
|
+
scrollTarget = $(scrollTarget).parent();
|
|
1080
|
+
}
|
|
1081
|
+
if (offset.top - 10 < $(scrollTarget).scrollTop()) {
|
|
1082
|
+
$(scrollTarget).animate(
|
|
1083
|
+
{
|
|
1084
|
+
scrollTop: offset.top - 10,
|
|
1085
|
+
},
|
|
1086
|
+
500
|
|
1087
|
+
);
|
|
1088
|
+
}
|
|
1089
|
+
};
|
|
1090
|
+
})(jQuery, Drupal, drupalSettings);
|
|
1091
|
+
/**
|
|
1092
|
+
* @file
|
|
1093
|
+
* Unlock protected forms.
|
|
1094
|
+
*
|
|
1095
|
+
* This works by resetting the form action to the path that It should be as well
|
|
1096
|
+
* as injecting the secret form key, only if the current user is verified to be
|
|
1097
|
+
* human which is done by waiting for a mousemove, swipe, or tab/enter key to be
|
|
1098
|
+
* pressed.
|
|
1099
|
+
*/
|
|
1100
|
+
|
|
1101
|
+
(function (Drupal, drupalSettings) {
|
|
1102
|
+
"use strict";
|
|
1103
|
+
|
|
1104
|
+
Drupal.antibot = {};
|
|
1105
|
+
|
|
1106
|
+
Drupal.behaviors.antibot = {
|
|
1107
|
+
attach: function (context) {
|
|
1108
|
+
// Assume the user is not human, despite JS being enabled.
|
|
1109
|
+
drupalSettings.antibot.human = false;
|
|
1110
|
+
|
|
1111
|
+
// Wait for a mouse to move, indicating they are human.
|
|
1112
|
+
document.body.addEventListener("mousemove", function () {
|
|
1113
|
+
// Unlock the forms.
|
|
1114
|
+
Drupal.antibot.unlockForms();
|
|
1115
|
+
});
|
|
1116
|
+
|
|
1117
|
+
// Wait for a touch move event, indicating that they are human.
|
|
1118
|
+
document.body.addEventListener("touchmove", function () {
|
|
1119
|
+
// Unlock the forms.
|
|
1120
|
+
Drupal.antibot.unlockForms();
|
|
1121
|
+
});
|
|
1122
|
+
|
|
1123
|
+
// A tab or enter key pressed can also indicate they are human.
|
|
1124
|
+
document.body.addEventListener("keydown", function (e) {
|
|
1125
|
+
if (e.code == "Tab" || e.code == "Enter") {
|
|
1126
|
+
// Unlock the forms.
|
|
1127
|
+
Drupal.antibot.unlockForms();
|
|
1128
|
+
}
|
|
1129
|
+
});
|
|
1130
|
+
},
|
|
1131
|
+
};
|
|
1132
|
+
|
|
1133
|
+
/**
|
|
1134
|
+
* Unlock all locked forms.
|
|
1135
|
+
*/
|
|
1136
|
+
Drupal.antibot.unlockForms = function () {
|
|
1137
|
+
// Act only if we haven't yet verified this user as being human.
|
|
1138
|
+
if (!drupalSettings.antibot.human) {
|
|
1139
|
+
// Check if there are forms to unlock.
|
|
1140
|
+
if (drupalSettings.antibot.forms != undefined) {
|
|
1141
|
+
// Iterate all antibot forms that we need to unlock.
|
|
1142
|
+
Object.values(drupalSettings.antibot.forms).forEach(function (config) {
|
|
1143
|
+
// Switch the action.
|
|
1144
|
+
const form = document.getElementById(config.id);
|
|
1145
|
+
if (form) {
|
|
1146
|
+
form.setAttribute("action", form.getAttribute("data-action"));
|
|
1147
|
+
|
|
1148
|
+
// Set the key.
|
|
1149
|
+
const input = form.querySelector('input[name="antibot_key"]');
|
|
1150
|
+
if (input) {
|
|
1151
|
+
input.value = config.key;
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
});
|
|
1155
|
+
}
|
|
1156
|
+
// Mark this user as being human.
|
|
1157
|
+
drupalSettings.antibot.human = true;
|
|
1158
|
+
}
|
|
1159
|
+
};
|
|
1160
|
+
})(Drupal, drupalSettings);
|