Compare commits

..
9 Commits
Author SHA1 Message Date
nooahe 13ebde7ef1 Public Version 1 on spinn-mit.ch 2023-01-03 16:08:52 +01:00
nooahe 522e01979f added photoswipe library 2022-12-30 11:40:47 +01:00
nooahe 5b4cc9d83b Präsi Version richtig 2022-11-18 15:11:40 +01:00
nooahe d7343e8cb7 Präsentations Version 2022-11-18 15:11:18 +01:00
Marlon Portmann 2a3c708291 1 image only 2022-11-16 10:56:02 +01:00
nooahe e8be1ed470 new push 2022-11-16 10:32:30 +01:00
nooahe 2ba51e0c80 ... 2022-11-15 17:31:06 +01:00
nooahe e5f851a22b fixed cancel Button 2022-11-15 16:37:33 +01:00
nooahe 98485ebb78 bilder hochladen und anzeigen funktioniert! 2022-11-15 16:03:28 +01:00
45 changed files with 10212 additions and 200 deletions

No files matched your search

+81
View File
@@ -0,0 +1,81 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SPINN MIT | About</title>
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="https://use.typekit.net/out0zfe.css">
<link rel="apple-touch-icon" sizes="180x180" href="images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon-16x16.png">
<link rel="manifest" href="images/site.webmanifest">
</head>
<body class="aboutInfo">
<div class="subPageHeader">
<a href="/">
<img src="images/logo.gif" class="" id="logo" alt="">
</a>
<div class="mapControls ">
<a href="/help.html" class="">
<img src="images/help.svg" id="helpLink" class="mapControl">
</a>
<a href="/about.html" class="activeLink">
<img src="images/about.svg" id="aboutLink" class="mapControl ">
</a>
<a href="/">
<img src="images/cancelAboutInfo.svg" id="homeLink" class="mapControl">
</a>
</div>
</div>
<div class="content">
<div class="innerContent">
<article>
<h1>Willkommen! </h1>
<div class="textContainer">
<p>Um was geht’s? <br> Zürcher Stadtkreise nachhaltig optimieren: Durch unsere App erhalten deine Ideen zur Verbesserung des Stadtbildes ein Gehör. Ziel ist es, die gesamte Bevölkerung aktiv am Wandel des Stadtbilds miteinzubeziehen und zum mitspinnen zu bewegen.
</p>
<p>Egal ob aufwendige Bepflanzung oder simple Mülltonnen – umfangreichere Projekte, aber auch nur kleine Spinnereien sind auf unserer Plattform willkommen. Ist eine Idee einmal an einem Ort erfasst, kann sich die Community mittels Kommentarfunktion einbringen. So können Spinnereien konkretisiert oder diskutiert werden.</p>
</div>
</article>
<article>
<h1>Das sind wir</h1>
<div class="textContainer">
<p>Die App wurde im Rahmen einer studentischen Arbeit von Flavia Hodel, Marlon Portmann, Noah Eckert und Monia Rosenow ins Leben gerufen. Zur Zeit studieren wir alle gemeinsam Media Engineering an der Fachhochschule Graubünden. Mit unserer Idee wollen wir uns aktiv an der Umgestaltung und Optimierung der Limmatstadt beteiligen und auch allen anderen die Möglichkeit dazu geben.
</p>
<p>Bei dieser Website handelt es sich um einen ersten Prototyp. Leider werden die Ideen nicht realisiert, aber wer weiss: Vielleicht zieht Züri nach und bald wird es eine Plattform/Forum für die Stadtgestaltung geben!
</p>
<p>Gespannt freuen wir uns auf deine Spinnerei!
</p>
</div>
</article>
</div>
<a href="/" id="back" class="desktopOnly">
<p>zurück zu Karte</p>
</a>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="js/aboutInfo.js"></script>
</body>
</html>
+420
View File
@@ -0,0 +1,420 @@
/*! PhotoSwipe main CSS by Dmytro Semenov | photoswipe.com */
.pswp {
--pswp-bg: #000;
--pswp-placeholder-bg: #222;
--pswp-root-z-index: 100000;
--pswp-preloader-color: rgba(79, 79, 79, 0.4);
--pswp-preloader-color-secondary: rgba(255, 255, 255, 0.9);
/* defined via js:
--pswp-transition-duration: 333ms; */
--pswp-icon-color: #fff;
--pswp-icon-color-secondary: #4f4f4f;
--pswp-icon-stroke-color: #4f4f4f;
--pswp-icon-stroke-width: 2px;
--pswp-error-text-color: var(--pswp-icon-color);
}
/*
Styles for basic PhotoSwipe (pswp) functionality (sliding area, open/close transitions)
*/
.pswp {
font-family: bd-supper, sans-serif;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: var(--pswp-root-z-index);
display: none;
touch-action: none;
outline: 0;
opacity: 0.003;
contain: layout style size;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
/* Prevents focus outline on the root element,
(it may be focused initially) */
.pswp:focus {
outline: 0;
}
.pswp * {
box-sizing: border-box;
}
.pswp img {
max-width: none;
}
.pswp--open {
display: block;
}
.pswp,
.pswp__bg {
transform: translateZ(0);
will-change: opacity;
}
.pswp__bg {
opacity: 0.005;
background: var(--pswp-bg);
}
.pswp,
.pswp__scroll-wrap {
overflow: hidden;
}
.pswp__scroll-wrap,
.pswp__bg,
.pswp__container,
.pswp__item,
.pswp__content,
.pswp__img,
.pswp__zoom-wrap {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.pswp__img,
.pswp__zoom-wrap {
width: auto;
height: auto;
}
.pswp--click-to-zoom.pswp--zoom-allowed .pswp__img {
cursor: -webkit-zoom-in;
cursor: -moz-zoom-in;
cursor: zoom-in;
}
.pswp--click-to-zoom.pswp--zoomed-in .pswp__img {
cursor: move;
cursor: -webkit-grab;
cursor: -moz-grab;
cursor: grab;
}
.pswp--click-to-zoom.pswp--zoomed-in .pswp__img:active {
cursor: -webkit-grabbing;
cursor: -moz-grabbing;
cursor: grabbing;
}
/* :active to override grabbing cursor */
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img,
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img:active,
.pswp__img {
cursor: -webkit-zoom-out;
cursor: -moz-zoom-out;
cursor: zoom-out;
}
/* Prevent selection and tap highlights */
.pswp__container,
.pswp__img,
.pswp__button,
.pswp__counter {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.pswp__item {
/* z-index for fade transition */
z-index: 1;
overflow: hidden;
}
.pswp__hidden {
display: none !important;
}
/* Allow to click through pswp__content element, but not its children */
.pswp__content {
pointer-events: none;
}
.pswp__content > * {
pointer-events: auto;
}
/*
PhotoSwipe UI
*/
/*
Error message appears when image is not loaded
(JS option errorMsg controls markup)
*/
.pswp__error-msg-container {
display: grid;
}
.pswp__error-msg {
margin: auto;
font-size: 1em;
line-height: 1;
color: var(--pswp-error-text-color);
}
/*
class pswp__hide-on-close is applied to elements that
should hide (for example fade out) when PhotoSwipe is closed
and show (for example fade in) when PhotoSwipe is opened
*/
.pswp .pswp__hide-on-close {
opacity: 0.005;
will-change: opacity;
transition: opacity var(--pswp-transition-duration) cubic-bezier(0.4, 0, 0.22, 1);
z-index: 10; /* always overlap slide content */
pointer-events: none; /* hidden elements should not be clickable */
}
/* class pswp--ui-visible is added when opening or closing transition starts */
.pswp--ui-visible .pswp__hide-on-close {
opacity: 1;
pointer-events: auto;
}
/* <button> styles, including css reset */
.pswp__button {
position: relative;
display: block;
width: 50px;
height: 60px;
padding: 0;
margin: 0;
overflow: hidden;
cursor: pointer;
background: none;
border: 0;
box-shadow: none;
opacity: 0.85;
-webkit-appearance: none;
-webkit-touch-callout: none;
}
.pswp__button:hover,
.pswp__button:active,
.pswp__button:focus {
transition: none;
padding: 0;
background: none;
border: 0;
box-shadow: none;
opacity: 1;
}
.pswp__button:disabled {
opacity: 0.3;
cursor: auto;
}
.pswp__icn {
fill: var(--pswp-icon-color);
color: var(--pswp-icon-color-secondary);
}
.pswp__icn {
position: absolute;
top: 14px;
left: 9px;
width: 32px;
height: 32px;
overflow: hidden;
pointer-events: none;
}
.pswp__icn-shadow {
stroke: var(--pswp-icon-stroke-color);
stroke-width: var(--pswp-icon-stroke-width);
fill: none;
}
.pswp__icn:focus {
outline: 0;
}
/*
div element that matches size of large image,
large image loads on top of it,
used when msrc is not provided
*/
div.pswp__img--placeholder,
.pswp__img--with-bg {
background: var(--pswp-placeholder-bg);
}
.pswp__top-bar {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 60px;
display: flex;
flex-direction: row;
justify-content: flex-end;
z-index: 10;
/* allow events to pass through top bar itself */
pointer-events: none !important;
}
.pswp__top-bar > * {
pointer-events: auto;
/* this makes transition significantly more smooth,
even though inner elements are not animated */
will-change: opacity;
}
/*
Close button
*/
.pswp__button--close {
margin-right: 6px;
}
/*
Arrow buttons
*/
.pswp__button--arrow {
position: absolute;
top: 0;
width: 75px;
height: 100px;
top: 50%;
margin-top: -50px;
}
.pswp__button--arrow:disabled {
display: none;
cursor: default;
}
.pswp__button--arrow .pswp__icn {
top: 50%;
margin-top: -30px;
width: 60px;
height: 60px;
background: none;
border-radius: 0;
}
.pswp--one-slide .pswp__button--arrow {
display: none;
}
/* hide arrows on touch screens */
.pswp--touch .pswp__button--arrow {
visibility: hidden;
}
/* show arrows only after mouse was used */
.pswp--has_mouse .pswp__button--arrow {
visibility: visible;
}
.pswp__button--arrow--prev {
right: auto;
left: 0px;
}
.pswp__button--arrow--next {
right: 0px;
}
.pswp__button--arrow--next .pswp__icn {
left: auto;
right: 14px;
/* flip horizontally */
transform: scale(-1, 1);
}
/*
Zoom button
*/
.pswp__button--zoom {
display: none;
}
.pswp--zoom-allowed .pswp__button--zoom {
display: block;
}
/* "+" => "-" */
.pswp--zoomed-in .pswp__zoom-icn-bar-v {
display: none;
}
/*
Loading indicator
*/
.pswp__preloader {
position: relative;
overflow: hidden;
width: 50px;
height: 60px;
margin-right: auto;
}
.pswp__preloader .pswp__icn {
opacity: 0;
transition: opacity 0.2s linear;
animation: pswp-clockwise 600ms linear infinite;
}
.pswp__preloader--active .pswp__icn {
opacity: 0.85;
}
@keyframes pswp-clockwise {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/*
"1 of 10" counter
*/
.pswp__counter {
height: 30px;
margin: 15px 0 0 20px;
font-size: 16px;
line-height: 30px;
color: var(--pswp-icon-color);
text-shadow: 1px 1px 3px var(--pswp-icon-color-secondary);
opacity: 0.85;
}
.pswp--one-slide .pswp__counter {
display: none;
}
+802 -39
View File
@@ -1,23 +1,634 @@
h1 {
color: black;
:root {
--marine: #27177A;
--royalblau: #3F34C6;
--orange: #F07C3C;
--pastelorange: #FFC192;
--nude: #FAD8C4;
--helllachs: #FFF5EE;
--borderRadSmall: 14px;
--borderRadLarge: 30px;
} }
/*----------------------------------------------------*/
/*------------------- ALLGEMEIN ----------------------*/
/*----------------------------------------------------*/
body {
height: 100vh;
min-height: -webkit-fill-available;
position: fixed;
overflow: hidden;
margin: 0;
padding: 0;
}
html {
height: -webkit-fill-available;
}
h1 {
color: #fff5ee;
font-family: bd-supper, sans-serif;
font-weight: 700;
font-style: normal;
}
h2 {
font-family: bd-supper, sans-serif;
font-weight: 400;
font-style: normal;
}
p{
font-family: input-sans-condensed, sans-serif;
font-weight: 200;
font-style: normal;
}
p.italic{
font-family: input-sans-condensed, sans-serif;
font-weight: 200;
font-style: italic;
}
#logo {
position: absolute;
top: 10px;
left: 10px;
height: 115px;
width: 115px;
}
div.mapControls {
height: 140px;
width: 40px;
position: absolute;
top: 20px;
right: 10px;
display: flex;
justify-content: flex-start;
flex-direction: column;
}
img.mapControl {
height: 40px;
width: 40px;
margin-top: 5px;
}
.hideButton {
opacity: 0 ;
transition: 0.5s ;
-webkit-transition: 0.5s ;
pointer-events: none;
}
.desktopOnly{
display: none;
}
/*----------------------------------------------------*/
/*-------------------- STARTSCREEN -------------------*/
/*----------------------------------------------------*/
#startScreen {
width: 100%;
height: 100%;
transition: 0.5s ;
-webkit-transition: 0.5s ;
position: fixed;
background-color: var(--orange);
opacity: .9;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
}
#LogoLarge {
width: 75%;
margin-top: 50%;
}
#startText {
font-family: bd-supper, sans-serif;
font-weight: 400;
font-style: normal;
color: var(--marine);
text-align: center;
margin: 0 10% 30% 10%;
}
.hideElement {
opacity: 0 !important;
pointer-events: none !important;
}
/*----------------------------------------------------*/
/*-------------- OVERLAY ALLGEMEIN -------------------*/
/*----------------------------------------------------*/
#overlay{
background-image: url("../images/backgroundBlue.svg");
background-size:cover;
position: fixed;
bottom: -0vh;
height: 75%;
width: 100vw;
max-width: 500px;
border-radius: 30px 30px 0 0;
background-color: #27177A;
overflow-x: hidden;
overflow-y: scroll;
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
#overlay::-webkit-scrollbar {
display: none;
}
#overlay_container{
margin: 3%;
height: 94%;
}
.hidden{
position: absolute;
transition: 0.3s;
-webkit-transition: 0.3s;
transform: translateY(100%);
-webkit-transform: translateY(100%);
}
.show{
transform: translateY(0);
-webkit-transform: translateY(0);
transition: 0.3s;
-webkit-transition: 0.3s;
display: block;
}
#cancel {
z-index: 100;
transform: translateZ(10px);
width: 40px;
height: 40px;
position: sticky;
float: right;
right: 18px;
top: 18px;
}
cancel:active {
transition: 0.3s;
-webkit-transition: 0.3s;
transform: scale(1.1);
-webkit-transform: scale(1.1);
}
/*----------------------------------------------------*/
/*------------------ IDEE ERFASSEN -------------------*/
/*----------------------------------------------------*/
form{
display: flex;
flex-direction: column;
justify-content: flex-start;
width: 100%;
height: 93%;
margin-top: 7%;
margin-bottom: -25px;
}
input, textarea{
background-color: #F07C3C;
color: #fff5ee;
display: block;
border-radius: 14px;
width: 96%;
padding: 0;
border: 0;
font-size: 18pt;
padding: 5px 0 3px 4%;
font-family: bd-supper, sans-serif;
font-weight: 400;
font-style: normal;
}
div.textAndImage {
display: flex;
flex-direction: column;
justify-content: space-around;
background-color: #F07C3C;
border-radius: 14px;
width: 100%;
padding: 0;
border: 0;
height: 80%;
}
::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
color: #fff5ee;
opacity: .8;
opacity: 1; /* Firefox */
}
textarea {
background-color: none;
font-family: input-sans-condensed, sans-serif;
font-weight: 200;
font-style: normal;
font-size: 12pt;
margin-top: 5px;
height: 75%;
}
input.titel{
width: 75%;
margin-bottom: 3%;
height: 30px;
max-height: 15%;
}
input.adresse{
margin-bottom: 3%;
height: 30px;
max-height: 15%;
font-size: 12pt;
}
button.submit{
background-image: url("../images/absenden.svg");
background-repeat: no-repeat;
background-color: transparent;
border-radius: 40px;
border: none;
width: 80px;
height: 80px;
position: relative;
bottom: 25px;
left: 25px;
}
button.submit:active{
transition: 0.3s;
-webkit-transition: 0.3s;
transform: scale(1.1);
-webkit-transform: scale(1.1);
}
div.image-preview{
display: flex;
justify-content: flex-start;
flex-direction: row-reverse;
align-items: flex-end;
margin: 20px;
height: 60px;
}
div.ImgPrevContainer {
height: 100%;
margin-left: 100%;
display: flex;
flex-direction: row;
}
div.prevIMG {
aspect-ratio: 1;
background-position: center;
background-size: cover;
margin-right: 5px;
height: 60px;
border-radius: var(--borderRadSmall);
}
/*------------- Upload Care Widget ----------------*/
.uploadcare--widget{
width: 100%;
display: flex;
flex-direction: row;
justify-content: space-between;
}
.uploadcare--widget__button,
.uploadcare--widget__button_type_open{
height: 40px;
width: 40px;
background-image: url("../images/uploadImage.svg");
background-color: transparent;
}
.uploadcare--widget__button_type_open{
position: relative;
left: 90%;
left: calc(100% - 40px);
}
.uploadcare--progress_type_canvas{
color: var(--marine);
border-color: var(--orange);
}
.uploadcare--widget__text{
font-family: bd-supper, sans-serif;
}
.uploadcare--link, .uploadcare--widget__file-size{
display: none;
}
.uploadcare--widget__button_type_cancel{
height: 40px;
width: 40px;
background-image: url("../images/cancelImage.svg");
background-color: transparent;
}
.uploadcare--widget__button_type_remove{
height: 40px;
width: 40px;
background-image: url("../images/cancelImage.svg");
background-color: transparent;
}
.uploadcare--widget__button_type_cancel:active, .uploadcare--widget__button_type_cancel:hover, .uploadcare--widget__button_type_remove:active, .uploadcare--widget__button_type_remove:hover {
background: none;
background-image: url("../images/cancel.svg");
}
.uploadcare--widget__button_type_open:active, .uploadcare--widget__button_type_open:hover {
background-image: url("../images/uploadImageHover.svg");
background-color: transparent;
}
/*----------------------------------------------------*/
/*------------------ IDEE ANZEIGEN -------------------*/
/*----------------------------------------------------*/
div.ImgContainer {
width: 100%;
margin-top: 20px;
margin-right: 0;
height: 160px;
background-position: center;
background-size: cover;
border-radius: var(--borderRadSmall);
display: flex;
position: relative;
z-index: 12;
}
.pswp img {
max-width: none;
object-fit: contain;
}
div.ImgContainer a:first-child{
width: 100%;
height: 100%;
}
img.thumbnail{
opacity: 0;
}
#inhaltContainer {
margin-top: 15px;
padding-bottom: 0.1px;
background-color: var(--orange);
border-radius: var(--borderRadSmall);
}
.topMargin {
margin-top: 80px !important;
}
.kommentarFormular {
display: flex;
flex-direction: row;
margin: 10px;
height: 80px;
}
.kommentarText {
background-color: var(--pastelorange);
width: 70%;
height: 62px;
margin: 5px 0 5px 0;
padding: 5px 8px 3px 8px;
color: var(--marine);
font-family: bd-supper, sans-serif;
font-weight: 400;
font-style: normal;
}
.kommentarText::placeholder {
color: var(--marine);
opacity: 0.8;
}
p.likeDisplay {
display: inline-block;
color: var(--marine);
font-family: bd-supper, sans-serif;
font-weight: 400;
font-style: normal;
font-size: 13px;
margin: 10px 5px 5px 10px ;
}
h1.ideeTitel {
color: var(--helllachs);
font-size: 28px;
margin: 0;
}
p.ideeAdresse{
color: white;
font-size: 9pt;
margin: 0;
font-family: bd-supper, sans-serif;
}
div.titleLocationContainer{
margin: 10px;
padding-top: 10px;
padding-bottom: 10px;
border-top: var(--marine);
border-bottom: var(--marine);
border-left: transparent;
border-right: transparent;
border-width: 2px;
border-style: solid;
}
p.ideeInhalt {
margin: 20px 5px;
padding: 0 5px 0 5px;
color: var(--helllachs);
}
input.kommentarSubmit{
background-image: url("../images/absenden.svg");
border-radius: 40px;
border: none;
height: 50px;
width: 50px;
margin: 15px;
background-color: #fad8c4;
}
#kommentare_container {
background-color: var(--pastelorange);
border-radius: var(--borderRadSmall);
margin: 10px;
padding-top: 0.01px;
}
div.comment {
display: flex;
flex-direction: row;
justify-content: space-between;
margin: 10px;
border-bottom: var(--marine);
border-top: transparent;
border-left: transparent;
border-right: transparent;
border-style: solid;
border-width: 1px;
}
div.comment:last-child {
border-bottom: transparent;
}
div.commentRight {
display: flex;
flex-direction: row;
align-items: center;
}
p.commentText{
font-style: italic;
font-weight: 200;
font-size: 14px;
color: var(--marine);
margin: 5px 0 10px;
padding-right: 20px;
}
p.commentLikeNumber{
font-family: bd-supper, sans-serif;
font-weight: 400;
font-style: normal;
font-size: 13px;
color: var(--marine);
margin: 5px 0;
padding-right: 20px;
}
img.commentLike{
width: 20px;
}
.herz {
float: right;
display: inline-block;
width: 20px;
height: 20px;
margin: 10px 10px 5px 5px;
}
/*----------------------------------------------------*/
/*---------------------- OTHER -----------------------*/
/*----------------------------------------------------*/
#map { #map {
height: 50vh; height: 100vh;
width: 100%; width: 100vw;
float: left; float: left;
} }
#location { #currentLocation {
height: 30px; height: 40px;
width: 30px; width: 40px;
z-index: 100;
} }
#formular-wrapper {
height: 50vh;
width: 50vh;
float: left;
}
#idee { #idee {
@@ -33,37 +644,13 @@ h1 {
} }
.herz {
width: 80px;
height: 80px;
}
#currentLocation {
height: 30px;
width: 30px;
}
#cancel {
width: 60px;
height: 60px;
}
<<<<<<< HEAD
p.commentText{
display: inline-block;
padding-right: 20px;
}
p.commentLikeNumber{
display: inline-block;
padding-right: 20px;
}
img.commentLike{
width: 15px;
display: inline-block;
}
=======
.image-preview ._list { .image-preview ._list {
padding-top: 20px; padding-top: 20px;
} }
@@ -83,4 +670,180 @@ img.commentLike{
height: 80px; height: 80px;
padding: 0 10px 6px; padding: 0 10px 6px;
} }
>>>>>>> 0e5f580c74883f876fdcee5c7870c58168ae8893
/*----------------------------------------------------*/
/*---------------------- ABOUT -----------------------*/
/*----------------------------------------------------*/
body.aboutInfo {
background-image: url("/images/Background2.svg");
background-size: cover;
color: var(--royalblau);
position: relative;
overflow-y: scroll;
}
div.content {
margin: 20px;
padding-bottom: 80px;
}
div.subPageHeader {
height: 130px;
}
body.aboutInfo h1 {
background-color: var(--helllachs);
color: var(--royalblau);
font-weight: 400;
font-size: 22pt;
width: fit-content;
padding: 10px 13px 6px 10px;
margin-top: 25px;
margin-bottom: 12px;
border-radius: var(--borderRadSmall);
}
div.textContainer {
background-color: var(--helllachs);
padding: 10px;
border-radius: var(--borderRadSmall);
}
.activeLink {
opacity: .6;
pointer-events: none;
}
.fixedPos {
position: fixed;
top: 7px;
}
/*------- Loading --------*/
.loadingscreen{
position: absolute;
top: 80px;
left: 43%;
z-index: 10;
display: flex;
flex-direction: column;
align-items: center;
margin: auto;
}
.loader {
border: 10px solid rgba(0,0,0,0);
border-radius: 50%;
border-top: 13px solid var(--orange);
width: 50px;
height: 50px;
animation: spinner 2s linear infinite;
}
@keyframes spinner {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/*------- DESKTOP -----------*/
@media screen and (min-width: 900px) {
div.content{
display: flex;
flex-direction: column;
justify-content: space-around;
margin: auto;
padding: 0;
min-height: 500px;
width: 70%;
background-color: var(--helllachs);
border-radius: var(--borderRadSmall);
}
div.innerContent{
display: flex;
}
article{
margin: 20px;
width: calc(50% - 40px);
background-color: none;
}
body.aboutInfo h1{
border-color: var(--royalblau);
border-radius: 100px;
padding: 2px 25px 0px;
border-style: solid;
border-width: 2px;
}
a.desktopOnly{
display: flex;
align-self: flex-end;
margin-right: 20px;
margin-bottom: 20px;
border-radius: 1000px;
padding: 10px 20px 8px;
background-color: var(--royalblau);
color: var(--helllachs);
text-decoration: none;
transition: background-color .5s;
}
a.desktopOnly:hover{
background-color: var(--marine);
transition: background-color .5s;
}
.desktopOnly p{
margin: 0;
}
/*------- Overlay --------*/
#overlay{
bottom: 5vh;
right: 0;
border-radius: var(--borderRadLarge) 0 0 var(--borderRadLarge) ;
}
.hidden{
transform: translateX(100%);
-webkit-transform: translateX(100%);
}
.show{
transform: translateX(0);
-webkit-transform: translateX(0);
}
}
+85
View File
@@ -0,0 +1,85 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SPINN MIT | Info</title>
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="https://use.typekit.net/out0zfe.css">
<link rel="apple-touch-icon" sizes="180x180" href="images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon-16x16.png">
<link rel="manifest" href="images/site.webmanifest">
</head>
<body class="aboutInfo">
<div class="subPageHeader">
<a href="/">
<img src="images/logo.gif" class="" id="logo" alt="">
</a>
<div class="mapControls ">
<a href="/help.html" class="activeLink">
<img src="images/help.svg" id="helpLink" class="mapControl">
</a>
<a href="/about.html" class="">
<img src="images/about.svg" id="aboutLink" class="mapControl ">
</a>
<a href="/">
<img src="images/cancelAboutInfo.svg" id="homeLink" class="mapControl">
</a>
</div>
</div>
<div class="content">
<div class="innerContent">
<article>
<h1>Spinnerei erfassen</h1>
<div class="textContainer">
<p>Willkommen! Hier erfährst du, wie du deine Ideen festhalten und publizieren kannst:</p>
<p>Klicke in der Karte auf die Location, um an diesem Ort eine neue Spinnerei zu erfassen.</p>
<p>Trage den Titel und deine Idee ein. Wichtig: Überprüfe, ob der erfasste Standort korrekt eingetragen wurde – ansonsten kannst du diesen auch noch anpassen.
Optional kannst du auch noch bis zu vier Bilder oder Skizzen hochladen. So können sich deine Mitspinner deine Vision besser vorstellen.
</p>
</div>
</article>
<article>
<h1>Kommentare & Votes</h1>
<div class="textContainer">
<p>Gefällt dir eine andere Idee besonders gut, kannst du diese voten. So wird die Idee grösser auf der Karte abgebildet, da sie anscheinend mehrere Personen begeistert. Negative Votes gibt es nicht, jedoch findet Kritik in der Kommentarspalte Platz.
</p>
<p>Durch die Kommentarfunktion können sich deine Mitmenschen oder du selbst bei fremden Ideen einbringen. Die einzelnen Spinnereien können so kritisiert, gelobt oder gar weitergesponnen werden.</p>
</div>
</article>
</div>
<a href="/" id="back" class="desktopOnly">
<p>zurück zu Karte</p>
</a>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="js/aboutInfo.js"></script>
</body>
</html>
+19
View File
@@ -0,0 +1,19 @@
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 453.98 852.651">
<rect y="0.147" width="453.73" height="852.504" style="fill: #ffd5bd"/>
<g>
<path d="M620.372,938.232c-4.528-7.061-6.978-16.66-10.531-25.489-10.282,5.339-15.2,20.26-10.508,37.179.078.281.16.557.241.836h30.439A90.839,90.839,0,0,1,620.372,938.232Z" transform="translate(-409.164 -101.78)" style="fill: #ffbd89"/>
<path d="M435.164,797.505c-8.635-31.112-15.23-63.3-22.753-94.98-.172.186-.763.6-.728.817,7.325,46.375,13.74,93.1,27.641,136.952,13.652,43.066,32.1,79.977,55.735,110.464h21.656C479.541,913.173,452.861,861.266,435.164,797.505Z" transform="translate(-409.164 -101.78)" style="fill: #ffbd89"/>
<path d="M411.414,140.8a76.357,76.357,0,0,0-2,17.48V197.1c5.463,1.335,11,2.71,16.668,4.085C422.3,180.687,417.726,160.316,411.414,140.8Z" transform="translate(-409.164 -101.78)" style="fill: #ffbd89"/>
<path d="M561.729,544.436c2.8-5.015,5.157-10.506,7.717-15.778l-2.214-3.447c-3.592,3.1-7.368,5.871-10.747,9.367-28.135,29.112-48.508,67.7-67.617,107.552-2.87,5.986-3.357,16.116-2.114,23.409,1.657,9.724,5.49,19.092,9.546,27.556,2.494,5.2,7.15,8.43,10.835,12.544,1.385-5.985,3.538-11.854,4.026-17.975,2.533-31.8,7.7-62.665,20.517-89.579C540.648,579.254,551.721,562.34,561.729,544.436Z" transform="translate(-409.164 -101.78)" style="fill: #ffbd89"/>
<path d="M863.144,646.6V487.124c-.742-2.32-1.518-4.6-2.357-6.838-14.358-38.282-34.487-40.508-52.2-5.26-7.735,15.393-13.734,32.448-20.521,48.748l1.947,1.981q2.549-3.624,5.1-7.247c12.629-18.041,25.893-15.532,34.082,7.041,8.622,23.77,9.148,49.044,5.516,74.584-6.815,47.919-28.465,79.041-61.35,92.429-28.679,11.676-54.522,27.841-77.923,54.091-12.223,13.712-28.45,20.735-43.037,30.29-9.528,6.242-19.376,6.364-28.731-.862-14.273-11.024-29.767-20.1-42.289-34.17-34.388-38.629-40.134-100.086-15.427-150.866,6.223-12.791,13.911-24.209,20.675-36.52,3.024-5.5,6.267-5.7,9.316-1.248,6.943,10.13,14.617,19.779,19.949,31.41,5.529,12.063,8.578,26.274,12.833,39.472,14.416,44.725,39.857,68.248,74.681,73.222,11.312,1.615,21.482-2.754,28.774-15.341,16.223-28,23.7-62.068,33.669-94.4-5.717,8.9-11.049,18.358-17.237,26.585-10.131,13.468-22.055,22.669-36.547,23.079-13.376.378-23.994-7.65-30.018-23.992a210.764,210.764,0,0,1-9.59-36.687c-6.58-38.173-11.8-76.872-27.075-110.99a9.572,9.572,0,0,1-.472-5.7c5.314-16.574,10.821-33.03,16.553-50.355,11.243,2.61,23,5.217,34.723,8.088,21.912,5.367,41.149-2.383,57.3-23.213,9.084-11.714,17.215-24.824,26-37,8.473-11.738,17.767-22.169,30.876-17.532,5.384,1.9,11.244,5.218,15.136,10.4,9.8,13.047,18.663,27.448,27.736,41.509,1.234,1.912,1.827,4.907,2.2,7.54q3.885,27.666,7.714,55.346V320.658q-2.531-6.963-5.055-13.93c-3.654-10.115-4.542-22.132-6.707-33.271l2.072-1.115q4.871,9.808,9.69,19.66V269.534q-11.955-25.956-23.973-51.856c-13.028-28.05-25.975-56.271-40.284-83.066q-9.114-17.067-19.234-32.832H761.042q5.272,7.686,10.342,15.8a442.285,442.285,0,0,1,59.452,149.906c.646,3.249,1.23,6.521,2.151,11.422-12.524-15.616-20.541-32.485-25.786-52.93-8.543-33.3-22.345-62.9-38.494-90.321-9.813-16.662-27.648-16.609-36.383,1.236-4.662,9.526-7.517,20.842-10.686,31.631-4.866,16.564-8.947,33.575-14,50.025-8.084,26.335-21.845,44.824-41.625,54.281-5.574,2.665-11.177,5.214-16.128,7.519l24.333,48.081-13.915,5.862c-2.809-7.3-5.153-14.485-8.181-21.071-11.767-25.595-29.069-42.065-48.58-54.491C580.7,244.177,556.3,237.3,531.6,232.112a185.9,185.9,0,0,1-21.266-5.649c-22.175-7.48-32.648-26.867-31.523-58.5a192.5,192.5,0,0,1,14.527-66.18H450.356a30.857,30.857,0,0,0-13.082,2.946q1.4,5.876,2.313,12.017C443.45,143,446.1,169.6,449.153,196.071s5.517,53.1,9.178,79.417c1.575,11.319,4.873,22.441,8.526,32.9,7.18,20.553,19.688,31.435,36.128,30,12.578-1.1,25.142-4.6,37.477-8.466,24.3-7.615,48.39-16.476,72.65-24.328,15.053-4.872,15.935-3.928,23.969,16.108-8.092,16.489-20.8,25.362-32.487,37.249l42.237-2.479c.346,4.315.684,8.543,1.127,14.077-7.752.037-14.884.009-22.016.121-11.448.18-22.945-.343-34.325.989-6.645.777-10.915-1.559-13.819-9.751l37.416-33.247-.66-2.518a27.862,27.862,0,0,0-5.236.336c-11.523,2.872-23.025,5.912-34.543,8.823-14.881,3.762-29.829,7.065-44.632,11.332a104.5,104.5,0,0,0-23.567,9.58c-19.727,11.408-40.766,3.23-52.154-22.034-4.668-10.355-8.211-21.675-11.445-30.351-.78,37.9,6.068,71.06,24.255,91.57-7.251,17.752-9.227,18.482-22.323,8.319-13.923-10.8-22.507-28.136-28.846-47.406q-3.429-10.422-6.649-20.975v32.315c7.733,20.479,17.212,39.282,32.8,50.546,3.9,2.818,8.311,4.3,13.057,6.68-1,4.828-1.928,9.328-2.948,14.265-10.748-2.043-19.157-8.814-26.523-18.5a163.484,163.484,0,0,1-16.39-27.1v17.109a180.159,180.159,0,0,0,27.927,37.4,77.446,77.446,0,0,1,16.294,24.822c7.6,19,13.643,39.164,31.517,49.105-11.21,10.276-20.381,19.7-30.248,27.439-9.656,7.572-19.592,5.312-27.758-4.733A175.64,175.64,0,0,1,409.414,518.7V626.009c9.38,14.083,16.432,30.553,21.195,48.758q12.561,48.013,23.12,97.017c12.636,58.169,32.27,110.591,65.776,150.96,8.563,10.317,18.018,19.226,27.546,28.014h12.8c-1.065-2.261-2.073-4.538-3-6.876-4.768-12.059-8.783-25.576-1.5-37.731,7.8-13.021,18.677-19.423,31.233-16.388,43.139,10.424,84.6,4.468,123.067-25.647,9.975-7.808,18.519-19.438,27.034-30.333a24.217,24.217,0,0,0,4.014-22.761c22.543-21.971,44.577-42.17,65.605-64.2Q846.773,704.434,863.144,646.6ZM690.915,341.917c23.233-7.659,41.764-24.828,56.393-50.784a218.927,218.927,0,0,1,18.533-28.158c11.452-14.487,22.93-15.31,36.207-4.077,14.937,12.637,26.928,30.036,36.041,50,5.3,11.619,6.2,27.072,8.88,39.827-11.454-14.423-22.134-29.845-34.286-42.6-11.323-11.883-23.291-10.536-34.457,1.863a168.783,168.783,0,0,0-19.549,26.766c-17.151,28.946-38.886,44.149-65.989,45.134-9.413.343-18.809,1.6-28.633,2.47-.3-10.236-.576-19.705-.875-29.975C672.322,348.906,681.548,345.005,690.915,341.917Zm-85.129-57.372c-27.649,7.913-55.094,17.933-83.009,23.1-24.159,4.472-40.566-17.9-44.958-54.967,10,.941,19.986,1.848,29.966,2.873a4.22,4.22,0,0,1,2.695,1.472c12.62,15.46,27.725,15.015,43.073,12.85A113.362,113.362,0,0,0,569.078,267c14.275-4.089,24.841,7.788,36.762,13.849Zm41.655,99.845L646.007,399.1l-55.838-7.373c-.43-1.762-1.185-4.858-2.642-10.833Zm-57.132,30.083c5.756-12.323,17.886-15.586,27.121-8.019,5.226,4.281,5.872,11.115,4.055,18.006-2.44,9.248-5.679,18.1-8.769,27.716l13.711,10.339c-4.372,7.583-8.308,14.408-12.63,21.9-14.365-15.151-30.134-20.577-46.475-18.5C575.017,448.629,582.43,431.343,590.309,414.473ZM562.824,490.59l1.3Line truncated
<path d="M452.643,513.532c-2.055-6.587-4.251-12.346-5.677-18.448-3.912-16.723-11.42-29.1-21.824-39.171a116.753,116.753,0,0,1-15.728-19.022V467.21c3.154,7.56,6.074,15.322,8.931,23.105C425.182,508.947,436.522,516.943,452.643,513.532Z" transform="translate(-409.164 -101.78)" style="fill: #ffbd89"/>
<path d="M504.887,172.069c-.369,4.8,1.366,10.781,3.47,14.907,6.666,13.069,17.127,18.423,27.579,23.25,20.085,9.276,40.975,16.035,60.131,28.08,15.267,9.6,28.643,7.08,42.959.127,16.89-8.2,27.943-24.44,35.915-53.869a213.258,213.258,0,0,0-.3-82.784H519.83C511.741,123.039,506.837,146.705,504.887,172.069Z" transform="translate(-409.164 -101.78)" style="fill: #ffbd89"/>
<path d="M409.414,828.705V950.758h57.645C441.874,916.318,423.022,875.249,409.414,828.705Z" transform="translate(-409.164 -101.78)" style="fill: #ffbd89"/>
<path d="M796.9,396.145c-5.083,5.43-9.577,11.986-14.049,18.414-9.648,13.872-18.679,28.612-28.732,41.887-22.365,29.529-39.761,32.379-66.927,12.212-6.458-4.8-12.833-9.8-19.246-14.714,12.638,26.208,25.569,51.83,40.151,75.515,11.068,17.977,24.818,18.684,37.458,2.762,8.716-10.979,16.125-24.268,23-37.621,11.231-21.813,21.069-45,32.4-66.7,9.759-18.7,21.9-31.778,40.706-18.336C830.436,385.536,811.787,380.241,796.9,396.145Z" transform="translate(-409.164 -101.78)" style="fill: #ffbd89"/>
<path d="M859.636,758.162c-13.355,26.448-30.33,47.606-51.23,61.961-24.555,16.865-49.659,32.2-74.258,48.949-11.588,7.89-23.2,16.287-33.649,26.66-15.362,15.246-13.4,33.843,3.934,44.627,6.031,3.751,12.435,6.356,20.307,10.307l-.207.092H863.144v-199.8Q861.442,754.584,859.636,758.162Z" transform="translate(-409.164 -101.78)" style="fill: #ffbd89"/>
<path d="M608.993,436.707c.461-1.6,1.524-3.136,1.5-4.673-.087-4.628-.575-9.241-.907-13.859-3.824,1.169-9.007.616-11.176,3.879-4.024,6.054-6.288,14.337-9.586,22.431,2.9.722,4.958.716,6.685,1.752C602.926,450.689,606.5,445.313,608.993,436.707Z" transform="translate(-409.164 -101.78)" style="fill: #ffbd89"/>
<path d="M849.356,142.957c2,3.789,4.037,7.545,7.177,13.409-3.382-14.435-10.378-31.933-19.939-50.993a31.727,31.727,0,0,0-10-3.269Q838.351,122.027,849.356,142.957Z" transform="translate(-409.164 -101.78)" style="fill: #ffbd89"/>
<path d="M440.705,382.805c-5.207-26.175-9.816-50.355-14.868-74.356-2.981-14.162-6.07-28.388-10.2-41.952a65.65,65.65,0,0,0-6.223-14.3v40.662c5.124,19.044,10.193,38.121,16.036,56.734C429.057,361.081,435.2,371.052,440.705,382.805Z" transform="translate(-409.164 -101.78)" style="fill: #ffbd89"/>
<path d="M863.144,237.232V191.608c-11.066-21.6-22.185-43.144-33.651-64.331q-7.062-13.052-14.534-25.5H794.3c18.053,27,33.314,57.056,47.446,88.258Q852.432,213.642,863.144,237.232Z" transform="translate(-409.164 -101.78)" style="fill: #ffbd89"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

