-
Notifications
You must be signed in to change notification settings - Fork 0
/
Friedman.html
76 lines (74 loc) · 2.26 KB
/
Friedman.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Who is James Friedman?</title>
<style>
body, html {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
}
#background-video {
position: fixed;
right: 0;
bottom: 0;
min-width: 100%;
min-height: 100vh;
width:100%;
height:100%;
z-index: -1000;
object-fit: cover;
}
#audio-control {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 1000;
background-color: rgba(0, 0, 0, 0.5);
color: white;
border: none;
padding: 10px 20px;
cursor: pointer;
font-size: 16px;
}
#site-link {
position: fixed;
bottom: 20px;
left: 20px;
z-index: 1000;
background-color: rgba(0, 0, 0, 0.5);
color: white;
text-decoration: none;
padding: 10px 20px;
font-size: 16px;
}
#site-link:hover {
background-color: rgba(0, 0, 0, 0.7);
}
</style>
</head>
<body>
<video id="background-video" autoplay loop muted playsinline>
<source src="./Friedman.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<button id="audio-control">Unmute</button>
<a id="site-link" href="https://pewu.github.io/topola-viewer/#/view?c=g&handleCors=false&embedded=true&i=h&indi=I0059&s=h&url=https%3A%2F%2Fshauntology.github.io%2FFriedman2024.ged" target="_blank">Who am I?</a>
<script>
const video = document.getElementById('background-video');
const audioControl = document.getElementById('audio-control');
audioControl.addEventListener('click', function() {
if (video.muted) {
video.muted = false;
audioControl.textContent = 'Mute';
} else {
video.muted = true;
audioControl.textContent = 'Unmute';
}
});
</script>
</body>
</html>