First commit
This commit is contained in:
20
js/main.js
Normal file
20
js/main.js
Normal file
@@ -0,0 +1,20 @@
|
||||
console.log('main.js loaded');
|
||||
|
||||
async function update() {
|
||||
const response = await fetch('http://127.0.0.1/api/getzones.php', {
|
||||
method: 'GET',
|
||||
});
|
||||
console.log(response);
|
||||
const content = await response.json();
|
||||
// loop le result
|
||||
|
||||
// update menu with key
|
||||
|
||||
// loop value
|
||||
|
||||
// update table with value
|
||||
}
|
||||
|
||||
window.onload = () => {
|
||||
update();
|
||||
};
|
||||
Reference in New Issue
Block a user