forked from kobalab/Majiang
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
261 lines (233 loc) · 9 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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=800">
<title>電脳麻将</title>
<meta name="description" content="HTML5 + Javascriptで動作する麻雀アプリ">
<link rel="icon" type="image/png" href="icon.png">
<link rel="apple-touch-icon" type="image/png" href="icon.png">
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/desktop.css" />
<link rel="stylesheet" type="text/css" href="css/tablet.css" />
<link rel="stylesheet" type="text/css" href="css/smartphone.css" />
<link rel="stylesheet" type="text/css" href="css/file.css" />
<script src="js/jquery-2.1.4.min.js"></script>
<script src="js/majiang.js"></script>
<script src="js/model.js"></script>
<script src="js/xiangting.js"></script>
<script src="js/hule.js"></script>
<script src="js/view.js"></script>
<script src="js/suanpai.js"></script>
<script src="js/player.js"></script>
<script src="js/ui.js"></script>
<script src="js/game.js"></script>
<script src="js/paipu.js"></script>
<script src="js/file.js"></script>
<script>
var game, paipu, editor;
$(function(){
$('.version').text('ver. ' + Majiang.VERSION);
$('#title .loading').text('Loading...');
var id = setInterval(function(){
$('#title .loading').text($('#title .loading').text()+'.');
}, 1000);
function start() {
$('body').removeClass('editor').addClass('game');
$('#editor').hide();
$('#game').show();
game = new Majiang.Game();
game._callback = end;
game.kaiju();
}
function end() {
$('#game').hide();
$('body').removeClass('game').addClass('editor');
$('#editor').show();
while (editor._model.length() >= 10) {
editor._model.del_paipu(0);
}
editor.start(game._paipu);
}
editor = new Majiang.PaipuEditor('Majiang.game');
$('#editor .next').on('click', start);
$(window).load(function(){
Majiang.Audio.volume(1);
clearInterval(id);
setTimeout(function(){
$('#title').hide();
if (editor._model.length() > 0) {
$('body').removeClass('game').addClass('editor');
editor.start();
}
else {
start();
}
}, 2000);
});
});
</script>
</head>
<body class="game">
<div id="navi">
電脳麻将 |
<a href="autoplay.html">自動対戦</a> |
<a href="paipu.html">牌譜</a> |
<a href="paili.html">牌理</a> |
<a href="hule.html">和了点計算</a> |
<a href="paiga.html">牌画入力</a>
</div>
<div id="title">
<h1><img src="img/logo.png" alt="電脳麻将"></h1>
<div class="version"><span class="error">Sorry, your system does not support JavaScript.</span></div>
<div class="loading"></div>
</div>
<div id="loadimage">
<img src="img/m1.gif">
<img src="img/m2.gif">
<img src="img/m3.gif">
<img src="img/m4.gif">
<img src="img/m5.gif">
<img src="img/m6.gif">
<img src="img/m7.gif">
<img src="img/m8.gif">
<img src="img/m9.gif">
<img src="img/m0.gif">
<br>
<img src="img/p1.gif">
<img src="img/p2.gif">
<img src="img/p3.gif">
<img src="img/p4.gif">
<img src="img/p5.gif">
<img src="img/p6.gif">
<img src="img/p7.gif">
<img src="img/p8.gif">
<img src="img/p9.gif">
<img src="img/p0.gif">
<br>
<img src="img/s1.gif">
<img src="img/s2.gif">
<img src="img/s3.gif">
<img src="img/s4.gif">
<img src="img/s5.gif">
<img src="img/s6.gif">
<img src="img/s7.gif">
<img src="img/s8.gif">
<img src="img/s9.gif">
<img src="img/s0.gif">
<br>
<img src="img/z1.gif">
<img src="img/z2.gif">
<img src="img/z3.gif">
<img src="img/z4.gif">
<img src="img/z5.gif">
<img src="img/z6.gif">
<img src="img/z7.gif">
<img src="img/pai.gif">
<br>
</div>
<div id="game">
<div class="chang">
<div class="xiaoxi">
<div class="title">東一局</div>
<div class="jicun">
<img src="img/100.gif" class="choma"> : <span class="changbang">0</span><br />
<img src="img/1000.gif" class="choma"> : <span class="lizhibang">0</span>
</div></div>
<div class="shan">
<div class="baopai"><img src="img/pai.gif" class="pai"><img src="img/pai.gif" class="pai"><img src="img/pai.gif" class="pai"><img src="img/pai.gif" class="pai"><img src="img/pai.gif" class="pai"></div>
<div>牌数: <span class="paishu">70</span></div></div>
<div class="defen">
<span class="main lunban">東: 25,000</span>
<span class="xiajia">南: 25,000</span>
<span class="duimian">西: 25,000</span>
<span class="shangjia">北: 25,000</span></div>
</div>
<div class="he xiajia">
<div class="lizhi"><img src="img/1000.gif" class="choma"></div>
<div class="dapai"></div></div>
<div class="shoupai xiajia">
<div class="bingpai"></div><div class="fulou"></div></div>
<div class="say xiajia"></div>
<div class="he duimian">
<div class="lizhi"><img src="img/1000.gif" class="choma"></div>
<div class="dapai"></div></div>
<div class="shoupai duimian">
<div class="bingpai"></div><div class="fulou"></div></div>
<div class="say duimian"></div>
<div class="he shangjia">
<div class="lizhi"><img src="img/1000.gif" class="choma"></div>
<div class="dapai"></div></div>
<div class="shoupai shangjia">
<div class="bingpai"></div><div class="fulou"></div></div>
<div class="say shangjia"></div>
<div class="he main">
<div class="lizhi"><img src="img/1000.gif" class="choma"></div>
<div class="dapai"></div></div>
<div class="shoupai main">
<div class="bingpai"></div><div class="fulou"></div></div>
<div class="say main"></div>
<div class="UI resize">
<span class="chi">チー</span>
<span class="peng">ポン</span>
<span class="gang">カン</span>
<span class="rong">ロン</span>
<span class="lizhi">リーチ</span>
<span class="zimo">ツモ</span>
<span class="pingju">流局</span>
</div>
<div class="controler">
<div class="sound"><span class="label">Sound:</span>
<span class="scale"><span>■</span><span>■</span><span>■</span><span>■</span><span>■</span></span></div>
<div class="speed"><span class="label">Speed:</span>
<span class="scale"><span>■</span><span>■</span><span>■</span><span>■</span><span>■</span></span></div>
</div>
<div class="menu">
<div class="summary"><a href="#">集計表示</a></div>
<div class="open_shoupai"><a href="#">手牌表示</a></div>
<div class="open_he"><a href="#">ツモ切り表示</a></div>
<div class="exit"><a href="#">再生終了</a></div>
</div>
<div class="jiesuan">
<div class="shan">
<span class="baopai">ドラ<img src="img/pai.gif" class="pai" /><img src="img/pai.gif" class="pai" /><img src="img/pai.gif" class="pai" /><img src="img/pai.gif" class="pai" /><img src="img/pai.gif" class="pai" /></span>
<span class="fubaopai">裏ドラ<img src="img/pai.gif" class="pai" /><img src="img/pai.gif" class="pai" /><img src="img/pai.gif" class="pai" /><img src="img/pai.gif" class="pai" /><img src="img/pai.gif" class="pai" /></span></div>
<div class="shoupai"><div class="bingpai"></div><div class="fulou"></div></div>
<div class="hupai"><table></table></div>
<div class="jicun">
<img src="img/100.gif" class="choma"> : <span class="changbang">0</span>
<img src="img/1000.gif" class="choma"> : <span class="lizhibang">0</span></div>
<div class="pingju"></div>
<div class="fenpei">
<div class="xiajia"><span class="name"></span>
<span class="defen"></span><span class="diff"></span></div>
<div class="duimian"><span class="name"></span>
<span class="defen"></span><span class="diff"></span></div>
<div class="shangjia"><span class="name"></span>
<span class="defen"></span><span class="diff"></span></div>
<div class="main"><span class="name"></span>
<span class="defen"></span><span class="diff"></span></div></div>
</div>
<div class="jiezhang"><table></table></div>
</div>
<div id="editor">
<h1><img src="img/logo.png" alt="電脳麻将"></h1>
<p class="version"></p>
<div class="paipu_file">
<a class="next">対局開始</a>
<a class="download" target="_blank">牌譜保存</a>
<div class="list">
<div style="display:none;">
<div><div class="title"></div><div class="player"></div></div>
<div class="button">
<a class="replay">再生</a>
<a class="download" target="_blank">保存</a>
<a class="delete">削除</a>
</div>
</div>
</div>
<div class="error"></div>
</div>
</div>
</body>
</html>