From 1d7bf5a0f3208941c0b02db1049f02d974eb7495 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 18 May 2006 14:18:30 +0100 Subject: [PATCH] infobox uses semi-transparent overlay --- functions.js | 3 ++- images/overlay.png | Bin 0 -> 158 bytes prefs.js | 6 +++--- tt-rss.css | 18 ++++++++++-------- tt-rss.js | 2 +- tt-rss.php | 2 +- 6 files changed, 17 insertions(+), 14 deletions(-) create mode 100644 images/overlay.png diff --git a/functions.js b/functions.js index ad6a95f95..8245c71a1 100644 --- a/functions.js +++ b/functions.js @@ -78,7 +78,7 @@ var notify_last_doc = false; function hide_notify() { if (notify_last_doc) { var n = notify_last_doc.getElementById("notify"); - if (navigator.userAgent.match("Firefox")) { + if (browser.isNS) { if (notify_opacity >= 0) { notify_opacity = notify_opacity - 0.2; n.style.opacity = notify_opacity; @@ -1049,3 +1049,4 @@ function toggleSubmitNotEmpty(e, submit_id) { exception_error("toggleSubmitNotEmpty", e); } } + diff --git a/images/overlay.png b/images/overlay.png new file mode 100644 index 0000000000000000000000000000000000000000..e3a0a77028b42a6a4429e42b638adbde4af8fa9c GIT binary patch literal 158 zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx1|;Q0k8}bl&H|6fVg?4j!ywFfJby(BP>?0v z(btiI;c#T7EAIp#Um@8e$d`ek8py2w!NBl&BLhPRP;*`g1H-e|3=B>c3=E2vhM&Gy u0u_jOx;TbZ+)DcK|Nnm 0) { - var ok = confirm("Unsubscribe selected feeds?"); + var ok = confirm("Unsubscribe from selected feeds?"); if (ok) { - notify("Removing selected feeds..."); + notify("Unsubscribing from selected feeds..."); xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=remove&ids="+ param_escape(sel_rows.toString()), true); @@ -1214,7 +1214,7 @@ function localPiggieFunction(enable) { var piggie = document.getElementById("piggie"); piggie.style.display = "block"; - if (navigator.userAgent.match("Firefox") && Math.random(1) > 0.5) { + if (browser.isNS && Math.random(1) > 0.5) { piggie2_callback(); } else { piggie_callback(); diff --git a/tt-rss.css b/tt-rss.css index 09678ec42..dfb3ae41a 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -538,9 +538,10 @@ div.helpResponse { border-color : #88b0f0; font-size : small; position : relative; - bottom : 2px; - right : 2px; - padding-bottom : 5px; + top : 30%; + left : 30%; + width : 30%; + padding-bottom : 5px; background-image : url("images/prefs-content.png"); background-position : top left; background-repeat : repeat-x; @@ -548,12 +549,13 @@ div.helpResponse { } #infoBoxShadow { - background-image : url("images/shadow.png"); - position : absolute; - left : 35%; - top : 30%; - width : 30%; + background-image : url("images/overlay.png"); + left : 0; + top : 0; + height : 100%; + width : 100%; z-index : 3; + position : absolute; display : none; } diff --git a/tt-rss.js b/tt-rss.js index f82bb773c..3faf59d4f 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -494,7 +494,7 @@ function quickMenuGo(opid) { return; } - if (confirm("Unsubscribe current feed?")) { + if (confirm("Unsubscribe from current feed?")) { qfdDelete(actid); } diff --git a/tt-rss.php b/tt-rss.php index 0cd2bb85a..c4879ff7a 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -229,7 +229,7 @@ window.onload = init; - +