Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tsinghua
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zhefu Li
Tsinghua
Commits
0ff7d8c0
Commit
0ff7d8c0
authored
8 months ago
by
HouTeng Chan
Browse files
Options
Downloads
Patches
Plain Diff
Update menu.html
parent
6562de0e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wiki/menu.html
+28
-26
28 additions, 26 deletions
wiki/menu.html
with
28 additions
and
26 deletions
wiki/menu.html
+
28
−
26
View file @
0ff7d8c0
...
...
@@ -3,7 +3,7 @@
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
Updated Navigation Bar with
Hover Effect
</title>
<title>
Updated Navigation Bar with
Centered Items and New Links
</title>
<style>
body
{
margin
:
0
;
...
...
@@ -19,6 +19,8 @@
z-index
:
1000
;
height
:
50px
;
border-radius
:
20px
;
display
:
flex
;
justify-content
:
center
;
}
.logo-container
{
position
:
absolute
;
...
...
@@ -27,22 +29,21 @@
z-index
:
1030
;
}
.navbar-logo
{
height
:
1
0
0px
;
border-radius
:
2
0px
;
height
:
1
8
0px
;
border-radius
:
3
0px
;
}
.my-navbar
{
list-style-type
:
none
;
padding
:
0
;
margin
:
0
;
display
:
flex
;
justify-content
:
flex-start
;
justify-content
:
center
;
align-items
:
center
;
height
:
100%
;
padding-left
:
120px
;
}
.my-navbar
>
li
{
position
:
relative
;
margin
-right
:
2
0px
;
margin
:
0
1
0px
;
}
.my-navbar
>
li
>
a
{
color
:
black
;
...
...
@@ -85,51 +86,52 @@
<img
alt=
"Brand"
class=
"navbar-logo"
src=
"https://static.igem.wiki/teams/5187/art/logo.png"
>
</div>
<ul
class=
"my-navbar"
id=
"my-navbar"
>
<li><a
href=
"{{ url_for('home') }}"
>
Home
</a></li>
<li
onmouseover=
"over(this)"
onmouseleave=
"leave(this)"
>
<a
href=
"#"
style=
"cursor:default;"
>
Project
</a>
<ul
class=
"son"
>
<li><a
href=
"{{ url_for('pages', page='description') }}"
>
Description
</a></li>
<li><a
href=
"{{ url_for('pages', page='contribution') }}"
>
Contribution
</a></li>
<li><a
href=
"{{ url_for('pages', page='engineering') }}"
>
Engineering
</a></li>
<li><a
href=
"{{ url_for('pages', page='safety') }}"
>
Safety
</a></li>
</ul>
</li>
<li
onmouseover=
"over(this)"
onmouseleave=
"leave(this)"
>
<a
href=
"#"
style=
"cursor:default;"
>
Wetlab
</a>
<ul
class=
"son"
>
<li><a
href=
"{{ url_for('pages', page='experiments') }}"
>
Experiments
</a></li>
<li><a
href=
"{{ url_for('pages', page='notebook') }}"
>
Notebook
</a></li>
<li><a
href=
"{{ url_for('pages', page='results') }}"
>
Results
</a></li>
<li><a
href=
"{{ url_for('pages', page='measurement') }}"
>
Measurement
</a></li>
</ul>
</li>
<li
onmouseover=
"over(this)"
onmouseleave=
"leave(this)"
>
<a
href=
"#"
style=
"cursor:default;"
>
Team
</a>
<a
href=
"#"
style=
"cursor:default;"
>
Drylab
</a>
<ul
class=
"son"
>
<li><a
href=
"{{ url_for('pages', page='team') }}"
>
Team Members
</a></li>
<li><a
href=
"{{ url_for('pages', page='attributions') }}"
>
Attributions
</a></li>
<li><a
href=
"{{ url_for('pages', page='model') }}"
>
Model
</a></li>
<li><a
href=
"{{ url_for('pages', page='hardware') }}"
>
Hardware
</a></li>
<li><a
href=
"{{ url_for('pages', page='software') }}"
>
Software
</a></li>
</ul>
</li>
<li
onmouseover=
"over(this)"
onmouseleave=
"leave(this)"
>
<a
href=
"{{ url_for('pages', page='safety') }}"
>
Safety
</a>
</li>
<li
onmouseover=
"over(this)"
onmouseleave=
"leave(this)"
>
<a
href=
"{{ url_for('pages', page='human-practices') }}"
>
Human Practices
</a>
</li>
<li
onmouseover=
"over(this)"
onmouseleave=
"leave(this)"
>
<a
href=
"#"
style=
"cursor:default;"
>
Awards
</a>
<a
href=
"#"
style=
"cursor:default;"
>
Human Practices
</a>
<ul
class=
"son"
>
<li><a
href=
"{{ url_for('pages', page='education') }}"
>
Education
</a></li>
<li><a
href=
"{{ url_for('pages', page='entrepreneurship') }}"
>
Entrepreneurship
</a></li>
<li><a
href=
"{{ url_for('pages', page='hardware') }}"
>
Hardware
</a></li>
<li><a
href=
"{{ url_for('pages', page='inclusivity') }}"
>
Inclusivity
</a></li>
<li><a
href=
"{{ url_for('pages', page='measurement') }}"
>
Measurement
</a></li>
<li><a
href=
"{{ url_for('pages', page='model') }}"
>
Model
</a></li>
<li><a
href=
"{{ url_for('pages', page='plant') }}"
>
Plant
</a></li>
<li><a
href=
"{{ url_for('pages', page='software') }}"
>
Software
</a></li>
<li><a
href=
"{{ url_for('pages', page='sustainable') }}"
>
Sustainable
</a></li>
</ul>
</li>
<li
onmouseover=
"over(this)"
onmouseleave=
"leave(this)"
>
<a
href=
"#"
style=
"cursor:default;"
>
Team
</a>
<ul
class=
"son"
>
<li><a
href=
"{{ url_for('pages', page='team') }}"
>
Roster
</a></li>
<li><a
href=
"{{ url_for('pages', page='attributions') }}"
>
Attributions
</a></li>
</ul>
</li>
</ul>
</nav>
<script>
var
navbox
=
document
.
getElementById
(
"
navbox
"
);
let
navbar
=
document
.
getElementById
(
"
my-navbar
"
);
let
items
=
navbar
.
children
;
function
over
(
el
){
el
.
children
[
0
].
classList
.
add
(
'
active
'
);
if
(
el
.
children
.
length
>
1
){
...
...
@@ -156,4 +158,4 @@
}
</script>
</body>
</html>
</html>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment