-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
111 lines (78 loc) · 3.69 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Virus Hunt</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="icon" type="image/x-icon" href="image/favicon.ico">
</head>
<body>
<header>
<div id="header-container">
<div class="title-container" onclick="reloadPage()">
<img src="image/virus.png" alt="logo" id="virus-logo">
<h1>Virus Hunt</h1>
</div>
<div id="score-panel">
<p>Level: <span id="level">1</span> </p>
<p>Virus: <span id="score">0</span></p>
<p>Health: <span id="health">100</span>%</p>
<div id="health-bar" style="height: 15px; background-color: green; margin-top:5px;"></div>
</div>
</div>
</header>
<main id="game-board">
<video id="background-video" autoplay muted loop>
<source src="media/bgVideo.mp4" type="video/mp4">
</video>
<!-- Viruses will be added here dynamically -->
<div id="game-over-modal" class="modal">
<div class="modal-content">
<span class="close-button" onclick="closeModal()">×</span>
<p id="game-over-message"></p>
<button id="again" onclick="restartGame()">Play Again</button>
<button id="review-answers-button">Review Answers</button>
<div id="review-container" style="display:none;">
<!-- The review content will be placed here -->
</div>
<br>
<button id="fcc" onclick="goToLink('https://www.freecodecamp.org/')">freeCodeCamp is a good start to
learn HTML,
CSS and Javascrpit</button> <br>
<button id="nhs" onclick="goToLink('https://www.nhs.uk/')">Interested in learning more about health and
medical knowledge? The NHS website is a treasure trove of information.
Visit NHS Website for reliable and up-to-date health information. Stay curious and take charge of
your health!"</button>
</div>
</div>
</main>
<footer>
<div id="buttons-container">
<button id="play-button">Play</button>
<button id="reset-button">Re-start</button>
<audio id="background-music"></audio>
<button id="mute-button">Music</button>
</div>
<div id="ques" style="margin: 15px; font-size: 18px; color:white;"></div>
<div id="options-container" style="line-height:25px"></div>
<div id="controls">
<input type="text" id="code-input" placeholder="Write code here...">
<button id="deploy-button">Deploy Code</button>
</div>
<a href="intro.html" id="back-to-intro">Quit / Intro(Rules)</a>
<div id="footer-info">
<span>Made by <br> Paing Phyo Ko</span>
<a target="_blank" href="https://github.com/Paing-Ko">
<iconify-icon icon="simple-icons:github"></iconify-icon> GitHub
</a>
</div>
</footer>
<script src="https://code.iconify.design/iconify-icon/1.0.7/iconify-icon.min.js"></script>
<script src="script.js"></script>
</body>
</html>