-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
92 lines (77 loc) · 2.63 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>DMetaverse</title>
</head>
<body>
<canvas id="main-content"></canvas>
<main>
<header>
<h1> DMetaverse </h1>
<h2>Interact with a really Decentralized Metaverse</h2>
</header>
<section>
<h2>What is this Site?</h2>
<p>
In this site you can upload, search and browse files in the Interplanetary File System (IPFS), which is a totally decentralized system.
</p>
</section>
<section>
<h2>Uploaded Files</h2>
<div>
<div class="content">
<div class="flip-card">
<div class="flip-card-inner">
<div class="flip-card-front">
<video autoplay muted id="myVideo" crossorigin="anonymous">
<source src="https://ipfs.io/ipfs/QmVFkjFK1Q3ZFQ59qmjBhVrpA2nELn8NPNWhsms7wckCu8?filename=video1_hombre19-synced-fgycS.mp4" type="video/mp4">
</video>
</div>
<div class="flip-card-back">
This is a video generated with AI: The photo of a person who does not exist with artificial
voice and processed to move the mouth, according to a given (written) message
</div>
</div>
</div>
<button id="myBtn" onclick="onPause()">Play</button>
<button id="myMute" onclick="onMute()">Mute</button>
</div>
</div>
</section>
<blockquote>
<p>This is a Pythoness Project</p>
</blockquote>
</main>
<script type="module" src="/main.js"></script>
<script>
// Get the video
var video = document.getElementById("myVideo");
var btn = document.getElementById("myBtn");
// Get the button
var btnMute = document.getElementById("myMute");
// Pause and play the video, and change the button text
function onPause() {
if (video.paused) {
video.play();
btn.innerHTML = "Pause";
} else {
video.pause();
btn.innerHTML = "Play";
}
}
// Pause and play the video, and change the button text
function onMute() {
if (video.muted) {
video.muted = false;
btnMute.innerHTML = "Mute";
} else {
video.muted = true;
btnMute.innerHTML = "Unmute";
}
}
</script>
</body>
</html>