+4
View File
@@ -0,0 +1,4 @@
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 180.078 229.622">
<polygon points="5.557 7.084 74.603 229.622 180.078 5.003 5.557 7.084" style="fill: #050035;fill-opacity: 0.4"/>
<polygon points="0 2.081 69.046 224.619 174.521 0 0 2.081" style="fill: #ff7523"/>
</svg>

After

Width:  |  Height:  |  Size: 311 B

+4
View File
@@ -0,0 +1,4 @@
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 271.555 292.079">
<polygon points="5.557 67.908 132.674 292.079 271.555 5.003 5.557 67.908" style="fill: #050035;fill-opacity: 0.4"/>
<polygon points="0 62.905 127.117 287.076 265.998 0 0 62.905" style="fill: #ff7523"/>
</svg>

After

Width:  |  Height:  |  Size: 317 B

+4
View File
@@ -0,0 +1,4 @@
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 229.236 257.931">
<polygon points="5.557 5.003 129.896 257.931 229.236 53.53 5.557 5.003" style="fill: #050035;fill-opacity: 0.4"/>
<polygon points="0 0 124.339 252.927 223.68 48.527 0 0" style="fill: #ff7523"/>
</svg>

After

Width:  |  Height:  |  Size: 309 B

+4
View File
@@ -0,0 +1,4 @@
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 167.897 260.432">
<polygon points="5.557 5.003 102.12 260.432 167.897 38.059 5.557 5.003" style="fill: #050035;fill-opacity: 0.4"/>
<polygon points="0 0 96.564 255.429 162.34 33.055 0 0" style="fill: #ff7523"/>
</svg>

