-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
100 lines (91 loc) · 2.21 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" name="viewport" content="width=device-width, initial-scale=.78, maximum-scale=1.5, text/html; charset=UTF-8" />
<style type="text/css">
html {height: 100%;}
body {
background-repeat: no-repeat;
background-attachment: fixed;
height: 100%;
min-height: 100%;
margin: 0;
background: rgb(0,0,0);
}
h1 {
font-family: Arial, Helvetica, sans-serif;
color: #962300;
font-size: 25px;
}
p {
font-family: Arial, Helvetica, sans-serif;
color: #777;
font-size: 12px;
}
#bloctxt {
border-left-width: 5px;
border-left-style: solid;
border-left-color: #962300;
padding-left: 10px;
position: absolute;
top:5%;
left: 50%;
width: 600px;
margin-left: -260px
}
#wrapper {
padding: 10px;
margin: 0 auto;
}
#border {
background-color: #99C;
border: 1px solid #B90000;
-webkit-border-radius: 7px;
-moz-border-radius: 7px;
border-radius: 7px;
margin: 0 auto;
padding: 5px;
width:480px;
height:800px;
}
#canvas {
width:480px;
height:800px;
}
#MMFCanvas {
background-color:#FFF;
-webkit-box-shadow: 0px 0px 4px 4px rgba(0, 0, 0, 0.25);
box-shadow: 0px 0px 4px 4px rgba(0, 0, 0, 0.25);
}
</style>
<title>CHIMICHANGA!</title>
<!-- EXTRASOURCES -->
<!-- Loads the Javascript code...-->
<script src="src/Runtime.js"></script>
</head>
<!-- This is where we create the Canvas element that will contain the application...-->
<body>
<div id="wrapper">
<div id="border">
<div id="canvas">
<canvas id="MMFCanvas" width="480" height="800">
<p>Your browser does not support Canvas.</p>
</canvas>
</div>
</div>
</div>
<script>
// RUNTIMESTART
// This is where the HTML5 runtime is actually started
window.addEventListener("load", windowLoaded, false);
function windowLoaded()
{
// Calls the runtime
// First parameter : name of the canvas element
// Second parameter : path to the cch file. Images and sounds must lay beside this file
new Runtime("MMFCanvas", "resources/CHIMICHANGA.cch");
}
// RUNTIMESTARTEND
</script>
</body>
</html>