-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
108 lines (88 loc) Β· 2.51 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: Arial;
font-size: 17px;
}
#myVideo {
position: fixed;
text-align: center;
right: 0;
bottom: 0;
min-width: 100%;
min-height: 100%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.content {
position: fixed;
bottom: 0;
background: rgba(0, 0, 0, 0.1);
color: #f1f1f1;
width: 100%;
height: 100%;
padding: 20px;
}
#myBtn {
width: 200px;
font-size: 18px;
padding: 10px;
border: none;
background: #000;
color: #fff;
cursor: pointer;
position: absolute;
top: 95%;
left: 50%;
transform: translate(-50%, -50%);
}
#myBtn:hover {
background: #ddd;
color: black;
}
#coder{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
height : 30vh;
width: 30vh;
border-radius: 30vh;
box-shadow: 5px 5px 5px 5px black, -5px -5px 5px 5px black ;
}
.shadow {
-moz-box-shadow: outset 0 0 10px #000000;
-webkit-box-shadow: outset 0 0 10px #000000;
box-shadow: outset 0 0 10px #000000;
}
#header{
text-align: center;
}
</style>
</head>
<body>
<video autoplay muted loop id="myVideo" src="./kosandra.mp4" type="video/mp4">
</video>
<div class="content">
<h1 id = "header">@SeraphimCoder</h1>
<button id="myBtn" onclick="myFunction()">Toggle Audio</button>
</div>
<img src="seraphimCoder.png" alt="SeraphimCoder" id = "coder" class="shadow"/>
<script>
var video = document.getElementById("myVideo");
var btn = document.getElementById("myBtn");
function myFunction() {
if (video.muted == true) video.muted = false;
else video.muted = true;
}
</script>
</body>
</html>