After

Width:  |  Height:  |  Size: 308 B

+4
View File
@@ -0,0 +1,4 @@
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 190.512 290.282">
<polygon points="5.557 84.084 96.564 290.282 190.512 5.003 5.557 84.084" style="fill: #050035;fill-opacity: 0.4"/>
<polygon points="0 79.081 91.007 285.279 184.955 0 0 79.081" style="fill: #ff7523"/>
</svg>

After

Width:  |  Height:  |  Size: 315 B

+4
View File
@@ -0,0 +1,4 @@
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 236.591 212.998">
<polygon points="5.557 26.571 128.264 212.998 236.591 5.003 5.557 26.571" style="fill: #050035;fill-opacity: 0.4"/>
<polygon points="0 21.567 122.707 207.995 231.034 0 0 21.567" style="fill: #ff7523"/>
</svg>

After

Width:  |  Height:  |  Size: 317 B

+4
View File
@@ -0,0 +1,4 @@
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128.735 128.735">
<circle cx="64.368" cy="64.368" r="64.368" style="fill: #442ccd"/>
<path d="M419.892,297.531h.674c5.2,0,7.316,2.021,7.316,7.028,0,5.68-2.984,6.931-7.413,6.931H419.8c-5.294,0-7.316-2.022-7.316-7.124C412.479,300.227,413.731,297.531,419.892,297.531Zm-5.68,20.89h11.841v45.535H414.212Z" transform="translate(-355.697 -265.909)" style="fill: #fff"/>
</svg>

