library cleanup / code cleanup + custom titles

This commit is contained in:
NoobishSVK
2024-01-21 23:14:56 +01:00
parent 830d79564f
commit 8a450f74da
7 changed files with 41 additions and 164 deletions
+2 -1
View File
@@ -170,7 +170,8 @@ h3 {
padding: 0;
list-style-type: none;
height: 425px;
overflow: scroll;
overflow-y: scroll;
overflow-x: hidden;
margin-bottom: 0;
}
+1 -1
View File
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>FM-DX Webserver [Noobish's Server]</title>
<title>FM-DX Webserver</title>
<link href="css/styles.css" type="text/css" rel="stylesheet">
<link href="css/flags.min.css" type="text/css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" type="text/css" rel="stylesheet">
+4 -1
View File
@@ -39,12 +39,15 @@ function zoomOut() {
}
function getInitialSettings() {
fetch('/coordinates')
fetch('/static_data')
.then(response => response.json())
.then(data => {
// Use the received data (data.qthLatitude, data.qthLongitude) as needed
localStorage.setItem('qthLatitude', data.qthLatitude);
localStorage.setItem('qthLongitude', data.qthLongitude);
localStorage.setItem('webServerName', data.webServerName);
document.title = 'FM-DX Webserver [' + data.webServerName + ']';
})
.catch(error => console.error('Error:', error));
}