From 4f35ddeafe9b09505b7d621d2d4965d86cdcc210 Mon Sep 17 00:00:00 2001 From: patrickzerhusen Date: Fri, 17 Apr 2026 15:49:21 +0200 Subject: [PATCH] added .gitattributes to specify line feed line endings for .sh and .sql files --- .gitattributes | 8 + api/init.php | 78 +- legacy/delete_data.php | 94 +- legacy/find_data.php | 102 +- legacy/insert_data.php | 144 +- legacy/load_data.php | 124 +- legacy/test.html | 192 +-- legacy/update_data.php | 194 +-- public/index.php | 3260 ++++++++++++++++++++-------------------- public/styles.css | 82 +- 10 files changed, 2143 insertions(+), 2135 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..30def97 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,8 @@ +# Specifies Line Feed (LF) Line Endings for Shell Scripts +*.sh text eol=lf + +# # Specifies Line Feed (LF) Line Endings for SQL Files +*.sql text eol=lf + +# Letd Git decide for other Files +* text=auto \ No newline at end of file diff --git a/api/init.php b/api/init.php index 8a6d508..52a035b 100644 --- a/api/init.php +++ b/api/init.php @@ -1,40 +1,40 @@ - PDO::ERRMODE_EXCEPTION, - PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, - PDO::ATTR_EMULATE_PREPARES => false - ]; - $dsn = "pgsql:host=$host;dbname=$db;port=$port"; - $pdo = new PDO($dsn, $user, $pass, $opt); - -// Creates Error Message -} catch(PDOException $e) { - echo "Error: ".$e->getMessage(); -} - + PDO::ERRMODE_EXCEPTION, + PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, + PDO::ATTR_EMULATE_PREPARES => false + ]; + $dsn = "pgsql:host=$host;dbname=$db;port=$port"; + $pdo = new PDO($dsn, $user, $pass, $opt); + +// Creates Error Message +} catch(PDOException $e) { + echo "Error: ".$e->getMessage(); +} + ?> \ No newline at end of file diff --git a/legacy/delete_data.php b/legacy/delete_data.php index f47a5db..8cc6d53 100644 --- a/legacy/delete_data.php +++ b/legacy/delete_data.php @@ -1,48 +1,48 @@ - query("DELETE FROM buildings WHERE webgis_id = '$webgis_id'"); - - } catch (PDOException $e) { - echo "ERROR ".$e->getMessage(); - } - } - - if ($request == 'pipelines') { - $webgis_id = htmlspecialchars($_POST['webgis_id'], ENT_QUOTES); - - try { - - $pdo -> query("DELETE from pipelines where webgis_id= '$webgis_id' "); - - } catch(PDOException $e) { - echo "ERROR ".$e->getMessage(); - } - } - - if ($request == 'valves') { - $webgis_id = htmlspecialchars($_POST['webgis_id'], ENT_QUOTES); - - try { - - $pdo -> query("DELETE from valves where webgis_id= '$webgis_id' "); - - } catch(PDOException $e) { - echo "ERROR ".$e->getMessage(); - } - } - + query("DELETE FROM buildings WHERE webgis_id = '$webgis_id'"); + + } catch (PDOException $e) { + echo "ERROR ".$e->getMessage(); + } + } + + if ($request == 'pipelines') { + $webgis_id = htmlspecialchars($_POST['webgis_id'], ENT_QUOTES); + + try { + + $pdo -> query("DELETE from pipelines where webgis_id= '$webgis_id' "); + + } catch(PDOException $e) { + echo "ERROR ".$e->getMessage(); + } + } + + if ($request == 'valves') { + $webgis_id = htmlspecialchars($_POST['webgis_id'], ENT_QUOTES); + + try { + + $pdo -> query("DELETE from valves where webgis_id= '$webgis_id' "); + + } catch(PDOException $e) { + echo "ERROR ".$e->getMessage(); + } + } + ?> \ No newline at end of file diff --git a/legacy/find_data.php b/legacy/find_data.php index 7c9fac9..f9fce34 100644 --- a/legacy/find_data.php +++ b/legacy/find_data.php @@ -1,52 +1,52 @@ - query("SELECT *, ST_AsGeoJSON(geom) as geojson FROM $table WHERE $field = '$value'"); - - $features = []; - - foreach($result as $row) { - // PHP-Objekt erstellen - $geometry = json_decode($row['geojson']); - - // PHP-Objekt bereinigen - unset($row['geom']); - unset($row['geojson']); - - // JSON-Feature hinzufügen - $feature = [ - "type"=>"Feature", - "geometry"=>$geometry, - "properties"=>$row - ]; - - array_push($features, $feature); - }; - - // Feature-Collection hinzufügen - $featureCollection = [ - "type"=>"FeatureCollection", - "features"=>$features - ]; - - echo json_encode($featureCollection); - - // Fehlernachricht ausgeben - } catch(PDOException $e) { - echo "ERROR ".$e->getMessage(); - - } - + query("SELECT *, ST_AsGeoJSON(geom) as geojson FROM $table WHERE $field = '$value'"); + + $features = []; + + foreach($result as $row) { + // PHP-Objekt erstellen + $geometry = json_decode($row['geojson']); + + // PHP-Objekt bereinigen + unset($row['geom']); + unset($row['geojson']); + + // JSON-Feature hinzufügen + $feature = [ + "type"=>"Feature", + "geometry"=>$geometry, + "properties"=>$row + ]; + + array_push($features, $feature); + }; + + // Feature-Collection hinzufügen + $featureCollection = [ + "type"=>"FeatureCollection", + "features"=>$features + ]; + + echo json_encode($featureCollection); + + // Fehlernachricht ausgeben + } catch(PDOException $e) { + echo "ERROR ".$e->getMessage(); + + } + ?> \ No newline at end of file diff --git a/legacy/insert_data.php b/legacy/insert_data.php index 33a2f75..54742c8 100644 --- a/legacy/insert_data.php +++ b/legacy/insert_data.php @@ -1,73 +1,73 @@ - query("SELECT * FROM valves WHERE valve_id = '$valve_id'"); - - if ($result->rowCount()>0) { - echo "ERROR: Valve ID already exists. Please type in another ID!"; - } else { - // Datenbankabfrage - $result = $pdo -> query("INSERT INTO valves(valve_id, valve_type, valve_dma_id, valve_diameter, valve_location, valve_visibility, geom) VALUES ('$valve_id', '$valve_type', '$valve_dma_id', '$valve_diameter', '$valve_location', '$valve_visibility', ST_SetSRID(ST_GeomFromGeoJSON('$valve_geometry'), 4326))"); - } - } - - if ($request == 'pipelines') { - $pipeline_id = htmlspecialchars($_POST['pipeline_id'], ENT_QUOTES); - $pipeline_category = htmlspecialchars($_POST['pipeline_category'], ENT_QUOTES); - $pipeline_dma_id = htmlspecialchars($_POST['pipeline_dma_id'], ENT_QUOTES); - $pipeline_diameter = htmlspecialchars($_POST['pipeline_diameter'], ENT_QUOTES); - $pipeline_method = htmlspecialchars($_POST['pipeline_method'], ENT_QUOTES); - $pipeline_location = htmlspecialchars($_POST['pipeline_location'], ENT_QUOTES); - $pipeline_geometry = $_POST['pipeline_geometry']; - - $result = $pdo -> query("SELECT * FROM pipelines WHERE pipeline_id = '$pipeline_id'"); - - if ($result->rowCount()>0) { - echo "ERROR: Pipeline ID already exists. Please type in another ID!"; - } else { - // Datenbankabfrage - $result = $pdo -> query("INSERT INTO pipelines(pipeline_id, pipeline_category, pipeline_dma_id, pipeline_diameter, pipeline_method, pipeline_location, geom) VALUES ('$pipeline_id', '$pipeline_category', '$pipeline_dma_id', '$pipeline_diameter', '$pipeline_method', '$pipeline_location', ST_SetSRID(ST_GeomFromGeoJSON('$pipeline_geometry'), 4326))"); - } - } - - if ($request == 'buildings') { - - $account_no = htmlspecialchars($_POST['account_no'], ENT_QUOTES); - $building_category = htmlspecialchars($_POST['building_category'], ENT_QUOTES); - $building_dma_id = htmlspecialchars($_POST['building_dma_id'], ENT_QUOTES); - $building_storey = htmlspecialchars($_POST['building_storey'], ENT_QUOTES); - $building_population = htmlspecialchars($_POST['building_population'], ENT_QUOTES); - $building_location = htmlspecialchars($_POST['building_location'], ENT_QUOTES); - $building_geometry = $_POST['building_geometry']; - - $result = $pdo -> query("SELECT *from buildings where account_no= '$account_no'"); - - if ($result->rowCount()>0) { - echo "ERROR: Building ID already exists. Please type in another ID!"; - } else { - $sql = $pdo -> query("INSERT INTO buildings(account_no, building_category, building_dma_id, building_storey, building_population, building_location, geom) VALUES ('$account_no', '$building_category', '$building_dma_id', '$building_storey', '$building_population', '$building_location', ST_Force3DZ(ST_SetSRID(ST_GeomFromGeoJSON('$building_geometry'), 4326)))"); - } - } - - - - - - + query("SELECT * FROM valves WHERE valve_id = '$valve_id'"); + + if ($result->rowCount()>0) { + echo "ERROR: Valve ID already exists. Please type in another ID!"; + } else { + // Datenbankabfrage + $result = $pdo -> query("INSERT INTO valves(valve_id, valve_type, valve_dma_id, valve_diameter, valve_location, valve_visibility, geom) VALUES ('$valve_id', '$valve_type', '$valve_dma_id', '$valve_diameter', '$valve_location', '$valve_visibility', ST_SetSRID(ST_GeomFromGeoJSON('$valve_geometry'), 4326))"); + } + } + + if ($request == 'pipelines') { + $pipeline_id = htmlspecialchars($_POST['pipeline_id'], ENT_QUOTES); + $pipeline_category = htmlspecialchars($_POST['pipeline_category'], ENT_QUOTES); + $pipeline_dma_id = htmlspecialchars($_POST['pipeline_dma_id'], ENT_QUOTES); + $pipeline_diameter = htmlspecialchars($_POST['pipeline_diameter'], ENT_QUOTES); + $pipeline_method = htmlspecialchars($_POST['pipeline_method'], ENT_QUOTES); + $pipeline_location = htmlspecialchars($_POST['pipeline_location'], ENT_QUOTES); + $pipeline_geometry = $_POST['pipeline_geometry']; + + $result = $pdo -> query("SELECT * FROM pipelines WHERE pipeline_id = '$pipeline_id'"); + + if ($result->rowCount()>0) { + echo "ERROR: Pipeline ID already exists. Please type in another ID!"; + } else { + // Datenbankabfrage + $result = $pdo -> query("INSERT INTO pipelines(pipeline_id, pipeline_category, pipeline_dma_id, pipeline_diameter, pipeline_method, pipeline_location, geom) VALUES ('$pipeline_id', '$pipeline_category', '$pipeline_dma_id', '$pipeline_diameter', '$pipeline_method', '$pipeline_location', ST_SetSRID(ST_GeomFromGeoJSON('$pipeline_geometry'), 4326))"); + } + } + + if ($request == 'buildings') { + + $account_no = htmlspecialchars($_POST['account_no'], ENT_QUOTES); + $building_category = htmlspecialchars($_POST['building_category'], ENT_QUOTES); + $building_dma_id = htmlspecialchars($_POST['building_dma_id'], ENT_QUOTES); + $building_storey = htmlspecialchars($_POST['building_storey'], ENT_QUOTES); + $building_population = htmlspecialchars($_POST['building_population'], ENT_QUOTES); + $building_location = htmlspecialchars($_POST['building_location'], ENT_QUOTES); + $building_geometry = $_POST['building_geometry']; + + $result = $pdo -> query("SELECT *from buildings where account_no= '$account_no'"); + + if ($result->rowCount()>0) { + echo "ERROR: Building ID already exists. Please type in another ID!"; + } else { + $sql = $pdo -> query("INSERT INTO buildings(account_no, building_category, building_dma_id, building_storey, building_population, building_location, geom) VALUES ('$account_no', '$building_category', '$building_dma_id', '$building_storey', '$building_population', '$building_location', ST_Force3DZ(ST_SetSRID(ST_GeomFromGeoJSON('$building_geometry'), 4326)))"); + } + } + + + + + + ?> \ No newline at end of file diff --git a/legacy/load_data.php b/legacy/load_data.php index b57a023..2d8b17d 100644 --- a/legacy/load_data.php +++ b/legacy/load_data.php @@ -1,63 +1,63 @@ - query("SELECT *, ST_AsGeoJSON(geom) as geojson FROM $table WHERE $dma_id_field = '$dma_id'"); - - $features = []; - - foreach($result as $row) { - // PHP-Objekt erstellen - $geometry = json_decode($row['geojson']); - - // PHP-Objekt bereinigen - unset($row['geom']); - unset($row['geojson']); - - // JSON-Feature hinzufügen - $feature = [ - "type"=>"Feature", - "geometry"=>$geometry, - "properties"=>$row - ]; - - array_push($features, $feature); - }; - - // Feature-Collection hinzufügen - $featureCollection = [ - "type"=>"FeatureCollection", - "features"=>$features - ]; - - echo json_encode($featureCollection); - - // Fehlernachricht ausgeben - } catch(PDOException $e) { - echo "ERROR ".$e->getMessage(); - - } - + query("SELECT *, ST_AsGeoJSON(geom) as geojson FROM $table WHERE $dma_id_field = '$dma_id'"); + + $features = []; + + foreach($result as $row) { + // PHP-Objekt erstellen + $geometry = json_decode($row['geojson']); + + // PHP-Objekt bereinigen + unset($row['geom']); + unset($row['geojson']); + + // JSON-Feature hinzufügen + $feature = [ + "type"=>"Feature", + "geometry"=>$geometry, + "properties"=>$row + ]; + + array_push($features, $feature); + }; + + // Feature-Collection hinzufügen + $featureCollection = [ + "type"=>"FeatureCollection", + "features"=>$features + ]; + + echo json_encode($featureCollection); + + // Fehlernachricht ausgeben + } catch(PDOException $e) { + echo "ERROR ".$e->getMessage(); + + } + ?> \ No newline at end of file diff --git a/legacy/test.html b/legacy/test.html index 41ff814..8a65c7b 100644 --- a/legacy/test.html +++ b/legacy/test.html @@ -1,97 +1,97 @@ - - - - - - Document - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + Document + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/legacy/update_data.php b/legacy/update_data.php index af4cbe1..bfe7884 100644 --- a/legacy/update_data.php +++ b/legacy/update_data.php @@ -1,98 +1,98 @@ - query("SELECT * FROM buildings WHERE account_no = '$account_no'"); - - if ($result -> rowCount()>0) { - echo "ERROR: Account Number already exists. Pleas type in another Account Number!"; - } else { - $pdo -> query("UPDATE buildings SET account_no = '$account_no', building_category = '$building_category', building_storey = '$building_storey', building_population = '$building_population', building_location = '$building_location', building_dma_id = '$building_dma_id' WHERE webgis_id = '$webgis_id'"); - } - - } else { $pdo -> query("UPDATE buildings SET account_no = '$account_no', building_category = '$building_category', building_storey = '$building_storey', building_population = '$building_population', building_location = '$building_location', building_dma_id = '$building_dma_id' WHERE webgis_id = '$webgis_id'"); - } - - } catch (PDOException $e) { - echo "ERROR ".$e->getMessage(); - } - } - - - if ($request == 'pipelines') { - $webgis_id = htmlspecialchars($_POST['webgis_id'], ENT_QUOTES); - $pipeline_id_old = htmlspecialchars($_POST['pipeline_id_old'], ENT_QUOTES); - $pipeline_id = htmlspecialchars($_POST['pipeline_id'], ENT_QUOTES); - $pipeline_dma_id = htmlspecialchars($_POST['pipeline_dma_id'], ENT_QUOTES); - $pipeline_diameter = htmlspecialchars($_POST['pipeline_diameter'], ENT_QUOTES); - $pipeline_location = htmlspecialchars($_POST['pipeline_location'], ENT_QUOTES); - $pipeline_category = htmlspecialchars($_POST['pipeline_category'], ENT_QUOTES); - $pipeline_length = htmlspecialchars($_POST['pipeline_length'], ENT_QUOTES); - - - try { - - if ($pipeline_id_old != $pipeline_id) { - $result = $pdo -> query("SELECT *from pipelines where pipeline_id = '$pipeline_id' "); - - if ($result -> rowCount()>0) { - echo "ERROR: Pipeline ID already exists. Please choose a new ID"; - } else { - $pdo -> query("UPDATE pipelines set pipeline_id = '$pipeline_id', pipeline_dma_id = '$pipeline_dma_id', pipeline_diameter = '$pipeline_diameter', pipeline_location = '$pipeline_location', pipeline_category='$pipeline_category', pipeline_length='$pipeline_length' where webgis_id = '$webgis_id'"); - } - } else { - $pdo -> query("UPDATE pipelines set pipeline_id = '$pipeline_id', pipeline_dma_id = '$pipeline_dma_id', pipeline_diameter = '$pipeline_diameter', pipeline_location = '$pipeline_location', pipeline_category='$pipeline_category', pipeline_length='$pipeline_length' where webgis_id = '$webgis_id'"); - } - - } catch(PDOException $e) { - echo "ERROR ".$e->getMessage(); - } - } - - - if ($request == 'valves') { - $webgis_id = htmlspecialchars($_POST['webgis_id'], ENT_QUOTES); - $valve_id_old = htmlspecialchars($_POST['valve_id_old'], ENT_QUOTES); - $valve_id = htmlspecialchars($_POST['valve_id'], ENT_QUOTES); - $valve_dma_id = htmlspecialchars($_POST['valve_dma_id'], ENT_QUOTES); - $valve_type = htmlspecialchars($_POST['valve_type'], ENT_QUOTES); - $valve_diameter = htmlspecialchars($_POST['valve_diameter'], ENT_QUOTES); - $valve_location = htmlspecialchars($_POST['valve_location'], ENT_QUOTES); - $valve_visibility = htmlspecialchars($_POST['valve_visibility'], ENT_QUOTES); - - - try { - - if ($valve_id_old != $valve_id) { - $result = $pdo -> query("SELECT *from valves where valve_id = '$valve_id' "); - - if ($result -> rowCount()>0) { - echo "ERROR: Valve ID already exists. Please choose a new ID"; - } else { - $pdo -> query("UPDATE valves set valve_id = '$valve_id', valve_dma_id = '$valve_dma_id', valve_type = '$valve_type', valve_diameter = '$valve_diameter', valve_location = '$valve_location', valve_visibility = '$valve_visibility' where webgis_id = '$webgis_id' "); - } - } else { - $pdo -> query("UPDATE valves set valve_id = '$valve_id', valve_dma_id = '$valve_dma_id', valve_type = '$valve_type', valve_diameter = '$valve_diameter', valve_location = '$valve_location', valve_visibility = '$valve_visibility' where webgis_id = '$webgis_id' "); - } - - } catch(PDOException $e) { - echo "ERROR ".$e->getMessage(); - } - } - + query("SELECT * FROM buildings WHERE account_no = '$account_no'"); + + if ($result -> rowCount()>0) { + echo "ERROR: Account Number already exists. Pleas type in another Account Number!"; + } else { + $pdo -> query("UPDATE buildings SET account_no = '$account_no', building_category = '$building_category', building_storey = '$building_storey', building_population = '$building_population', building_location = '$building_location', building_dma_id = '$building_dma_id' WHERE webgis_id = '$webgis_id'"); + } + + } else { $pdo -> query("UPDATE buildings SET account_no = '$account_no', building_category = '$building_category', building_storey = '$building_storey', building_population = '$building_population', building_location = '$building_location', building_dma_id = '$building_dma_id' WHERE webgis_id = '$webgis_id'"); + } + + } catch (PDOException $e) { + echo "ERROR ".$e->getMessage(); + } + } + + + if ($request == 'pipelines') { + $webgis_id = htmlspecialchars($_POST['webgis_id'], ENT_QUOTES); + $pipeline_id_old = htmlspecialchars($_POST['pipeline_id_old'], ENT_QUOTES); + $pipeline_id = htmlspecialchars($_POST['pipeline_id'], ENT_QUOTES); + $pipeline_dma_id = htmlspecialchars($_POST['pipeline_dma_id'], ENT_QUOTES); + $pipeline_diameter = htmlspecialchars($_POST['pipeline_diameter'], ENT_QUOTES); + $pipeline_location = htmlspecialchars($_POST['pipeline_location'], ENT_QUOTES); + $pipeline_category = htmlspecialchars($_POST['pipeline_category'], ENT_QUOTES); + $pipeline_length = htmlspecialchars($_POST['pipeline_length'], ENT_QUOTES); + + + try { + + if ($pipeline_id_old != $pipeline_id) { + $result = $pdo -> query("SELECT *from pipelines where pipeline_id = '$pipeline_id' "); + + if ($result -> rowCount()>0) { + echo "ERROR: Pipeline ID already exists. Please choose a new ID"; + } else { + $pdo -> query("UPDATE pipelines set pipeline_id = '$pipeline_id', pipeline_dma_id = '$pipeline_dma_id', pipeline_diameter = '$pipeline_diameter', pipeline_location = '$pipeline_location', pipeline_category='$pipeline_category', pipeline_length='$pipeline_length' where webgis_id = '$webgis_id'"); + } + } else { + $pdo -> query("UPDATE pipelines set pipeline_id = '$pipeline_id', pipeline_dma_id = '$pipeline_dma_id', pipeline_diameter = '$pipeline_diameter', pipeline_location = '$pipeline_location', pipeline_category='$pipeline_category', pipeline_length='$pipeline_length' where webgis_id = '$webgis_id'"); + } + + } catch(PDOException $e) { + echo "ERROR ".$e->getMessage(); + } + } + + + if ($request == 'valves') { + $webgis_id = htmlspecialchars($_POST['webgis_id'], ENT_QUOTES); + $valve_id_old = htmlspecialchars($_POST['valve_id_old'], ENT_QUOTES); + $valve_id = htmlspecialchars($_POST['valve_id'], ENT_QUOTES); + $valve_dma_id = htmlspecialchars($_POST['valve_dma_id'], ENT_QUOTES); + $valve_type = htmlspecialchars($_POST['valve_type'], ENT_QUOTES); + $valve_diameter = htmlspecialchars($_POST['valve_diameter'], ENT_QUOTES); + $valve_location = htmlspecialchars($_POST['valve_location'], ENT_QUOTES); + $valve_visibility = htmlspecialchars($_POST['valve_visibility'], ENT_QUOTES); + + + try { + + if ($valve_id_old != $valve_id) { + $result = $pdo -> query("SELECT *from valves where valve_id = '$valve_id' "); + + if ($result -> rowCount()>0) { + echo "ERROR: Valve ID already exists. Please choose a new ID"; + } else { + $pdo -> query("UPDATE valves set valve_id = '$valve_id', valve_dma_id = '$valve_dma_id', valve_type = '$valve_type', valve_diameter = '$valve_diameter', valve_location = '$valve_location', valve_visibility = '$valve_visibility' where webgis_id = '$webgis_id' "); + } + } else { + $pdo -> query("UPDATE valves set valve_id = '$valve_id', valve_dma_id = '$valve_dma_id', valve_type = '$valve_type', valve_diameter = '$valve_diameter', valve_location = '$valve_location', valve_visibility = '$valve_visibility' where webgis_id = '$webgis_id' "); + } + + } catch(PDOException $e) { + echo "ERROR ".$e->getMessage(); + } + } + ?> \ No newline at end of file diff --git a/public/index.php b/public/index.php index b3c82c1..75463be 100644 --- a/public/index.php +++ b/public/index.php @@ -1,1631 +1,1631 @@ - - - - - - - - - Leaflet Training - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - + + + + + + + + + Leaflet Training + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + \ No newline at end of file diff --git a/public/styles.css b/public/styles.css index 4d14d8e..f27c4df 100644 --- a/public/styles.css +++ b/public/styles.css @@ -1,41 +1,41 @@ -#mapdiv { - height: 100vh; -} - -.popup-container { - width: 80vw; /* 80% of the viewport width */ - max-width: 300px; /* Maximum width */ - height: 60vh; /* 60% of the viewport height */ - max-height: 350px; /* Maximum height */ - padding: 10px; /* Add some padding */ - box-sizing: border-box; /* Ensure padding is included in width/height */ -} - -.popup-form-group { - display: flex; /* popup-label und popup-input nebeneinander statt untereinander */ - align-items: center; - margin-bottom: 15px; -} - -.popup-label { - flex: 1; - margin-right: 10px; -} - -.popup-input { - flex: 2; -} - -.popup-button-group { - display: flex; - justify-content: space-between; -} - -.popup-button { - flex: 1; - margin-right: 10px; -} - -.popup-button:last-child { - margin-right: 0; -} +#mapdiv { + height: 100vh; +} + +.popup-container { + width: 80vw; /* 80% of the viewport width */ + max-width: 300px; /* Maximum width */ + height: 60vh; /* 60% of the viewport height */ + max-height: 350px; /* Maximum height */ + padding: 10px; /* Add some padding */ + box-sizing: border-box; /* Ensure padding is included in width/height */ +} + +.popup-form-group { + display: flex; /* popup-label und popup-input nebeneinander statt untereinander */ + align-items: center; + margin-bottom: 15px; +} + +.popup-label { + flex: 1; + margin-right: 10px; +} + +.popup-input { + flex: 2; +} + +.popup-button-group { + display: flex; + justify-content: space-between; +} + +.popup-button { + flex: 1; + margin-right: 10px; +} + +.popup-button:last-child { + margin-right: 0; +}