-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
108 lines (88 loc) · 2.04 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
101
102
103
104
105
106
107
108
<html>
<head>
<title>RustyZ</title>
</head>
<!-- its a demo, so inline style! -->
<style>
html {
width: 100%;
}
#main {
width: 90%;
margin: 5%;
padding-top: 1.2em;
height: 95%;
background-color: black;
position: relative;
font-size: 18px;
font-family: monospace;
overflow: hidden;
color: green;
}
form, #content, #header {
float: left;
width: 100%;
margin-bottom: 0px;
}
#header {
background-color: lightgray;
position: absolute;
top: 0px;
width: 100%;
}
#header .left {
float: left;
}
#header .right {
float: right;
}
form input:focus {
background-color: darkgray;
outline: none;
opacity: 0.7;
}
form input:disabled {
background-color: black;
}
form {
float: left;
height: 18px;
padding: 0;
margin: 0;
}
form input[type=submit] {
position: absolute;
height: 0px;
}
form input {
width: 100%;
height: 18px;
padding: 0 0 0 18px;
margin: 0;
border: none;
background-color: black;
font-size: 18px;
font-family: monospace;
color: green;
position: relative;
opacity: 0;
top: -18px;
}
</style>
<body>
<section id="main">
<section id="header">
<div class="left"></div>
<div class="right"></div>
</section>
<section id="content"></section>
<form id="form" action="javascript: void(0);">
<input id="player_input" type="text" class="text" data-value="" value="" name="">
<input type="submit" class="text" style="visibility:hidden;" value="" name="">
</form>
</section>
<!-- just some stuff to make it easier to play , which also needs priority over the asm -->
<script type="text/javascript" src="target/asmjs-unknown-emscripten/debug/rusty_z.js" ></script>
<script type="text/javascript" src="index.js" ></script>
</body>
</html>