-
Notifications
You must be signed in to change notification settings - Fork 163
/
Copy pathindex.html
83 lines (75 loc) · 2.3 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
<title></title>
<style>
html,
body {
height: 100%;
}
body {
background: #222;
font-size: 30px;
font-family: 'Lucida Console', Monaco, monospace;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
}
.wrapper {
max-width: 640px;
max-height: 960px;
width: 100%;
height: 100%;
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
.wrapper:after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image: linear-gradient(0deg, transparent 24%, rgba(22,22,22, .25) 25%, rgba(22,22,22, .25) 26%, transparent 27%, transparent 74%, rgba(22,22,22, .25) 75%, rgba(22,22,22, .25) 76%, transparent 77%, transparent), linear-gradient(90deg, transparent 24%, rgba(22,22,22, .25) 25%, rgba(22,22,22, .25) 26%, transparent 27%, transparent 74%, rgba(22,22,22, .25) 75%, rgba(22,22,22, .25) 76%, transparent 77%, transparent);
background-size: 15px 15px;
}
canvas {
display: block;
outline: 1px solid white;
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
background: #222;
background-image: linear-gradient(0deg, transparent 24%, rgba(204, 204, 204, .25) 25%, rgba(204, 204, 204, .25) 26%, transparent 27%, transparent 74%, rgba(204, 204, 204, .25) 75%, rgba(204, 204, 204, .25) 76%, transparent 77%, transparent), linear-gradient(90deg, transparent 24%, rgba(204, 204, 204, .25) 25%, rgba(204, 204, 204, .25) 26%, transparent 27%, transparent 74%, rgba(204, 204, 204, .25) 75%, rgba(204, 204, 204, .25) 76%, transparent 77%, transparent);
background-size: 15px 15px;
}
[hidden] {
display: none !important;
}
#uiScenes {
position: absolute;
overflow: hidden;
clip: rect(0 0 0 0);
height: 1px;
width: 1px;
margin: -1px;
padding: 0;
border: 0;
z-index: -10;
}
</style>
</head>
<body>
<div class="wrapper" role="application">
<canvas width="640" height="960"></canvas>
</div>
<div id="uiScenes"></div>
<input type="file" accept="audio/*" tabindex="-1" hidden id="uploadFile">
<script src="index.js"></script>
</body>
</html>