After

Width:  |  Height:  |  Size: 460 B

+8
View File
@@ -0,0 +1,8 @@
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 258.026 258.026">
<circle cx="129.013" cy="129.013" r="129.013" style="fill: #ffd5bd"/>
<g>
<polygon points="22.81 123.885 209.781 48.269 158.415 196.255 87.436 157.286 79.086 209.805 63.777 150.615 22.81 123.885" style="fill: none;stroke: #2c107f;stroke-linecap: round;stroke-linejoin: round;stroke-width: 6px"/>
<line x1="118.553" y1="174.37" x2="79.086" y2="209.805" style="fill: none;stroke: #2c107f;stroke-linecap: round;stroke-linejoin: round;stroke-width: 6px"/>
<polyline points="63.777 150.615 209.781 48.269 87.436 157.286" style="fill: none;stroke: #2c107f;stroke-linecap: round;stroke-linejoin: round;stroke-width: 6px"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 750 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

+19
View File
@@ -0,0 +1,19 @@
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 539.457 804.381">
<rect width="539.16" height="804.381" style="fill: #442ccd"/>
<g>
<path d="M562.232,911.028c-5.381-6.662-8.292-15.719-12.515-24.049-12.218,5.037-18.061,19.116-12.486,35.079.093.266.191.526.287.789h36.17A91.379,91.379,0,0,1,562.232,911.028Z" transform="translate(-311.257 -120.632)" style="fill: #2c107f"/>
<path d="M342.152,778.246c-10.261-29.356-18.1-59.73-27.037-89.619-.2.175-.907.562-.865.771,8.7,43.757,16.327,87.845,32.845,129.221,16.222,40.634,38.146,75.462,66.23,104.228h25.732C394.884,887.384,363.18,838.407,342.152,778.246Z" transform="translate(-311.257 -120.632)" style="fill: #2c107f"/>
<path d="M313.931,158.608a57.936,57.936,0,0,0-2.378,16.493v36.63c6.492,1.259,13.066,2.557,19.807,3.854C326.87,196.246,321.43,177.025,313.931,158.608Z" transform="translate(-311.257 -120.632)" style="fill: #2c107f"/>
<path d="M492.547,539.461c3.33-4.731,6.128-9.912,9.17-14.887l-2.631-3.252c-4.268,2.929-8.755,5.539-12.77,8.839-33.433,27.468-57.641,63.879-80.348,101.48-3.411,5.648-3.989,15.206-2.512,22.088,1.969,9.175,6.523,18.014,11.343,26,2.963,4.909,8.5,7.954,12.875,11.836,1.646-5.647,4.2-11.185,4.783-16.96,3.011-30.006,9.148-59.128,24.381-84.522C467.5,572.315,480.655,556.355,492.547,539.461Z" transform="translate(-311.257 -120.632)" style="fill: #2c107f"/>
<path d="M850.714,635.857V485.385c-.882-2.189-1.8-4.341-2.8-6.452-17.062-36.121-40.98-38.221-62.029-4.963-9.193,14.524-16.32,30.616-24.386,46q1.158.933,2.314,1.868,3.029-3.418,6.055-6.837c15.007-17.023,30.768-14.656,40.5,6.643,10.245,22.428,10.871,46.275,6.555,70.374-8.1,45.214-33.825,74.579-72.9,87.212-34.079,11.017-64.788,26.268-92.6,51.037-14.525,12.938-33.807,19.564-51.14,28.58-11.322,5.89-23.025,6-34.141-.813-16.96-10.4-35.372-18.97-50.251-32.242-40.862-36.448-47.69-94.436-18.332-142.35,7.395-12.068,16.531-22.842,24.568-34.458,3.594-5.194,7.447-5.374,11.07-1.177,8.251,9.558,17.37,18.662,23.705,29.637,6.571,11.382,10.194,24.791,15.249,37.243,17.131,42.2,47.362,64.4,88.742,69.089,13.442,1.524,25.528-2.6,34.193-14.475,19.277-26.421,28.159-58.565,40.007-89.071-6.792,8.4-13.128,17.323-20.482,25.086-12.038,12.707-26.207,21.389-43.428,21.775-15.895.357-28.512-7.218-35.67-22.638a167,167,0,0,1-11.395-34.615C616.3,533.817,610.1,497.3,591.946,465.11a7.311,7.311,0,0,1-.562-5.374c6.315-15.638,12.86-31.165,19.67-47.513,13.361,2.463,27.331,4.923,41.261,7.632,26.038,5.064,48.9-2.248,68.093-21.9C731.2,386.9,740.864,374.53,751.3,363.046c10.068-11.075,21.112-20.918,36.689-16.542,6.4,1.8,13.362,4.923,17.986,9.811,11.645,12.311,22.177,25.9,32.958,39.166,1.466,1.8,2.172,4.63,2.611,7.114q4.617,26.1,9.167,52.221v-126.5q-3.008-6.57-6.007-13.144c-4.342-9.543-5.4-20.883-7.97-31.393l2.462-1.051q5.787,9.253,11.515,18.549v-21.2q-14.207-24.492-28.487-48.929c-15.481-26.467-30.866-53.094-47.869-78.377q-10.83-16.1-22.856-30.979H729.387q6.265,7.252,12.29,14.909c32.774,41.613,57.3,88.177,70.646,141.444.768,3.066,1.461,6.154,2.555,10.778a119.149,119.149,0,0,1-30.641-49.943c-10.152-31.42-26.552-59.353-45.741-85.223-11.661-15.721-32.854-15.671-43.233,1.167-5.541,8.988-8.933,19.666-12.7,29.846-5.782,15.628-10.631,31.679-16.631,47.2-9.606,24.848-25.958,42.293-49.462,51.216-6.624,2.515-13.282,4.92-19.166,7.1l28.916,45.367-16.536,5.531c-3.337-6.888-6.123-13.667-9.721-19.881-13.982-24.151-34.541-39.691-57.726-51.416-27.153-13.732-56.138-20.217-85.5-25.116-8.476-1.414-16.946-3.1-25.27-5.33-26.35-7.058-38.8-25.351-37.458-55.2,1.013-22.6,7.446-43.249,17.262-62.445H360.2a44.761,44.761,0,0,0-15.545,2.78,107.048,107.048,0,0,1,2.749,11.339c4.59,24.772,7.733,49.869,11.366,74.85s6.556,50.106,10.907,74.933c1.871,10.681,5.79,21.175,10.131,31.039,8.531,19.393,23.395,29.661,42.93,28.306,14.947-1.037,29.876-4.341,44.534-7.988,28.873-7.185,57.5-15.546,86.329-22.955,17.886-4.6,18.935-3.706,28.481,15.2-9.615,15.559-24.711,23.93-38.6,35.146l50.19-2.339c.41,4.072.812,8.062,1.338,13.282-9.211.036-17.686.009-26.16.115-13.6.17-27.266-.323-40.789.933-7.9.734-12.97-1.471-16.421-9.2l44.461-31.37q-.393-1.188-.784-2.376a41.5,41.5,0,0,0-6.222.316c-13.693,2.71-27.36,5.578-41.047,8.326-17.682,3.549-35.445,6.665-53.036,10.692a144.061,144.061,0,0,0-28,9.039c-23.441,10.764-48.441,3.047-61.973-20.79-5.547-9.77-9.758-20.451-13.6-28.638-.927,35.758,7.211,67.049,28.821,86.4-8.616,16.75-10.964,17.438-26.525,7.85-16.545-10.195-26.745-26.548-34.278-44.73-2.716-6.556-5.334-13.161-7.9-19.791v30.491c9.19,19.322,20.454,37.064,38.981,47.692,4.636,2.659,9.876,4.055,15.515,6.3-1.185,4.555-2.29,8.8-3.5,13.46-12.771-1.928-22.764-8.317-31.517-17.452a152.567,152.567,0,0,1-19.476-25.572v16.143a179.74,179.74,0,0,0,33.186,35.287,74.207,74.207,0,0,1,19.362,23.42c9.035,17.93,16.211,36.954,37.45,46.333-13.32,9.7-24.218,18.591-35.942,25.891-11.475,7.145-23.282,5.012-32.985-4.466a170.17,170.17,0,0,1-21.071-24.518V616.43a138.509,138.509,0,0,1,25.186,46.005q14.927,45.3,27.474,91.541c15.015,54.886,38.346,104.348,78.16,142.439,10.175,9.734,21.411,18.141,32.732,26.432h15.21c-1.265-2.133-2.463-4.281-3.562-6.487-5.666-11.379-10.437-24.133-1.782-35.6,9.272-12.285,22.193-18.326,37.113-15.463,51.261,9.836,100.523,4.216,146.238-24.2,11.854-7.367,22.006-18.34,32.125-28.621C706,806.831,708.6,798.863,705.216,791c26.788-20.731,52.97-39.789,77.958-60.574Q831.26,690.428,850.714,635.857ZM646.057,348.375c27.607-7.227,49.627-23.427,67.011-47.918a209.531,209.531,0,0,1,22.022-26.568c13.608-13.67,27.248-14.446,43.024-3.847,17.749,11.924,32,28.34,42.827,47.174,6.3,10.963,7.371,25.543,10.552,37.578-13.61-13.608-26.3-28.16-40.741-40.192-13.456-11.212-27.677-9.941-40.945,1.758a167.128,167.128,0,0,0-23.23,25.256c-20.38,27.312-46.208,41.656-78.414,42.586-11.185.323-22.35,1.5-34.024,2.33-.355-9.658-.684-18.593-1.04-28.283C623.963,354.969,634.926,351.288,646.057,348.375ZM544.9,294.242c-32.856,7.466-65.468,16.92-98.64,21.8-28.707,4.219-48.2-16.893-53.422-51.865,11.883.888,23.749,1.744,35.608,2.711a5.492,5.492,0,0,1,3.2,1.389c15,14.587,32.945,14.167,51.183,12.124a166.416,166.416,0,0,0,18.448-2.713c16.962-3.858,29.518,7.348,43.684,13.067Zm49.5,94.208c-.65,5.292-1.148,9.35-1.7,13.878l-66.351-6.957c-.511-1.663-1.408-4.583-3.139-10.221Zm-67.889,28.385a22.613,22.613,0,0,1,32.228-7.566c6.209,4.039,6.978,10.487,4.818,16.989-2.9,8.727-6.749,17.074-10.419,26.151,5.509,3.3,10.386,6.22,16.292,9.756l-15.008,20.667c-17.071-14.3-35.808-19.416-5Line truncated
<path d="M362.922,510.3c-2.442-6.216-5.051-11.65-6.747-17.407-4.647-15.779-13.57-27.462-25.932-36.96a120.527,120.527,0,0,1-18.69-17.948V466.6c3.748,7.133,7.218,14.457,10.613,21.8C330.291,505.976,343.765,513.521,362.922,510.3Z" transform="translate(-311.257 -120.632)" style="fill: #2c107f"/>
<path d="M425,188.114c-.439,4.529,1.623,10.173,4.123,14.066,7.921,12.331,20.352,17.383,32.772,21.937,23.866,8.753,48.69,15.13,71.452,26.5,18.142,9.059,34.036,6.681,51.048.12,20.069-7.74,33.2-23.06,42.677-50.828a160.666,160.666,0,0,0-.358-78.111H442.76C433.147,141.852,427.32,164.182,425,188.114Z" transform="translate(-311.257 -120.632)" style="fill: #2c107f"/>
<path d="M311.553,807.684V922.847h68.5C350.125,890.352,327.723,851.6,311.553,807.684Z" transform="translate(-311.257 -120.632)" style="fill: #2c107f"/>
<path d="M772,399.541c-6.039,5.125-11.38,11.31-16.693,17.375-11.465,13.089-22.2,27-34.143,39.522-26.576,27.863-47.247,30.552-79.528,11.523-7.674-4.524-15.249-9.25-22.87-13.883,15.019,24.729,30.384,48.905,47.712,71.252,13.151,16.962,29.49,17.63,44.51,2.606,10.357-10.359,19.162-22.9,27.331-35.5,13.345-20.581,25.035-42.458,38.5-62.939,11.6-17.641,26.019-29.984,48.37-17.3C811.847,389.532,789.687,384.536,772,399.541Z" transform="translate(-311.257 -120.632)" style="fill: #2c107f"/>
<path d="M846.546,741.123c-15.871,24.955-36.042,44.919-60.877,58.463-29.178,15.913-59.009,30.385-88.239,46.187-13.771,7.444-27.566,15.367-39.985,25.154-18.254,14.386-15.923,31.933,4.675,42.108,7.166,3.54,14.776,6,24.131,9.726l-.247.086h164.71V734.323Q848.69,737.748,846.546,741.123Z" transform="translate(-311.257 -120.632)" style="fill: #2c107f"/>
<path d="M548.71,437.814c.548-1.506,1.812-2.959,1.777-4.409-.1-4.367-.683-8.719-1.077-13.077-4.544,1.1-10.7.581-13.28,3.661-4.782,5.711-7.472,13.526-11.391,21.164,3.449.681,5.891.676,7.943,1.653C541.5,451.006,545.753,445.934,548.71,437.814Z" transform="translate(-311.257 -120.632)" style="fill: #2c107f"/>
<path d="M834.33,160.645c2.378,3.576,4.8,7.12,8.528,12.653-4.018-13.621-12.333-30.131-23.694-48.114a44.822,44.822,0,0,0-11.885-3.085Q821.253,140.9,834.33,160.645Z" transform="translate(-311.257 -120.632)" style="fill: #2c107f"/>
<path d="M348.737,386.955c-6.188-24.7-11.665-47.512-17.669-70.159-3.542-13.363-7.212-26.785-12.12-39.584a56.251,56.251,0,0,0-7.395-13.493v38.367c6.089,17.969,12.113,35.969,19.056,53.532C334.894,366.457,342.193,375.865,348.737,386.955Z" transform="translate(-311.257 -120.632)" style="fill: #2c107f"/>
<path d="M850.714,249.6V206.55c-13.15-20.379-26.362-40.708-39.987-60.7q-8.393-12.315-17.271-24.058H768.9c21.452,25.477,39.586,53.836,56.379,83.276Q837.984,227.341,850.714,249.6Z" transform="translate(-311.257 -120.632)" style="fill: #2c107f"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 10 KiB

