Testing hugo
This commit is contained in:
commit
e3975962fa
327 changed files with 17224 additions and 0 deletions
13
public/themes/novela/assets/js/toggleBorder.js
Normal file
13
public/themes/novela/assets/js/toggleBorder.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
window.addEventListener("resize", adjustListBorder);
|
||||
|
||||
let listRemoveWidth = window.matchMedia("(max-width: 1070px)");
|
||||
let listAddWidth = window.matchMedia("(min-width: 1070px)");
|
||||
|
||||
function adjustListBorder(){
|
||||
if (listRemoveWidth.matches) {
|
||||
document.getElementById("articlesList").classList.remove("author-alc");
|
||||
}
|
||||
else if (listAddWidth.matches) {
|
||||
document.getElementById("articlesList").classList.add("author-alc");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue