diff --git a/vcm/css/menu.css b/vcm/css/menu.css index d514af68253ae8d51987e382493f9ce4b0f3223b..9a6cf09f8587fd9527381e213ca470a616a9eea3 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 d584162047fc5b6af1973cb81895e684009571d9..235f0ffc5db8abb59e728c8000c8612bba21444d 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 4a5acb8bcbc6f3f2037933a68c5575ab140d4968..c1f8e6e11d0b828673b149480f04017e32e79fa9 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);