Add dynamic iframe for background music across multiple pages
This commit is contained in:
1 parent
44c62f1882
commit
f42a879bf1
4 files changed
+47
-7
No files matched your search
@@ -166,6 +166,15 @@
|
||||
const darkModeEnabled = getCookie('darkMode') === 'true';
|
||||
applyMode(darkModeEnabled);
|
||||
|
||||
// Add the iframe dynamically if it doesn't already exist
|
||||
if (!document.getElementById('musicIframe')) {
|
||||
const iframe = document.createElement('iframe');
|
||||
iframe.src = 'music.html';
|
||||
iframe.id = 'musicIframe';
|
||||
iframe.style.display = 'none';
|
||||
document.body.appendChild(iframe);
|
||||
}
|
||||
|
||||
// Function to animate the title
|
||||
function animateTitle() {
|
||||
anime({
|
||||
|
||||
Reference in new issue
Block a user