first commit

This commit is contained in:
Sam
2026-01-15 10:28:49 +01:00
commit 11e9fa6b8b
3 changed files with 236 additions and 0 deletions

16
script.js Normal file
View File

@@ -0,0 +1,16 @@
document.addEventListener('DOMContentLoaded', function(){
const themeToggle = document.getElementById('themeToggle');
const printBtn = document.getElementById('printBtn');
if(themeToggle){
themeToggle.addEventListener('click', ()=>{
document.body.classList.toggle('dark');
});
}
if(printBtn){
printBtn.addEventListener('click', ()=>{
window.print();
});
}
});