-
Notifications
You must be signed in to change notification settings - Fork 0
/
finish.html
37 lines (35 loc) · 1.39 KB
/
finish.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>End Page</title>
<!-- Bootstrap -->
<link href="style/css/bootstrap.min.css" rel="stylesheet">
<link href="style/style.css" rel="stylesheet">
<script src="js/jquery-1.12.0.js"></script>
<script src="js/bootstrap.min.js"></script>
</head>
<script>
function scoreGame() {
var audioFile = "sounds/finish.mp3"; // 3вуковой эффект при 3авершение игры
var audio = new Audio(audioFile);
audio.play();
var score = decodeURIComponent(location.search.substr(1)).split('&');
score.splice(0, 1);
var result = score[0];
console.log(result);
document.getElementById("result").innerHTML = result;
}
</script>
<body>
<form target="game">
<div style="position: absolute; left: 382px; top: 74px;"><img src="style/img/Group 2.png" border="0" alt="css/3.JPG" width="516" height="275"> </div>
<body onload="scoreGame();"> <!--3апуск функции при полной прогру3ке страницы-->
<div id="textContentEnd" ><p>Поздравляем!<br>Ваш итоговый счет:<span id="result"></span></p></div>
<div data-tid="EndGame-retryGame">
<a href="game.html" class="btnEndGame">Еще раз</a>
</div>
</form>
</body>
</html>