-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
79 lines (79 loc) · 2.37 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
<!DOCTYPE html>
<html>
<head>
<title>s2online</title>
<style>
body, html {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
}
body {
background-color: #EEE;
overflow-y: hidden;
}
#container {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
#downloader {
height: 200px;
position: relative;
}
body:not(.download) #downloader { display: none; }
#progress {
background: rgba(0, 0, 255, 0.5);
position: absolute;
top: 0;
left: 0;
width: 0;
height: 100%;
z-index: 0;
}
#output {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow-y: scroll;
margin: 0;
}
#flash {
flex-grow: 1;
height: 100%;
}
</style>
<script>
window.JSloadID = function(id) {
location.hash = id;
location.reload();
};
window.JSwillDownload = function() {
return location.hash.length > 1;
};
</script>
</head>
<body>
<div id="container">
<div id="downloader">
<div id="progress"></div>
<pre id="output"><code id="log"></code></pre>
</div>
<div id="flash">
<object width='100%' height='100%' id='scratch'>
<param name='allowscriptaccess' value='always'>
<embed src='build/11.6/Scratch.swf' width='100%' height='100%'>
</object>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/2.5.0/jszip.min.js"></script>
<script src="json.js"></script>
<script src="download.js"></script>
<script src="main.js"></script>
</body>
</html>