Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
eDisplay
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Green Science
eDisplay
Commits
07de9170
Commit
07de9170
authored
5 years ago
by
Lillian Gray
Browse files
Options
Downloads
Patches
Plain Diff
Handle clicking of options in menu #13
parent
99bba8f9
Branches
Branches containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
css/main.css
+5
-1
5 additions, 1 deletion
css/main.css
js/main.js
+16
-0
16 additions, 0 deletions
js/main.js
with
21 additions
and
1 deletion
css/main.css
+
5
−
1
View file @
07de9170
...
...
@@ -79,7 +79,7 @@ header a, header button {
}
#pageTitle
:hover
,
#pageTitle
:active
{
color
:
#
000
;
color
:
#
6F1F2E
;
}
.aboutButton
{
...
...
@@ -308,6 +308,10 @@ header a, header button {
margin
:
1px
0px
;
}
.selectOption.active
{
background-color
:
#CF96A0
;
}
#siteOptions
{
width
:
80%
;
margin
:
20px
auto
;
...
...
This diff is collapsed.
Click to expand it.
js/main.js
+
16
−
0
View file @
07de9170
...
...
@@ -256,6 +256,22 @@ document.addEventListener("click", function(event) {
hideSeriesOptions
()
});
//toggles checkbox and highlight for options in series menus
$
(
window
).
on
(
'
load
'
,
function
()
{
document
.
querySelectorAll
(
'
.selectOption
'
).
forEach
(
el
=>
{
el
.
addEventListener
(
"
click
"
,
function
(
event
)
{
//toggle highlight
var
active
=
this
.
classList
.
toggle
(
'
active
'
)
//toggle checkbox
checkbox
=
this
.
firstElementChild
if
(
active
)
{
checkbox
.
checked
=
true
;
}
else
{
checkbox
.
checked
=
false
;
}
})
})})
//if site was loaded using a permalink, modifies startDate, endDate, and whichBuildings
function
parsePermalink
(){
permalinked
=
URLComponents
.
length
==
2
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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