-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
127 lines (112 loc) · 2.37 KB
/
index.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<html>
<head>
<title>Warm up yourself</title>
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon">
<link rel="icon" href="./favicon.ico" type="image/x-icon">
<style>
body {
padding: 0;
margin: 0;
box-sizing: border-box;
}
.container {
display: flex;
flex: 1;
flex-direction: column;
align-items: center;
height: 100vh;
background-color: #222;
}
header {
height: 30vh;
}
.container h1 {
color: #fff;
font-family: monospace;
font-size: 30px;
padding-top: 10vh;
}
#fireCanvas {
margin-bottom: 20px;
}
table {
border-collapse: collapse;
border: 1px solid #000;
}
td {
width: 50px;
height: 50px;
border: 1px solid #000;
text-align: center;
vertical-align: center;
font-family: monospace;
font-size: 18px;
position: relative;
}
td.pixel {
width: 4px;
height: 4px;
border: 0;
}
.pixel-index {
font-size: 10px;
display: inline-block;
position: absolute;
top: 2px;
right: 2px;
color: #999;
}
#range {
-webkit-appearance: none;
width: 202px;
height: 10px;
background: #444;
outline: none;
-webkit-transition: .2s;
transition: opacity .2s;
transform: rotate(180deg);
border-radius: 8px;
}
#range .slide {
width: 20px;
}
footer {
display: flex;
align-items: center;
justify-content: center;
position: fixed;
color: #fff;
font-size: 14px;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
left: 0;
bottom: 0;
width: 100%;
background-color: #3A3335;
}
footer p img {
width: 20px;
margin: 0 8px;
}
footer p a {
color: #fff;
}
</style>
</head>
<body>
<audio id="fireSound" src="./fire.mp3" autoplay loop></audio>
<div class="container">
<header>
<h1>Warm up yourself.</h1>
</header>
<div>
<div id="fireCanvas"></div>
<input id="range" type="range" min="2" step="0.1" max="6" value="3.9" />
</div>
<footer>
<p>Made with <img src="./js.png" /> by <a href="https://github.com/gpaiva00">Gabriel Paiva</a></p>
</footer>
</div>
<script src="./fire.js"></script>
</body>
</html>