mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-03-21 04:35:33 +01:00
25 lines
680 B
HTML
25 lines
680 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Read JSON Lines</title>
|
|
</head>
|
|
<body>
|
|
<h1>Read JSON Lines</h1>
|
|
<ul id="jsonLines"></ul>
|
|
|
|
<script>
|
|
fetch('/igate_conf.json')
|
|
.then(response => response.json())
|
|
.then(data => {
|
|
const jsonLines = document.getElementById('jsonLines');
|
|
data.forEach(line => {
|
|
const listItem = document.createElement('li');
|
|
listItem.textContent = line;
|
|
jsonLines.appendChild(listItem);
|
|
});
|
|
})
|
|
.catch(error => console.error('Error reading JSON:', error));
|
|
</script>
|
|
</body>
|
|
</html>
|