From 255382710f19c2adb5b878ee8d69d6398a99a428 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Tue, 25 Apr 2023 20:50:19 +0100 Subject: [PATCH] Style & Script fixes --- js/pis.js | 6 +++--- styles/pis.css | 14 ++++++++++++-- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/js/pis.js b/js/pis.js index 0d63305..1bb214a 100644 --- a/js/pis.js +++ b/js/pis.js @@ -36,13 +36,13 @@ async function insertData(json) { for(var i = 0; i < json.length; i++) { // Hopefully can style output with CSS tableData += `${json[i]['code']} ${json[i]['stops'].join(', ')}` + log(`Count prior to incrementing: ${results}`) results++ + log(`Count after incrementing: ${results}`) } tableData += "" div.insertAdjacentHTML("beforeend", tableData) - if (results > 1) { - document.getElementById('result-count').textContent = results.toString() - } + document.getElementById('result-count').textContent = results.toString() } async function noData() { diff --git a/styles/pis.css b/styles/pis.css index 3039e47..f9cccf0 100644 --- a/styles/pis.css +++ b/styles/pis.css @@ -13,6 +13,14 @@ text-align: center; } +td, th { + border-bottom: 1px solid; +} + +#reset { + margin-top: 25px +} + #reset { margin-top: 25px; } @@ -22,6 +30,8 @@ } .station { - text-transform:uppercase; - overflow-wrap:anywhere + text-transform: uppercase; + overflow-wrap: anywhere; + font-family: firamono, monospace; + line-height: 1.2; } \ No newline at end of file