-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
1,552 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,31 @@ | ||
document.addEventListener('DOMContentLoaded', function() { | ||
const videoSection = document.getElementById('video-section'); | ||
if (videoSection!=null) { | ||
videoSection.innerHTML = | ||
'<p><b>The best goal ever! It was better than everything!</b></p> <iframe width="560" height="315" src="https://www.youtube.com/embed/ZC_XihZGPEg?si=KAz7HItciZuP2wU3" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>'; | ||
document.addEventListener('DOMContentLoaded', function () { | ||
const videoSection = document.getElementById('video-section') | ||
if (videoSection != null) { | ||
videoSection.innerHTML = '<p><b>The best goal ever! It was better than everything!</b></p> <iframe width="560" height="315" src="https://www.youtube.com/embed/ZC_XihZGPEg?si=KAz7HItciZuP2wU3" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>' | ||
} | ||
document.getElementById('toggle-menu').addEventListener('click', function() { | ||
const nav = document.querySelector('nav'); | ||
nav.classList.toggle('show-menu'); | ||
}); | ||
document.getElementById('toggle-menu').addEventListener('click', function () { | ||
const nav = document.querySelector('nav') | ||
nav.classList.toggle('show-menu') | ||
}) | ||
|
||
document | ||
.getElementById('toggle-dark-mode') | ||
.addEventListener('click', function() { | ||
const body = document.body; | ||
body.classList.toggle('dark-mode'); | ||
}); | ||
.getElementById('toggle-dark-mode') | ||
.addEventListener('click', function () { | ||
const body = document.body | ||
body.classList.toggle('dark-mode') | ||
}) | ||
|
||
document | ||
.getElementById('toggle-dark-mode-nav') | ||
.addEventListener('click', function() { | ||
const body = document.body; | ||
body.classList.toggle('dark-mode'); | ||
}); | ||
.getElementById('toggle-dark-mode-nav') | ||
.addEventListener('click', function () { | ||
const body = document.body | ||
body.classList.toggle('dark-mode') | ||
}) | ||
|
||
document.addEventListener('click', function(event) { | ||
const nav = document.querySelector('nav'); | ||
document.addEventListener('click', function (event) { | ||
const nav = document.querySelector('nav') | ||
if (!event.target.closest('nav') && event.target.id !== 'toggle-menu') { | ||
nav.classList.remove('show-menu'); | ||
nav.classList.remove('show-menu') | ||
} | ||
}); | ||
}); | ||
}) | ||
}) |
Oops, something went wrong.