I suck at git man

This reverts commit 824c884ed3.
This commit is contained in:
elijahr2411 2023-02-10 08:56:59 -05:00
parent 45774ff2ae
commit 2ba4307074
2 changed files with 0 additions and 14 deletions

1
dist/index.html vendored
View file

@ -96,7 +96,6 @@
<button class="btn btn-secondary" id="voteResetButton"><i class="fa-solid fa-rotate-left"></i> Vote for Reset</button>
<button class="btn btn-secondary" id="screenshotButton"><i class="fa-solid fa-camera"></i> Screenshot</button>
<button class="btn btn-secondary" id="ctrlAltDelBtn"><i class="fa-solid fa-gear"></i> Ctrl+Alt+Del</button>
<button class="btn btn-secondary" id="autotypebtn">Autotype</button>
<div id="staffbtns">
<button class="btn btn-secondary" id="restoreBtn"><i class="fa-solid fa-rotate-left"></i> Restore</button>
<button class="btn btn-secondary" id="rebootBtn"><i class="fa-solid fa-power-off"></i> Reboot</button>

View file

@ -18,7 +18,6 @@ const buttons = {
changeUsername: window.document.getElementById("changeUsernameBtn"),
voteReset: window.document.getElementById("voteResetButton"),
screenshot: window.document.getElementById("screenshotButton"),
autotype: window.document.getElementById("autotypebtn"),
// Staff
restore: window.document.getElementById("restoreBtn"),
reboot: window.document.getElementById("rebootBtn"),
@ -543,13 +542,6 @@ class CollabVMClient {
voteReset(reset) {
this.socket.send(guacutils.encode(["vote", reset ? "1" : "0"]));
}
autotype(str) {
for (var i = 0; i < str.length; i++) {
var key = GetKeysym(null, null, str[i], null);
this.key(key, true);
this.key(key, false);
}
}
admin = {
login: (password) => {
return new Promise((res, rej) => {
@ -806,11 +798,6 @@ buttons.ctrlAltDel.addEventListener('click', () => {
});
voteyesbtn.addEventListener('click', () => vm.voteReset(true));
votenobtn.addEventListener('click', () => vm.voteReset(false));
buttons.autotype.addEventListener('click', () => {
var h = window.prompt("Enter string to type");
if (!h) return;
vm.autotype(h);
})
// Staff buttons
buttons.restore.addEventListener('click', () => vm.admin.restore());
buttons.reboot.addEventListener('click', () => vm.admin.reboot());