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