diff options
| author | sostler <sbostler@gmail.com> | 2010-04-06 21:53:42 -0400 |
|---|---|---|
| committer | sostler <sbostler@gmail.com> | 2010-04-06 21:53:42 -0400 |
| commit | a0334eba97fb985ee290c11f6ee72196dbe889b0 (patch) | |
| tree | d348e857b04d4e47bfb7afb712c7bee70545a6cc /static/background.js | |
| parent | a514554be0b15d937959af2d52c03da7eee3d60f (diff) | |
| parent | ab5e22770ce39adc94f444de18763a4b4674113a (diff) | |
Merge RM of static/help.html
Diffstat (limited to 'static/background.js')
| -rwxr-xr-x | static/background.js | 31 |
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 |