+7
View File
@@ -0,0 +1,7 @@
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128.735 128.735">
<circle cx="64.368" cy="64.368" r="64.368" style="fill: #ffd5bd"/>
<g>
<line x1="32.205" y1="96.53" x2="96.53" y2="32.205" style="fill: none;stroke: #2c107f;stroke-linecap: round;stroke-linejoin: round;stroke-width: 6px"/>
<line x1="32.205" y1="32.205" x2="96.53" y2="96.53" style="fill: none;stroke: #2c107f;stroke-linecap: round;stroke-linejoin: round;stroke-width: 6px"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 505 B

+7
View File
@@ -0,0 +1,7 @@
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128.735 128.735">
<circle cx="64.368" cy="64.368" r="64.368" style="fill: #fff5ed"/>
<g>
<line x1="32.205" y1="96.53" x2="96.53" y2="32.205" style="fill: none;stroke: #2c107f;stroke-linecap: round;stroke-linejoin: round;stroke-width: 6px"/>
<line x1="32.205" y1="32.205" x2="96.53" y2="96.53" style="fill: none;stroke: #2c107f;stroke-linecap: round;stroke-linejoin: round;stroke-width: 6px"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 505 B

+7
View File
@@ -0,0 +1,7 @@
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 134.734 134.735">
<path d="M420.064,397.644a67.368,67.368,0,1,1,67.368-67.367A67.443,67.443,0,0,1,420.064,397.644Zm0-128.735a61.368,61.368,0,1,0,61.368,61.368A61.437,61.437,0,0,0,420.064,268.909Z" transform="translate(-352.697 -262.909)" style="fill: #2c107f"/>
<g>
<line x1="35.205" y1="99.53" x2="99.53" y2="35.205" style="fill: none;stroke: #2c107f;stroke-linecap: round;stroke-linejoin: round;stroke-width: 6px"/>
<line x1="35.205" y1="35.205" x2="99.53" y2="99.53" style="fill: none;stroke: #2c107f;stroke-linecap: round;stroke-linejoin: round;stroke-width: 6px"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 682 B

+4
View File
@@ -0,0 +1,4 @@
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128.735 128.735">
<circle cx="64.368" cy="64.368" r="64.368" style="fill: #442ccd"/>
<polygon points="64.368 29.601 40.697 99.134 64.368 85.684 88.038 99.134 64.368 29.601" style="fill: #fff"/>
</svg>

After

Width:  |  Height:  |  Size: 291 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 728 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

+4
View File
@@ -0,0 +1,4 @@
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128.735 128.735">
<circle cx="64.368" cy="64.368" r="64.368" style="fill: #442ccd"/>
<path d="M402.777,333.34c0-15.96,25.724-15.015,25.724-23.52,0-4.2-3.57-5.564-7.559-5.564-7.981,0-8.085,6.614-8.085,6.614H399.732s.63-16.379,21.1-16.379h.42c12.075,0,19.95,5.985,19.95,15.329,0,16.8-26.669,15.539-26.669,24.254,0,2.625,2.309,4.305,5.984,4.305a6.455,6.455,0,0,0,6.3-5.039h10.6s-1.154,14.489-16.694,14.489C407.607,347.829,402.777,340.689,402.777,333.34ZM420.1,359.483h.735c5.355,0,7.246,1.89,7.246,7.035,0,4.41-1.156,6.825-7.351,6.825H420c-5.355,0-7.246-1.89-7.246-7.035C412.751,362,413.907,359.483,420.1,359.483Z" transform="translate(-355.697 -265.909)" style="fill: #fff"/>
</svg>

After

Width:  |  Height:  |  Size: 771 B

+5
View File
@@ -0,0 +1,5 @@
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 53.569 48.055">
<g id="c5rk9W.tif">
<path d="M440.13,334.474a80.694,80.694,0,0,1-12.874,12.4c-2.121,1.7-4.317,3.3-6.479,4.941-.388.294-.723.492-1.231.122a110.078,110.078,0,0,1-18-15.627,23.6,23.6,0,0,1-5.361-8.749c-2.207-7.21.65-15.232,6.915-18.055,5.393-2.43,12.506-.822,16.248,5.883.205.366.4.735.711,1.3.3-.519.5-.847.68-1.185,4.122-7.632,13.02-8.911,18.456-4.706,4.144,3.2,5.807,7.765,5.428,13.241a18.594,18.594,0,0,1-4.5,10.443" transform="translate(-393.28 -306.249)" style="fill: none;stroke: #2c107f;stroke-linecap: round;stroke-linejoin: round;stroke-width: 4.33890223503113px"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 695 B

