-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.html
97 lines (86 loc) · 3.18 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="Slash with beat and get fit with Slashbeatz ⚡. It uses the poseNet() API to detect your poses for breaking cubes!"
/>
<title>Slashbeatz ⚡</title>
<meta name="author" content="Neilblaze" />
<meta name="keywords" content="Slashbeatz" />
<link rel="manifest" href="manifest.json" >
<link rel="stylesheet" href="css/reset.css" />
<link rel="stylesheet" href="css/global.css" />
<link rel="stylesheet" href="css/game.css" />
<link rel="stylesheet" href="css/type.css" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="icon" href="images/slash.png" type="image/x-icon" />
<script src="js/saavn.js"></script>
<link rel="stylesheet" href="css/main.css">
<script src="js/disable.js"></script>
<script src="js/tfjs.js"></script>
<script src="js/posenet.js"></script>
<!-- Manifest -->
<script>
if("serviceWorker" in navigator){
navigator.serviceWorker.register("sw.js").then(registration => {
console.log("SW Registered.");
console.log(registration);
}).catch(err => {
console.log("SW Failed");
console.log(error);
});
}
</script>
</head>
<body>
<!--<body class="intro__body">
<main class="intro">-->
<div class="wrapper">
<div class="header">
<video id="myVideo" muted="muted"></video>
<canvas id="myCanvas" width="500" height="500"></canvas><br>
<!-- Hint/Tips SideBar -->
<aside class="hint hint-mid">
<p class="hint__toptxt hint__toptxt-mid">Use your Arms</p>
<img
src="images/yoyo.gif"
alt=""
class="hint__img hint__img-mid"
id="img-1"
/>
<p class="hint__bottomtxt hint__bottomtxt-mid">to slash those blocks!</p>
<h3 class="hint__letter hint__letter-mid"></h3>
</aside>
<!-- Score Counter -->
<div class="score">
<img src="images/slashedx.png" alt="" class="score__img" />
<h5 id="score">00</h5>
</div>
<!-- Box Counter -->
<div class="boxes">
<p class="boxes__txt">Boxes</p>
<h4 id="boxes">00</h4>
</div>
</div>
</div>
<!--share btn current URL
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<div class="floating-container">
<div class="floating-button btn" id="copy" title="Share">
<i class="material-icons" style="margin-top:20px;">share</i></div>
</div>-->
<!--share btn-->
<div class="floating-container" onclick="url_copied()">
<div class="floating-button" id="copy" title="Share">
<i class="material-icons" style="margin-top:20px;">share</i></div>
</div>
<!--Music Widget-->
<div id="jiosaavn-widget">
</body>
<script src="js/game.js"></script>
<script src="js/clipboard.js"></script>
<!--<script src="https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js"></script>-->
</html>