-
Notifications
You must be signed in to change notification settings - Fork 1
/
game.html
72 lines (69 loc) · 3.36 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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Posey</title>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<link rel="stylesheet" href="./assets/css/style.css">
<link rel="stylesheet" href="./assets/css/leadership.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://unpkg.com/ml5@0.1.1/dist/ml5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.2/p5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.2/addons/p5.dom.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.2/addons/p5.sound.min.js"></script>
</head>
<body>
<audio autoplay="true">
<source src="./assets/bensound-brazilsamba.mp3">
</audio>
<nav id="gameNav">
<div class="char" id="gameButton">
<button type="button" class="btn btn-danger btn-sm" onclick="location.href='index.html'">Exit</button>
</div>
</nav>
<h1 id="mainTitle" class="text-center">Posey</h1>
<main class="container-fluid">
<div class="text-center" id="timer">
<span id="seconds">00</span>
</div>
<section id="gameplay">
<div id="videobox"></div>
<div id="imagebox"></div>
</section>
<section>
<h2 id="mainTitle" class="text-center">STRIKE A POSE!</h2>
</section>
<div class="row text-center">
<h3 class="col-md-6 offset-md-3 text-white" id="score">2300</h3>
</div>
<div id="iconFooter">
<i id="lifeOne" class=" char fa fa-male fa-5x"></i>
<i id="lifeTwo" class=" char fa fa-male fa-5x"></i>
<i id="lifeThree" class=" char fa fa-male fa-5x"></i>
</div>
</main>
<img src="" id="img" width="500px" height="375px" style="display: none;">
<script src="https://www.gstatic.com/firebasejs/5.5.2/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyBYAXYgxIOmpEQ-ZTM27NcppTbt1wrkvQY",
authDomain: "posey-1a2e6.firebaseapp.com",
databaseURL: "https://posey-1a2e6.firebaseio.com",
projectId: "posey-1a2e6",
storageBucket: "posey-1a2e6.appspot.com",
messagingSenderId: "396409349439"
};
firebase.initializeApp(config);
</script>
<script src="./js/game.js"></script>
<script src="./js/index.js"></script>
<script src="./js/timer.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
</body>
</html>