basic web config

This commit is contained in:
2018-08-29 09:57:58 +02:00
parent 52fdf0e5e0
commit 74e9b8df4f
6 changed files with 45 additions and 22 deletions

11
data/www/script.js Normal file
View 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...');
});
});