diff options
| author | Nayab W <42422512+nayabw@users.noreply.github.com> | 2018-11-03 16:13:11 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-03 16:13:11 -0500 |
| commit | ba2dc0b99108dcbf11f152f97cbcae8965a5baa8 (patch) | |
| tree | 7a0db59842d0e85d254e665940f51f65e5dce4cf /_includes | |
| parent | 160a4e0b6fe44aede1ccba6b154218e22fb7c89c (diff) | |
| download | silicon-linux-ba2dc0b99108dcbf11f152f97cbcae8965a5baa8.tar.gz silicon-linux-ba2dc0b99108dcbf11f152f97cbcae8965a5baa8.tar.bz2 silicon-linux-ba2dc0b99108dcbf11f152f97cbcae8965a5baa8.zip | |
:thonk: 2
Diffstat (limited to '_includes')
| -rw-r--r-- | _includes/navigator.html | 13 |
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 |
