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