Initial Commit
This commit is contained in:
32
easteregg/1.css
Normal file
32
easteregg/1.css
Normal file
@@ -0,0 +1,32 @@
|
||||
html, body {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
video {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.container {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
text-align: center;
|
||||
padding-top: 50px;
|
||||
}
|
||||
|
||||
#instruction {
|
||||
position: fixed;
|
||||
bottom: 20px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
font-family: 'Noto Sans', sans-serif;
|
||||
font-size: 24px;
|
||||
color: white;
|
||||
}
|
||||
20
easteregg/1.html
Normal file
20
easteregg/1.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="1.css">
|
||||
<link rel="icon" type="image/x-icon" href="1.png">
|
||||
<meta charset="UTF-8">
|
||||
<title>You found it #1</title>
|
||||
</head>
|
||||
<body>
|
||||
<video autoplay muted loop>
|
||||
<source src="1.mp4" type="video/mp4">
|
||||
</video>
|
||||
<div class="container">
|
||||
<h2 id="instruction">Click anywhere to unmute</h2>
|
||||
</div>
|
||||
|
||||
<script src="1.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
10
easteregg/1.js
Normal file
10
easteregg/1.js
Normal file
@@ -0,0 +1,10 @@
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
var video = document.querySelector("video");
|
||||
var instruction = document.getElementById("instruction");
|
||||
|
||||
document.addEventListener("click", function() {
|
||||
video.play();
|
||||
video.muted = false;
|
||||
instruction.style.display = "none";
|
||||
});
|
||||
});
|
||||
BIN
easteregg/1.mp4
Normal file
BIN
easteregg/1.mp4
Normal file
Binary file not shown.
BIN
easteregg/1.png
Normal file
BIN
easteregg/1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 MiB |
Reference in New Issue
Block a user