diff options
-rw-r--r-- | backend.php | 4 | ||||
-rw-r--r-- | functions.js | 12 | ||||
-rw-r--r-- | opera.css | 37 | ||||
-rw-r--r-- | prefs.js | 2 | ||||
-rw-r--r-- | tt-rss.css | 1 |
5 files changed, 48 insertions, 8 deletions
diff --git a/backend.php b/backend.php index 766fe218f..d7567330e 100644 --- a/backend.php +++ b/backend.php @@ -1823,7 +1823,6 @@ cellspacing='0' cellpadding='0'><tr> <td> <input id=\"fadd_link\" - onchange=\"javascript:addFeed()\" onkeyup=\"toggleSubmitNotEmpty(this, 'fadd_submit_btn')\" size=\"40\"> <input type=\"submit\" class=\"button\" @@ -2052,7 +2051,6 @@ print "<div class=\"prefGenericAddBox\"> <input id=\"fadd_cat\" - onchange=\"javascript:addFeedCat()\" onkeyup=\"toggleSubmitNotEmpty(this, 'catadd_submit_btn')\" size=\"40\"> <input @@ -3448,7 +3446,7 @@ print "<div class=\"prefGenericAddBox\"> <input id=\"uadd_box\" onkeyup=\"toggleSubmitNotEmpty(this, 'user_add_btn')\" - onchange=\"javascript:addUser()\" size=\"40\"> "; + size=\"40\"> "; print"<input type=\"submit\" class=\"button\" id=\"user_add_btn\" disabled=\"true\" diff --git a/functions.js b/functions.js index 8245c71a1..ef7910c71 100644 --- a/functions.js +++ b/functions.js @@ -1,5 +1,9 @@ var hotkeys_enabled = true; +function browser_has_opacity() { + return navigator.userAgent.match("Gecko") || navigator.userAgent.match("Opera"); +} + function exception_error(location, e) { var msg; @@ -78,14 +82,14 @@ var notify_last_doc = false; function hide_notify() { if (notify_last_doc) { var n = notify_last_doc.getElementById("notify"); - if (browser.isNS) { + if (browser_has_opacity()) { if (notify_opacity >= 0) { notify_opacity = notify_opacity - 0.2; n.style.opacity = notify_opacity; - notify_hide_timerid = window.setTimeout(hide_notify, 20); + notify_hide_timerid = window.setTimeout("hide_notify()", 20); } else { n.style.display = "none"; - n.style.opacity = 1; + n.style.opacity = 1; } } else { n.style.display = "none"; @@ -126,7 +130,7 @@ function notify_real(msg, doc, no_hide, is_err) { notify_opacity = 1; if (!no_hide) { - notify_hide_timerid = window.setTimeout(hide_notify, 3000); + notify_hide_timerid = window.setTimeout("hide_notify()", 3000); } } @@ -5,3 +5,40 @@ table.main td.headlines { border-color : #c0c0c0; } +#infoBoxTitle { + border-width : 1px 1px 1px 1px; + border-style : solid; + border-color : #88b0f0; + background-color : #88b0f0; + padding : 2px; + color : white; +} + + +#infoBox { + border-width : 1px 1px 1px 1px; + border-style : solid; + border-color : #88b0f0; + font-size : small; + position : relative; + top : 30%; + left : 30%; + width : 30%; + padding-bottom : 5px; + background-image : url("images/prefs-content.png"); + background-position : top left; + background-repeat : repeat-x; + background-color : white; +} + +#infoBoxShadow { + background-image : url("images/overlay.png"); + left : 0; + top : 0; + height : 100%; + width : 100%; + z-index : 3; + position : absolute; + display : none; +} + @@ -1214,7 +1214,7 @@ function localPiggieFunction(enable) { var piggie = document.getElementById("piggie"); piggie.style.display = "block"; - if (browser.isNS && Math.random(1) > 0.5) { + if (navigator.userAgent.match("Gecko") && Math.random(1) > 0.5) { piggie2_callback(); } else { piggie_callback(); diff --git a/tt-rss.css b/tt-rss.css index eabe3e6f2..248c13cdd 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -142,6 +142,7 @@ ul.feedList { list-style-type : none; margin : 5px; padding : 0px 0px 0px 10px; + font-size : x-small; } ul.feedList li.feedCat { |