This repository has been archived by the owner on Feb 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from mattkasun/newlayout
Newlayout
- Loading branch information
Showing
7 changed files
with
52 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
{{define "Sidebar"}} | ||
<div id="sidebar" class="w3-sidebar w3-bar-block w3-card w-3-animate-left" style="display:none"> | ||
<button class="w3-bar-item w3-button w3-large w3-hide-large" onclick="document.getElementById('sidebar').style.display='none';">Close ×</button> | ||
<button id="sidebarbuttonAll" class="w3-bar-item w3-button netselection w3-teal" onclick="setNetwork('All');document.getElementById('sidebar').style.display='none';">All Networks</button> | ||
{{ range .Networks }} | ||
<button id="sidebarbutton{{.NetID}}" class="w3-bar-item w3-button netselection" onclick="setNetwork('{{.NetID}}');document.getElementById('sidebar').style.display='none';">{{ .DisplayName }} </button> | ||
{{ end }} | ||
<div class=w3-hide-large> | ||
<div id="sidebar" class="w3-sidebar w3-bar-block w3-card w-3-animate-left w3-hide-large" style="display:none"> | ||
<button class="w3-bar-item w3-button w3-large w3-hide-large" onclick="document.getElementById('sidebar').style.display='none';">Close ×</button> | ||
{{template "SideBarContent" . }} | ||
</div> | ||
</div> | ||
{{end}} | ||
|
||
{{define "SideBarContent"}} | ||
<div class=w3-bar-block> | ||
<button id="sidebarbuttonAll" class="w3-bar-item w3-button netselection w3-teal" onclick="setNetwork('All');document.getElementById('sidebar').style.display='none';">All Networks</button> | ||
{{ range .Networks }} | ||
<button id="sidebarbutton{{.NetID}}" class="w3-bar-item w3-button netselection" onclick="setNetwork('{{.NetID}}');document.getElementById('sidebar').style.display='none';">{{ .DisplayName }} </button> | ||
{{ end }} | ||
</div> | ||
{{end}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters