Commit 75a50d2b authored by Cholgrrr's avatar Cholgrrr
Browse files

Merge branch 'New_Structure' of https://gitlab.com/Cholgrrr/m4labplatform into New_Structure

parents c230dc78 39dd3ec3
......@@ -108,7 +108,7 @@
text-align: center;
text-decoration: none;
display: inline-block;
width:10em;height:2em;
border-radius: 2px;
box-shadow: 0 8px 16px 0 #27272733, 0 6px 20px 0 rgba(0,0,0,0.19);
}
......
......@@ -228,7 +228,7 @@
</p><br>
<img id="dragFrom" onmouseover="setPointStartEnd('fav')" ondragstart="dragstart_handler(event);" draggable=true src="templates/locationSM.png" style="height:30px;height: 30px; display: inline-block; position: absolute;cursor: -webkit-grab; cursor: grab;">
</div><br><br>
<button onclick="getLocationFav()">Aktuelle Position</button><br>
<button id="getLocationFav" class="btn_standard">Aktuelle Position</button><br>
<br> <label class="container contentOne">Andere Lieblingsorte
<input type="checkbox" id="favcheck" onclick="switchFavPlaces()">
<span class="checkmark"></span>
......
......@@ -141,6 +141,15 @@ function switchFavPlaces(){
// Get Location of User
document.getElementById('getLocationFav').ontouchstart = function (eve) {
getLocationFav()
}
document.getElementById('getLocationFav').onclick = function (eve) {
getLocationFav()
}
function getLocationFav() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPositionFav, showError);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment