mirror of
https://gitlab.com/wirelos/sprocket-lib.git
synced 2025-12-16 05:24:30 +01:00
basic web config
This commit is contained in:
11
data/www/script.js
Normal file
11
data/www/script.js
Normal file
@@ -0,0 +1,11 @@
|
||||
$(() => {
|
||||
// load config
|
||||
$.get("/config.json", (data) => {
|
||||
$('.js-config').val(JSON.stringify(data, null, 4));
|
||||
});
|
||||
// add handlers
|
||||
$('.js-restart').click(()=>{
|
||||
$.post('/restart');
|
||||
alert('restarting...');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user