-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex_embedded.html
More file actions
32 lines (32 loc) · 1.06 KB
/
index_embedded.html
File metadata and controls
32 lines (32 loc) · 1.06 KB
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
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div id="controls">
<button type="button" id="load-song">Load</button>
<button type="button" id="play-song">Play</button>
<button type="button" id="pause-song">Pause</button>
<button type="button" id="stop-song">Stop</button>
<button type="button" id="reset-song">Reset</button>
</div>
<script src="bin/embedded.bundle.js" charset="utf-8"></script>
<script>
document.getElementById('load-song').onclick = function() {
window.modPlayer.loadSong("http://localhost:8000/data/onward.xm");
};
document.getElementById('play-song').onclick = function() {
window.modPlayer.playSong();
};
document.getElementById('pause-song').onclick = function() {
window.modPlayer.pauseSong();
};
document.getElementById('stop-song').onclick = function() {
window.modPlayer.stopSong();
};
document.getElementById('reset-song').onclick = function() {
window.modPlayer.resetSong();
};
</script>
</body>
</html>