-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
tay
committed
Sep 17, 2024
1 parent
18c8667
commit 27dabbf
Showing
9 changed files
with
91 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
</head> | ||
|
||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>tee's website</title> | ||
|
||
<!-- CSS --> | ||
<link rel="stylesheet" href="assets/css/about.css"> | ||
|
||
<!-- Favicon --> | ||
<link rel="shortcut icon" href="assets/imgs/favicon.png"> | ||
|
||
<body> | ||
|
||
<video autoplay loop id="myVideo"> | ||
<source src="https://index.havenmc.org/website/assets/mp4/usurper.mp4" type="video/mp4"> | ||
This browser does not support HTML5 video or the server is offline. | ||
</video> | ||
|
||
<div class="content"> <button id="myBtn" onclick="myFunction()">Pause</button> | ||
</div> | ||
|
||
<script> | ||
var video = document.getElementById("myVideo"); | ||
var btn = document.getElementById("myBtn"); | ||
|
||
function myFunction() { | ||
if (video.paused) { | ||
video.play(); | ||
btn.innerHTML = "Pause"; | ||
} else { | ||
video.pause(); | ||
btn.innerHTML = "Play"; | ||
} | ||
} | ||
</script> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
* { | ||
box-sizing: border-box; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
font-family: Arial; | ||
font-size: 17px; | ||
} | ||
|
||
#myVideo { | ||
position: fixed; | ||
right: 0; | ||
bottom: 0; | ||
min-width: 100%; | ||
min-height: 100%; | ||
} | ||
|
||
.content { | ||
position: fixed; | ||
bottom: 0; | ||
background: rgba(0, 0, 0, 0.5); | ||
color: #f1f1f1; | ||
width: 100%; | ||
padding: 20px; | ||
} | ||
|
||
#myBtn { | ||
width: 200px; | ||
font-size: 18px; | ||
padding: 10px; | ||
border: none; | ||
background: #000; | ||
color: #fff; | ||
cursor: pointer; | ||
} | ||
|
||
#myBtn:hover { | ||
background: #ddd; | ||
color: black; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.