-
Notifications
You must be signed in to change notification settings - Fork 0
/
video.htm
73 lines (73 loc) · 2.42 KB
/
video.htm
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
<html>
<head>
<title>Video</title>
<style>
body {
background-color: black;
font-family: sans-serif;
color: #666;
}
.center {
display: block;
margin-left: auto;
margin-right: auto;
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
}
#config {
position: absolute;
bottom: 0;
right: 0;
padding: 5px 10px;
}
.link:hover {
cursor: pointer;
}
#copied {
display: inline-block;
position: relative;
top: -30px;
left: 40px;
font-size: large;
color: #777;
background: #222;
border: 1px dotted #777;
border-radius: 3px;
padding: 4px 5px;
opacity: 0;
}
.fade {
animation: fade 2s;
}
@keyframes fade {
0% {opacity: 0;}
50% {opacity: 1;}
100% {opacity: 0;}
}
</style>
<script>
function copy() {
navigator.clipboard.writeText(document.querySelector('.link').innerText)
document.getElementById('copied').classList.add('fade');
setTimeout(() => {
document.getElementById('copied').classList.remove('fade');
}, 3000);
}
</script>
</head>
<body>
<img src='video.png' usemap='#video' class='center'>
<map name='video'>
<area shape='rect' coords='0,0,480,480' href='https://www.netflix.com/' alt='Netflix'>
<area shape='rect' coords='481,0,960,480' href='https://www.disneyplus.com/' alt='Disney+'>
<area shape='rect' coords='0,481,480,960' href='https://www.crave.ca/en' alt='Crave'>
<area shape='rect' coords='481,481,960,960' href='https://www.amazon.com/gp/video/storefront/' alt='Prime Video'>
</map>
<div id='config'>
<span id='copied'>Copied!</span>
<span class='link' onclick='copy()'>edge://flags/#hardware-media-key-handling</span>
</div>
</body>
</html>