1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-12-02 14:48:06 +00:00

Show the links when no JS on mobile

This commit is contained in:
Timur Ismagilov
2021-07-15 22:46:23 +05:00
parent b989956acb
commit e7ddb54877
3 changed files with 6 additions and 4 deletions

View File

@@ -3,6 +3,8 @@ let wrapper = document.getElementsByClassName("top-bar__wrapper")[0],
highlights = document.getElementsByClassName("top-bar__section_highlights")[0]
const toggleElement = el => el.classList.toggle("top-bar__section_hidden-on-mobile")
toggleElement(auth)
toggleElement(highlights)
let hamburger = document.createElement("button")
hamburger.classList.add("top-bar__hamburger")