Responsive menu
This commit is contained in:
@@ -1,7 +1,18 @@
|
||||
{{define "menu"}}
|
||||
<div class="highlight_light border-top border-bottom menu">
|
||||
<a href="/">Home</a> ~
|
||||
<a href="/history">My Files</a> ~
|
||||
<div id="navigation" class="highlight_light border-top border-bottom navigation">
|
||||
<a href="/">Home</a>
|
||||
<a href="/history">My Files</a>
|
||||
<a href="/api">API Documentation</a>
|
||||
<a href="javascript:void(0);" class="icon" onclick="expandNavigation()">☰</a>
|
||||
<script>
|
||||
function expandNavigation() {
|
||||
var x = document.getElementById("navigation");
|
||||
if (!x.className.includes("responsive")) {
|
||||
x.className += " responsive";
|
||||
} else {
|
||||
x.className = x.className.replace(" responsive", "");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
{{end}}
|
@@ -8,7 +8,6 @@
|
||||
<link rel="stylesheet" href="/global.css"/>
|
||||
<link rel="stylesheet" href="/res/style/viewer.css"/>
|
||||
<link rel="stylesheet" href="/res/style/layout.css"/>
|
||||
<link rel="stylesheet" href="/res/style/season.css"/>
|
||||
<link rel="stylesheet" href="/res/style/paste.css"/>
|
||||
<link href='https://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet' type='text/css'/>
|
||||
<link rel="shortcut icon" href="/res/img/tray32.png"/>
|
||||
|
Reference in New Issue
Block a user