summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-05-18 14:51:15 +0100
committerAndrew Dolgov <[email protected]>2006-05-18 14:51:15 +0100
commit292a8a12246dd386e36c20b24369d50bb60defa8 (patch)
tree2a9791b416dc57348c374072b9eda4e6ff656c0b
parentf9e621d06fde24fd6e753e274bcc2023d7b83631 (diff)
opera fixes
-rw-r--r--backend.php4
-rw-r--r--functions.js12
-rw-r--r--opera.css37
-rw-r--r--prefs.js2
-rw-r--r--tt-rss.css1
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\">&nbsp;
<input
@@ -3448,7 +3446,7 @@
print "<div class=\"prefGenericAddBox\">
<input id=\"uadd_box\"
onkeyup=\"toggleSubmitNotEmpty(this, 'user_add_btn')\"
- onchange=\"javascript:addUser()\" size=\"40\">&nbsp;";
+ size=\"40\">&nbsp;";
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);
}
}
diff --git a/opera.css b/opera.css
index ce0394407..eba519d1a 100644
--- a/opera.css
+++ b/opera.css
@@ -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;
+}
+
diff --git a/prefs.js b/prefs.js
index 2c15ae924..ccc0d7859 100644
--- a/prefs.js
+++ b/prefs.js
@@ -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 {