-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
78 lines (78 loc) · 1.98 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Glitch Range</title>
<style>
html,
body {
margin: 0;
height: 100%;
}
html {
background: #fd8ffd;
background: linear-gradient(135deg, #fd8ffd 0%,#9a40d6 45%,#72fffe 100%);
}
body {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAIUlEQVQYV2NkQAL///9PY4TxwRxGxllgARgHxGZE5oAEAPm3D2hsLeiBAAAAAElFTkSuQmCC) repeat;
bottom: 0;
display: flex;
align-items: center;
justify-content: center;
}
.container {
height: 100%;
}
h1 {
margin: 0;
text-align: center;
color: #5EFD2F;
font-weight: 700;
font-size: 64px;
font-style: italic;
font-family: 'MS Gothic', 'Meiryo', sans-serif;
text-shadow: 4px 4px 1px #F72BE0;
letter-spacing: .125em;
-webkit-transform: skew(-10deg);
transform: skew(-10deg);
}
.imgWrap {
margin: 0 auto 30px;
overflow: hidden;
width: 480px;
height: 480px;
}
.imgWrap img {
max-width: 100%;
height: auto;
}
.range {
width: 480px;
margin: auto;
}
input[type="range"] {
width: 412px;
}
#rangevalue {
text-align: center;
color: #fff;
}
</style>
</head>
<body>
<div class="container">
<canvas id="canvas" style="display:none;"></canvas>
<h1>グリッチレンジ</h1>
<div class="imgWrap"><img id="glitch" src="" width="480" height="480" alt=""></div>
<div class="range">
<input id="range" type="range" min="0" max="0.9995" step="0.0005" onchange="rangevalue.value=value" />
<output id="rangevalue">0.5</output>
<input id="stop" type="button" value="STOP" onclick="stopTimer()">
<input id="start" type="button" value="RESTART" onclick="startTimer()" disabled="disabled">
<input id="upload" type="file" name="file">
<button id="submit" type="button" onclick="upload()" accept="image/*">出力</button>
</div>
</div>
<script src="js/glitch.js"></script>
</body>
</html>