mirror of
https://gitlab.com/zwirbel/illucat.git
synced 2025-12-16 18:05:05 +01:00
19 lines
483 B
JavaScript
19 lines
483 B
JavaScript
$(() => {
|
|
|
|
$('form').each((i, el) => {
|
|
let $fEl = $(el);
|
|
$.get($fEl.find('[name="fileName"]').val(), (data) => {
|
|
$fEl.find('.js-config').val(JSON.stringify(data, null, 4));
|
|
});
|
|
});
|
|
|
|
// load config
|
|
//$.get("/config.json", (data) => {
|
|
// $('.js-config').val(JSON.stringify(data, null, 4));
|
|
//});
|
|
// add handlers
|
|
$('.js-restart').click(() => {
|
|
$.post('/restart');
|
|
alert('restarting...');
|
|
});
|
|
}); |