Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Field Science
datavis
Commits
8b0a10a6
Commit
8b0a10a6
authored
Nov 23, 2021
by
Porter Libby
Browse files
fix downstream resetting
parent
d0822fbf
Changes
2
Hide whitespace changes
Inline
Side-by-side
package.json
View file @
8b0a10a6
{
"name"
:
"datavis"
,
"version"
:
"0.1.
7
"
,
"version"
:
"0.1.
8
"
,
"description"
:
"A tool for visualizing the data collected from the IFS Earlham trip"
,
"main"
:
"datavis.js"
,
"scripts"
:
{
...
...
public/js/data.js
View file @
8b0a10a6
...
...
@@ -55,7 +55,7 @@ function getTrips(){
document
.
getElementById
(
'
data-prompt
'
).
innerHTML
=
"
Pick a trip, site, and sector to see data.
"
}
document
.
getElementById
(
'
trips
'
).
innerHTML
=
placeholderHTML
;
resetElements
([
'
sites
'
,
'
sectors
'
,
'
spots
'
,
'
streamingplatform
'
,
'
streamingdates
'
,
'
streaming
'
,
'
readingplatform
'
,
'
readingdates
'
,
'
reading
'
]);
resetElements
([
'
sites
'
,
'
sectors
'
,
'
spots
'
,
'
streaminghost
'
,
'
streamingplatform
'
,
'
streamingdates
'
,
'
streaming
'
,
'
readingplatform
'
,
'
readingdates
'
,
'
reading
'
]);
document
.
getElementById
(
"
button_permalink
"
).
disabled
=
true
;
document
.
getElementById
(
"
button_csv
"
).
disabled
=
true
;
...
...
@@ -89,7 +89,7 @@ function getSites(trip_id){
document
.
getElementById
(
'
data-prompt
'
).
innerHTML
=
"
Pick a site and sector to see data.
"
}
document
.
getElementById
(
'
sites
'
).
innerHTML
=
placeholderHTML
;
resetElements
([
'
sectors
'
,
'
spots
'
,
'
streamingplatform
'
,
'
streamingdates
'
,
'
streaming
'
,
'
readingplatform
'
,
'
readingdates
'
,
'
reading
'
]);
resetElements
([
'
sectors
'
,
'
spots
'
,
'
streaminghost
'
,
'
streamingplatform
'
,
'
streamingdates
'
,
'
streaming
'
,
'
readingplatform
'
,
'
readingdates
'
,
'
reading
'
]);
document
.
getElementById
(
"
button_permalink
"
).
disabled
=
true
;
document
.
getElementById
(
"
button_csv
"
).
disabled
=
true
;
...
...
@@ -127,7 +127,7 @@ function getSectors(site_id){
document
.
getElementById
(
'
data-prompt
'
).
innerHTML
=
"
Pick a sector to see data.
"
}
document
.
getElementById
(
'
sectors
'
).
innerHTML
=
placeholderHTML
;
resetElements
([
'
spots
'
,
'
streamingplatform
'
,
'
streamingdates
'
,
'
streaming
'
,
'
readingplatform
'
,
'
readingdates
'
,
'
reading
'
]);
resetElements
([
'
spots
'
,
'
streaminghost
'
,
'
streamingplatform
'
,
'
streamingdates
'
,
'
streaming
'
,
'
readingplatform
'
,
'
readingdates
'
,
'
reading
'
]);
document
.
getElementById
(
"
button_permalink
"
).
disabled
=
true
;
document
.
getElementById
(
"
button_csv
"
).
disabled
=
true
;
...
...
@@ -163,7 +163,7 @@ function getSpots(sector_id){
document
.
getElementById
(
'
data-prompt
'
).
innerHTML
=
"
Pick some spots to compare!
"
document
.
getElementById
(
'
spots
'
).
innerHTML
=
placeholderHTML
;
resetElements
([
'
streamingplatform
'
,
'
streamingdates
'
,
'
streaming
'
,
'
readingplatform
'
,
'
readingdates
'
,
'
reading
'
]);
resetElements
([
'
streaminghost
'
,
'
streamingplatform
'
,
'
streamingdates
'
,
'
streaming
'
,
'
readingplatform
'
,
'
readingdates
'
,
'
reading
'
]);
document
.
getElementById
(
'
streamingplatform
'
).
innerHTML
=
""
;
document
.
getElementById
(
'
streaming
'
).
innerHTML
=
""
;
document
.
getElementById
(
'
reading
'
).
innerHTML
=
""
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment