Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Alfakhori
M4labplatform
Commits
c0558406
Commit
c0558406
authored
3 years ago
by
Patrick
Browse files
Options
Download
Email Patches
Plain Diff
update path part 2
parent
76347daf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vcm/js/soundquiz.js
+16
-16
vcm/js/soundquiz.js
with
16 additions
and
16 deletions
+16
-16
vcm/js/soundquiz.js
+
16
-
16
View file @
c0558406
...
...
@@ -190,9 +190,9 @@ function check_Bau(location) {
console
.
log
(
ptsWithin
);
if
(
ptsWithin
.
features
.
length
==
0
){
document
.
getElementById
(
"
solution_bau
"
).
src
=
"
..
/datasource-data/NoiseData/Icons_soundquiz/icon_wrong.png
"
;
document
.
getElementById
(
"
solution_bau
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation
/datasource-data/NoiseData/Icons_soundquiz/icon_wrong.png
"
;
}
else
if
(
ptsWithin
.
features
.
length
==
1
){
document
.
getElementById
(
"
solution_bau
"
).
src
=
"
..
/datasource-data/NoiseData/Icons_soundquiz/icon_right.png
"
;
document
.
getElementById
(
"
solution_bau
"
).
src
=
"
/datasource-data/NoiseData/Icons_soundquiz/icon_right.png
"
;
}
}
else
if
(
location
==
"
quiz_pragfriedhof
"
){
var
points
=
turf
.
points
([
...
...
@@ -201,9 +201,9 @@ function check_Bau(location) {
ptsWithin
=
turf
.
pointsWithinPolygon
(
points
,
poly_Pragfriedhof
);
if
(
ptsWithin
.
features
.
length
==
0
){
document
.
getElementById
(
"
solution_prag
"
).
src
=
"
..
/datasource-data/NoiseData/Icons_soundquiz/icon_wrong.png
"
;
document
.
getElementById
(
"
solution_prag
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation
/datasource-data/NoiseData/Icons_soundquiz/icon_wrong.png
"
;
}
else
if
(
ptsWithin
.
features
.
length
==
1
){
document
.
getElementById
(
"
solution_prag
"
).
src
=
"
..
/datasource-data/NoiseData/Icons_soundquiz/icon_right.png
"
;
document
.
getElementById
(
"
solution_prag
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation
/datasource-data/NoiseData/Icons_soundquiz/icon_right.png
"
;
}
}
else
if
(
location
==
"
quiz_marktplatz
"
){
var
points
=
turf
.
points
([
...
...
@@ -212,9 +212,9 @@ function check_Bau(location) {
ptsWithin
=
turf
.
pointsWithinPolygon
(
points
,
poly_Marktplatz
);
if
(
ptsWithin
.
features
.
length
==
0
){
document
.
getElementById
(
"
solution_markt
"
).
src
=
"
..
/datasource-data/NoiseData/Icons_soundquiz/icon_wrong.png
"
;
document
.
getElementById
(
"
solution_markt
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation
/datasource-data/NoiseData/Icons_soundquiz/icon_wrong.png
"
;
}
else
if
(
ptsWithin
.
features
.
length
==
1
){
document
.
getElementById
(
"
solution_markt
"
).
src
=
"
..
/datasource-data/NoiseData/Icons_soundquiz/icon_right.png
"
;
document
.
getElementById
(
"
solution_markt
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation
/datasource-data/NoiseData/Icons_soundquiz/icon_right.png
"
;
}
}
else
if
(
location
==
"
quiz_skaten
"
){
var
points
=
turf
.
points
([
...
...
@@ -223,9 +223,9 @@ function check_Bau(location) {
ptsWithin
=
turf
.
pointsWithinPolygon
(
points
,
poly_Skaten
);
if
(
ptsWithin
.
features
.
length
==
0
){
document
.
getElementById
(
"
solution_skaten
"
).
src
=
"
..
/datasource-data/NoiseData/Icons_soundquiz/icon_wrong.png
"
;
document
.
getElementById
(
"
solution_skaten
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation
/datasource-data/NoiseData/Icons_soundquiz/icon_wrong.png
"
;
}
else
if
(
ptsWithin
.
features
.
length
==
1
){
document
.
getElementById
(
"
solution_skaten
"
).
src
=
"
..
/datasource-data/NoiseData/Icons_soundquiz/icon_right.png
"
;
document
.
getElementById
(
"
solution_skaten
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation
/datasource-data/NoiseData/Icons_soundquiz/icon_right.png
"
;
}
}
else
if
(
location
==
"
quiz_kirche
"
){
var
points
=
turf
.
points
([
...
...
@@ -234,9 +234,9 @@ function check_Bau(location) {
ptsWithin
=
turf
.
pointsWithinPolygon
(
points
,
poly_kirche
);
if
(
ptsWithin
.
features
.
length
==
0
){
document
.
getElementById
(
"
solution_kirche
"
).
src
=
"
..
/datasource-data/NoiseData/Icons_soundquiz/icon_wrong.png
"
;
document
.
getElementById
(
"
solution_kirche
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation
/datasource-data/NoiseData/Icons_soundquiz/icon_wrong.png
"
;
}
else
if
(
ptsWithin
.
features
.
length
==
1
){
document
.
getElementById
(
"
solution_kirche
"
).
src
=
"
..
/datasource-data/NoiseData/Icons_soundquiz/icon_right.png
"
;
document
.
getElementById
(
"
solution_kirche
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation
/datasource-data/NoiseData/Icons_soundquiz/icon_right.png
"
;
}
}
else
if
(
location
==
"
quiz_meerschweinchen
"
){
var
points
=
turf
.
points
([
...
...
@@ -245,9 +245,9 @@ function check_Bau(location) {
ptsWithin
=
turf
.
pointsWithinPolygon
(
points
,
poly_Meerschweinchen
);
if
(
ptsWithin
.
features
.
length
==
0
){
document
.
getElementById
(
"
solution_meerschweinchen
"
).
src
=
"
..
/datasource-data/NoiseData/Icons_soundquiz/icon_wrong.png
"
;
document
.
getElementById
(
"
solution_meerschweinchen
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation
/datasource-data/NoiseData/Icons_soundquiz/icon_wrong.png
"
;
}
else
if
(
ptsWithin
.
features
.
length
==
1
){
document
.
getElementById
(
"
solution_meerschweinchen
"
).
src
=
"
..
/datasource-data/NoiseData/Icons_soundquiz/icon_right.png
"
;
document
.
getElementById
(
"
solution_meerschweinchen
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation
/datasource-data/NoiseData/Icons_soundquiz/icon_right.png
"
;
}
}
else
if
(
location
==
"
quiz_ufapalast
"
){
var
points
=
turf
.
points
([
...
...
@@ -256,9 +256,9 @@ function check_Bau(location) {
ptsWithin
=
turf
.
pointsWithinPolygon
(
points
,
poly_UFA_Palast
);
if
(
ptsWithin
.
features
.
length
==
0
){
document
.
getElementById
(
"
solution_ufapalast
"
).
src
=
"
..
/datasource-data/NoiseData/Icons_soundquiz/icon_wrong.png
"
;
document
.
getElementById
(
"
solution_ufapalast
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation
/datasource-data/NoiseData/Icons_soundquiz/icon_wrong.png
"
;
}
else
if
(
ptsWithin
.
features
.
length
==
1
){
document
.
getElementById
(
"
solution_ufapalast
"
).
src
=
"
..
/datasource-data/NoiseData/Icons_soundquiz/icon_right.png
"
;
document
.
getElementById
(
"
solution_ufapalast
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation
/datasource-data/NoiseData/Icons_soundquiz/icon_right.png
"
;
}
}
else
if
(
location
==
"
quiz_rostensteinpark
"
){
var
points
=
turf
.
points
([
...
...
@@ -267,9 +267,9 @@ function check_Bau(location) {
ptsWithin
=
turf
.
pointsWithinPolygon
(
points
,
poly_Rosensteinpark
);
if
(
ptsWithin
.
features
.
length
==
0
){
document
.
getElementById
(
"
solution_rosenstein
"
).
src
=
"
..
/datasource-data/NoiseData/Icons_soundquiz/icon_wrong.png
"
;
document
.
getElementById
(
"
solution_rosenstein
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation
/datasource-data/NoiseData/Icons_soundquiz/icon_wrong.png
"
;
}
else
if
(
ptsWithin
.
features
.
length
==
1
){
document
.
getElementById
(
"
solution_rosenstein
"
).
src
=
"
..
/datasource-data/NoiseData/Icons_soundquiz/icon_right.png
"
;
document
.
getElementById
(
"
solution_rosenstein
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation
/datasource-data/NoiseData/Icons_soundquiz/icon_right.png
"
;
}
}
else
if
(
location
==
"
all
"
){
var
points_bau
=
turf
.
points
([
...
...
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