From 41d027ffab8fe535d8317fa06409ec03b15335c7 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Thu, 8 Jun 2023 11:13:36 +0100 Subject: [PATCH] Change page layout to fit more data --- js/train-detail.js | 10 ++++++++++ train-detail.html | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/js/train-detail.js b/js/train-detail.js index f27c481..999faf8 100644 --- a/js/train-detail.js +++ b/js/train-detail.js @@ -63,7 +63,10 @@ async function displayOne(object) { stopRows += await createPublicStopTableRow(stop) } const displayBox = document.getElementById('train_data') + const titleImg = document.getElementById('titleimg') displayBox.insertAdjacentHTML('beforeend', dataTableHead + stopRows + dataTableClose) + displayBox.style = 'display:block;' + titleImg.style = 'width:150px;height:98px;padding-bottom:0;' } async function createPublicStopTableRow(stop) { @@ -85,4 +88,11 @@ async function createPublicStopTableRow(stop) { ${public_dep} ` +} + +async function reset() { + const titleImg = document.getElementById('titleimg') + const displayBox = document.getElementById('train_data') + titleImg.style = '' + displayBox.innerHTML = '' } \ No newline at end of file diff --git a/train-detail.html b/train-detail.html index fd98282..14070be 100644 --- a/train-detail.html +++ b/train-detail.html @@ -36,7 +36,7 @@ - OwlBoard Logo + OwlBoard Logo

Train Details