-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
177 lines (163 loc) · 5.81 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<!--<meta name="viewport" content="width=device-width,user-scalable=0" />-->
<meta name="apple-mobile-web-app-capable" content="yes" />
<!--<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />-->
<title>VNE Demo</title>
<script type="text/javascript" src="enchant.min.js"></script>
<script type="text/javascript" src="parser.js"></script>
<script type="text/javascript" src="Expresso_min.js"></script>
<script type="text/javascript" src="menu_states.js"></script>
<script type="text/javascript" src="VNE.js"></script>
<script type="text/javascript" src="game.js"></script>
<style type="text/css">
html, body{
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
#root{
width: 100%;
height: 100%;
}
#tab_holder{
margin: 0;
padding: 0;
width: 100%;
height: auto;
display: flex;
display: -webkit-flex;
display: -webkit-box;
flex-flow: row nowrap;
-webkit-flex-flow: row nowrap;
background-color: #555;
flex: 0 0 auto;
-webkit-flex: 0 0 auto;
align-items: stretch;
-webkit-align-items: stretch;
}
#tab_holder > a{
display: block;
margin: 0px 1px 0px 0px;
padding: 3px;
text-align: center;
border-right: solid 2px #333;
color: #111;
text-decoration: none;
background-color: #999;
flex: 1 1 auto;
-webkit-flex: 1 1 auto;
flex-justify-content: space-between;
-webkit-justify-content: space-between;
}
#console_wrapper{
overflow: hidden;
position: relative;
height: 100%;
}
#tab_holder > .activeTab{
background-color: #bbb;
}
div.tabContent{
border-top: solid 1px #999;
flex: 1 1 auto;
-webkit-flex: 1 1 auto;
}
#game_console{
position: relative;
width: 100%;
height: 100%;
}
#source_code_viewer{
position: absolute;
display: block;
overflow: auto;
width: 100%;
height: 50%;
top: 0%;
box-sizing: border-box;
-webkit-box-sizing: border-box;
font-family: monospace;
}
#loader_layer{
position: absolute;
display: none;
background-color: rgba(0, 0, 0, 0.6);
width: 100%;
height: 100%;
top: 0%;
left: 0%;
z-index: 10;
}
#loader_image{
position: absolute;
}
#console_window{
position: absolute;
display: block;
overflow: auto;
width: 50%;
height: 50%;
top: 50%;
box-sizing: border-box;
-webkit-box-sizing: border-box;
}
#variable_viewer{
position: absolute;
display: block;
overflow: auto;
width: 50%;
height: 50%;
top: 50%;
left: 50%;
box-sizing: border-box;
-webkit-box-sizing: border-box;
}
p.consoleLine{
border-bottom: solid 1px #333;
}
</style>
</head>
<body>
<div id="root">
<div id="tab_holder">
<a href="#" onclick="displayTab('enchant-stage'); return false;" class="gameTab activeTab tabButton">ゲーム</a>
<a href="#" onclick="displayTab('game_console'); return false;" class="consoleTab tabButton">コンソール</a>
</div>
<!-- id="enchant-stage"は予約されている。命名規則に合わなくても、変更はできない -->
<div class="tabContent">
<div id="enchant-stage" class="tab"></div>
<div id="game_console" style="display: none" class="tab">
<pre id="source_code_viewer">
<code id="source_code" class="line-numbers language-markup"></code>
</pre>
<div id="console_window"></div>
<div id="variable_viewer">
<ul id="variable_tree">
</ul>
</div>
<div id="loader_layer">
<img id="loader_image" src="./gif-load.gif">
</div>
</div>
</div>
</div>
<div id="ruler" style="display: hidden; position: absolute; font: bold large 'うずらフォント', 'MSゴシック'"></div>
<div id="audio_holder" style="display: hidden;"></div>
<!-- options definition -->
<div id="options">
<p><label>テキストの表示速度:<input type="range" name="text_speed" min="0.01" max="1.0" step="0.01">0.5</label></p>
<fieldset>
<legend>サウンドの音量</legend>
<p><label>BGM:<input type="range" name="sound_bgm" min="0" max="1" step="0.01">0.5</label></p>
<p><label>効果音:<input type="range" name="sound_se" min="0" max="1" step="0.01">0.5</label></p>
<p><label>操作音:<input type="range" name="sound_ope" min="0" max="1" step="0.01">0.5</label></p>
</fieldset>
<p><label>自動テキスト送り機能の間隔設定:<input type="range" name="auto_scroll_delta" min="0" max="300" step="1">60</label></p>
<p><button id="apply_button" type="button">適用</button></p>
</div>
</body>
</html>