+5
View File
@@ -0,0 +1,5 @@
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 53.482 47.94">
<g id="c5rk9W.tif">
<path d="M420.063,316.611c.3-.521.5-.851.684-1.191,4.142-7.671,13.086-8.956,18.55-4.73,4.166,3.222,5.837,7.805,5.456,13.309a18.679,18.679,0,0,1-4.52,10.5,81.092,81.092,0,0,1-12.94,12.46c-2.132,1.714-4.339,3.315-6.512,4.966-.39.3-.727.5-1.238.124a110.706,110.706,0,0,1-18.088-15.708,23.712,23.712,0,0,1-5.389-8.794c-2.217-7.247.653-15.31,6.951-18.147,5.421-2.443,12.57-.827,16.332,5.912C419.554,315.676,419.754,316.047,420.063,316.611Z" transform="translate(-393.323 -306.307)" style="fill: #2c107f;stroke: #2c107f;stroke-linecap: round;stroke-miterlimit: 10;stroke-width: 4px"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 720 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 967 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

+1
View File
@@ -0,0 +1 @@
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
+7
View File
@@ -0,0 +1,7 @@
<svg id="Ebene_1" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 134.734 134.735">
<g>
<path d="M420.064,397.644a67.368,67.368,0,1,1,67.368-67.367A67.443,67.443,0,0,1,420.064,397.644Zm0-128.735a61.368,61.368,0,1,0,61.368,61.368A61.437,61.437,0,0,0,420.064,268.909Z" transform="translate(-352.697 -262.909)" style="fill: #2c107f"/>
<circle cx="48.004" cy="35.118" r="12.048" style="fill: #2c107f"/>
<polyline points="68.856 69.56 94.265 30.022 108.521 104.713 26.213 104.713 40.469 57.819 68.856 69.56" style="fill: #2c107f"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 575 B

