"use strict";
// ------------------modal__Sing-in
const overlay = document.querySelector(".overlay");
const singIn = document.querySelector(".header__nav__sign-in");
const authorization = document.querySelector(".authorization");
function singInClick() {
inputName.value = "";
inputPassword.value = "";
authorization.classList.remove("modal-hidden");
overlay.classList.remove("hidden__overlay");
headerNav.classList.add("hidden");
overlay.addEventListener("click", function () {
authorization.classList.add("modal-hidden");
overlay.classList.add("hidden__overlay");
});
};
document.addEventListener("keydown", function (e) {
if (e.key === "Escape" && !authorization.classList.contains("modal-hidden")) {
authorization.classList.add("modal-hidden");
overlay.classList.add("hidden-overlay");
}
});
HTMl тут тоже ругается