forked from erkyrath/glkote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample-demo2.html
127 lines (109 loc) · 2.58 KB
/
sample-demo2.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>GlkOte: Not A Real Game</title>
<meta name="viewport" content="width=device-width, user-scalable=no">
<link rel="stylesheet" href="glkote-demo2.css" type="text/css">
<link rel="stylesheet" href="dialog.css" type="text/css">
<style type="text/css">
body {
position: absolute;
overflow: hidden;
width: 100%;
margin: 0px;
height: 100%;
background: #C0C0B0;
}
#mainpage {
position: relative;
max-width: 650px;
margin: 0px auto;
height: 100%;
background: white;
-webkit-box-shadow: 0px 0px 30px #444;
-moz-box-shadow: 0px 0px 30px #444;
}
#banner {
position: absolute;
top: 0px;
height: 45px;
left: 10px;
right: 0px;
background: #DDDDFF;
border-bottom: 4px;
border-top: 0px;
border-left: 0px;
border-right: 0px;
border-color: #E8E8FF;
border-style: solid;
border-bottom-left-radius: 45px;
-moz-border-radius-bottomleft: 45px;
}
#bannertitle {
font-size: 18px;
font-weight: bold;
margin-top: 8px;
margin-left: 30px;
}
#bannerhowto {
text-align: right;
margin-right: 20px;
}
#gameport {
position: absolute;
overflow: hidden;
left: 0px;
right: 0px;
top: 56px;
bottom: 0px;
background: white;
margin: 0px;
}
@media screen and (max-device-width: 480px) {
/* This stanza simplifies the layout on small (iPhone-sized) screens.
The top blue banner is removed, so that the gameport can fill the
whole screen. */
#banner {
display: none;
}
#gameport {
top: 0px;
}
}
</style>
<script src="jquery-1.12.4.min.js" type="text/javascript"></script>
<script src="glkote.js" type="text/javascript"></script>
<script src="dialog.js" type="text/javascript"></script>
<script src="sample-demo.js" type="text/javascript"></script>
<script type="text/javascript">
/* The game interface object. */
Game = {
accept: game_accept,
detect_external_links: 'search',
outspacingx: 8,
outspacingy: 0,
spacing: 4
};
</script>
</head>
<body onLoad="GlkOte.init();">
<div id="mainpage">
<div id="banner">
<div id="bannertitle">Not A Real Game</div>
<div id="bannerhowto"><em><a target="_blank" href="sample-help.html">How do I play?</a></em></div>
</div>
<div id="gameport">
<div id="windowport">
<noscript><hr>
<p>You'll need to turn on Javascript in your web browser to play this game.</p>
<hr></noscript>
</div>
<div id="loadingpane">
<img src="waiting.gif" alt="LOADING"><br>
<em> Loading...</em>
</div>
<div id="errorpane" style="display:none;"><div id="errorcontent">...</div></div>
</div>
</div>
</body>
</html>