]>
git.wh0rd.org - tt-rss.git/blob - functions.js
1 function param_escape(arg
) {
2 if (typeof encodeURIComponent
!= 'undefined')
3 return encodeURIComponent(arg
);
8 function param_unescape(arg
) {
9 if (typeof decodeURIComponent
!= 'undefined')
10 return decodeURIComponent(arg
);
17 then
=new Date().getTime();
19 while((now
-then
)<gap
) {
20 now
=new Date().getTime();
24 function notify(msg
) {
26 var n
= document
.getElementById("notify");
30 if (msg
.length
== 0) {
31 n
.style
.display
= "none";
33 n
.style
.display
= "block";
38 function printLockingError() {
39 notify("Please wait until operation finishes");
44 function hotkey_handler(e
) {
48 keycode
= window
.event
.keyCode
;
53 if (keycode
== 13 || keycode
== 27) {
56 seq
= seq
+ "" + keycode
;
59 var piggie
= document
.getElementById("piggie");
61 if (seq
.match("807371717369")) {
62 localPiggieFunction(true);
64 localPiggieFunction(false);