mirror of
https://codeberg.org/kbruen/kai.infotren.git
synced 2025-02-22 17:19:37 +02:00
Modify title of view train page when data is found
This commit is contained in:
parent
5c95dec36d
commit
0765bc8232
1 changed files with 2 additions and 0 deletions
2
view-train.js
Normal file → Executable file
2
view-train.js
Normal file → Executable file
|
@ -17,6 +17,8 @@ function onTrainData(data) {
|
|||
title.appendChild(rankSpan)
|
||||
title.appendChild(document.createTextNode(` ${data.number}`))
|
||||
|
||||
document.getElementsByTagName('title')[0].textContent = `Train ${data.rank} ${data.number}`
|
||||
|
||||
document.getElementById('company').textContent = data.operator
|
||||
document.getElementById('date').textContent = data.date
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue