-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
45 lines (39 loc) · 908 Bytes
/
index.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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>Main</title>
<style>
html,
head,
body {
padding: 0;
margin: 0;
}
body {
font-family: calibri, helvetica, arial, sans-serif;
}
</style>
<script src="js/ion.sound.min.js"></script>
<script src="Main.js"></script>
</head>
<body>
<script type="text/javascript">
var app = Elm.Main.fullscreen()
ion.sound({
sounds: [{
name: "bell_ring"
}],
volume: 1.0,
path: "sounds/",
preload: true,
ended_callback: function(obj) {
app.ports.soundEnded.send("Finished");
}
});
app.ports.playSound.subscribe(function(sound) {
ion.sound.play(sound);
});
</script>
</body>
</html>