Fix undefined function errors, improve spacing of buttons
This commit is contained in:
parent
4be006fe8e
commit
8a85055264
@ -19,14 +19,18 @@ var getLocation = function (success, error) {
|
||||
navigator.geolocation.getCurrentPosition(function (position) {
|
||||
success(position);
|
||||
}, function (err) {
|
||||
error(err.message);
|
||||
if (typeof error == "function") {
|
||||
error(err.message);
|
||||
}
|
||||
}, {
|
||||
enableHighAccuracy: true,
|
||||
timeout: 5000,
|
||||
maximumAge: 0
|
||||
});
|
||||
} else {
|
||||
error("Location is unavailable.");
|
||||
if (typeof error == "function") {
|
||||
error("Location is unavailable.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -35,14 +39,18 @@ var watchLocation = function (success, error) {
|
||||
navigator.geolocation.watchPosition(function (position) {
|
||||
success(position);
|
||||
}, function (err) {
|
||||
error(err.message);
|
||||
if (typeof error == "function") {
|
||||
error(err.message);
|
||||
}
|
||||
}, {
|
||||
enableHighAccuracy: true,
|
||||
timeout: 5000,
|
||||
maximumAge: 0
|
||||
});
|
||||
} else {
|
||||
error("Location is unavailable.");
|
||||
if (typeof error == "function") {
|
||||
error("Location is unavailable.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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…
x
Reference in New Issue
Block a user