Skip to content

Commit 49e14f5

Browse files
author
Smartlinuxcoder
committed
added testd
1 parent d7a06ab commit 49e14f5

File tree

2 files changed

+18
-441
lines changed

2 files changed

+18
-441
lines changed

index.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,24 @@
171171
<meta name="google-site-verification" content="38oUXJQakWezaXTQvJNFtivs8R0nWQOcPw7Gjho8-EE" />
172172
</head>
173173
<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>
174192
<!-- Navbar -->
175193
<div class="navbar">
176194
<a href="#rust">Rust</a>

newyear.html

Lines changed: 0 additions & 441 deletions
This file was deleted.

0 commit comments

Comments
 (0)