-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
55 lines (40 loc) · 1.31 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
<!doctype html>
<head>
<meta charset="utf-8">
<title>Nintendo Entertainment System/Famicom ROM browser</title>
<script src="rom.js"></script>
<script src="rom.js"></script>
<script src="ui.js"></script>
<script src="lib/jquery-1.11.0.min.js"></script>
<script src="lib/jquery.qtip.min.js"></script>
<link rel="stylesheet" type="text/css" href="screen.css"/>
<link rel="stylesheet" type="text/css" href="lib/jquery.qtip.min.css"/>
</head>
<body>
<h1>Open a NES/Famicom ROM and see what's inside</h1>
<input id="rom_file" type="file"/>
<section id="about">
<h3>References</h3>
<ul>
<li><a href="http://nesdev.com/neshdr20.txt">http://nesdev.com/neshdr20.txt</a></li>
<li><a href="http://wiki.nesdev.com/w/index.php/INES">http://wiki.nesdev.com/w/index.php/INES</a></li>
</ul>
<h3>Source code</h3>
<ul>
<li><a href="http://github.com/merwaaan/nes-rom">http://github.com/merwaaan/nes-rom</a></li>
</ul>
</section>
<script>
window.addEventListener('load', function() {
document.getElementById("rom_file").onchange = function() {
var reader = new FileReader();
reader.onloadend = function() {
ROM.load(this.result);
UI.show();
};
reader.readAsArrayBuffer(this.files[0]);
};
});
</script>
</body>
</html>