From 75f4290ba3010420b410070d1fe51d5424dc4b51 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Sun, 30 Apr 2023 21:39:25 +0100 Subject: [PATCH] Adjust robots meta tag --- auth.html | 1 + board-staff.html | 1 + board.html | 1 + js/pis.js | 16 ++++++++++------ 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/auth.html b/auth.html index 7572510..14e365a 100644 --- a/auth.html +++ b/auth.html @@ -3,6 +3,7 @@ + diff --git a/board-staff.html b/board-staff.html index 111d695..9afc110 100644 --- a/board-staff.html +++ b/board-staff.html @@ -4,6 +4,7 @@ + diff --git a/board.html b/board.html index bbac91e..2c64824 100644 --- a/board.html +++ b/board.html @@ -5,6 +5,7 @@ + diff --git a/js/pis.js b/js/pis.js index 066a597..e749674 100644 --- a/js/pis.js +++ b/js/pis.js @@ -58,10 +58,14 @@ async function displayUnauthorised() { } async function reset() { - document.getElementById('origin').value = "" - document.getElementById('destination').value = "" - document.getElementById('result-box').style = 'display:none' - document.getElementById('result-table').remove() - document.getElementById('crs-box').style = 'display:block' - document.getElementById('result-count').textContent = 0 + try { + document.getElementById('origin').value = "" + document.getElementById('destination').value = "" + document.getElementById('result-box').style = 'display:none' + document.getElementById('result-table').remove() + document.getElementById('crs-box').style = 'display:block' + document.getElementById('result-count').textContent = 0 + } catch(e) { + log(`Nothing to reset`) + } } \ No newline at end of file