mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-12 13:33:06 +01:00
#10: use the system name as page headline and title
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<div class="main">
|
||||
<h1>NMEA 2000 Gateway </h1>
|
||||
<h1 id="headline">NMEA 2000 Gateway </h1>
|
||||
<div class="row">
|
||||
<span class="label">connected</span>
|
||||
<span class="value" id="connected"></span>
|
||||
|
||||
@@ -98,6 +98,12 @@ function resetForm(ev) {
|
||||
el.dispatchEvent(changeEvent);
|
||||
}
|
||||
}
|
||||
let name=jsonData.systemName;
|
||||
if (name){
|
||||
let el=document.getElementById('headline');
|
||||
if (el) el.textContent=name;
|
||||
document.title=name;
|
||||
}
|
||||
});
|
||||
}
|
||||
function checkMaxClients(v) {
|
||||
|
||||
Reference in New Issue
Block a user