-
Notifications
You must be signed in to change notification settings - Fork 7
/
snap.min.html
66 lines (66 loc) · 2.33 KB
/
snap.min.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
<!DOCTYPE html>
<html style="overflow-y: hidden">
<head height="100%">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Snap! Build Your Own Blocks</title>
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="hints/hints.css">
<link rel="stylesheet" href="goals/goals.css">
<script type="text/javascript" >
// Helps to debug object types. Must come before other scripts.
Object.prototype.getDebugType = function() {
return /function (.{1,})\(/.exec(
this.constructor.toString())[1];
}
</script>
<script src="logging/config.js"></script>
<script src="hints/config.js"></script>
<script src="src/morphic.js"></script>
<script src="src/symbols.js"></script>
<script src="src/widgets.js"></script>
<script src="src/blocks.js"></script>
<script src="src/threads.js"></script>
<script src="src/objects.js"></script>
<script src="src/gui.js"></script>
<script src="src/paint.js"></script>
<script src="src/lists.js"></script>
<script src="src/byob.js"></script>
<script src="src/tables.js"></script>
<script src="src/sketch.js"></script>
<script src="src/video.js"></script>
<script src="src/maps.js"></script>
<script src="src/xml.js"></script>
<script src="src/store.js"></script>
<script src="src/locale.js"></script>
<script src="src/cloud.js"></script>
<script src="src/api.js"></script>
<script src="src/sha512.js"></script>
<script src="src/FileSaver.min.js"></script>
<script src="isnap/util.js"></script>
<script src="isnap.min.js"></script>
<script type="text/javascript">
var world, ide;
window.onload = function () {
world = new WorldMorph(document.getElementById('world'),
true, true);
world.worldCanvas.focus();
ide = new IDE_Morph();
ide.openIn(world);
loop();
if (window.onWorldLoaded) {
window.onWorldLoaded();
}
};
function loop() {
requestAnimationFrame(loop);
world.doOneCycle();
}
</script>
</head>
<body style="margin: 0; width: 100%; height: 100%">
<div id="goalbar"></div>
<canvas id="world" tabindex="1"
style="position: absolute; width: 100%; height: 100%">
</canvas>
</body>
</html>