-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathindex.html
88 lines (68 loc) · 2.95 KB
/
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
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">
<title>js-snes-player</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
<link href="bootstrap/css/bootstrap.css" rel="stylesheet">
<style>
body {
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
}
.song-selector {
width: 100%;
}
</style>
<script>
var Module = {
'print': function(text) { console.log(text); }
};
</script>
<!-- Sink.js is for handling the audio buffers -->
<script src="sink.js"></script>
<!-- This is SNES SPC 0.9.0 compiled from C++/LLVM using emscripten -->
<script src="snes_spc-0.9.0/snes_spc.js"></script>
<script src="js/jquery-1.8.1.min.js"></script>
<!-- This is me smushing all this tech together -->
<script src="js/js-snes-player.js"></script>
<link href="bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="bootstrap/ico/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="bootstrap/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="bootstrap/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="bootstrap/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="bootstrap/ico/apple-touch-icon-57-precomposed.png">
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="#">JS SNES Player</a>
</div>
</div>
</div>
<div class="container">
<h1>Play SNES Tunes in Your Browser</h1>
<h2>This is a bodged fork of MrRio's original. See <a href="https://github.com/MrRio/js-snes-player">https://github.com/MrRio/js-snes-player</a> . You will need to reload the page after playing each tune</h2>
<p>The SNES audio chip emulation is happening in your browser, in JavaScript. How cool is that?</p>
<p>Sometimes a browser refresh improves performance</p>
<div class="well">
<div class="btn-toolbar">
<div class="btn-group">
<button class="btn js-snes-start"><i class="icon-play"></i> Play</button>
</div>
</div>
<select class="song-selector" size="10" multiple="multiple"></select>
</div>
</div> <!-- /container -->
<div id="audio"></div>
<a href="https://github.com/MrRio/js-snes-player"><img style="position: absolute; top: 0; right: 0; border: 0; z-index:99999" src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub"></a>
</body>
</html>