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
83b2e0f0
Commit
83b2e0f0
authored
Sep 22, 2020
by
Porter Libby
Browse files
small fixes 2
parent
a1ee423c
Changes
2
Hide whitespace changes
Inline
Side-by-side
public/js/data.js
View file @
83b2e0f0
...
...
@@ -473,7 +473,7 @@ function renderTrips(tripnames, tripids, r_count, s_count){
trips_ls
.
id
=
'
trips-ls
'
;
for
(
x
=
0
;
x
<
tripnames
.
length
;
x
++
){
var
elem
=
createRadioElementTrips
(
(
x
%
2
),
'
trips
'
,
[
r_count
[
x
],
s_count
[
x
]],
tripnames
[
x
],
tripids
[
x
]);
// util function
var
elem
=
createRadioElementTrips
(
'
trips
'
,
[
r_count
[
x
],
s_count
[
x
]],
tripnames
[
x
],
tripids
[
x
]);
// util function
trips_ls
.
innerHTML
+=
elem
;
}
container
.
append
(
trips_ls
);
...
...
public/js/util.js
View file @
83b2e0f0
...
...
@@ -71,7 +71,7 @@ function createRadioElement(name, id, label, f, count=999){
}
// take information from data.js and write it into html
function
createRadioElementTrips
(
mode
,
name
,
count
,
label
,
id
)
{
function
createRadioElementTrips
(
name
,
count
,
label
,
id
)
{
var
f
=
"
getSites
"
;
return
createRadioElement
(
name
,
id
,
label
,
f
,
count
[
query_type
]);
}
...
...
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