mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-08 07:55:28 +00:00
test2
This commit is contained in:
parent
1b28beb3f4
commit
0870ae39d8
6 changed files with 45 additions and 15 deletions
16
data/script.js
Normal file
16
data/script.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// Retrieve JSON data from the JSON file in SPIFFS
|
||||
fetch('igate_conf.json')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
// Process the JSON data
|
||||
displayJSONData(data);
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Error fetching JSON:', error);
|
||||
});
|
||||
|
||||
// Display JSON data in the HTML
|
||||
function displayJSONData(data) {
|
||||
const jsonContainer = document.getElementById('json-container');
|
||||
jsonContainer.innerHTML = JSON.stringify(data, null, 2);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue