mirror of
https://codeberg.org/ashley/poke.git
synced 2025-01-08 21:19:28 +01:00
fix some issues :3
This commit is contained in:
parent
7026d81c84
commit
0cfa1e9780
1 changed files with 39 additions and 39 deletions
|
@ -1382,7 +1382,6 @@ video.addEventListener('volumechange', function() {
|
|||
localStorage.setItem('playerVolume', this.volume);
|
||||
});
|
||||
|
||||
|
||||
// Get the progress bar and container elements
|
||||
const progressBar1 = document.querySelector(".progress-bar");
|
||||
const progressContainer1 = document.querySelector(".progress-container");
|
||||
|
@ -1448,6 +1447,8 @@ document.addEventListener('fullscreenchange', () => {
|
|||
fadeInElements();
|
||||
});
|
||||
|
||||
setInterval(fadeInElements, 500);
|
||||
|
||||
|
||||
// Get all anchor links on the page
|
||||
const links = document.querySelectorAll('a');
|
||||
|
@ -1455,6 +1456,8 @@ const links = document.querySelectorAll('a');
|
|||
// Add a click event listener to each link
|
||||
links.forEach(link => {
|
||||
link.addEventListener('click', e => {
|
||||
// Check if the link's href includes a hash character
|
||||
if (!link.href.includes('#')) {
|
||||
e.preventDefault(); // Prevent the default link behavior
|
||||
|
||||
// Create a loading spinner element
|
||||
|
@ -1473,14 +1476,10 @@ links.forEach(link => {
|
|||
setTimeout(() => {
|
||||
window.location.href = link.href;
|
||||
}, 500);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
const videoElement = document.getElementById("video");
|
||||
|
||||
// Listen for full screen change events on the video element
|
||||
|
@ -1493,6 +1492,7 @@ links.forEach(link => {
|
|||
videoElement.style.borderRadius = "16px";
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<% if (!optout) { %>
|
||||
|
|
Loading…
Reference in a new issue