-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
68 lines (67 loc) · 1.25 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>SWIFT</title>
<style type="text/css">
html,body{
background: #000;
width: 100%;
height: 100%;
margin: 0;
}
div.wrapper{
margin: 0 auto;
width: 800px;
height: 600px;
background: #000;
position: relative;
}
#info{
position: absolute;
top: 130px;
left: 280px;
width: 200px;
background: #000;
border: #37B6CE 1px solid;
color: #FFF;
padding: 20px;
display: none;
font-family: Times;
font-size: 16px;
}
#info div{
border: #FF4040 1px solid;
cursor: pointer;
padding: 10px;
margin-top: 15px;
text-align: center;
}
h2{
margin: 0 0 5px 0;
text-align: center;
text-shadow: 1px 2px #FF4040;
font-size: 24px;
}
span#b{
color: #37B6CE;
}
span#g{
color: #00BD39;
}
</style>
</head>
<body>
<script src="swift.js" type="text/javascript"></script>
<div class="wrapper">
<canvas id="myCanvas" width="800" height="600" style="position:absolute; left:0px; top:0px;">
Your browser does not support the canvas element.
</canvas>
<div id="info">
</div>
</div>
<script type="text/javascript">
window.addEventListener('load', function(){Swift.init();}, true);
</script>
</body>
</html>