This repository has been archived by the owner on Sep 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
various2.html
130 lines (128 loc) · 4.04 KB
/
various2.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<title>webyarns-sounds - various</title>
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/simple.css">
<link rel="stylesheet" href="css/loader.css">
<script id="sounds" type="application/json">{
"nakedcall": {
"loop": true,
"src": [
"sounds/nakedcall.mp3",
"sounds/nakedcall.ogg"
]
},
"manstitutes": {
"loop": true,
"src": [
"sounds/manstitutes.mp3",
"sounds/manstitutes.ogg"
]
},
"bar": {
"loop": true,
"src": [
"sounds/bar.mp3",
"sounds/bar.ogg"
]
},
"ding": {
"src": [
"sounds/ding.mp3",
"sounds/ding.ogg"
]
},
"bubbles2": {
"src": [
"sounds/bubbles2.mp3",
"sounds/bubbles2.ogg"
]
}
}
</script>
</head>
<body>
<div class="reveal">
<div class="slides">
<section data-disable-keyboard data-prevent-swipe>
<h1><a id="init-sounds" href="#">click here to start</a></h1>
<div id="sound-loader">
<div class="loader-pulsing-dot"></div>
</div>
</section>
<section data-sounds="manstitutes">
<h2>manstitutes</h2>
<code>data-sounds="manstitutes"</code>
</section>
<section data-sounds="bar">
<h2>bar</h2>
<code>data-sounds="bar"</code>
</section>
<section data-sounds="bubbles2">
<h2>bubbles2</h2>
<code>data-sounds="bubbles2"</code>
</section>
<section data-sounds="!bubbles2,bar">
<h2>bubbles2,bar</h2><code>data-sounds="bar,bubbles2"</code>
</section>
<section data-sounds="nakedcall">
<h2>nakedcall</h2>
<code>
<code>data-sounds="nakedcall"</code>
</code>
</section>
<section>
<h2>silent</h2>
<code>(no attributes)</code>
</section>
<section data-sounds="manstitutes">
<h2>manstitutes</h2>
<code>data-sounds="manstitutes"</code>
</section>
<section data-sounds="manstitutes" data-sounds-volume-change="manstitutes:0.3">
<h2>change manstitutes volume</h2>
<code>data-sounds="manstitutes" data-sounds-volume-change="manstitutes:0.3"</code>
</section>
<section data-sounds="bar">
<h2>bar</h2>
<code>data-sounds="bar"</code>
</section>
<section data-sounds="#bar">
<h2>stop (persistent) bar</h2>
<code>data-sounds="#bar"</code>
</section>
<section data-sounds="nakedcall">
<h2>nakedcall (loops)</h2>
<code>data-sounds="nakedcall"</code>
</section>
<section data-sounds="ding" data-fade-out-speed="0">
<h2>ding</h2>
<code>data-sounds="ding"<br>data-fade-out-speed="0"</code>
<footer>(stops nakedcall with no fade-out)</footer>
</section>
</div>
</div>
<script src="js/helpers.js"></script>
<script src="js/reveal-vertical.js"></script>
<script src="js/webyarns-utils.js"></script>
<script>
WebyarnsSounds.init({
initElement: document.getElementById("init-sounds"),
loaderElement: document.getElementById("sound-loader")
}).then(() => {
Reveal.next()
})
console.log(WebyarnsSounds.soundHandler);
Reveal.initialize({
synchronousSlideChange: WebyarnsSounds.soundHandler,
keyboardCondition: disableKeyboardSupport,
dependencies: [
{src: 'js/webyarn-plugin.js'},
]
});</script>
</body>
</html>