-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
42 lines (41 loc) · 1.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Rock Paper Scissors</title>
<link rel="icon" href="assets/icon-96.png" type="image/png">
<link rel="stylesheet" href="assets/style.css" type="text/css">
<link rel="manifest" href="manifest.webmanifest">
<meta name=description content="Rock paper scissors is a hand game
usually played between two people, in which each player simultaneously forms
one of three shapes with an outstretched hand.">
<!-- IOS Support -->
<link rel="apple-touch-icon" href="assets/icon-96.png">
<meta name="apple-mobile-web-app-status-bar-style" content="#ff6060">
<meta name="theme-color" content="#ff6060">
</head>
<body>
<div class="container" id="main-div">
<h1 id="header">Rock Paper Scissors</h1>
<br>
<div class="flex-box" id="flex-box-div">
<img src="assets/r.png" alt="rock" id="rock" onclick="startGame(this)">
<img src="assets/p.png" alt="paper" id="paper" onclick="startGame(this)">
<img src="assets/s.png" alt="scissors" id="scissors" onclick="startGame(this)">
</div>
</div>
<script src="assets/script.js" type="text/javascript"></script>
<script>
window.addEventListener('load', async function() {
if ('serviceWorker' in navigator) {
try {
await navigator.serviceWorker.register('sw.js');
} catch (err) {
console.log(`SW registration failed`, err);
}
}
})
</script>
</body>
</html>