-
Notifications
You must be signed in to change notification settings - Fork 3
/
tab.html
executable file
·50 lines (45 loc) · 954 Bytes
/
tab.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
body, html {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.background {
width: 100vw;
height: 100vh;
background-size: cover;
background-position: center;
}
.picker-label {
position: fixed;
right: 0;
top: 0;
text-align: center;
cursor: pointer;
padding: 10px;
font-size: 110%;
opacity: .3;
transition: opacity .2s;
}
body:hover .picker-label {
opacity: 1;
}
.picker {
display: none;
}
</style>
</head>
<body>
<div class="background"></div>
<label class="picker-label">
<span title="Pick an Image">🌄</span>
<input type="file" class="picker" />
</label>
<script src="script.js"></script>
</body>
</html>