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:
28
functions.js
28
functions.js
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user