Fix undefined function errors, improve spacing of buttons

master
Skylar Ittner 5 years ago
parent 4be006fe8e
commit 8a85055264

@ -19,15 +19,19 @@ var getLocation = function (success, error) {
navigator.geolocation.getCurrentPosition(function (position) {
success(position);
}, function (err) {
if (typeof error == "function") {
error(err.message);
}
}, {
enableHighAccuracy: true,
timeout: 5000,
maximumAge: 0
});
} else {
if (typeof error == "function") {
error("Location is unavailable.");
}
}
}
var watchLocation = function (success, error) {
@ -35,15 +39,19 @@ var watchLocation = function (success, error) {
navigator.geolocation.watchPosition(function (position) {
success(position);
}, function (err) {
if (typeof error == "function") {
error(err.message);
}
}, {
enableHighAccuracy: true,
timeout: 5000,
maximumAge: 0
});
} else {
if (typeof error == "function") {
error("Location is unavailable.");
}
}
}
function initCordova() {

@ -24,13 +24,13 @@
<div id="step1" class="display-none">
<div class="row justify-content-center">
{{#if @global.qrenabled}}
<div class="col-100 tablet-50 desktop-25">
<div class="col-100 tablet-50 desktop-25 margin-bottom margin-horizontal">
<div class="button button-large button-fill button-round" id="scanqrcodebtn">
<i class="fas fa-qrcode"></i> Scan Code
</div>
</div>
{{/if}}
<div class="col-100 tablet-50 desktop-25">
<div class="col-100 tablet-50 desktop-25 margin-horizontal">
<div class="button button-large button-outline button-round" id="typecodebtn">
<i class="fas fa-keyboard"></i> Enter Code
</div>

Loading…
Cancel
Save