Commit d4b0d211 authored by Isabella Skořepová's avatar Isabella Skořepová

Reorder menu

+ fix keyboard arrow control
parent 143cfb25
Pipeline #539 canceled with stages
in 22 seconds
......@@ -55,15 +55,15 @@
</a>
</div>
<div class="toplinks">
<a class="hide-on-small-only left" id="o-nas">
O nás
</a>
<a class="hide-on-small-only left" id="aktuality">
Aktuality
</a>
<a class="hide-on-small-only left" id="clanky">
Články
</a>
<a class="hide-on-small-only left" id="o-nas">
O nás
</a>
<a class="search-icon left">
{{ svgs.search("#fff",false) }}
</a>
......@@ -109,15 +109,6 @@
</script>
<!-- Side nav -->
<ul id="nav-mobile" class="side-nav collapsible">
<li class="no-padding">
<a class="collapsible-header waves-effect waves-teal">O nás</a>
<div class="collapsible-body"><ul>
<li><a href="{{ config.baseurl }}/clanek/o-radioklubu">O Radioklubu</a></li>
<li><a href="{{ config.baseurl }}/clanek/kontakt">Kontakt</a></li>
<li><a href="{{ config.baseurl }}/clanek/krouzek-mladeze">Kroužek mládeže</a></li>
<li><a href="{{ config.baseurl }}/clanek/pro-cleny-rk">Pro členy RK</a></li>
</ul></div>
</li>
<li class="no-padding">
<a class="collapsible-header waves-effect waves-teal">Aktuality</a>
<div class="collapsible-body"><ul>
......@@ -138,6 +129,15 @@
<li><a href="{{ config.baseurl }}/tag/zajimavosti">Zajímavosti</a></li>
</ul></div>
</li>
<li class="no-padding">
<a class="collapsible-header waves-effect waves-teal">O nás</a>
<div class="collapsible-body"><ul>
<li><a href="{{ config.baseurl }}/clanek/o-radioklubu">O Radioklubu</a></li>
<li><a href="{{ config.baseurl }}/clanek/kontakt">Kontakt</a></li>
<li><a href="{{ config.baseurl }}/clanek/krouzek-mladeze">Kroužek mládeže</a></li>
<li><a href="{{ config.baseurl }}/clanek/pro-cleny-rk">Pro členy RK</a></li>
</ul></div>
</li>
</ul>
<!-- Lower nav -->
......
......@@ -87,8 +87,12 @@
$(document).ready(onresize);
$(document).keyup(function(e) {
if($("#search-overlay").hasClass("shown")) return;
{% if metadata.nexturl %}
if(e.key == "ArrowRight") window.location = "{{config.baseurl}}/{{metadata.nexturl}}";
{% endif %}
{% if metadata.prevurl %}
if(e.key == "ArrowLeft") window.location = "{{config.baseurl}}/{{metadata.prevurl}}";
{% endif %}
});
})(jQuery);
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment