summaryrefslogtreecommitdiff
path: root/static/background.js
diff options
context:
space:
mode:
authordumpfmprod <dumpfmprod@ubuntu.(none)>2010-04-06 21:49:33 -0400
committerdumpfmprod <dumpfmprod@ubuntu.(none)>2010-04-06 21:49:33 -0400
commitbb6c557b0ec2c154d4da7aa3b291eebe942b9046 (patch)
tree06be29104d80a5533ec76eb9693ce52cae802438 /static/background.js
parenta136333cfc240a9fa7a76e44344dd6dd6eaade96 (diff)
Deleted static files, updated css
Diffstat (limited to 'static/background.js')
-rwxr-xr-xstatic/background.js31
1 files changed, 0 insertions, 31 deletions
diff --git a/static/background.js b/static/background.js
deleted file mode 100755
index edbe5b1..0000000
--- a/static/background.js
+++ /dev/null
@@ -1,31 +0,0 @@
-var bgImages = ['shaq.gif','background4.gif','background13.gif','wayne.gif','blink.gif','rhianamoney.gif','britglobe2.gif','gaga.gif'];
-var bgIndex = -1;
-
-function killBackground() {
- document.getElementsByTagName('html')[0].style.background = 'none';
-}
-
-function setBackground(i) {
- document.getElementsByTagName('html')[0].style.background = (bgImages[i].indexOf('#')+1?bgImages[i]:'#222 url(/static/'+bgImages[i]+(bgImages[i].indexOf('.gif')==-1?'.jpg':'')+') 50% 50%');
-}
-
-function getBackground() {
- if (++bgIndex>=bgImages.length) bgIndex = 0;
- setBackground(bgIndex);
-}
-
-window.onload = function() {
- var nAV = navigator.appVersion.toLowerCase();
- if (nAV.match(/msie 5/) || nAV.match(/msie 6/)) return false;
- var items = document.getElementsByClassName('dialog','div');
- for (var i=0,j=items.length; i<j; i++) {
- widgets[widgets.length] = new DialogWidget(items[i],i);
- }
- var d = document.createElement('div');
- d.style.cssText = 'position:fixed;bottom:3px;right:3px;font-size:xx-small;z-index:10';
- d.innerHTML = '<button onclick="getBackground()" title="Rotate background image" style="font-size:xx-small">1</button><button id="animation-demo" onclick="doAnimationDemo()" title="Cheap demo: Adjust width, height and margins, showing fluidity" style="font-size:xx-small">2</button>';
- document.body.appendChild(d);
- document.getElementById('animation-demo').style.display = 'block';
- getBackground();
- // window.onresize = handleResize;
-} \ No newline at end of file