From 39dd3ec31209923e20e313ec0484b955ef055b21 Mon Sep 17 00:00:00 2001 From: Cholgrrr <patrick.wuerstle@gmx.de> Date: Tue, 3 Aug 2021 13:54:22 +0200 Subject: [PATCH] update button design --- vcm/css/menu.css | 2 +- vcm/index.html | 2 +- vcm/js/favoriteplaces.js | 9 +++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/vcm/css/menu.css b/vcm/css/menu.css index d514af682..9a6cf09f8 100644 --- a/vcm/css/menu.css +++ b/vcm/css/menu.css @@ -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); } diff --git a/vcm/index.html b/vcm/index.html index d58416204..235f0ffc5 100644 --- a/vcm/index.html +++ b/vcm/index.html @@ -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> diff --git a/vcm/js/favoriteplaces.js b/vcm/js/favoriteplaces.js index 4a5acb8bc..c1f8e6e11 100644 --- a/vcm/js/favoriteplaces.js +++ b/vcm/js/favoriteplaces.js @@ -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); -- GitLab