-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathkillserver.html
More file actions
26 lines (25 loc) · 776 Bytes
/
killserver.html
File metadata and controls
26 lines (25 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<script type="text/javascript">
function url(rest) {
here = window.location.href.split("/");
here.pop();
here.push(rest);
return here.join("/");
}
function killServer(socket) {
if (!confirm("Are you really sure you want to kill ADB?")) {
alert("User uncertain. Aborted.");
}
else {
if (confirm("Are any tests running? (OK=YES)")) {
alert("Tests were running, Aborted.");
}
else {
window.frames["stdout"].location=url("killServer?ssocket=" + socket);
}
}
}
</script>
<input type='button' value="kill-server" onclick="killServer('$::ssocket')">
<iframe height=50 width=500 id=stdout name=stdout></iframe><br>
<hr>
<a href='https://github.com/sleekweasel/CgiAdbRemote'>CgiAdbRemote</a> is on github.