-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample_instructions.html
88 lines (66 loc) · 2.21 KB
/
sample_instructions.html
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- Google tag (gtag.js) -->
<title>SourceSuite | "Darkness and Light at the Beginning"</title>
<link href='https://fonts.googleapis.com/css?family=David+Libre:400,700,500' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>
<link rel="stylesheet" href="main.css"/>
<script type="text/javascript" src="instructions.js"></script>
<script type="text/javascript" src="main.js"></script>
</head>
<body>
<div class="buttonContainer">
<button id="prevButton">Prev</button>
<button id="nextButton">Next</button>
</div>
<div class="mainContainer">
<aside>
</aside>
<div id="contentContainer">
<div id="zoomContainer">
<div class="panel">
</div>
</div>
</div>
</div>
<div id="hiddenMeasure"></div>
</body>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-E2L7GVY2BZ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-E2L7GVY2BZ');
</script>
<script>
document.querySelector('#nextButton').addEventListener("click", () => {checkChangeText('fwd')});
document.querySelector('#prevButton').addEventListener("click", () => {checkChangeText('back')});
document.addEventListener("keydown", (event) => {
if (event.code === "ArrowRight" || event.code === "ArrowDown") {
checkChangeText('fwd')
} else if (event.code === "ArrowLeft" || event.code === "ArrowUp") {
checkChangeText('back')
}
});
let wheel_timer = 0;
window.addEventListener("wheel", (event) => {
clearTimeout(wheel_timer);
wheel_timer = setTimeout(function () {
if (event.deltaY < 0) {
checkChangeText('back')
} else {
checkChangeText('fwd')
}
}, 200)
});
window.addEventListener("load", () => {
changeSlideContent();
const zoomContainer = document.getElementById('zoomContainer')
setTimeout(() => {animate()}, 250)
});
window.addEventListener("resize", () => {animate()});
</script>
</body>
</html>