-
Notifications
You must be signed in to change notification settings - Fork 0
/
scripts.p.js
99 lines (96 loc) · 3.59 KB
/
scripts.p.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
parcelRequire = function (e, r, n, t) {
function i(n, t) {
function o(e) {
return i(o.resolve(e))
}
function c(r) {
return e[n][1][r] || r
}
if (!r[n]) {
if (!e[n]) {
var l = "function" == typeof parcelRequire && parcelRequire;
if (!t && l) return l(n, !0);
if (u) return u(n, !0);
if (f && "string" == typeof n) return f(n);
var p = new Error("Cannot find module '" + n + "'");
throw p.code = "MODULE_NOT_FOUND", p
}
o.resolve = c;
var a = r[n] = new i.Module(n);
e[n][0].call(a.exports, o, a, a.exports, this)
}
return r[n].exports
}
function o(e) {
this.id = e, this.bundle = i, this.exports = {}
}
var u = "function" == typeof parcelRequire && parcelRequire,
f = "function" == typeof require && require;
i.isParcelRequire = !0, i.Module = o, i.modules = e, i.cache = r, i.parent = u;
for (var c = 0; c < n.length; c++) i(n[c]);
if (n.length) {
var l = i(n[n.length - 1]);
"object" == typeof exports && "undefined" != typeof module ? module.exports = l : "function" == typeof define && define.amd ? define(function () {
return l
}) : t && (this[t] = l)
}
return i
}({
4: [function (require, module, exports) {
}, {
"./..\\images\\background.jpg": [
["background.0dd66b1f.jpg", 5], 5
]
}],
3: [function (require, module, exports) {
"use strict";
require("../styles/index.scss"), $(document).ready(function () {
var n, t, e = function (n, t, e, r) {
for (var a = Math.round(Math.random() * (e - t + 1) + t); - 1 !== n.indexOf(a);) a = Math.round(Math.random() * (e - t + 1) + t);
n.push(a);
for (var o = a.toString(); o.length < r;) o = "0" + o;
return o.split("")
},
r = function () {
$("#shape").toggleClass("ring").toggleClass("cube")
},
a = function (n, t) {
var e = $("#shape");
e.toggleClass("ringShow_" + n).toggleClass("cubeShow_" + t), e.css("-webkit-transform", "rotateY(" + -36 * n + "deg)")
},
o = function (n) {
$("#card" + n).toggleClass("jump" + n)
},
s = function (n, t) {
$("#num" + n).text(t)
},
c = function (n) {
$("#num" + n).toggleClass("jumpDown")
},
u = function (n) {
for (var t = 0; t < n.length; t++) c(t + 1), $("#num" + (t + 1)).text("")
},
i = (n = new URL(window.location.href), [parseInt(n.searchParams.get("min") || "1"), parseInt(n.searchParams.get("max") || "600"), 3, n.searchParams.get("bg_url"), !1, 1]);
i[3] && (t = i[3], $("body").css("background-image", "url(" + t + ")")), i[4] && function () {
for (var n = 0; n < 10; n++) $("#card" + n).css("background", "url('images/" + n + ".jpg') no-repeat center 200px").text("")
}();
var g = [],
h = e(g, i[0], i[1], i[2]),
l = 0,
f = 0;
$("body").keydown(function (n) {
var t, m, d;
0 === i[5] ? 32 === n.which && (l < h.length ? (t = l, m = h[l], d = f, r(), a(m, d), setTimeout(function () {
o(h[t]), setTimeout(function () {
s(t + 1, h[t]), c(t + 1), r(), a(m, m), o(h[t])
}, 1100)
}, 3300), f = h[l], l++) : (l = 0, u(h), h = e(g, i[0], i[1], i[2]))) : 1 === i[5] && (32 === n.which && 0 === l ? (r(), l++) : 32 === n.which && 1 === l ? (r(), function (n) {
for (var t = 0; t < n.length; t++) s(t + 1, n[t]), c(t + 1)
}(h), l++) : 32 === n.which && 2 === l && (u(h), h = e(g, i[0], i[1], i[2]), l = 0))
})
});
}, {
"../styles/index.scss": 4
}]
}, {}, [3], null)
//# sourceMappingURL=scripts.6c23d4b9.map