diff --git a/application/views/contesting/index.php b/application/views/contesting/index.php
index 471a6547..211c1741 100644
--- a/application/views/contesting/index.php
+++ b/application/views/contesting/index.php
@@ -1,3 +1,6 @@
+
-
diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php
index 64b2472b..90d83618 100644
--- a/application/views/interface_assets/footer.php
+++ b/application/views/interface_assets/footer.php
@@ -64,7 +64,7 @@ function load_was_map() {
console.log("'clicked");
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
- } else {
+ } else {
console.log('Geolocation is not supported by this browser.');
}
}
@@ -280,7 +280,7 @@ function load_was_map() {
$(".bootstrap-dialog-message").prepend('×The stored query has been deleted!
');
$("#query_" + id).remove(); // removes query from table in dialog
$("#querydropdown option[value='" + id + "']").remove(); // removes query from dropdown
- if ($("#querydropdown option").length == 0) {
+ if ($("#querydropdown option").length == 0) {
$("#btn-edit").remove();
$('.querydropdownform').remove();
};
@@ -492,13 +492,13 @@ function calculateQrb() {
data: {'locator1': locator1,
'locator2': locator2},
success: function (html) {
-
+
var result = "Negative latitudes are south of the equator, negative longitudes are west of Greenwich.
";
result += ' ' + locator1.toUpperCase() + ' Latitude = ' + html['latlng1'][0] + ' Longitude = ' + html['latlng1'][1] + '
';
result += ' ' + locator2.toUpperCase() + ' Latitude = ' + html['latlng2'][0] + ' Longitude = ' + html['latlng2'][1] + '
';
result += 'Distance between ' + locator1.toUpperCase() + ' and ' + locator2.toUpperCase() + ' is ' + html['distance'] + '.
';
result += 'The bearing is ' + html['bearing'] + '.
';
-
+
$(".qrbResult").html(result);
newpath(html['latlng1'], html['latlng2'], locator1, locator2);
}
@@ -512,7 +512,7 @@ function validateLocator(locator) {
if(locator.length < 4 && !(/^[a-rA-R]{2}[0-9]{2}[a-xA-X]{0,2}[0-9]{0,2}[a-xA-X]{0,2}$/.test(locator))) {
return false;
}
-
+
return true;
}
@@ -530,7 +530,7 @@ function newpath(latlng1, latlng2, locator1, locator2) {
var osmUrl='https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
var osmAttrib='Map data © OpenStreetMap contributors';
- var osm = new L.TileLayer(osmUrl, {minZoom: 1, maxZoom: 9, attribution: osmAttrib});
+ var osm = new L.TileLayer(osmUrl, {minZoom: 1, maxZoom: 9, attribution: osmAttrib});
var redIcon = L.icon({
iconUrl: icon_dot_url,
@@ -837,7 +837,7 @@ $(document).on('keypress',function(e) {
uri->segment(1) == "qso") { ?>
-load->model('stations');
$active_station_id = $this->stations->find_active();
@@ -879,7 +879,7 @@ $(document).on('keypress',function(e) {
-uri->segment(1) == "qso" && $_GET['manual'] == 0) || ($this->uri->segment(1) == "contesting" && $this->uri->segment(2) != "add")) { ?>
+uri->segment(1) == "qso" && $_GET['manual'] ?? 0 == 0) || ($this->uri->segment(1) == "contesting" && $this->uri->segment(2) != "add")) { ?>
uri->segment(1) == "contesting" && $this->uri->segment(2) != "add" ) { ?>