+18
View File
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 24.3.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 134.7 134.7" style="enable-background:new 0 0 134.7 134.7;" xml:space="preserve">
<style type="text/css">
.st0{fill:#FFD5BD;}
.st1{display:none;fill:#2C107F;}
.st2{fill:#2C107F;}
</style>
<circle class="st0" cx="67.5" cy="67" r="64.4"/>
<g>
<path class="st1" d="M67.4,134.7C30.2,134.7,0,104.6,0,67.4S30.2,0,67.4,0s67.4,30.2,67.4,67.4c0,0,0,0,0,0
C134.7,104.6,104.6,134.7,67.4,134.7z M67.4,6C33.5,6,6,33.5,6,67.4s27.5,61.4,61.4,61.4s61.4-27.5,61.4-61.4
C128.7,33.5,101.2,6,67.4,6z"/>
<circle class="st2" cx="48" cy="35.1" r="12"/>
<polyline class="st2" points="68.9,69.6 94.3,30 108.5,104.7 26.2,104.7 40.5,57.8 68.9,69.6 "/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 923 B

+38 -18
View File
@@ -12,39 +12,58 @@ dbVerbindungErzeugen()
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SPINN MIT!</title> <title>SPINN MIT!</title>
<link rel="stylesheet" href="/css/style.css"> <link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/photoswipe.css">
<link rel="stylesheet" href="https://use.typekit.net/out0zfe.css">
<link rel="apple-touch-icon" sizes="180x180" href="images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon-16x16.png">
<link rel="manifest" href="images/site.webmanifest">
<meta name="description" content="" />
<script>UPLOADCARE_LOCALE="de"
UPLOADCARE_LOCALE_TRANSLATIONS = {
buttons: {
choose: {
files: {
other: 'Bild hochladen'
}
}
}
}</script>
</head> </head>
<body> <body>
<h1>spinn mit!!</h1>
<div id="map"> <div id="map">
</div> </div>
<div class="formular-wrapper"> <div id="startScreen" class="hideElement">
<img src="/images/navigation.png" id="currentLocation"> <img src="images/logo.gif" id="LogoLarge" alt="">
<p id="startText">Mitspinnen und Zürich optimieren: Hier werden deine Ideen gehört!</p>
</div>
<img src="images/logo.gif" class="hideElement" id="logo" alt="">
<div class="mapControls hideElement">
<a href="/help.html">
<img src="images/help.svg" id="helpLink" class="mapControl">
</a>
<a href="/about.html">
<img src="images/about.svg" id="aboutLink" class="mapControl">
</a>
<img src="images/currentLocation.svg" id="currentLocation" class="mapControl">
</div> </div>
<div id="idee_container"> <div id="overlay" class="hidden">
<img src="/images/cancel.png" id="cancel"> <img src="/images/cancel.svg" id="cancel">
<div id="idee"> <div id="overlay_container">
</div> </div>
<div class="image-preview" id="image-upload">
</div> </div>
</div> </div>
@@ -55,9 +74,10 @@ dbVerbindungErzeugen()
<script src="js/functions.js"></script> <script src="js/functions.js"></script>
<script src="js/main.js"></script>
<script src="loadMap.js"></script> <script src="loadMap.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAkfYzlFa9nljVhIyfPQoz3n7Zi5TOs4WQ&callback=initMap" <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAkfYzlFa9nljVhIyfPQoz3n7Zi5TOs4WQ&callback=initMap"
defer ></script> defer ></script>
<script type="module" src="/js/gallery.js"></script>
</body> </body>
</html> </html>
+19
View File
@@ -0,0 +1,19 @@
console.log("test");
console.log($("#homeLink").offset().top);
let topOffset
topOffset = $("#homeLink").offset().top -13;
$(window).scroll(()=>{
if ($(document).scrollTop() >= topOffset) {
$("#homeLink").addClass("fixedPos")
console.log("fixed");
} else if ( $(document).scrollTop() < topOffset){
$("#homeLink").removeClass("fixedPos")
console.log("unfixed");
}
})
+273 -114
View File
@@ -1,52 +1,57 @@
/* ideeSpeichern();
function ideeSpeichern(titel, inhalt) {
let url = "system/ideeSpeichern.php";
let formData = new FormData();
formData.append('titel', titel);
formData.append('inhalt', inhalt);
fetch(url,
{
body: formData,
method: "post",
})
.then((response) => {
return response.json();
})
.then((markerData) => {
}
.catch(function(error) {
console.log("error: " + error.message);
});
}
*/
//LocalLike Objekt erstellen //LocalLike Objekt erstellen
let localLikes = {} let localLikes = {}
UPLOADCARE_LOCALE_TRANSLATIONS = {
buttons: {
cancel: '',
remove: '',
choose: {
files: {
one: '',
other: ''
},
images: {
one: '',
other: ''
}
}
}
};
$(document).ready(function(){ $(document).ready(function(){
window.scrollTo(0,1)
// submit kommentar nicht seite neu laden // submit kommentar nicht seite neu laden
$("#kommentarform").submit(function(e) { $("#kommentarform").submit(function(e) {
console.log("Submitted") console.log("Comment Submitted")
e.preventDefault(); // avoid to execute the actual submit of the form. e.preventDefault(); // avoid to execute the actual submit of the form.
}); });
if(!localStorage.getItem('firstVisit')){
console.log("loadStartscreen");
localStorage.setItem('firstVisit', 'false');
loadStartScreen();
} else {
console.log("not load Startscreen ");
$(".mapControls").removeClass("hideElement")
$("#logo").removeClass("hideElement")
}
//LocalStorage erstellen oder auslesen //LocalStorage erstellen oder auslesen
if(localStorage.getItem('localLikes')){ if(localStorage.getItem('localLikes')){
@@ -72,9 +77,50 @@ $(document).ready(function(){
localStorage.setItem('localLikes',JSON.stringify(localLikes)); localStorage.setItem('localLikes',JSON.stringify(localLikes));
} }
}) })
function loadStartScreen(){
$("#startScreen").removeClass("hideElement")
$('#startScreen').click(() => {
$(".mapControls").removeClass("hideElement")
$("#logo").removeClass("hideElement")
$("#startScreen").addClass("hideElement")
})
setTimeout(() => {
$(".mapControls").removeClass("hideElement")
$("#logo").removeClass("hideElement")
$("#startScreen").addClass("hideElement")
}, 10000);
//onclick
//$(".mapControls").removeClass("hideElement")
//$("#logo").removeClass("hideElement")
}
function openOverlay(){
$("#overlay").removeClass("hidden").addClass("show")
$("#currentLocation").addClass("hideButton")
$("#cancel").click(function() {
$("#overlay").removeClass("show").addClass("hidden")
$("#currentLocation").removeClass("hideButton")
setTimeout(() => {
document.getElementById("overlay_container").innerHTML = "";
}, 300);
})
}
//LocalStorage Anpassen (Likes hinzufügen oder entfernen) //LocalStorage Anpassen (Likes hinzufügen oder entfernen)
@@ -111,39 +157,79 @@ function chageLocalStorrage(typ, id, addRemove){
} }
// IDEE ANZEIGEN // IDEE ANZEIGEN
function ideeAnzeigen(data) { function ideeAnzeigen(data) {
document.getElementById("idee").innerHTML = ""; document.getElementById("overlay_container").innerHTML = "";
document.querySelectorAll('.loeschen').forEach(e => e.remove()); let inhaltContainer = document.createElement("div");
inhaltContainer.setAttribute("id","inhaltContainer")
let likesErstellen = document.createElement("p");
let likes = document.createTextNode("Gefällt " + data.likes + " Mal");
likesErstellen.appendChild(likes);
likesErstellen.classList.add("likeDisplay");
let titleLocationContainer = document.createElement("div");
titleLocationContainer.classList.add("titleLocationContainer");
let titelErstellen = document.createElement("h1"); let titelErstellen = document.createElement("h1");
let titelInhalt = document.createTextNode(data.titel); let titelInhalt = document.createTextNode(data.titel);
titelErstellen.appendChild(titelInhalt); titelErstellen.appendChild(titelInhalt);
titelErstellen.classList.add("loeschen"); titelErstellen.classList.add("ideeTitel");
document.getElementById('idee').appendChild(titelErstellen);
let adresseErstellen = document.createElement("p");
let adresseInhalt = document.createTextNode(data.adresse);
adresseErstellen.appendChild(adresseInhalt);
adresseErstellen.classList.add("ideeAdresse");
let inhaltErstellen = document.createElement("p"); let inhaltErstellen = document.createElement("p");
let inhaltInhalt = document.createTextNode(data.inhalt); let inhaltInhalt = document.createTextNode(data.inhalt);
inhaltErstellen.appendChild(inhaltInhalt); inhaltErstellen.appendChild(inhaltInhalt);
inhaltErstellen.classList.add("loeschen"); inhaltErstellen.classList.add("ideeInhalt");
document.getElementById('idee').appendChild(inhaltErstellen);
let likesErstellen = document.createElement("p");
let likes = document.createTextNode(data.likes + " Likes");
likesErstellen.appendChild(likes);
likesErstellen.classList.add("likeDisplay");
document.getElementById('idee').appendChild(likesErstellen);
let bild = document.createElement("img");
bild.src = data.bild;
bild.classList.add("ideeBilder"); if(data.bild != null && data.bild != ""){
bild.classList.add("loeschen"); let bildContainer = $("<div>").attr({id: "gallery--getting-started", class: "ImgContainer pswp-gallery pswp-gallery--single-column"});
document.getElementById('idee').appendChild(bild);
console.log(data); let loadingscreen = $("<div>").addClass("loadingscreen");
let loader = $("<div>").addClass("loader");
loader.appendTo(loadingscreen)
loadingscreen.appendTo($("#overlay_container"))
let imgUrlArr = JSON.parse(data.bild);
bildContainer.css("background-image", "url(" + imgUrlArr[0] + ")");
for (let i = 0; i < imgUrlArr.length; i++) {
let pswpA = $("<a>").attr({href: imgUrlArr[i], 'data-cropped': "true", target: "_blank"})
pswpA.appendTo(bildContainer)
}
bildContainer.prependTo($("#overlay_container"))
} else {
inhaltContainer.classList.add("class","topMargin")
}
let ideeLike = document.createElement("img"); let ideeLike = document.createElement("img");
@@ -153,27 +239,35 @@ function ideeAnzeigen(data) {
//check if user has liked Idea before,load proper image and set class //check if user has liked Idea before,load proper image and set class
if(localLikes.ideen.includes(data.id)){ if(localLikes.ideen.includes(data.id)){
ideeLike.src= "../images/herz-1.png"; ideeLike.src= "../images/herz-1.svg";
ideeLike.classList.add("liked"); ideeLike.classList.add("liked");
}else{ }else{
ideeLike.src= "../images/herz-0.png"; ideeLike.src= "../images/herz-0.svg";
ideeLike.classList.add("unliked"); ideeLike.classList.add("unliked");
} }
document.getElementById('idee').appendChild(ideeLike); document.getElementById('overlay_container').appendChild(inhaltContainer);
document.getElementById('inhaltContainer').appendChild(likesErstellen);
document.getElementById('inhaltContainer').appendChild(ideeLike);
titleLocationContainer.appendChild(titelErstellen);
titleLocationContainer.appendChild(adresseErstellen);
document.getElementById('inhaltContainer').appendChild(titleLocationContainer);
document.getElementById('inhaltContainer').appendChild(inhaltErstellen);
ideeLike.addEventListener('click', function() { ideeLike.addEventListener('click', function() {
if(localLikes.ideen.includes(data.id)){ if(localLikes.ideen.includes(data.id)){
ideeLike.src= "../images/herz-0.png"; ideeLike.src= "../images/herz-0.svg";
ideeLike.classList.add("unliked"); ideeLike.classList.add("unliked");
ideeLike.classList.remove("liked"); ideeLike.classList.remove("liked");
removeLike("idee", data.id) removeLike("idee", data.id)
}else{ }else{
ideeLike.src= "../images/herz-1.png"; ideeLike.src= "../images/herz-1.svg";
ideeLike.classList.add("liked"); ideeLike.classList.add("liked");
ideeLike.classList.remove("unliked"); ideeLike.classList.remove("unliked");
addLike("idee", data.id) addLike("idee", data.id)
@@ -186,7 +280,7 @@ function ideeAnzeigen(data) {
let kommentare_container = document.createElement("div") let kommentare_container = document.createElement("div")
kommentare_container.setAttribute("id", "kommentare_container"); kommentare_container.setAttribute("id", "kommentare_container");
document.getElementById('idee').appendChild(kommentare_container); document.getElementById('inhaltContainer').appendChild(kommentare_container);
@@ -212,7 +306,7 @@ function addLike(typ, id, element){
//neue Likes anzeigen //neue Likes anzeigen
$("p.likeDisplay").html(response + " Likes") $("p.likeDisplay").html("Gefällt " + response + " Mal")
}); });
@@ -226,7 +320,7 @@ function addLike(typ, id, element){
$.post('system/addLike.php/?typ=kommentar&id=' + id, {}).done(function(response){ $.post('system/addLike.php/?typ=kommentar&id=' + id, {}).done(function(response){
element.prev().html(response + " Likes") element.parent().prev().children().first().html("Gefällt " + response + " Mal")
}); });
@@ -245,7 +339,7 @@ function removeLike(typ, id, element){
$.post('system/removeLike.php/?typ=idee&id=' + id, {}).done(function(response){ $.post('system/removeLike.php/?typ=idee&id=' + id, {}).done(function(response){
$("p.likeDisplay").html(response + " Likes") $("p.likeDisplay").html("Gefällt " + response + " Mal")
}); });
@@ -256,7 +350,7 @@ function removeLike(typ, id, element){
$.post('system/removeLike.php/?typ=kommentar&id=' + id, {}).done(function(response){ $.post('system/removeLike.php/?typ=kommentar&id=' + id, {}).done(function(response){
element.prev().html(response + " Likes") element.parent().prev().children().first().html("Gefällt " + response + " Mal")
}); });
@@ -270,8 +364,6 @@ function removeLike(typ, id, element){
// kommentar formular likesErstellen // kommentar formular likesErstellen
function kommentarErstellen(idee_id) { function kommentarErstellen(idee_id) {
@@ -279,29 +371,31 @@ function kommentarErstellen(idee_id) {
let formular = document.createElement("form"); let formular = document.createElement("form");
formular.classList.add("formular"); formular.classList.add("kommentarFormular");
formular.setAttribute("action", "../system/kommentarSpeichern.php"); formular.setAttribute("action", "../system/kommentarSpeichern.php");
formular.setAttribute("method", "post"); formular.setAttribute("method", "post");
formular.setAttribute("id", "kommentarform"); formular.setAttribute("id", "kommentarform");
document.getElementById("idee").appendChild(formular); document.getElementById("inhaltContainer").appendChild(formular);
let text_label = document.createElement("label");
text_label.setAttribute("for", "text");
let text_input = document.createElement("input"); let text_input = document.createElement("textarea");
text_input.classList.add("kommentarText");
text_input.setAttribute("rows", "3");
text_input.setAttribute("type", "text"); text_input.setAttribute("type", "text");
text_input.setAttribute("name", "text") text_input.setAttribute("placeholder", "Schreibe einen Kommentar...");
text_input.setAttribute("name", "text");
let submit_input = document.createElement("input"); let submit_input = document.createElement("input");
submit_input.classList.add("kommentarSubmit");
submit_input.setAttribute("type", "submit"); submit_input.setAttribute("type", "submit");
submit_input.setAttribute("value", "Kommentar posten"); submit_input.setAttribute("value", "");
let id = document.createElement("input"); let id = document.createElement("input");
id.setAttribute("type", "hidden"); id.setAttribute("type", "hidden");
id.setAttribute("name", "idee_id") id.setAttribute("name", "idee_id")
id.value = idee_id; id.value = idee_id;
document.getElementById("kommentarform").appendChild(text_label);
document.getElementById("kommentarform").appendChild(text_input); document.getElementById("kommentarform").appendChild(text_input);
document.getElementById("kommentarform").appendChild(submit_input); document.getElementById("kommentarform").appendChild(submit_input);
document.getElementById("kommentarform").appendChild(id); document.getElementById("kommentarform").appendChild(id);
@@ -315,7 +409,10 @@ function kommentarErstellen(idee_id) {
url: "/system/kommentarSpeichern.php", url: "/system/kommentarSpeichern.php",
data: form.serialize(), data: form.serialize(),
}) })
e.preventDefault(); e.preventDefault();
$("textarea.kommentarText").val("")
document.getElementById("kommentare_container").innerHTML = ""; document.getElementById("kommentare_container").innerHTML = "";
kommentareAnzeigen(idee_id); kommentareAnzeigen(idee_id);
@@ -325,9 +422,9 @@ function kommentarErstellen(idee_id) {
// Idee formular erstellen // Idee formular erstellen
function formularErstellen(koordianten) { function formularErstellen(koordianten, ergebnisAdresse) {
document.getElementById("idee").innerHTML = ""; document.getElementById("overlay_container").innerHTML = "";
let formular = document.createElement("form"); let formular = document.createElement("form");
@@ -335,7 +432,7 @@ function formularErstellen(koordianten) {
formular.setAttribute("action", "../system/ideeSpeichern.php"); formular.setAttribute("action", "../system/ideeSpeichern.php");
formular.setAttribute("method", "post"); formular.setAttribute("method", "post");
formular.setAttribute("id", "form"); formular.setAttribute("id", "form");
document.getElementById("idee").appendChild(formular); document.getElementById("overlay_container").appendChild(formular);
let koordinaten_lng = document.createElement("input"); let koordinaten_lng = document.createElement("input");
koordinaten_lng.setAttribute("type", "hidden"); koordinaten_lng.setAttribute("type", "hidden");
@@ -347,36 +444,55 @@ function formularErstellen(koordianten) {
koordinaten_lat.setAttribute("name", "lat") koordinaten_lat.setAttribute("name", "lat")
koordinaten_lat.value = koordianten.toJSON().lat; koordinaten_lat.value = koordianten.toJSON().lat;
let titel_label = document.createElement("label");
titel_label.setAttribute("for", "titel");
titel_label.innerHTML = "Titel:";
let titel_input = document.createElement("input"); let titel_input = document.createElement("input");
titel_input.setAttribute("type", "text"); titel_input.setAttribute("type", "text");
titel_input.setAttribute("name", "titel") titel_input.classList.add("titel");
titel_input.setAttribute("name", "titel");
titel_input.setAttribute("placeholder", "TITEL");
let text_label = document.createElement("label"); let adresse_input = document.createElement("input");
text_label.setAttribute("for", "text"); adresse_input.setAttribute("type", "text");
text_label.innerHTML = "Text:"; adresse_input.classList.add("adresse");
adresse_input.setAttribute("name", "adresse");
adresse_input.setAttribute("value", ergebnisAdresse);
let text_input = document.createElement("input");
text_input.setAttribute("type", "text");
text_input.setAttribute("name", "text")
let submit_input = document.createElement("input"); let text_input = $("<textarea>");
text_input.attr("rows", "10");
text_input.attr("name", "text");
text_input.attr("placeholder", "Deine Idee...");
let image_links = document.createElement("input");
image_links.setAttribute("type", "hidden");
image_links.setAttribute("name", "bilder");
let submit_input = document.createElement("button");
submit_input.setAttribute("type", "submit"); submit_input.setAttribute("type", "submit");
submit_input.setAttribute("value", "Formular Absenden"); submit_input.classList.add("submit");
let textAndImage = $("<div>").addClass("textAndImage")
document.getElementById("form").appendChild(titel_label);
document.getElementById("form").appendChild(titel_input); document.getElementById("form").appendChild(titel_input);
document.getElementById("form").appendChild(text_label); document.getElementById("form").appendChild(adresse_input);
document.getElementById("form").appendChild(text_input); textAndImage.appendTo("#form");
text_input.appendTo(textAndImage);
document.getElementById("form").appendChild(submit_input); document.getElementById("form").appendChild(submit_input);
document.getElementById("form").appendChild(koordinaten_lat); document.getElementById("form").appendChild(koordinaten_lat);
document.getElementById("form").appendChild(koordinaten_lng); document.getElementById("form").appendChild(koordinaten_lng);
document.getElementById("form").appendChild(image_links);
let imageUpload = $('<div class="image-preview" id="image-upload">')
imageUpload.html('<input type="hidden" role="uploadcare-uploader" data-public-key="3a3c37e85850c6cfe077" data-multiple="true" data-images-only data-clearable data-tabs="file camera" data-image-shrink="1024x1024" data-system-dialog="true"/>')
imageUpload.appendTo(textAndImage);
document.getElementById("image-upload").innerHTML = '<input type="hidden" role="uploadcare-uploader" data-public-key="3a3c37e85850c6cfe077" data-multiple="true" data-images-only data-public- data-clearable data-tabs="file camera" data-image-shrink: "1024x1024" data-system-dialog="false"/>';
// get a widget reference // get a widget reference
const widget = uploadcare.Widget("[role=uploadcare-uploader]", { multiple: true}); const widget = uploadcare.Widget("[role=uploadcare-uploader]", { multiple: true});
@@ -386,23 +502,64 @@ function formularErstellen(koordianten) {
// get a information about uploaded group // get a information about uploaded group
// check https://uploadcare.com/docs/file-uploader-api/file-groups/#file-group-info // check https://uploadcare.com/docs/file-uploader-api/file-groups/#file-group-info
for (var i = 0; i < fileGroupInfo.count; i++) { let linkArr = [];
console.log("https://ucarecdn.com/" + fileGroupInfo.uuid + "/nth/" + i + "/-/preview/-/quality/smart/-/format/auto/"); let ImgUrl;
}
});
$("<div>").addClass("ImgPrevContainer").appendTo($("div.image-preview"));
for (var i = 0; i < fileGroupInfo.count && i < 4; i++) {
ImgUrl = "https://ucarecdn.com/" + fileGroupInfo.uuid + "/nth/" + i + "/-/preview/-/quality/smart/-/format/auto/";
linkArr.push(ImgUrl);
createImgPrev(ImgUrl + "-/resize/x100/"); //img Preview 100 pixels high
}; };
// ImgUrl = "https://ucarecdn.com/" + fileInfo.uuid + "/-/preview/-/quality/smart/-/format/auto/";
// console.log(fileInfo);
// linkArr.push(ImgUrl);
let linkArrString = JSON.stringify(linkArr);
console.log(linkArrString);
image_links.value = linkArrString;
$(".uploadcare--widget__button_type_remove").click(() => {
console.log("delete");
$("div.ImgPrevContainer").remove()
image_links.value = "";
})
});
console.log($(".uploadcare--widget__button_type_open needsclick"));
$(".uploadcare--widget__button_type_open needsclick").addClass("test")
};
function createImgPrev(imgURL){
let prevImg = $("<div>").addClass("prevIMG");
prevImg.css("background-image", "url(" + imgURL + ")");
prevImg.appendTo($("div.ImgPrevContainer"));
// $("div.ImgPrevContainer").css('background-image', 'url(' + imgURL + ')');
}
function kommentareAnzeigen(idee_id){ function kommentareAnzeigen(idee_id){
$.post("./system/alleKommentareHolen.php/?id=" + idee_id, {}).done(function(comments){ $.post("./system/alleKommentareHolen.php/?id=" + idee_id, {}).done(function(comments){
let k = document.createElement("h3");
let k_text = document.createTextNode("Kommentare:");
k.appendChild(k_text);
document.getElementById('kommentare_container').appendChild(k);
let commentArray = JSON.parse(comments); let commentArray = JSON.parse(comments);
@@ -415,27 +572,34 @@ function kommentareAnzeigen(idee_id){
let kommentarContainer = $("<div>").addClass("comment"); let kommentarContainer = $("<div>").addClass("comment");
let kommentarLinks = $("<div>").addClass("commentLeft")
let kommentarRechts = $("<div>").addClass("commentRight")
let kommentarLikeNumber = $("<p>").text("Gefällt " + thisComment.k_likes + " Mal").addClass("commentLikeNumber");
kommentarLikeNumber.appendTo(kommentarLinks);
let kommentarText = $("<p>").addClass("commentText"); let kommentarText = $("<p>").addClass("commentText");
kommentarText.text(thisComment.k_text); kommentarText.text(thisComment.k_text);
kommentarText.appendTo(kommentarContainer); kommentarText.appendTo(kommentarLinks);
let kommentarLikeNumber = $("<p>").text(thisComment.k_likes + " Likes").addClass("commentLikeNumber");
kommentarLikeNumber.appendTo(kommentarContainer);
let kommentarLikeButton = $("<img>").addClass("unliked commentLike") let kommentarLikeButton = $("<img>").addClass("unliked commentLike")
if(localLikes.kommentare.includes(thisComment.k_id)){ if(localLikes.kommentare.includes(thisComment.k_id)){
kommentarLikeButton.attr("src", "../images/herz-1.png"); kommentarLikeButton.attr("src", "../images/herz-1.svg");
kommentarLikeButton.addClass("liked"); kommentarLikeButton.addClass("liked");
}else{ }else{
kommentarLikeButton.attr("src", "../images/herz-0.png"); kommentarLikeButton.attr("src", "../images/herz-0.svg");
kommentarLikeButton.addClass("unliked"); kommentarLikeButton.addClass("unliked");
} }
kommentarLikeButton.appendTo(kommentarContainer); kommentarLikeButton.appendTo(kommentarRechts);
kommentarLinks.appendTo(kommentarContainer)
kommentarRechts.appendTo(kommentarContainer)
kommentarContainer.appendTo($("#kommentare_container")); kommentarContainer.appendTo($("#kommentare_container"));
@@ -445,13 +609,13 @@ function kommentareAnzeigen(idee_id){
kommentarLikeButton.click( function() { kommentarLikeButton.click( function() {
if(localLikes.kommentare.includes(thisComment.k_id)){ if(localLikes.kommentare.includes(thisComment.k_id)){
kommentarLikeButton.attr("src", "../images/herz-0.png"); kommentarLikeButton.attr("src", "../images/herz-0.svg");
kommentarLikeButton.addClass("unliked"); kommentarLikeButton.addClass("unliked");
kommentarLikeButton.removeClass("liked"); kommentarLikeButton.removeClass("liked");
removeLike("kommentar", thisComment.k_id, $(this)) removeLike("kommentar", thisComment.k_id, $(this))
}else{ }else{
kommentarLikeButton.attr("src", "../images/herz-1.png"); kommentarLikeButton.attr("src", "../images/herz-1.svg");
kommentarLikeButton.addClass("liked"); kommentarLikeButton.addClass("liked");
kommentarLikeButton.removeClass("unliked"); kommentarLikeButton.removeClass("unliked");
addLike("kommentar", thisComment.k_id, $(this)) addLike("kommentar", thisComment.k_id, $(this))
@@ -464,15 +628,7 @@ function kommentareAnzeigen(idee_id){
/*
let kommentarErstellen = document.createElement("p");
let kommentar = document.createTextNode(commentArray[i].k_text);
kommentarErstellen.appendChild(kommentar);
kommentarErstellen.classList.add("comment");
document.getElementById('kommentare_container').appendChild(kommentarErstellen);
*/
} }
@@ -480,3 +636,6 @@ function kommentareAnzeigen(idee_id){
} }
+25
View File
@@ -0,0 +1,25 @@
import PhotoSwipeLightbox from '/js/photoswipe-lightbox.esm.js';
import PhotoSwipe from '/js/photoswipe.esm.js';
let allImgs = document.querySelectorAll("#map")
for (let i = 0; i < allImgs.length; i++) {
allImgs[i].addEventListener("click", function() {
console.log("testtest");
const lightbox = new PhotoSwipeLightbox({
gallery: '#gallery--getting-started',
children: 'a',
pswpModule: PhotoSwipe,
});
lightbox.init();
});
}
-1
View File
@@ -1 +0,0 @@
File diff suppressed because it is too large. Load diff
+6390
View File
File diff suppressed because it is too large. Load diff
+90 -17
View File
@@ -1,29 +1,35 @@
const zuerich_bounds = { const zuerich_bounds = {
north: 47.41590970260092, north: 47.43590970260092,
south: 47.315703309031846, south: 47.278703309031846,
west: 8.45742642179812, west: 8.40742642179812,
east: 8.600047733589026, east: 8.680047733589026,
}; };
function initMap() { function initMap() {
const map = new google.maps.Map(document.getElementById('map'), { const map = new google.maps.Map(document.getElementById('map'), {
mapId: "fd4581e1612d9ef", mapId: "fd4581e1612d9ef",
center: {lat: 47.38109493760974, lng: 8.521861488204763}, center: {lat: 47.36972459746934, lng: 8.53404830446534},
restriction: { restriction: {
latLngBounds: zuerich_bounds, latLngBounds: zuerich_bounds,
strictBounds: false, strictBounds: false,
}, },
zoom: 13, zoom: 13,
disableDefaultUI: true, disableDefaultUI: true,
gestureHandling: "greedy", gestureHandling: "greedy"
}); });
infoWindow = new google.maps.InfoWindow(); infoWindow = new google.maps.InfoWindow();
addMarkers();
const geocoder = new google.maps.Geocoder();
const infowindow = new google.maps.InfoWindow();
addMarkers();
@@ -39,17 +45,55 @@ function addMarkers(){
return response.json(); return response.json();
}) })
.then((markerData) => { .then((markerData) => {
let mostLikes = 1;
for (let i = 0; i < markerData.length; i++) { for (let i = 0; i < markerData.length; i++) {
if(markerData[i].likes >= mostLikes){
mostLikes = markerData[i].likes;
}
}
console.log(mostLikes);
let markerSizeFactor = 1/mostLikes*100;
for (let i = 0; i < markerData.length; i++) {
let markerIMGcounter = markerData[i].id % 6;
let likes = markerData[i].likes
let markersizeDelta = likes * markerSizeFactor /100 * 80
let markersize = markersizeDelta + 40
console.log(markersize);
setTimeout(() => {
if (markerData[i].sichtbarkeit = 1) { if (markerData[i].sichtbarkeit = 1) {
const marker = new google.maps.Marker({ const marker = new google.maps.Marker({
position: {lat: markerData[i].koordinatenLat, lng: markerData[i].koordinatenLng}, position: {lat: markerData[i].koordinatenLat, lng: markerData[i].koordinatenLng},
map: map, map: map,
title: markerData[i].titel, title: markerData[i].titel,
icon: { icon: {
url: "/images/ort.png", url: "/images/Marker_" + markerIMGcounter + ".svg",
scaledSize: new google.maps.Size(38+(markerData[i].likes), 38+(markerData[i].likes)), scaledSize: new google.maps.Size(markersize, markersize),
}, },
animation: google.maps.Animation.DROP, animation: google.maps.Animation.DROP,
zIndex: 100,
}); });
@@ -57,11 +101,14 @@ function addMarkers(){
marker.addListener("click", () => { marker.addListener("click", () => {
ideeAnzeigen(markerData[i]); ideeAnzeigen(markerData[i]);
openOverlay();
}) })
} }
else { else {
} }
}, Math.floor(Math.random() * 250 + 100));
} }
}) })
.catch(function(error) { .catch(function(error) {
@@ -70,12 +117,37 @@ function addMarkers(){
} }
// NEUE IDEE ERFASSEN // NEUE IDEE ERFASSEN
map.addListener("click", (mapsMouseEvent) => { map.addListener("click", (mapsMouseEvent) => {
newMarker(mapsMouseEvent.latLng);
formularErstellen(mapsMouseEvent.latLng); let mousePosition = mapsMouseEvent.latLng;
newMarker(mousePosition);
setTimeout(() => {
openOverlay();
}, 800);
geocodeLatLng(geocoder, map, infowindow, mousePosition);
function geocodeLatLng(geocoder, map, infowindow, mousePosition) {
geocoder
.geocode({ location: mousePosition, })
.then((response) => {
if (response.results[0]) {
let ergebnis = response.results[0].formatted_address;
let indexOf = ergebnis.lastIndexOf(",");
ergebnis = ergebnis.slice(0,indexOf);
formularErstellen(mousePosition, ergebnis);
} else {
//console.log("Bitte Adresse eintragen");
let error = "Bitte Adresse eintragen";
formularErstellen(mousePosition, error);
}
}) })
.catch((e) => window.alert("Geocoder failed due to: " + e));
}
})
function newMarker(mousePosition) { function newMarker(mousePosition) {
@@ -91,10 +163,9 @@ function newMarker(mousePosition) {
let icon = {url:"/images/ort.png", size: new google.maps.Size(30, 30)}; let icon = {url:"/images/ort.png", size: new google.maps.Size(30, 30)};
newMarker.setIcon("/images/newMarker.jpg"); newMarker.setIcon("/images/newMarker.png");
$("#cancel").click(function() { $("#cancel").click(function() {
document.getElementById("idee").innerHTML = "";
newMarker.setMap(null); newMarker.setMap(null);
}) })
@@ -121,10 +192,12 @@ function newMarker(mousePosition) {
position: pos, position: pos,
map: map, map: map,
icon: { icon: {
url: "/images/current_location.png", url: "/images/current_location.gif",
animation: google.maps.Animation.DROP, animation: google.maps.Animation.DROP,
scaledSize: new google.maps.Size(50, 50) scaledSize: new google.maps.Size(50, 50),
}}); },
zIndex: 999
});
map.setCenter(pos); map.setCenter(pos);
}, },
+10 -3
View File
@@ -6,9 +6,16 @@ function dbVerbindungErzeugen(){
// Wird in data.php gebraucht // Wird in data.php gebraucht
$db_host = 'localhost'; // Hostserver, auf dem die DB läuft. $db_host = 'localhost'; // Hostserver, auf dem die DB läuft.
// «localhost» bedeutet: die selbe Serveradresse, auf dem auch die Seiten gespeichert sind // «localhost» bedeutet: die selbe Serveradresse, auf dem auch die Seiten gespeichert sind
$db_name = '751068_4_1'; // Name der Datenbank (stimmt im Beispiel nur zufällig mit username überein)
$db_user = '751068_4_1'; // Name des DB-Users (stimmt im Beispiel nur zufällig mit Datenbankname überein) //dev DB
$db_pass = 'Jp3EFlqURuso'; // Passwort des DB-Users // $db_name = '751068_4_1';
// $db_user = '751068_4_1';
// $db_pass = 'Jp3EFlqURuso';
//spinn-mit.ch DB
$db_name = 'spinnmit_';
$db_user = 'noaheckert';
$db_pass = '708Q7?olq';
$db_charset = 'utf8mb4'; // siehe https://www.hydroxi.de/utf8-vs-utf8mb4/ $db_charset = 'utf8mb4'; // siehe https://www.hydroxi.de/utf8-vs-utf8mb4/
+15 -8
View File
@@ -1,10 +1,7 @@
<?php <?php
require_once('data.php'); require_once('data.php');
?>
<?php
$db = dbVerbindungErzeugen(); $db = dbVerbindungErzeugen();
$lat = $_POST['lat']; $lat = $_POST['lat'];
@@ -17,13 +14,23 @@ require_once('data.php');
$inhalt = $_POST['text']; $inhalt = $_POST['text'];
} }
$sql = "INSERT INTO idee (titel, inhalt, koordinatenLat, koordinatenLng) VALUES (?, ?, ?, ?)"; if(isset($_POST['adresse'])){
$stmt = $db->prepare($sql); $adresse = $_POST['adresse'];
$stmt->execute(array($titel, $inhalt, $lat, $lng)); }
if(isset($_POST['bilder'])){
$bilder = $_POST['bilder'];
} else {
$bilder = NULL;
}
$sql = "INSERT INTO idee (titel, inhalt, koordinatenLat, koordinatenLng, bild, adresse) VALUES (?, ?, ?, ?, ?, ?)";
$stmt = $db->prepare($sql);
$stmt->execute(array($titel, $inhalt, $lat, $lng, $bilder, $adresse));
echo $db->lastInsertId();
header("Location: /"); header("Location: /");
die(); die();
?> ?>