-
Notifications
You must be signed in to change notification settings - Fork 0
/
some.html
179 lines (168 loc) · 6.78 KB
/
some.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
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="author" content="Baytars">
<title>SoMe</title>
<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/some.js"></script>
<link rel="stylesheet" type="text/css" href="css/some.css" />
</head>
<body>
<div class="side">
<nav>
<a onclick="some.form('#game_control')">
<img src="img/settings.jpg">
<span>
系统
</span>
</a>
<a onclick="some.form('#game_frame')">
<img src="img/home.jpg">
<span>
角色
</span>
</a>
<a onclick="some.form('#game_item')">
<img src="img/item.jpg">
<span>
物品
</span>
</a>
<a onclick="some.form('#game_synthesis')">
<img src="img/synthesis.jpg">
<span>
合成
</span>
</a>
<a>
<img src="img/vs.jpg" onclick="some.form('#game_vs')">
<span>
巅峰对决
</span>
</a>
<a>
<img src="img/friends.jpg">
<span>
朋友
</span>
</a>
</nav>
</div>
<div class="main">
<div id="game_control" class="module">
<p>
<a href="#">
<input type="file" value="读取进度" id="load_data" onchange="some.load(this.id)" />
</a>
</p>
<p>
<a id="test" onclick="some.save(this)" download="data.json" href="#">
<button>保存进度</button>
</a>
</p>
<p>
<audio controls="controls">
<source src="./sounds/Egypt.mp3" type="audio/mpeg" /> 您的浏览器不支持 audio 标签。
</audio>
</p>
<p>
作弊面板:
<br>
<button onclick="some.gain.experience(200)">加200经验</button>
<button onclick="some.control.progress=false">暂停</button>
<button onclick="some.control.progress=true">开始</button>
<button onclick="some.mine()">挖矿</button>
</p>
</div>
<div id="game_frame" class="module">
<p>请读取存档文件</p>
</div>
<div id="game_item" class="module">
<p>物品栏</p>
<ul id="item_list">
</ul>
</div>
<div id="game_synthesis" class="module">
<p>合成</p>
<select id="synthesis">
</select>
<button onclick="some.react()">开始反应</button>
</div>
<div class="module" id="game_vs" style="width: 1024px; height: 768px;">
<p>
选择你的对手
<select id="vs">
</select>
<button onclick="some.fight('selected')">
开始对战
</button>
</p>
<div id='ally' style='width:300px;display:inline-block;margin-left:50px;margin-top:50px;border:2px solid black;border-radius:20px;padding:20px;background-color:#7b7b7b;color:white;'>
<label>我方:</label>
<span id='aname'>?</span>
<br />
<label>温度:</label>
<span id='atemp'>0</span>
<label>°C</label>
<br />
<label>熔点:</label>
<span id='amp'>0</span>
<label>°C</label>
<br />
<label>生命:</label>
<span id='aheal'>0</span>
<label>°C</label>
</div>
<div style='float:right;'>
<div id='enemy' style='width:300px;display:inline-block;margin-right:50px;margin-top:50px;border:2px solid black;border-radius:20px;padding:20px;background-color:#7b7b7b;color:white;'>
<label>敌方:</label>
<span id='bname'>?</span>
<br />
<label>温度:</label>
<span id='btemp'>0</span>
<label>°C</label>
<br />
<label>熔点:</label>
<span id='bmp'>0</span>
<label>°C</label>
<br />
<label>生命:</label>
<span id='bheal'>0</span>
<label>°C</label>
</div>
</div>
<div style='clear:both;'></div>
<div id='pic' style='text-align:center;'>
<img id='apic' src='img/PubChem/1.jpg' style='margin:50px 200px 0 0;' />
<img id='bpic' src='img/PubChem/1.jpg' style='margin:50px 0 0 200px;' />
</div>
<div id="skl" style="margin:50px;text-align:center;">
<button onclick="rep(this.innerText,1)">Zip反应</button>
<button onclick="rep(this.innerText,4)">von Braun反应</button>
<button onclick="rep(this.innerText,9)">Meyers合成</button>
<button onclick="rep(this.innerText,9)">Krapcho反应</button>
<script type="text/javascript">
function rep(sklname, harm) {
t = txt.innerHTML;
txt.innerHTML = "<p>" + aname.innerText + "对" + bname.innerText + "施放" + sklname + ",造成" + harm +
"°C温度下降</p>" + t;
btemp.innerText = Number(btemp.innerText) - harm;
bheal.innerText = Number(btemp.innerText) - Number(bmp.innerText);
// 判定死亡
if (Number(btemp.innerText) <= Number(bmp.innerText)) {
t = txt.innerHTML;
txt.innerHTML = "<p>" + bname.innerText + "当前状态为固态,行动不能</p>" + t;
}
}
</script>
</div>
<div id="msg" style="border:1px solid;text-align:center;height:300px;">
<p>
<h2>系统消息</h2>
</p>
<div id="txt" style="text-align:left;height:200px;overflow:auto;">
</div>
</div>
</div>
</div>
</body>
</html>