-
Notifications
You must be signed in to change notification settings - Fork 2
/
game.html
106 lines (87 loc) · 4.22 KB
/
game.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
<!DOCTYPE html>
<html lang="en">
<!-- RAR IM A DINO!
.-~~^-.
.' O \
(_____, \
`----. \
\ \
\ \
\ `. _ _
\ ~- _ _ - ~ ~ - .
\ ~-.
\ `.
\ / / \ \
`. | } | } \
`| / | / \
| / | / \
| /`- _ _ _| /.- ~ ^-. \
| / | / `. \
| | | | -. ` . _ _ _ _ _ _
|_____| |_____| ~ . _ _ _ _ _ _ _ >
-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>HackJam 2021</title>
<link rel="icon" href="/assets/loupe.png" type="image/png">
<link href="style.css" rel="stylesheet" type="text/css" />
<!-- <link href="game_style.css" rel="stylesheet" type="text/css" /> -->
</head>
<body id="show-confetti">
<div id="title"><img class="img-fluid" src="/assets/loupe.png" alt="magnifying glass" width="80" height="80"><span class="title-name"> Ai SPY</span>
</div>
<div id="hide-blurb" class="container-fluid">
<div class="row blue-back">
<h1 class="col-12">How To Play</h1>
<div class="how-to col-12 col-md-4" style="text-align:center;padding:3em;">
<img src="/assets/how_to_play.png" alt="how to play">
</div>
<div class="how-to col-12 col-md-4" style="text-align:center;padding:3em;">
<img src="/assets/camera_instructions_2_opt_2.png" alt="how to set camera up">
</div>
<div class="how-to col-12 col-md-4" style="text-align:center;padding:3em;">
<img src="/assets/how_to_win_2.png" alt="how to win">
</div>
</div>
<h1 class="col-12">Are you ready to play?</h1>
<div class="col-12" id="btn">
<button type="button" class="btn btn-success" onclick="init()">YES!</button>
</div>
</div>
<!-- Button for muting ticking noise -->
<div class="col-12" id="btn">
<button type="button" class="btn btn-secondary" onclick="mute_fx()">Mute Effects</button>
</div>
<div class="container-fluid">
<div class="row justify-content-evenly">
<div id="list-box" class="col-12 col-md-6">
<h2>Can You Find?</h2>
<ul id="show-hide" class="list-group">
<li class="list-group-item" id="face">A Face <img src="/assets/sceptic.png" alt="face" class="list-icons"></li>
<li class="list-group-item" id="book">A Book <img src="/assets/book-of-black-cover-closed.png" alt="book" class="list-icons"></li>
<li class="list-group-item" id="shoe">A Shoe <img src="/assets/shoe.png" alt="shoe" class="list-icons"></li>
</ul>
</div>
<div id="webcam-container" class="col-12 col-md-6">
<h2 id="timer">
<img class="img-fluid" src="/assets/timer.png" alt="timer icon" width="30" height="30"> Time Remaining 0:00
</h2>
</div>
</div>
</div>
<div id="label-container" class="col-12"></div>
<div class="col-12 footer">
<a href="credits">Credits</a>
</div>
<!-- Bootstrap CSS only -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous">
<!-- Tensor Flow javascript -->
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@teachablemachine/[email protected]/dist/teachablemachine-image.min.js"></script>
<!-- used for confetti in when the user wins-->
<!-- https://www.cssscript.com/confetti-animation-party/ -->
<script src="https://cdn.jsdelivr.net/npm/party-js@latest/bundle/party.min.js"></script>
<script src="script.js"></script>
</body>
</html>