" + this.responseText + "" 34 | } else if (this.status == 500 || this.status == 404) { 35 | body.innerHTML = "Ausführung fehlgeschlagen.
" + this.responseText + "" 36 | } 37 | } 38 | }; 39 | xhr.open('POST', url, true); 40 | xhr.setRequestHeader('Content-Type', 'application/json'); 41 | data = JSON.stringify(params); 42 | xhr.send(data); 43 | } 44 | 45 | var power_button = this.document.getElementById('poweroff'); 46 | power_button.addEventListener('click', function () { 47 | sendRequest(['poweroff']); 48 | }); 49 | 50 | }) 51 | -------------------------------------------------------------------------------- /files/index.php: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
61 | Ein Projekt aus c't 1/2020, um Datenschleudern und -Petzen zu untersuchen. 62 | Weitere Hinweise gibt es auf der Projektseite. 63 |
64 |%s
75 |%s
120 | %s 121 |