hideOrShowFeeds(document, getInitParam("hide_read_feeds") == 1);
document.onkeydown = hotkey_handler;
- document.onmousedown = mouse_handler;
setTimeout("timeout()", 0);
/* debug("about to remove splash, OMG!");
debug("removed splash!");
}
}
-
-function feedMouseIn(id) {
- try {
- if (feed_under_pointer != id) {
- feed_under_pointer = id;
- }
-
- } catch (e) {
- exception_error("feedMouseIn", e);
- }
-}
-
-function feedMouseOut(id) {
- try {
- feed_under_pointer = undefined;
- } catch (e) {
- exception_error("feedMouseOut", e);
- }
-}
-
var hotkeys_enabled = true;
-var debug_mode_enabled = false;
var xmlhttp_rpc = Ajax.getTransport();
var notify_silent = false;
var last_progress_point = 0;
}
var c = document.getElementById('debug_output');
- if (c && c.style.display == "block") {
+ if (c && Element.visible(c)) {
while (c.lastChild != 'undefined' && c.childNodes.length > 100) {
c.removeChild(c.lastChild);
}
$feed = "<a title=\"$link_title\" id=\"FEEDL-$feed_id\"
href=\"javascript:viewfeed('$feed_id', '', false, '', false, 0);\">$feed_title</a>";
- print "<li id=\"FEEDR-$feed_id\" class=\"$class\"
- onmouseover='feedMouseIn($feed_id)' onmouseout='feedMouseOut($feed_id)'>";
+ print "<li id=\"FEEDR-$feed_id\" class=\"$class\">";
if (get_pref($link, 'ENABLE_FEED_ICONS')) {
print "$feed_icon";
}
arguments.callee.done = true;
if (getURLParam('debug')) {
- document.getElementById('debug_output').style.display = 'block';
+ Element.show("debug_output");
debug('debug mode activated');
}
if (!hotkey_prefix) {
if (keycode == 68 && shift_key) { // d
- if (!debug_mode_enabled) {
- document.getElementById('debug_output').style.display = 'block';
+ if (!Element.visible("debug_output")) {
+ Element.show("debug_output");
debug('debug mode activated');
} else {
- document.getElementById('debug_output').style.display = 'none';
+ Element.hide("debug_output");
}
-
- debug_mode_enabled = !debug_mode_enabled;
return;
}
window.onload = init;
</script>
-<ul id="debug_output"></ul>
+<ul id="debug_output" style='display : none'></ul>
<div id="fatal_error"><div id="fatal_error_inner">
<h1>Fatal Error</h1>
bottom : 20px;
z-index : 999;
background-color : white;
- display : none;
border : 1px solid #c0c0c0;
overflow : auto;
margin : 0px;
return;
if (getURLParam('debug')) {
- document.getElementById('debug_output').style.display = 'block';
+ Element.show("debug_output");
debug('debug mode activated');
}
if (!hotkey_prefix) {
if (keycode == 68 && shift_key) { // d
- if (!debug_mode_enabled) {
- document.getElementById('debug_output').style.display = 'block';
+ if (!Element.visible("debug_output")) {
+ Element.show("debug_output");
debug('debug mode activated');
} else {
- document.getElementById('debug_output').style.display = 'none';
+ Element.hide("debug_output");
}
return;
exception_error("hotkey_handler", e);
}
}
-
-function mouse_handler(e) {
- try {
- var r_mouse = false;
-
- if (window.event) {
- r_mouse = window.event.button == 2;
- } else if (e) {
- r_mouse = e.which == 3;
- }
-
- } catch (e) {
- exception_error("mouse_handler", e);
- }
-}
window.onload = init;
</script>
-<ul id="debug_output"></ul>
+<ul id="debug_output" style='display : none'></ul>
<div id="infoBoxShadow"><div id="infoBox"> </div></div>