We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7a06ab commit 49e14f5Copy full SHA for 49e14f5
index.html
@@ -171,6 +171,24 @@
171
<meta name="google-site-verification" content="38oUXJQakWezaXTQvJNFtivs8R0nWQOcPw7Gjho8-EE" />
172
</head>
173
<body>
174
+ <script>
175
+ var audio = new Audio('path/to/your/music.mp3');
176
+ var isPlaying = false;
177
+
178
+ audio.addEventListener('canplaythrough', function() {
179
+ if (!isPlaying) {
180
+ audio.currentTime = 2 * 60; // Start at 2 minutes
181
+ audio.play();
182
+ isPlaying = true;
183
+ }
184
+ });
185
186
+ audio.addEventListener('ended', function() {
187
+ audio.pause();
188
+ audio.currentTime = 0;
189
+ isPlaying = false;
190
191
+ </script>
192
<!-- Navbar -->
193
<div class="navbar">
194
<a href="#rust">Rust</a>
newyear.html
0 commit comments