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
b933d733
Commit
b933d733
authored
3 years ago
by
Patrick
Browse files
Options
Download
Email Patches
Plain Diff
update if not all of the questions are answered
parent
3897bf8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vcm/js/soundquiz.js
+73
-41
vcm/js/soundquiz.js
with
73 additions
and
41 deletions
+73
-41
vcm/js/soundquiz.js
+
73
-
41
View file @
b933d733
...
@@ -272,88 +272,120 @@ function check_Bau(location) {
...
@@ -272,88 +272,120 @@ function check_Bau(location) {
document
.
getElementById
(
"
solution_rosenstein
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation/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
"
){
}
else
if
(
location
==
"
all
"
){
var
points_bau
=
turf
.
points
([
if
(
point_baustelle
)
{
var
points_bau
=
turf
.
points
([
[
point_baustelle
.
lon
,
point_baustelle
.
lat
]
[
point_baustelle
.
lon
,
point_baustelle
.
lat
]
]);
]);
ptsWithin_bau
=
turf
.
pointsWithinPolygon
(
points_bau
,
poly_baustelle
);
ptsWithin_bau
=
turf
.
pointsWithinPolygon
(
points_bau
,
poly_baustelle
);
var
points_prag
=
turf
.
points
([
[
point_pragfriedhof
.
lon
,
point_pragfriedhof
.
lat
]
]);
ptsWithin_prag
=
turf
.
pointsWithinPolygon
(
points_prag
,
poly_Pragfriedhof
);
var
points_markt
=
turf
.
points
([
[
point_marktplatz
.
lon
,
point_marktplatz
.
lat
]
]);
ptsWithin_markt
=
turf
.
pointsWithinPolygon
(
points_markt
,
poly_Marktplatz
);
var
points_skaten
=
turf
.
points
([
[
point_skaten
.
lon
,
point_skaten
.
lat
]
]);
ptsWithin_skaten
=
turf
.
pointsWithinPolygon
(
points_skaten
,
poly_Skaten
);
var
points_kirche
=
turf
.
points
([
[
point_kirche
.
lon
,
point_kirche
.
lat
]
]);
ptsWithin_kirche
=
turf
.
pointsWithinPolygon
(
points_kirche
,
poly_kirche
);
var
points_meer
=
turf
.
points
([
[
point_meerschweinchen
.
lon
,
point_meerschweinchen
.
lat
]
]);
ptsWithin_meerschweinchen
=
turf
.
pointsWithinPolygon
(
points_meer
,
poly_Meerschweinchen
);
var
points_ufa
=
turf
.
points
([
[
point_ufapalast
.
lon
,
point_ufapalast
.
lat
]
]);
ptsWithin_ufa
=
turf
.
pointsWithinPolygon
(
points_ufa
,
poly_UFA_Palast
);
var
points_rosen
=
turf
.
points
([
[
point_rosensteinpark
.
lon
,
point_rosensteinpark
.
lat
]
]);
ptsWithin_rosenstein
=
turf
.
pointsWithinPolygon
(
points_rosen
,
poly_Rosensteinpark
);
if
(
ptsWithin_bau
.
features
.
length
==
0
){
if
(
ptsWithin_bau
.
features
.
length
==
0
){
document
.
getElementById
(
"
solution_bau
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation/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_bau
.
features
.
length
==
1
){
}
else
if
(
ptsWithin_bau
.
features
.
length
==
1
){
document
.
getElementById
(
"
solution_bau
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation/datasource-data/NoiseData/Icons_soundquiz/icon_right.png
"
;
document
.
getElementById
(
"
solution_bau
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation/datasource-data/NoiseData/Icons_soundquiz/icon_right.png
"
;
}
}
if
(
ptsWithin_prag
.
features
.
length
==
0
){
document
.
getElementById
(
"
solution_prag
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation/datasource-data/NoiseData/Icons_soundquiz/icon_wrong.png
"
;
}
}
else
if
(
ptsWithin_prag
.
features
.
length
==
1
){
document
.
getElementById
(
"
solution_prag
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation/datasource-data/NoiseData/Icons_soundquiz/icon_right.png
"
;
if
(
point_pragfriedhof
)
{
var
points_prag
=
turf
.
points
([
[
point_pragfriedhof
.
lon
,
point_pragfriedhof
.
lat
]
]);
ptsWithin_prag
=
turf
.
pointsWithinPolygon
(
points_prag
,
poly_Pragfriedhof
);
if
(
ptsWithin_prag
.
features
.
length
==
0
){
document
.
getElementById
(
"
solution_prag
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation/datasource-data/NoiseData/Icons_soundquiz/icon_wrong.png
"
;
}
else
if
(
ptsWithin_prag
.
features
.
length
==
1
){
document
.
getElementById
(
"
solution_prag
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation/datasource-data/NoiseData/Icons_soundquiz/icon_right.png
"
;
}
}
}
if
(
point_marktplatz
)
{
var
points_markt
=
turf
.
points
([
[
point_marktplatz
.
lon
,
point_marktplatz
.
lat
]
]);
ptsWithin_markt
=
turf
.
pointsWithinPolygon
(
points_markt
,
poly_Marktplatz
);
if
(
ptsWithin_markt
.
features
.
length
==
0
){
if
(
ptsWithin_markt
.
features
.
length
==
0
){
document
.
getElementById
(
"
solution_markt
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation/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_markt
.
features
.
length
==
1
){
}
else
if
(
ptsWithin_markt
.
features
.
length
==
1
){
document
.
getElementById
(
"
solution_markt
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation/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
"
;
}
}
}
if
(
point_skaten
)
{
var
points_skaten
=
turf
.
points
([
[
point_skaten
.
lon
,
point_skaten
.
lat
]
]);
ptsWithin_skaten
=
turf
.
pointsWithinPolygon
(
points_skaten
,
poly_Skaten
);
if
(
ptsWithin_skaten
.
features
.
length
==
0
){
if
(
ptsWithin_skaten
.
features
.
length
==
0
){
document
.
getElementById
(
"
solution_skaten
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation/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_skaten
.
features
.
length
==
1
){
}
else
if
(
ptsWithin_skaten
.
features
.
length
==
1
){
document
.
getElementById
(
"
solution_skaten
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation/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
"
;
}
}
}
if
(
points_kirche
)
{
var
points_kirche
=
turf
.
points
([
[
point_kirche
.
lon
,
point_kirche
.
lat
]
]);
ptsWithin_kirche
=
turf
.
pointsWithinPolygon
(
points_kirche
,
poly_kirche
);
if
(
ptsWithin_kirche
.
features
.
length
==
0
){
if
(
ptsWithin_kirche
.
features
.
length
==
0
){
document
.
getElementById
(
"
solution_kirche
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation/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_kirche
.
features
.
length
==
1
){
}
else
if
(
ptsWithin_kirche
.
features
.
length
==
1
){
document
.
getElementById
(
"
solution_kirche
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation/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
"
;
}
}
}
if
(
points_meer
)
{
var
points_meer
=
turf
.
points
([
[
point_meerschweinchen
.
lon
,
point_meerschweinchen
.
lat
]
]);
ptsWithin_meerschweinchen
=
turf
.
pointsWithinPolygon
(
points_meer
,
poly_Meerschweinchen
);
if
(
ptsWithin_meerschweinchen
.
features
.
length
==
0
){
if
(
ptsWithin_meerschweinchen
.
features
.
length
==
0
){
document
.
getElementById
(
"
solution_meerschweinchen
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation/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_meerschweinchen
.
features
.
length
==
1
){
}
else
if
(
ptsWithin_meerschweinchen
.
features
.
length
==
1
){
document
.
getElementById
(
"
solution_meerschweinchen
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation/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
"
;
}
}
}
if
(
points_ufa
)
{
var
points_ufa
=
turf
.
points
([
[
point_ufapalast
.
lon
,
point_ufapalast
.
lat
]
]);
ptsWithin_ufa
=
turf
.
pointsWithinPolygon
(
points_ufa
,
poly_UFA_Palast
);
if
(
ptsWithin_ufa
.
features
.
length
==
0
){
if
(
ptsWithin_ufa
.
features
.
length
==
0
){
document
.
getElementById
(
"
solution_ufapalast
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation/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_ufa
.
features
.
length
==
1
){
}
else
if
(
ptsWithin_ufa
.
features
.
length
==
1
){
document
.
getElementById
(
"
solution_ufapalast
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation/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
"
;
}
}
}
if
(
points_rosen
)
{
var
points_rosen
=
turf
.
points
([
[
point_rosensteinpark
.
lon
,
point_rosensteinpark
.
lat
]
]);
ptsWithin_rosenstein
=
turf
.
pointsWithinPolygon
(
points_rosen
,
poly_Rosensteinpark
);
if
(
ptsWithin_rosenstein
.
features
.
length
==
0
){
if
(
ptsWithin_rosenstein
.
features
.
length
==
0
){
document
.
getElementById
(
"
solution_rosenstein
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation/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_rosenstein
.
features
.
length
==
1
){
}
else
if
(
ptsWithin_rosenstein
.
features
.
length
==
1
){
document
.
getElementById
(
"
solution_rosenstein
"
).
src
=
"
https://transfer.hft-stuttgart.de/partizipation/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
"
;
}
}
}
...
...
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