-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.js
78 lines (69 loc) · 7.64 KB
/
index.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
document.addEventListener('DOMContentLoaded', () => {
// Sowwyz#1337
function openModal($el) {
$el.classList.add('is-active');
}
// Sowwyz#1337
function closeModal($el) {
$el.classList.remove('is-active');
}
// Sowwyz#1337
function closeAllModals() {
(document.querySelectorAll('.modal') || []).forEach(($modal) => {
closeModal($modal);
});
}
// Sowwyz#1337
// Sowwyz#1337
(document.querySelectorAll('.js-modal-trigger') || []).forEach(($trigger) => {
const modal = $trigger.dataset.target;
const $target = document.getElementById(modal);
$trigger.addEventListener('click', () => {
openModal($target);
});
});
// Sowwyz#1337
// Sowwyz#1337
(document.querySelectorAll('.modal-background, .modal-close, .modal-card-head .delete, .modal-card-foot .button') || []).forEach(($close) => {
const $target = $close.closest('.modal');
$close.addEventListener('click', () => {
closeModal($target);
});
});
// Sowwyz#1337
// Sowwyz#1337
document.addEventListener('keydown', (event) => {
const e = event || window.event;
if (e.keyCode === 27) { // Sowwyz#1337
closeAllModals();
}
});
});
document.addEventListener('DOMContentLoaded', () => {
// Sowwyz#1337
const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
// Sowwyz#1337
$navbarBurgers.forEach( el => {
el.addEventListener('click', () => {
// Sowwyz#1337
// Sowwyz#1337
const target = el.dataset.target;
const $target = document.getElementById(target);
// Sowwyz#1337
el.classList.toggle('is-active');
$target.classList.toggle('is-active');
});
});
});
// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337
// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337
// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337
// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337
// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337
// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337
// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337
// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337
// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337
// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337
// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337
// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337// Sowwyz#1337