-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
94 lines (94 loc) · 2.9 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
<!DOCTYPE html>
<html lang="en-GB">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
<title>Black ⬛️ A black screen</title>
<meta name="description" content="Fullscreen black screen ⬛️ A black screen ⬛️ Fill your screen with blackness">
<link rel="canonical" href="https://omrilotan.com/black/">
<link rel="alternate" href="https://omrilotan.com/black/" hreflang="en-GB">
<link rel="manifest" href="manifest.webmanifest">
<link href="data:image/x-icon;base64,AAABAAEAEBAQAAEABAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAgAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" rel="icon" type="image/x-icon">
<meta name="theme-color" content="#000000">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#000000">
<meta name="apple-mobile-web-app-title" content="Black">
<link rel="apple-touch-startup-image" href="splash.png">
<link rel="apple-touch-icon" sizes="180x180" href="black.png">
<meta name="msapplication-TileColor" content="#000000">
<style>
* {
margin: 0;
padding: 0;
outline: 0;
}
html, body{
height:100%;
}
body {
font:800 3.5vw/1.4 -apple-system, "BlinkMacSystemFont", "Helvetica Neue", "Helvetica", sans-serif;
}
span {
display: none;
}
.show {
display: inline;
}
@media (max-width: 800px) {
body {
font-size: 12vw;
}
span {
display: none !important;
}
}
button {
background: black;
width: 100%;
height: 100%;
border: 0;
}
div {
position: absolute;
top: 1vw;
width: 100%;
text-align: center;
color: rgba(255, 255, 255 ,.05);
user-select: none;
}
div:hover {
color: rgba(255, 255, 255 ,.07);
}
@media (display-mode:fullscreen) {
div {
display: none;
}
}
</style>
</head>
<body>
<button id="fs"> </button>
<div id="i">Click the page <span id="s">or hit spacebar </span>to toggle full screen</div>
<script>
document.body.addEventListener(
'click',
() => window.matchMedia('(display-mode:fullscreen)').matches
? document.exitFullscreen()
: document.body.requestFullscreen()
,
false
);
['DOMContentLoaded', 'fullscreenchange'].forEach(
trigger => document.addEventListener(
trigger,
fs.focus.bind(fs),
false
)
);
fs.addEventListener('focus', () => { s.classList.add('show'); });
fs.addEventListener('focusout', () => { s.classList.remove('show'); });
navigator.onLine && location.protocol.startsWith('https') && 'serviceWorker' in navigator && navigator.serviceWorker.register('sw.js?ck=v1')
</script>
</body>
</html>