1 // Script to open and close sidebar
4 $('#mySidebar').css('display', 'block');
5 $('#myOverlay').css('display', 'block');
10 $('#mySidebar').hide();
11 $('#myOverlay').hide();
14 function open_page(page) {
16 $('div.w3-container').hide();
18 if ($('div.w3-container#'+page + ' form').length)
22 if (typeof data == 'object') {
24 obj = $('div.w3-container#'+page + ' [name="'+name+'"]');
30 $('div.w3-container#'+page).show();
33 function response(text, stay)
35 $('div.w3-container').hide();
36 $('div.w3-container#response #msg').html(text);
37 $('div.w3-container#response').show();
39 setTimeout(function(){
44 function submit_datetime() {
46 'action=datetime&' + $('div.w3-container#datetime form').serialize(),
49 response('Aktuelle Uhrzeit und Datum gesetzt');
55 function submit_wifi() {
57 'action=wifi&' + $('div.w3-container#wifi form').serialize());
58 response('WLAN neu konfiguriert.<br>Sie müssen sich mit neuem Paßwort im WLAN anmelden.', true);
63 function submit_shares() {
65 'action=shares&' + $('div.w3-container#shares form').serialize(),
68 response('Passwörter für die Netzwerk-Laufwerke gesetzt');
74 function submit_halt() {
79 response('Der Server kann jetzt vom Strom getrennt und eingepackt werden.', true);
86 $('div.w3-container').hide();
87 $('div.w3-container#home').show();