27 lines
648 B
HTML
27 lines
648 B
HTML
<!DOCTYPE html>
|
|
<html lang="en-US">
|
|
<head>
|
|
<title>Restarter</title>
|
|
<script type="text/javascript">
|
|
function restart(service) {
|
|
let query = new URLSearchParams({ "s" : service });
|
|
let xhttp = new XMLHttpRequest();
|
|
|
|
xhttp.onreadystatechange = function() {
|
|
if (this.readyState == 4 && this.status == 200) {
|
|
document.getElementById("result").innerHTML = this.responseText;
|
|
}
|
|
};
|
|
|
|
xhttp.open("GET", "./restarter.php?" + query.toString(), true);
|
|
xhttp.send();
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<button type=button onClick="restart(`minidlna`)">MiniDLNA</button>
|
|
<div id="result">
|
|
</div>
|
|
</body>
|
|
</html>
|