current work complete

This commit is contained in:
akilan
2020-05-14 12:10:15 +04:00
parent 2fca76e753
commit b4f9978b36
751 changed files with 233459 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
window.addEventListener("resize", toggleLogo);
let lrw = window.matchMedia("(max-width: 735px)");
let law = window.matchMedia("(min-width: 735px)");
function toggleLogo(){
if (lrw.matches) {
document.getElementById("logo-mobile").classList.remove("hidden");
document.getElementById("logo-desktop").classList.add("hidden");
}
else if (law.matches) {
document.getElementById("logo-mobile").classList.add("hidden");
document.getElementById("logo-desktop").classList.remove("hidden");
}
}