-
Notifications
You must be signed in to change notification settings - Fork 1
/
iframe.html
95 lines (84 loc) · 4 KB
/
iframe.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
89
90
91
92
93
94
<html>
<head>
<meta charset="utf-8"></meta> <!-- because why not -->
<title>Magnetism Game - The Yard</title>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-72694027-2', 'auto');
ga('send', 'pageview');
</script>
<style>
body,div
{
margin:0px;
padding:0px;
font:12px Helvetica;
}
@font-face
{
font-family:'SueEllen';
src:url('assets/menu/font/SueEllenFrancisco.ttf');
}
</style>
<link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<script type='text/javascript' src='src/config.js'></script>
<script type='text/javascript' src='src/utils/utils.js'></script>
<script type='text/javascript' src='src/utils/webgl-utils.js'></script>
<script type='text/javascript' src='src/utils/simplelog.js'></script>
<script type="text/javascript" src="src/canv.js"></script>
<script type="text/javascript" src="src/stage.js"></script>
<script type="text/javascript" src="src/game.js"></script>
<script type="text/javascript" src="src/dom.js"></script>
<script type="text/javascript" src="src/doqueues/assetter.js"></script>
<script type="text/javascript" src="src/doqueues/clicker.js"></script>
<script type="text/javascript" src="src/doqueues/blurer.js"></script>
<script type="text/javascript" src="src/doqueues/keyer.js"></script>
<script type="text/javascript" src="src/doqueues/debugger.js"></script>
<script type="text/javascript" src="src/doqueues/dragger.js"></script>
<script type="text/javascript" src="src/doqueues/drawer.js"></script>
<script type="text/javascript" src="src/doqueues/flicker.js"></script>
<script type="text/javascript" src="src/doqueues/hoverer.js"></script>
<script type="text/javascript" src="src/doqueues/persistent_hoverer.js"></script>
<script type="text/javascript" src="src/doqueues/presser.js"></script>
<script type="text/javascript" src="src/doqueues/ticker.js"></script>
<script type="text/javascript" src="src/doqueues/particler.js"></script>
<script type="text/javascript" src="src/doqueues/objs/img.js"></script>
<script type="text/javascript" src="src/doqueues/objs/placer.js"></script>
<script type="text/javascript" src="src/doqueues/objs/input.js"></script>
<script type="text/javascript" src="src/doqueues/objs/listener.js"></script>
<script type="text/javascript" src="src/scenes/gameassets.js"></script>
<script type="text/javascript" src="src/scenes/nullScene.js"></script>
<script type="text/javascript" src="src/scenes/loadingScene.js"></script>
<script type="text/javascript" src="src/scenes/comicScene.js"></script>
<script type="text/javascript" src="src/scenes/testScene.js"></script>
<script type="text/javascript" src="src/scenes/chooseScene.js"></script>
<script type="text/javascript" src="src/scenes/gameplayScene.js"></script>
<script src="https://cdn.brainpop.com/games/assets/js/html2canvas.js"></script>
<script src="https://cdn.brainpop.com/games/assets/js/cameraProxyDOMCrossDomain.js"></script>
<script type="text/javascript">
var g;
var d;
function begin()
{
var w = 880;
var h = 660;
var content = document.getElementById("BrainPOPsnapArea");
var stage_container = document.getElementById("stage_container");
content.style.width = w+"px"; content.style.height = h+"px";
stage_container.style.width = w+"px"; stage_container.style.height = h+"px";
g = new Game({width:w,height:h,container:"stage_container"});
g.begin();
}
window.addEventListener('touchstart', function(e){ e.preventDefault() }); //prevent browser from doing anything funny
window.addEventListener("load",begin,false);
</script>
</head>
<body style="width:100%;">
<div id="BrainPOPsnapArea" style="position:relative; height:660px;">
<div id="stage_container" style="position:absolute; top:0px; left:0px; user-select:none;"> </div>
</div>
</body>
</html>