-
Notifications
You must be signed in to change notification settings - Fork 0
/
gameover1.html
57 lines (48 loc) · 1.83 KB
/
gameover1.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
<!DOCTYPE html>
<html lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>GAME OVER</title>
<link rel="stylesheet" type="text/css" href="css/init.css" />
<style type="text/css"><!--
/* ゲームオーバーのメッセージ(センタリング) */
#message {width: 60%; margin-left: auto; margin-right:auto; text-align: center;}
#message h1 {text-align:center;}
#message p {text-align:center;}
/* ゲームオーバーのロゴ(センタリング) */
#game-over-logo {width: 80%; margin-left: auto; margin-right:auto; text-align: center;}
/* ゲームオーバー時のスコア表示 */
#game-score {width: 20%; margin-left: auto; margin-right: 0; border: double #008080 thin;}
/* ゲームオーバーのメニュー(センタリング) */
#game-menu {width: 60%; margin-left: auto; margin-right:auto;}
--></style>
<script type="text/javascript"><!--
window.onload = function() {
var missed_unknocked_door = new Audio("wav/missed_unknocked_door.mp3");
missed_unknocked_door.play();
var score = window.location.hash.replace(/#?score(\d+)_(\d+)/, "$1、$2");
document.getElementById("score").innerHTML = score;
}
// --></script>
</head>
<body>
<div id="container">
<section id="message">
<h1>GAME OVER</h1>
<p>うわぁぁ!雷おじさんだぁぁぁ!</p>
</section><!-- /message -->
<div id="game-over-logo">
<img alt="雷おじさんの画像" src="img/kaminari_ojisan.png" width="400" height="710" />
</div><!-- /game-over-logo -->
<section id="game-score">
<p>とくてん:<span id="score"></span>てん</p>
</section><!-- /game-score -->
<nav id="game-menu">
<ul>
<li><a href="game.html">もう一度プレイ</a></li>
<li><a href="./index.html">ゲームをやめる</a></li>
</ul>
</nav><!-- /game-menu -->
</div><!-- /container -->
</body>
</html>