[bknr-cvs] hans changed trunk/projects/quickhoney/website/
BKNR Commits
bknr at bknr.net
Tue Sep 9 05:58:22 UTC 2008
Revision: 3852
Author: hans
URL: http://bknr.net/trac/changeset/3852
Replace Javascript cue by a animated GIF spinner.
U trunk/projects/quickhoney/website/static/index.css
U trunk/projects/quickhoney/website/static/javascript.js
A trunk/projects/quickhoney/website/static/spinner.gif
U trunk/projects/quickhoney/website/templates/index.xml
Modified: trunk/projects/quickhoney/website/static/index.css
===================================================================
--- trunk/projects/quickhoney/website/static/index.css 2008-09-09 04:57:43 UTC (rev 3851)
+++ trunk/projects/quickhoney/website/static/index.css 2008-09-09 05:58:22 UTC (rev 3852)
@@ -316,10 +316,10 @@
position: absolute;
visibility: hidden;
left: 0px;
- top: 0px;
+ background-color: white;
+ top: 8px;
text-align: left;
color: white;
- background-color: red;
padding: 0em 0.5em 0em 0.5em;
}
Modified: trunk/projects/quickhoney/website/static/javascript.js
===================================================================
--- trunk/projects/quickhoney/website/static/javascript.js 2008-09-09 04:57:43 UTC (rev 3851)
+++ trunk/projects/quickhoney/website/static/javascript.js 2008-09-09 05:58:22 UTC (rev 3852)
@@ -411,32 +411,14 @@
display_path();
}
-var display_cue = false;
-var wait_count = 0;
-
-function animate_cue() {
-
- if (display_cue) {
- $("cue").innerHTML = display_cue + ' ' + "-\\|/".charAt(wait_count++ % 4);
- setTimeout("animate_cue()", 100);
- }
-}
-
function show_cue(text) {
$("cue").style.visibility = 'visible';
$('footer').style.visibility = 'hidden';
- if (display_cue) {
- display_cue = text;
- } else {
- display_cue = text;
- animate_cue();
- }
}
function hide_cue() {
$("cue").style.visibility = 'hidden';
$('footer').style.visibility = 'inherit';
- display_cue = false;
}
var db_cache = {};
Added: trunk/projects/quickhoney/website/static/spinner.gif
===================================================================
(Binary files differ)
Property changes on: trunk/projects/quickhoney/website/static/spinner.gif
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/projects/quickhoney/website/templates/index.xml
===================================================================
--- trunk/projects/quickhoney/website/templates/index.xml 2008-09-09 04:57:43 UTC (rev 3851)
+++ trunk/projects/quickhoney/website/templates/index.xml 2008-09-09 05:58:22 UTC (rev 3852)
@@ -368,9 +368,7 @@
</p>
</div>
- <div id="cue">
- query database
- </div>
+ <div id="cue"><img src="/static/spinner.gif" width="16" height="16"/></div>
<div id="edit_frame" class="hidden_iframe">
<iframe src="about:blank" height="0" width="0" name="edit_iframe"> </iframe>
More information about the Bknr-cvs
mailing list