1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 20:25:57 +00:00

more piggies! I demand MORE piggies!!!

This commit is contained in:
Andrew Dolgov
2005-08-25 07:57:51 +01:00
parent 7880091293
commit 13ad91024c
4 changed files with 59 additions and 27 deletions

View File

@@ -39,4 +39,32 @@ function printLockingError() {
notify("Please wait until operation finishes");
}
var seq = "";
function hotkey_handler(e) {
var keycode;
if (window.event) {
keycode = window.event.keyCode;
} else if (e) {
keycode = e.which;
}
if (keycode == 13 || keycode == 27) {
seq = "";
} else {
seq = seq + "" + keycode;
}
var piggie = document.getElementById("piggie");
if (seq.match("807371717369")) {
localPiggieFunction(true);
} else {
localPiggieFunction(false);
}
}