Testing hugo
This commit is contained in:
commit
e3975962fa
327 changed files with 17224 additions and 0 deletions
15
public/js/toggleLogos.js
Normal file
15
public/js/toggleLogos.js
Normal 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");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue