Skip to content

Commit

Permalink
music changed
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuffugurlu committed Apr 22, 2024
1 parent 1a46077 commit f96802f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
Binary file removed Backend/static/public/music.mp3
Binary file not shown.
Binary file added Backend/static/public/withoutdrum.mp3
Binary file not shown.
5 changes: 5 additions & 0 deletions Backend/static/scripts/verification.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ document.getElementById("verify").addEventListener("click", async function() {
else {
await postVerificationCode(value)
var player = document.getElementById('player');
player.volume = 0.1;
player.play();
player.onended = function () {
player.currentTime = 0;
player.play();
};
}
})

Expand Down
2 changes: 1 addition & 1 deletion Backend/templates/auth/verification.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ <h1 id="timer">15:00</h1>
</div>
</div>
</main>
<audio id="player" src='../../static/public/music.mp3'></audio>
<audio id="player" src='../../static/public/withoutdrum.mp3'></audio>
<script src="{% static 'scripts/spa.js' %}" type="module"></script>
</body>
</html>

0 comments on commit f96802f

Please sign in to comment.