forked from wiesmann/ilbm.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
51 lines (46 loc) · 1.23 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
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
.debugLoc {
display: inline-block;
width: 8em;
}
.debugMsg {
display: inline-block;
}
body {
margin: 0;
}
.debug_container {
display: None;
}
</style>
<script type="application/javascript" src="jdataview.js"></script>
<script type="application/javascript" src="iff.js"></script>
<script type="application/javascript">
function getParameterByName(name) {
var match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search);
return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
}
function loadImage(canvas_id) {
var path = getParameterByName('path');
var animate = getParameterByName('animate')
loadIffImage(path, canvas_id, animate);
var debug = getParameterByName('debug');
if (debug == 'y') {
debug_element = document.getElementById(canvas_id + "_debug_container");
debug_element.style.display = 'inline'
}
}
</script>
<title>IFF Image Viewer</title>
</head>
<body onload="loadImage('iff_canvas');">
<canvas id="iff_canvas"></canvas>
<details id='iff_canvas_debug_container' class="debug_container">
<summary>Debug Output</summary>
<div id="iff_canvas_debug"></div>
</details>
</body>
</html>