Commit c0558406 authored by Patrick's avatar Patrick
Browse files

update path part 2

parent 76347daf
...@@ -190,9 +190,9 @@ function check_Bau(location) { ...@@ -190,9 +190,9 @@ function check_Bau(location) {
console.log(ptsWithin); console.log(ptsWithin);
if (ptsWithin.features.length == 0){ 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){ } 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"){ } else if (location == "quiz_pragfriedhof"){
var points = turf.points([ var points = turf.points([
...@@ -201,9 +201,9 @@ function check_Bau(location) { ...@@ -201,9 +201,9 @@ function check_Bau(location) {
ptsWithin = turf.pointsWithinPolygon(points, poly_Pragfriedhof); ptsWithin = turf.pointsWithinPolygon(points, poly_Pragfriedhof);
if (ptsWithin.features.length == 0){ 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){ } 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"){ } else if (location == "quiz_marktplatz"){
var points = turf.points([ var points = turf.points([
...@@ -212,9 +212,9 @@ function check_Bau(location) { ...@@ -212,9 +212,9 @@ function check_Bau(location) {
ptsWithin = turf.pointsWithinPolygon(points, poly_Marktplatz); ptsWithin = turf.pointsWithinPolygon(points, poly_Marktplatz);
if (ptsWithin.features.length == 0){ 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){ } 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"){ } else if (location == "quiz_skaten"){
var points = turf.points([ var points = turf.points([
...@@ -223,9 +223,9 @@ function check_Bau(location) { ...@@ -223,9 +223,9 @@ function check_Bau(location) {
ptsWithin = turf.pointsWithinPolygon(points, poly_Skaten); ptsWithin = turf.pointsWithinPolygon(points, poly_Skaten);
if (ptsWithin.features.length == 0){ 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){ } 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"){ } else if (location == "quiz_kirche"){
var points = turf.points([ var points = turf.points([
...@@ -234,9 +234,9 @@ function check_Bau(location) { ...@@ -234,9 +234,9 @@ function check_Bau(location) {
ptsWithin = turf.pointsWithinPolygon(points, poly_kirche); ptsWithin = turf.pointsWithinPolygon(points, poly_kirche);
if (ptsWithin.features.length == 0){ 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){ } 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"){ } else if (location == "quiz_meerschweinchen"){
var points = turf.points([ var points = turf.points([
...@@ -245,9 +245,9 @@ function check_Bau(location) { ...@@ -245,9 +245,9 @@ function check_Bau(location) {
ptsWithin = turf.pointsWithinPolygon(points, poly_Meerschweinchen); ptsWithin = turf.pointsWithinPolygon(points, poly_Meerschweinchen);
if (ptsWithin.features.length == 0){ 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){ } 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"){ } else if (location == "quiz_ufapalast"){
var points = turf.points([ var points = turf.points([
...@@ -256,9 +256,9 @@ function check_Bau(location) { ...@@ -256,9 +256,9 @@ function check_Bau(location) {
ptsWithin = turf.pointsWithinPolygon(points, poly_UFA_Palast); ptsWithin = turf.pointsWithinPolygon(points, poly_UFA_Palast);
if (ptsWithin.features.length == 0){ 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){ } 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"){ } else if (location == "quiz_rostensteinpark"){
var points = turf.points([ var points = turf.points([
...@@ -267,9 +267,9 @@ function check_Bau(location) { ...@@ -267,9 +267,9 @@ function check_Bau(location) {
ptsWithin = turf.pointsWithinPolygon(points, poly_Rosensteinpark); ptsWithin = turf.pointsWithinPolygon(points, poly_Rosensteinpark);
if (ptsWithin.features.length == 0){ 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){ } 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"){ } else if (location == "all"){
var points_bau = turf.points([ var points_bau = turf.points([
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment