-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwin_game.html
110 lines (96 loc) · 3.37 KB
/
win_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
107
108
109
110
<!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 - Winner!</title>
<link rel="icon" href="/assets/loupe.png" type="image/png">
<!-- 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">
<style>
#confetti-3 {
padding: 2em;
animation-name: slide-top;
animation-duration: 1s;
animation-direction: alternate;
animation-iteration-count: infinite;
}
/* ----------------------------------------------
* Generated by Animista on 2021-5-1 23:52:38
* Licensed under FreeBSD License.
* See http://animista.net/license for more info.
* w: http://animista.net, t: @cssanimista
* ---------------------------------------------- */
/**
* ----------------------------------------
* animation slide-top
* ----------------------------------------
*/
@-webkit-keyframes slide-top {
0% {
-webkit-transform: translateY(0);
transform: translateY(0);
}
100% {
-webkit-transform: translateY(-50px);
transform: translateY(-50px);
}
}
@keyframes slide-top {
0% {
-webkit-transform: translateY(0);
transform: translateY(0);
}
100% {
-webkit-transform: translateY(-50px);
transform: translateY(-50px);
}
}
</style>
</head>
<body>
<div class="container-fluid" id="winner" style="margin: auto; text-align: center; padding-top: 4em; background-color: rgb(248, 248, 248);">
<div class="row">
<div id="confetti-2" class="col-12 col-lg-6 rounded" style="background-color: turquoise; margin: auto; padding: 2em; text-align: center; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);">
<img src="/assets/congratulations.png" alt="Congratulations icon" class="img-fluid">
<h1 style="font-weight: bold">You Won!</h1>
<img id="confetti-3" class="img-fluid" src="/assets/trophy.png" alt="trophy icon">
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/party-js@latest/bundle/party.min.js">
</script>
<!-- used for confetti in when the user wins-->
<!-- https://www.cssscript.com/confetti-animation-party/ -->
<script>
setInterval(e=>{
party.confetti(document.getElementById("winner"));
party.confetti(document.getElementById("confetti-2"));
party.confetti(document.getElementById("confetti-3"));
},2000)
let win_sound_fx = new Audio("victory-mario-series-hq-super-smash-bros.mp3")
win_sound_fx.play();
</script>
</body>
</html>