-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
165 lines (136 loc) · 4.46 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>DVD Screensaver</title>
<meta name="description" content="Will the bouncing DVD logo hit the corner? Upload your own logos too!" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#007aff" />
<meta name="msapplication-TileColor" content="#2b5797" />
<meta name="theme-color" content="#ffffff" />
<meta property="og:title" content="Bouncing DVD logo screensaver">
<meta property="og:site_name" content="DVD Screensaver">
<meta property="og:url" content="https://dvd-screen.netlify.app" />
<meta property="og:description" content="Will it hit the corner? 😱">
<meta property="og:type" content="website">
<meta property="og:image" content="https://i.imgur.com/SdmiPPF.png">
<script src="script.js" defer></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-259151856-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'UA-259151856-1');
</script>
</head>
<style>
* {
margin: 0;
}
body {
font-family: "Courier New", Courier, monospace;
background: black;
color: white;
overflow: hidden;
}
a {
text-decoration: none;
color: orange;
}
a:hover {
text-decoration: underline;
}
button {
border: 1px solid #ccc;
display: inline-block;
padding: 6px 12px;
background: none;
color: white;
font-family: 'Courier New', Courier, monospace;
cursor: pointer;
}
button:hover {
background-color: rgba(255, 255, 255, 0.1);
}
#logo-container {
position: relative;
user-select: none;
}
#logo {
position: absolute;
z-index: 0;
}
#pause-notification {
display: flex;
justify-content: center;
width: 100%;
position: absolute;
text-align: center;
top: 50%;
}
input[type="file"] {
display: none;
}
.logo-upload-label {
border: 1px solid #ccc;
display: inline-block;
padding: 6px 12px;
cursor: pointer;
text-align: center;
}
.logo-upload-label:hover {
background-color: rgba(255, 255, 255, 0.1);
}
#settings {
display: flex;
flex-direction: column;
max-width: 15rem;
padding: 1rem;
gap: 1rem;
position: relative;
z-index: 1;
background: rgba(0, 0, 0, 0.3);
visibility: visible;
transition: visibility 0.5s ease;
}
.setting-control {
display: flex;
justify-content: space-between;
align-items: center;
}
</style>
<body>
<div id="logo-container">
<img id="logo" src="dvd_logo2.svg" alt="dvd logo" width="15%" />
</div>
<div id="pause-notification">Click anywhere to resume</div>
<aside id="settings">
<label for="logo-upload" class="logo-upload-label">
Upload logos
</label>
<input id="logo-upload" type="file" onchange="logoUpload()" accept="image/png, image/jpeg, .svg" multiple />
<div class="setting-control">
<label for="logo-speed">Speed</label>
<input id="logo-speed" type="range" min="1" max="10" step="0.5" oninput="speedChange()"
onchange="speedChangeEnd()" />
</div>
<div class="setting-control">
<label for="logo-speed">Background</label>
<input id="bg-color-input" type="color" oninput="bgColorChange()" onchange="bgColorChangeEnd()" />
</div>
<button onclick="enterFullscreen()">Fullscreen</button>
<div>
<span>© 2023 </span>
<a href="https://github.com/mabenj/dvd-screensaver" target="_blank" onclick="githubClick()">
mabenj
</a>
</div>
</aside>
</body>
</html>