Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eric Duminil
RegionChooser
Commits
c0816b26
Commit
c0816b26
authored
2 years ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
Checking checkboxes
parent
b6d2a5d8
master
develop
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js
+11
-1
...stadt/regionchooser/website/script/simstadt_openlayers.js
with
11 additions
and
1 deletion
+11
-1
src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js
+
11
-
1
View file @
c0816b26
...
...
@@ -364,7 +364,17 @@ var regionChooser = (function(){
publicScope
.
clickety_click
=
function
()
{
console
.
log
(
"
You clicked pretty well
"
);
document
.
querySelectorAll
(
"
input.select_citygml
"
).
forEach
(
x
=>
console
.
log
(
x
));
var
checkboxes
=
document
.
querySelectorAll
(
"
input.select_citygml
"
);
if
(
checkboxes
.
length
===
0
){
//FIXME: Wrong. There are at least one checkbox.
console
.
log
(
"
You should select at least one citygml, though.
"
);
}
else
{
checkboxes
.
forEach
(
x
=>
{
if
(
x
.
checked
){
console
.
log
(
"
Nice! You checked Citygml
"
+
x
.
id
)
}
});
}
}
focusOnMap
();
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets