-
Notifications
You must be signed in to change notification settings - Fork 31
/
jsnes.html
146 lines (134 loc) · 4.6 KB
/
jsnes.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
<html>
<head>
<title>中文家用游戏博物馆</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://lib.baomitu.com/meyer-reset/2.0/reset.min.css">
<link rel="stylesheet" href="base.css" />
<link rel="stylesheet" href="emularity.css" />
<link rel="stylesheet" href="jsnes-mobile/jsnes-controller.css" />
<script src="baidustat.js"></script>
<script src="https://lib.baomitu.com/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript" src="https://lib.baomitu.com/es6-promise/2.1.0/es6-promise.js"></script>
<script type="text/javascript" src="https://lib.baomitu.com/BrowserFS/1.4.3/browserfs.min.js"></script>
<script src="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/jsnes/1.2.1/jsnes.js"
type="application/javascript"></script>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' />
<style>
#display_canvas {
margin-left: auto;
margin-right: auto;
}
#status-display {
margin-left: auto;
margin-right: auto;
width: 100%;
height: 50%;
background-color: black;
max-height: 400px;
max-width: 512px;
}
#loading_status {
color: white;
top: 50%;
vertical-align: middle;
}
#display_canvas {
width: 100%;
max-width: 512px;
background-color: black;
display: none;
}
.active {
background-color: darkgrey;
}
</style>
</head>
<body>
<nav id="mainnav" style="position: relative; z-index: 2; overflow-x:hidden;">
<ul>
<li>
<a href="index.html">首页</a>
</li>
<li>
<a href="console_list.html">红白机</a>
</li>
<li>
<a href="console_list.html?menu=genesis.json">世嘉机</a>
</li>
<li>
<a href="http://www.compumuseum.com">电脑</a>
</li>
<li>
<a href="https://pengan1987.github.io/">专栏</a>
</li>
<li>
<a href="https://github.com/pengan1987/famicn">Github</a>
</li>
</ul>
</nav>
<div id="main-wrapper" style="text-align: center; margin: 10px auto 0;">
<div id="status-display">
<p id="loading_status"></p>
</div>
<div id="screen_container">
<canvas id="display_canvas" width="256" height="240"></canvas>
</div>
</div>
<div style="display: none;">
<img src="cart.gif">
</div>
<div id="mobile-tools">
<button id="toggleKeyboard" onclick="toggleMobileKeyboard()">显示键盘</button>
</div>
<div id="introduction" class="markdown-body">
操作指南:<br>
方向键<br>
[键盘] - 游戏<br>
[Enter] - Start<br>
[Tab] - Select<br>
[A] - A<br>
[S] - B<br>
如果您遇到兼容性的问题,<a id="mameLink" href="#">请尝试MAME版本</a>
</div>
<div id="mobile-control">
<table id="abButton">
<tr id="controls-turbofire">
<td class="nesbutton b">BB</td>
<td class="c"> </td>
<td class="nesbutton a">AA</td>
</tr>
<tr id="controls-fire">
<td class="nesbutton b">B</td>
<td class="c"> </td>
<td class="nesbutton a">A</td>
</tr>
</table>
<table id="controlBtn">
<tr>
<td class="nesbutton" id="joystick_btn_select">SEL</td>
<td> </td>
<td class="nesbutton" id="joystick_btn_start">SRT</td>
</tr>
</table>
<table id="dpad">
<tr>
<td class="leftup"></td>
<td class="nesbutton up">U</td>
<td class="rightup"></td>
</tr>
<tr>
<td class="nesbutton left">L</td>
<td class="center"></td>
<td class="nesbutton right">R</td>
</tr>
<tr>
<td class="leftdown"></td>
<td class="nesbutton down">D</td>
<td class="rightdown"></td>
</tr>
</table>
</div>
<script src="jsnes-mobile/jsnes-controller.js" type="text/javascript" charset="utf-8"></script>
<script src="jsnes.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>