mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-12-12 13:30:26 +00:00
Show the links when no JS on mobile
This commit is contained in:
parent
b989956acb
commit
e7ddb54877
@ -3,6 +3,8 @@ let wrapper = document.getElementsByClassName("top-bar__wrapper")[0],
|
|||||||
highlights = document.getElementsByClassName("top-bar__section_highlights")[0]
|
highlights = document.getElementsByClassName("top-bar__section_highlights")[0]
|
||||||
|
|
||||||
const toggleElement = el => el.classList.toggle("top-bar__section_hidden-on-mobile")
|
const toggleElement = el => el.classList.toggle("top-bar__section_hidden-on-mobile")
|
||||||
|
toggleElement(auth)
|
||||||
|
toggleElement(highlights)
|
||||||
|
|
||||||
let hamburger = document.createElement("button")
|
let hamburger = document.createElement("button")
|
||||||
hamburger.classList.add("top-bar__hamburger")
|
hamburger.classList.add("top-bar__hamburger")
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
</form>
|
</form>
|
||||||
</li>
|
</li>
|
||||||
{% if cfg.UseAuth %}
|
{% if cfg.UseAuth %}
|
||||||
<li class="top-bar__section top-bar__section_auth top-bar__section_hidden-on-mobile">
|
<li class="top-bar__section top-bar__section_auth">
|
||||||
<ul class="top-bar__auth auth-links">
|
<ul class="top-bar__auth auth-links">
|
||||||
<li class="auth-links__box auth-links__user-box">
|
<li class="auth-links__box auth-links__user-box">
|
||||||
{% if u.Group == "anon" %}
|
{% if u.Group == "anon" %}
|
||||||
@ -53,7 +53,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li class="top-bar__section top-bar__section_highlights top-bar__section_hidden-on-mobile">
|
<li class="top-bar__section top-bar__section_highlights">
|
||||||
<ul class="top-bar__highlights">
|
<ul class="top-bar__highlights">
|
||||||
{%- for _, link := range cfg.HeaderLinks -%}
|
{%- for _, link := range cfg.HeaderLinks -%}
|
||||||
{% if link.Href != "/" %}
|
{% if link.Href != "/" %}
|
||||||
|
@ -82,7 +82,7 @@ func StreamBaseHTML(qw422016 *qt422016.Writer, title, body string, u *user.User,
|
|||||||
if cfg.UseAuth {
|
if cfg.UseAuth {
|
||||||
//line views/stuff.qtpl:33
|
//line views/stuff.qtpl:33
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
<li class="top-bar__section top-bar__section_auth top-bar__section_hidden-on-mobile">
|
<li class="top-bar__section top-bar__section_auth">
|
||||||
<ul class="top-bar__auth auth-links">
|
<ul class="top-bar__auth auth-links">
|
||||||
<li class="auth-links__box auth-links__user-box">
|
<li class="auth-links__box auth-links__user-box">
|
||||||
`)
|
`)
|
||||||
@ -148,7 +148,7 @@ func StreamBaseHTML(qw422016 *qt422016.Writer, title, body string, u *user.User,
|
|||||||
}
|
}
|
||||||
//line views/stuff.qtpl:55
|
//line views/stuff.qtpl:55
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
<li class="top-bar__section top-bar__section_highlights top-bar__section_hidden-on-mobile">
|
<li class="top-bar__section top-bar__section_highlights">
|
||||||
<ul class="top-bar__highlights">
|
<ul class="top-bar__highlights">
|
||||||
`)
|
`)
|
||||||
//line views/stuff.qtpl:58
|
//line views/stuff.qtpl:58
|
||||||
|
Loading…
Reference in New Issue
Block a user