adding base Project

This commit is contained in:
Azmat-7860
2026-10-22 23:53:50 +05:30
commit af8edee8b1
718 changed files with 38983 additions and 0 deletions
@@ -0,0 +1,19 @@
const getElement = (selector) => {
const element = document.querySelector(selector)
if (element) return element
throw Error(
`Please double check your class names, there is no ${selector} class`
)
}
const links = getElement('.nav-links')
const navBtnDOM = getElement('.nav-btn')
navBtnDOM.addEventListener('click', () => {
links.classList.toggle('show-links')
})
const date = getElement('#date')
const currentYear = new Date().getFullYear()
date.textContent = currentYear