app.js
app.js
querySelector("aside");
profileBtn.onclick = function() {
sideMenu.classList.toggle('active');
window.onscroll = () => {
sideMenu.classList.remove('active');
if(window.scrollY > 0)
{document.querySelector('header').classList.add('active');}
else{document.querySelector('header').classList.remove('active');}
themeToggler.onclick = function() {
document.body.classList.toggle('dark-theme');
themeToggler.querySelector('span:nth-child(1)').classList.toggle('active')
themeToggler.querySelector('span:nth-child(2)').classList.toggle('active')
day.forEach(sub => {
const tr = document.createElement('tr');
const trContent = `
<td>${sub.time}</td>
<td>${sub.roomNumber}</td>
<td>${sub.subject}</td>
<td>${sub.type}</td>
tr.innerHTML = trContent;
document.querySelector('table tbody').appendChild(tr)
});
let today = now.getDay(); // Will return the present day in numerical value;
let day = today; //To prevent the today value from changing;
function timeTableAll(){
document.getElementById('timetable').classList.toggle('active');
setData(today);
nextDay.onclick = function() {
setData(day);
prevDay.onclick = function() {
setData(day);