-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnavbar.html
149 lines (146 loc) · 6.18 KB
/
navbar.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<!--
@/navbar.html
Contains the html for the navbar found on all/most pages
written for the SQLiteGui.
-->
<!-- navbar -->
<nav class="navbar navbar-expand-sm navbar-dark bg-dark py-0">
<div class="container-fluid">
<a class="navbar-brand">
<img src='./logo.svg' height='50' width='50' />
</a>
<button class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent">
</button>
<!-- And here's the navbar stuff -->
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" href="#">Home</a>
</li>
<li class="nav-item dropdown">
<b class="nav-link"
role='button'
id='config_operations'
data-bs-toggle='dropdown'>
<span id='cruise_id'>
CruiseID
<span class='position-absolute top-10 start-75
translate-middle badge rounded-pill
bg-warning d-none'
id='stale_span'>
Stale
</span>
</span>
</b>
<ul class='dropdown-menu' id='cruiseid_dropdown'>
<li>
<a class='dropdown-item'
href="#"
id='reload_config_link'>Reload Definition</a>
</li>
<li>
<a class='dropdown-item'
href='LoadConfig.html'
id='LoadConfig_link'
target='_new'>Load New Cruise Def</a>
</li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle"
href="#"
id="navbarDropdown"
role="button"
data-bs-toggle="dropdown">Links
</a>
<ul class="dropdown-menu" id='links_dropdown'>
<li>
<a class="dropdown-item"
href="/display/"
target="_new">Displays</a>
</li>
<li>
<a class="dropdown-item"
href="/docs/"
target="_new">Docs</a>
</li>
</ul>
</li>
<!-- Theme selector. There has to be a better way... -->
<!-- maybe an options element? -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle"
href="#"
id="theme_dropdown"
role="button"
data-bs-toggle="dropdown">Themes
</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="#" onclick="Theme.change('cerulean');">Cerulean</a></li>
<li><a class="dropdown-item" href="#" onclick="Theme.change('cosmo');">Cosmo</a></li>
<li><a class="dropdown-item" href="#" onclick="Theme.change('cyborg');">Cyborg</a></li>
<li><a class="dropdown-item" href="#" onclick="Theme.change('darkly');">Darkly</a></li>
<li><a class="dropdown-item" href="#" onclick="Theme.change('journal');">Journal</a></li>
<li><a class="dropdown-item" href="#" onclick="Theme.change('materia');">Materia</a></li>
<li><a class="dropdown-item" href="#" onclick="Theme.change('sandstone');">Sandstone</a></li>
<li><a class="dropdown-item" href="#" onclick="Theme.change('simplex');">Simplex</a></li>
<li><a class="dropdown-item" href="#" onclick="Theme.change('sketchy');">Sketchy</a></li>
<li><a class="dropdown-item" href="#" onclick="Theme.change('slate');">Slate</a></li>
<li><a class="dropdown-item" href="#" onclick="Theme.change('spacelab');">Spacelab</a></li>
<li><a class="dropdown-item" href="#" onclick="Theme.change('superhero');">Superhero</a></li>
</ul>
</li>
<!-- End theme selector -->
</ul>
<div class='btn-group dropdown'>
<!-- Bootstrap bug? onload function never gets called -->
<button type = 'button'
id = 'login_button'
class = 'btn btn-outline-primary'
data-bs-toggle = 'dropdown'>
</button>
<!-- style=transform:translate is obviously just a hack. -->
<div class='dropdown-menu dropdown-menu'
style='transform:translateX(-120px);'>
<form class='m-3'
id='login_form'
method=POST
action='/cgi-bin/Auth.cgi'
onsubmit='LoginButton.pressed(event, this)'>
<div class='form-group'>
<input type='text' class='form-control'
id='fm1'
name='username'
autocomplete='username'
placeholder='Username'>
</div>
<div class='form-group'>
<input type='password'
class='form-control'
id='fm2'
name='password'
autocomplete='current-password'
placeholder='Password'>
</div>
<div>
<input type='hidden'
id='login_action'
name='login_action'
value='login'>
</div>
<div class='form-group py-2 d-flex justify-content-center'>
<button type='submit'
class='btn btn-primary'
id='login_submit_button'>
Log In
</button>
</div>
</form>
</div>
</div>
</div>
</div>
</nav> <!-- end navbar -->