LoRa_APRS_iGate/data/iindex4.html
2023-08-31 08:17:31 -04:00

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>