Spaces:
Paused
Paused
Upload 13 files
Browse files- .gitattributes +1 -0
- public/exit.svg +31 -0
- public/eye.png +0 -0
- public/giphy.gif +3 -0
- public/index.css +51 -17
- public/index.html +99 -152
- public/only.mp3 +3 -0
- public/play.svg +1 -0
.gitattributes
CHANGED
|
@@ -36,3 +36,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 36 |
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 37 |
*.exe filter=lfs diff=lfs merge=lfs -text
|
| 38 |
v1.mp4 filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 36 |
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 37 |
*.exe filter=lfs diff=lfs merge=lfs -text
|
| 38 |
v1.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
public/giphy.gif filter=lfs diff=lfs merge=lfs -text
|
public/exit.svg
ADDED
|
|
public/eye.png
ADDED
|
public/giphy.gif
ADDED
|
Git LFS Details
|
public/index.css
CHANGED
|
@@ -18,28 +18,62 @@ h2 {
|
|
| 18 |
text-shadow: 0 0 0.125em rgb(192 38 211 / 0.5), 0 0 0.45em currentColor;
|
| 19 |
}
|
| 20 |
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
}
|
| 28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
#backgroundVideo {
|
| 30 |
-
position: fixed;
|
| 31 |
top: 0;
|
| 32 |
left: 0;
|
| 33 |
width: 100%;
|
|
|
|
|
|
|
| 34 |
}
|
| 35 |
|
| 36 |
#placeholder {
|
| 37 |
position: relative;
|
| 38 |
left: 0;
|
| 39 |
width: 100%;
|
| 40 |
-
height:
|
| 41 |
-
background-
|
| 42 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
}
|
| 44 |
|
| 45 |
div #logo_container::before {
|
|
@@ -61,7 +95,7 @@ div #logo_container::before {
|
|
| 61 |
#videoElement {
|
| 62 |
opacity: 0;
|
| 63 |
width: 80%;
|
| 64 |
-
transition: opacity
|
| 65 |
margin-top: 155px;
|
| 66 |
|
| 67 |
}
|
|
@@ -73,14 +107,14 @@ div #logo_container::before {
|
|
| 73 |
|
| 74 |
.fade-out {
|
| 75 |
opacity: 0.09;
|
| 76 |
-
transition: opacity
|
| 77 |
}
|
| 78 |
|
| 79 |
/* Modern React Native Design Principles */
|
| 80 |
/* 1. Minimalistic Design */
|
| 81 |
|
| 82 |
#playPauseBtn {
|
| 83 |
-
background-color: #
|
| 84 |
opacity: 35;
|
| 85 |
border-radius: 50%;
|
| 86 |
width: 50px;
|
|
@@ -146,8 +180,7 @@ div #logo_container::before {
|
|
| 146 |
animation: floatUpDown 5s ease-in-out infinite;
|
| 147 |
}
|
| 148 |
|
| 149 |
-
|
| 150 |
-
#playPauseBtn .tooltip-text {
|
| 151 |
visibility: hidden;
|
| 152 |
width: 120px;
|
| 153 |
background-color: #555;
|
|
@@ -164,12 +197,12 @@ div #logo_container::before {
|
|
| 164 |
transition: opacity 0.3s;
|
| 165 |
}
|
| 166 |
|
| 167 |
-
#playPauseBtn:hover
|
| 168 |
visibility: visible;
|
| 169 |
opacity: 1;
|
| 170 |
}
|
| 171 |
|
| 172 |
-
#playPauseBtn
|
| 173 |
content: "";
|
| 174 |
position: absolute;
|
| 175 |
top: 100%;
|
|
@@ -220,3 +253,4 @@ div #logo_container::before {
|
|
| 220 |
height: 20px;
|
| 221 |
}
|
| 222 |
}
|
|
|
|
|
|
| 18 |
text-shadow: 0 0 0.125em rgb(192 38 211 / 0.5), 0 0 0.45em currentColor;
|
| 19 |
}
|
| 20 |
|
| 21 |
+
@keyframes pulse {
|
| 22 |
+
0% {
|
| 23 |
+
box-shadow: 0 0 0 0px rgba(255, 0, 43, 0.7);
|
| 24 |
+
}
|
| 25 |
+
50% {
|
| 26 |
+
box-shadow: 0 0 0 10px rgba(169, 94, 255, 0);
|
| 27 |
+
}
|
| 28 |
+
100% {
|
| 29 |
+
box-shadow: 0 0 0 0px rgb(199, 0, 17);
|
| 30 |
+
}
|
| 31 |
}
|
| 32 |
|
| 33 |
+
#eyeButton {
|
| 34 |
+
background: none;
|
| 35 |
+
border: none;
|
| 36 |
+
position: relative;
|
| 37 |
+
cursor: pointer;
|
| 38 |
+
overflow: hidden; /* Clip the shadow outside the button */
|
| 39 |
+
border-radius: 50%; /* Make it round, adjust as needed */
|
| 40 |
+
width: 32px; /* Set your eye image width */;
|
| 41 |
+
height: 32px;/* Set your eye image height */;
|
| 42 |
+
animation: pulse 2s infinite; /* Adjust the duration as needed */
|
| 43 |
+
}
|
| 44 |
+
#exitButton {
|
| 45 |
+
background: none;
|
| 46 |
+
border: none;
|
| 47 |
+
position: relative;
|
| 48 |
+
cursor: pointer;
|
| 49 |
+
overflow: hidden; /* Clip the shadow outside the button */
|
| 50 |
+
border-radius: 50%; /* Make it round, adjust as needed */
|
| 51 |
+
width: 32px; /* Set your eye image width */;
|
| 52 |
+
height: 32px;/* Set your eye image height */;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
|
| 58 |
#backgroundVideo {
|
|
|
|
| 59 |
top: 0;
|
| 60 |
left: 0;
|
| 61 |
width: 100%;
|
| 62 |
+
object-fit: cover;
|
| 63 |
+
z-index: -1;
|
| 64 |
}
|
| 65 |
|
| 66 |
#placeholder {
|
| 67 |
position: relative;
|
| 68 |
left: 0;
|
| 69 |
width: 100%;
|
| 70 |
+
height: 100vh;
|
| 71 |
+
background-position: center;
|
| 72 |
+
background-repeat: no-repeat;
|
| 73 |
+
background-size: cover;
|
| 74 |
+
background-color: black; /* Set the background color to transparent */
|
| 75 |
+
transition: background-image 0.5s ease-in-out;
|
| 76 |
+
|
| 77 |
}
|
| 78 |
|
| 79 |
div #logo_container::before {
|
|
|
|
| 95 |
#videoElement {
|
| 96 |
opacity: 0;
|
| 97 |
width: 80%;
|
| 98 |
+
transition: opacity 1s ease-in-out;
|
| 99 |
margin-top: 155px;
|
| 100 |
|
| 101 |
}
|
|
|
|
| 107 |
|
| 108 |
.fade-out {
|
| 109 |
opacity: 0.09;
|
| 110 |
+
transition: opacity 5s ease-in-out;
|
| 111 |
}
|
| 112 |
|
| 113 |
/* Modern React Native Design Principles */
|
| 114 |
/* 1. Minimalistic Design */
|
| 115 |
|
| 116 |
#playPauseBtn {
|
| 117 |
+
background-color: #b4b4b4fa;
|
| 118 |
opacity: 35;
|
| 119 |
border-radius: 50%;
|
| 120 |
width: 50px;
|
|
|
|
| 180 |
animation: floatUpDown 5s ease-in-out infinite;
|
| 181 |
}
|
| 182 |
|
| 183 |
+
#playPauseBtn{
|
|
|
|
| 184 |
visibility: hidden;
|
| 185 |
width: 120px;
|
| 186 |
background-color: #555;
|
|
|
|
| 197 |
transition: opacity 0.3s;
|
| 198 |
}
|
| 199 |
|
| 200 |
+
#playPauseBtn:hover {
|
| 201 |
visibility: visible;
|
| 202 |
opacity: 1;
|
| 203 |
}
|
| 204 |
|
| 205 |
+
#playPauseBtn:after {
|
| 206 |
content: "";
|
| 207 |
position: absolute;
|
| 208 |
top: 100%;
|
|
|
|
| 253 |
height: 20px;
|
| 254 |
}
|
| 255 |
}
|
| 256 |
+
|
public/index.html
CHANGED
|
@@ -3,7 +3,9 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8" />
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 6 |
-
<title>V
|
|
|
|
|
|
|
| 7 |
<link rel="stylesheet" href="index.css" />
|
| 8 |
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
| 9 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
@@ -11,30 +13,37 @@
|
|
| 11 |
href="https://fonts.googleapis.com/css2?family=Inter:wght@900&family=Satisfy&display=swap"
|
| 12 |
rel="stylesheet"
|
| 13 |
/>
|
| 14 |
-
<audio id="audioPlayer" src="
|
| 15 |
|
| 16 |
<script src="/mpegts.js"></script>
|
| 17 |
</head>
|
| 18 |
<body>
|
| 19 |
<div
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
| 21 |
>
|
| 22 |
-
<div
|
| 23 |
-
<
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
|
|
|
| 31 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
<div x-data="app()" x-init="init()" class="container mx-auto z-10">
|
| 33 |
-
|
| 34 |
<div class="flex grid place-content-center justify-center w-full p-2">
|
| 35 |
<video
|
| 36 |
id="videoElement"
|
| 37 |
-
class="aspect-video mx-auto w-auto border-4 border-6 border-
|
| 38 |
preload="auto"
|
| 39 |
muted
|
| 40 |
autoplay
|
|
@@ -69,167 +78,105 @@
|
|
| 69 |
</div>
|
| 70 |
</div>
|
| 71 |
<div class="flex-col items-center justify-center pt-14">
|
| 72 |
-
<a class="flex grid place-content-end mr-8">
|
| 73 |
-
<svg xmlns="http://www.w3.org/2000/svg" href="https://vgony.tech" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="white">
|
| 74 |
-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 0 013 3v1"></path>
|
| 75 |
-
</svg>
|
| 76 |
-
</a>
|
| 77 |
<button
|
| 78 |
id="playPauseBtn"
|
| 79 |
type="button"
|
| 80 |
class="dark:bg-slate-100 dark:text-slate-700 flex-none -my-2 mx-auto w-10 h-10 rounded-full shadow-md flex items-center justify-center opacity-90"
|
| 81 |
aria-label="Pause"
|
| 82 |
>
|
| 83 |
-
<img
|
| 84 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
</button>
|
| 86 |
</div>
|
| 87 |
</div>
|
| 88 |
</div>
|
| 89 |
-
<div
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
|
| 91 |
<script>
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
// Add more audio file paths here
|
| 109 |
-
];
|
| 110 |
-
|
| 111 |
-
// Shuffle the audio files array
|
| 112 |
-
function shuffleArray(array) {
|
| 113 |
-
for (let i = array.length - 1; i > 0; i--) {
|
| 114 |
-
const j = Math.floor(Math.random() * (i + 1));
|
| 115 |
-
[array[i], array[j]] = [array[j], array[i]];
|
| 116 |
-
}
|
| 117 |
-
return array;
|
| 118 |
-
}
|
| 119 |
-
|
| 120 |
-
// Play the next audio file in the shuffled array
|
| 121 |
-
function playNextAudio() {
|
| 122 |
-
const currentIndex = audioFiles.findIndex(file => file === audioPlayer.src);
|
| 123 |
-
const nextIndex = (currentIndex + 1) % audioFiles.length;
|
| 124 |
-
audioPlayer.src = audioFiles[nextIndex];
|
| 125 |
-
audioPlayer.play();
|
| 126 |
-
}
|
| 127 |
-
|
| 128 |
-
// Add a click event listener to the play/pause button
|
| 129 |
-
playPauseBtn.addEventListener('click', () => {
|
| 130 |
-
if (audioPlayer.paused) {
|
| 131 |
-
audioPlayer.play();
|
| 132 |
-
playPauseBtn.querySelector('img').src = 'pause.svg';
|
| 133 |
-
|
| 134 |
-
} else {
|
| 135 |
-
audioPlayer.pause();
|
| 136 |
-
playPauseBtn.querySelector('img').src = 'headphones.svg';
|
| 137 |
-
|
| 138 |
-
}
|
| 139 |
-
});
|
| 140 |
-
|
| 141 |
-
// Shuffle the audio files array on page load
|
| 142 |
-
shuffleArray(audioFiles);
|
| 143 |
-
audioPlayer.src = audioFiles[0];
|
| 144 |
-
audioPlayer.play();
|
| 145 |
-
|
| 146 |
-
// Automatically play the next audio file after the current one finishes
|
| 147 |
-
audioPlayer.addEventListener('ended', playNextAudio);
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
document.addEventListener("DOMContentLoaded", function () {
|
| 153 |
-
setTimeout(function () {
|
| 154 |
-
showVideo();
|
| 155 |
-
fadeBackgroundImage();
|
| 156 |
-
}, 6500); //
|
| 157 |
});
|
| 158 |
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 162 |
}
|
| 163 |
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 167 |
}
|
| 168 |
-
</script>
|
| 169 |
-
<script>
|
| 170 |
-
// Get the audio element and play/pause button
|
| 171 |
-
// Get the audio element and play/pause button
|
| 172 |
-
const audioPlayer = document.getElementById('audioPlayer');
|
| 173 |
-
const playPauseBtn = document.getElementById('playPauseBtn');
|
| 174 |
-
|
| 175 |
-
// Array of audio file paths
|
| 176 |
-
const audioFiles = [
|
| 177 |
-
'overthink.mp3',
|
| 178 |
-
'overthink.mp3',
|
| 179 |
-
'overthink.mp3',
|
| 180 |
-
// Add more audio file paths here
|
| 181 |
-
];
|
| 182 |
-
|
| 183 |
-
// Shuffle the audio files array
|
| 184 |
-
function shuffleArray(array) {
|
| 185 |
-
for (let i = array.length - 1; i > 0; i--) {
|
| 186 |
-
const j = Math.floor(Math.random() * (i + 1));
|
| 187 |
-
[array[i], array[j]] = [array[j], array[i]];
|
| 188 |
-
}
|
| 189 |
-
return array;
|
| 190 |
-
}
|
| 191 |
-
|
| 192 |
-
// Play the next audio file in the shuffled array
|
| 193 |
-
function playNextAudio() {
|
| 194 |
-
const currentIndex = audioFiles.findIndex(file => file === audioPlayer.src);
|
| 195 |
-
const nextIndex = (currentIndex + 1) % audioFiles.length;
|
| 196 |
-
audioPlayer.src = audioFiles[nextIndex];
|
| 197 |
-
audioPlayer.play();
|
| 198 |
-
}
|
| 199 |
-
|
| 200 |
-
// Add a click event listener to the play/pause button
|
| 201 |
-
playPauseBtn.addEventListener('click', () => {
|
| 202 |
-
if (audioPlayer.paused) {
|
| 203 |
-
audioPlayer.play();
|
| 204 |
-
playPauseBtn.querySelector('img').src = 'pause.svg';
|
| 205 |
-
|
| 206 |
-
} else {
|
| 207 |
-
audioPlayer.pause();
|
| 208 |
-
playPauseBtn.querySelector('img').src = 'headphones.svg';
|
| 209 |
-
|
| 210 |
-
}
|
| 211 |
-
});
|
| 212 |
-
|
| 213 |
-
// Shuffle the audio files array on page load
|
| 214 |
-
shuffleArray(audioFiles);
|
| 215 |
-
audioPlayer.src = audioFiles[0];
|
| 216 |
-
audioPlayer.play();
|
| 217 |
-
|
| 218 |
-
// Automatically play the next audio file after the current one finishes
|
| 219 |
-
audioPlayer.addEventListener('ended', playNextAudio);
|
| 220 |
-
|
| 221 |
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 226 |
});
|
| 227 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 228 |
document.addEventListener("DOMContentLoaded", function () {
|
| 229 |
setTimeout(function () {
|
| 230 |
showVideo();
|
| 231 |
-
|
| 232 |
-
}, 1000); //
|
| 233 |
});
|
| 234 |
|
| 235 |
function showVideo() {
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8" />
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 6 |
+
<title>Enter the V Pod by Vgony Forever.</title>
|
| 7 |
+
<meta name="twitter:image" content="https://i.imgur.com/JcRLYji.jpeg" />
|
| 8 |
+
<meta property="og:image" content="https://i.imgur.com/JcRLYji.jpeg" />
|
| 9 |
<link rel="stylesheet" href="index.css" />
|
| 10 |
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
| 11 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
|
|
| 13 |
href="https://fonts.googleapis.com/css2?family=Inter:wght@900&family=Satisfy&display=swap"
|
| 14 |
rel="stylesheet"
|
| 15 |
/>
|
| 16 |
+
<audio id="audioPlayer" src="only.mp3" autoplay></audio>
|
| 17 |
|
| 18 |
<script src="/mpegts.js"></script>
|
| 19 |
</head>
|
| 20 |
<body>
|
| 21 |
<div
|
| 22 |
+
style="
|
| 23 |
+
background-image: url('https://media0.giphy.com/media/v1.Y2lkPTc5MGI3NjExMWZyb3d2ZnM2cGJ5NHNmamtiYWxubTFoa2Jib2NxcmQxY21odDBkaCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/qyXsup1970N5UJNHgI/giphy.gif');
|
| 24 |
+
"
|
| 25 |
+
class="bg-no-repeat bg-center bg-cover bg-fixed h-screen w-screen grid place-content-center place-items-center overflow-hidden bg-gradient-to-b from-slate-900 to-black"
|
| 26 |
>
|
| 27 |
+
<div class="flex place-content-center justify-between flex-row">
|
| 28 |
+
<h1 class="display-flex text-4xl font-black text-grey-300">ФЙLЧ</h1>
|
| 29 |
+
<h2 class="cursive text-6xl font-bold text-red-500">Human</h2>
|
| 30 |
+
|
| 31 |
+
<a
|
| 32 |
+
id="eyeButton"
|
| 33 |
+
class="flex grid place-content-end mr-25"
|
| 34 |
+
>
|
| 35 |
+
<img src="eye.png" alt="Eye Icon" height="30px" width="auto" />
|
| 36 |
+
</a>
|
| 37 |
</div>
|
| 38 |
+
<div>
|
| 39 |
+
<a href="https://vgony.tech" class="exit-simulation-button">
|
| 40 |
+
<img id="exitButton" src="exit.svg" alt="Exit button">
|
| 41 |
+
</a> </div>
|
| 42 |
<div x-data="app()" x-init="init()" class="container mx-auto z-10">
|
|
|
|
| 43 |
<div class="flex grid place-content-center justify-center w-full p-2">
|
| 44 |
<video
|
| 45 |
id="videoElement"
|
| 46 |
+
class="aspect-video mx-auto w-auto border-4 border-6 border-slate-900/30 rounded-full"
|
| 47 |
preload="auto"
|
| 48 |
muted
|
| 49 |
autoplay
|
|
|
|
| 78 |
</div>
|
| 79 |
</div>
|
| 80 |
<div class="flex-col items-center justify-center pt-14">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
<button
|
| 82 |
id="playPauseBtn"
|
| 83 |
type="button"
|
| 84 |
class="dark:bg-slate-100 dark:text-slate-700 flex-none -my-2 mx-auto w-10 h-10 rounded-full shadow-md flex items-center justify-center opacity-90"
|
| 85 |
aria-label="Pause"
|
| 86 |
>
|
| 87 |
+
<img
|
| 88 |
+
src="headphones.svg"
|
| 89 |
+
alt="Pause Button"
|
| 90 |
+
width="10"
|
| 91 |
+
height="10"
|
| 92 |
+
/>
|
| 93 |
</button>
|
| 94 |
</div>
|
| 95 |
</div>
|
| 96 |
</div>
|
| 97 |
+
<div
|
| 98 |
+
id="placeholder"
|
| 99 |
+
class="w-screen h-screen"
|
| 100 |
+
style="
|
| 101 |
+
background-image: url('https://media1.giphy.com/media/v1.Y2lkPTc5MGI3NjExODRidWc0MjB1a2x1dnlzMTd4cXZwZGR3aXpnbzRyYnJreDlrM3AwaCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/3XCpYDupGaM4T0hVFu/giphy.gif');
|
| 102 |
+
"
|
| 103 |
+
class="relative inset-0 z-0"
|
| 104 |
+
></div>
|
| 105 |
+
<div
|
| 106 |
+
id="placeholder"
|
| 107 |
+
class="w-screen h-screen"
|
| 108 |
+
style="position: relative;"
|
| 109 |
+
>
|
| 110 |
+
<video
|
| 111 |
+
class="w-full h-full object-cover"
|
| 112 |
+
src="https://i.imgur.com/fsbSOpO.mp4"
|
| 113 |
+
autoplay
|
| 114 |
+
muted
|
| 115 |
+
loop
|
| 116 |
+
></video>
|
| 117 |
+
</div>
|
| 118 |
|
| 119 |
<script>
|
| 120 |
+
const eyeButton = document.getElementById("eyeButton");
|
| 121 |
+
const videoWrapper = document.getElementById("videoElement");
|
| 122 |
+
// Get the audio element and play/pause button
|
| 123 |
+
// Get the audio element and play/pause button
|
| 124 |
+
const audioPlayer = document.getElementById("audioPlayer");
|
| 125 |
+
const playPauseBtn = document.getElementById("playPauseBtn");
|
| 126 |
+
|
| 127 |
+
// Array of audio file paths
|
| 128 |
+
const audioFiles = [
|
| 129 |
+
"only.mp3",
|
| 130 |
+
"risenfall.mp3",
|
| 131 |
+
|
| 132 |
+
// Add more audio file paths here
|
| 133 |
+
];
|
| 134 |
+
eyeButton.addEventListener("click", () => {
|
| 135 |
+
videoWrapper.classList.toggle("fade-in");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 136 |
});
|
| 137 |
|
| 138 |
+
// Shuffle the audio files array
|
| 139 |
+
function shuffleArray(array) {
|
| 140 |
+
for (let i = array.length - 1; i > 0; i--) {
|
| 141 |
+
const j = Math.floor(Math.random() * (i + 1));
|
| 142 |
+
[array[i], array[j]] = [array[j], array[i]];
|
| 143 |
+
}
|
| 144 |
+
return array;
|
| 145 |
}
|
| 146 |
|
| 147 |
+
// Play the next audio file in the shuffled array
|
| 148 |
+
function playNextAudio() {
|
| 149 |
+
const currentIndex = audioFiles.findIndex(
|
| 150 |
+
(file) => file === audioPlayer.src
|
| 151 |
+
);
|
| 152 |
+
const nextIndex = (currentIndex + 1) % audioFiles.length;
|
| 153 |
+
audioPlayer.src = audioFiles[nextIndex];
|
| 154 |
+
audioPlayer.play();
|
| 155 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 156 |
|
| 157 |
+
// Add a click event listener to the play/pause button
|
| 158 |
+
playPauseBtn.addEventListener("click", () => {
|
| 159 |
+
if (audioPlayer.paused) {
|
| 160 |
+
audioPlayer.play();
|
| 161 |
+
playPauseBtn.querySelector("img").src = "pause.svg";
|
| 162 |
+
} else {
|
| 163 |
+
audioPlayer.pause();
|
| 164 |
+
playPauseBtn.querySelector("img").src = "headphones.svg";
|
| 165 |
+
}
|
| 166 |
});
|
| 167 |
|
| 168 |
+
// Shuffle the audio files array on page load
|
| 169 |
+
shuffleArray(audioFiles);
|
| 170 |
+
audioPlayer.src = audioFiles[0];
|
| 171 |
+
audioPlayer.play();
|
| 172 |
+
|
| 173 |
+
// Automatically play the next audio file after the current one finishes
|
| 174 |
+
audioPlayer.addEventListener("ended", playNextAudio);
|
| 175 |
+
|
| 176 |
document.addEventListener("DOMContentLoaded", function () {
|
| 177 |
setTimeout(function () {
|
| 178 |
showVideo();
|
| 179 |
+
}, 1500); //
|
|
|
|
| 180 |
});
|
| 181 |
|
| 182 |
function showVideo() {
|
public/only.mp3
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:738f94300faaf7a853a13b0e41b84e0f4613056de1818d6ac7228817ecf97513
|
| 3 |
+
size 6432813
|
public/play.svg
ADDED
|
|