-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhard.html
107 lines (90 loc) · 4.4 KB
/
hard.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
<!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">
<link rel="apple-touch-icon" sizes="57x57" href="img/favicons/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="img/favicons/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="img/favicons/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="img/favicons/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="img/favicons/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="img/favicons/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="img/favicons/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="img/favicons/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="img/favicons/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="img/favicons/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="img/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="img/favicons/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="img/favicons/favicon-16x16.png">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico?v=1.0"/>
<meta name="msapplication-TileImage" content="img/favicons/ms-icon-144x144.png">
<meta name="msapplication-TileColor" content="#212121">
<meta name="theme-color" content="#212121">
<title>Spooky Memory</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<link rel="stylesheet" href="css/app.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script>
<script src="https://kit.fontawesome.com/955217f2ce.js" crossorigin="anonymous"></script>
<link href="https://fonts.googleapis.com/css2?family=Eater&display=swap" rel="stylesheet">
<script src="js/hard.js"></script>
<script src="js/app.js"></script>
<script src="js/snowfall.min.js"></script>
</head>
<body>
<video autoplay muted loop id="myVideo">
<source src="https://what2do.bjwtech.com/Halloween5 1-1.m4v" type="video/mp4">
</video>
<span class="right setting ease"><i class="fas fa-spider on"></i></span>
<div class="container-fluid text-center"><!-- game pieces go here --></div>
<h1 class="bigWinner">You Win!!!<br><a href="index.html">Play Again?</a></h1>
<div id="timer"><span id="seconds">00</span>:<span id="tens">00</span></div>
<script>
$(document).ready(function() {
var seconds = 00;
var tens = 00;
var appendTens = document.getElementById("tens")
var appendSeconds = document.getElementById("seconds")
var Interval ;
clearInterval(Interval);
Interval = setInterval(startTimer, 10);
function startTimer () {
tens++;
if(tens <= 9){
appendTens.innerHTML = "0" + tens;
}
if (tens > 9){
appendTens.innerHTML = tens;
}
if (tens > 99) {
console.log("seconds");
seconds++;
appendSeconds.innerHTML = "0" + seconds;
tens = 0;
appendTens.innerHTML = "0" + 0;
}
if (seconds > 9){
appendSeconds.innerHTML = seconds;
}
}
$(".fa-spider").click(function(){
console.log('clicked spidey');
$(this).toggleClass('on');
if($(this).hasClass('on')) {
$(document).snowfall('clear');
} else {
$(document).snowfall('clear');
$(document).snowfall({
image :"img/spider.png",
minSize: 10,
maxSize:30,
flakeCount:50,
flakeIndex:1
});
}
});
});
</script>
</body>
</html>