summaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
Diffstat (limited to '_includes')
-rw-r--r--_includes/navigator.html13
1 files changed, 12 insertions, 1 deletions
diff --git a/_includes/navigator.html b/_includes/navigator.html
index 7f9f81c..88bf759 100644
--- a/_includes/navigator.html
+++ b/_includes/navigator.html
@@ -1,5 +1,5 @@
<div id="navigation">
- <ul class="navbar">
+ <ul class="navbar" id="myTopnav">
<li class="nav logo">Silicon Linux</li>
<li class="nav" {% if page.url == "/" %}style="background-color: #1f8e42;"{% endif %}><a class="nav" href="/">HOME</a></li>
<li class="nav" {% if page.url == "/download.html" %}style="background-color: #1f8e42;"{% endif %}><a class="nav"href="/download.html">DOWNLOAD</a></li>
@@ -11,3 +11,14 @@
<i class="fa fa-bars"></i>
</ul>
</div>
+
+<script>
+function myFunction() {
+ var x = document.getElementById("myTopnav");
+ if (x.className === "nav") {
+ x.className += " responsive";
+ } else {
+ x.className = "nav";
+ }
+}
+</script> \ No newline at end of file