summaryrefslogtreecommitdiffstats
path: root/module/web/static/default/status.js
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-19 17:13:35 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-19 17:13:35 +0200
commit0c8dc650e52323f741bdaf50a864f1ebd819e6c6 (patch)
tree204b85ba411fde2b8da79493c75002253f3ee628 /module/web/static/default/status.js
parentsome webinterface functions (diff)
downloadpyload-0c8dc650e52323f741bdaf50a864f1ebd819e6c6.tar.xz
webinterface statusbar
Diffstat (limited to 'module/web/static/default/status.js')
-rw-r--r--module/web/static/default/status.js51
1 files changed, 51 insertions, 0 deletions
diff --git a/module/web/static/default/status.js b/module/web/static/default/status.js
new file mode 100644
index 000000000..c211fc669
--- /dev/null
+++ b/module/web/static/default/status.js
@@ -0,0 +1,51 @@
+/* hover! */
+Element.implement({
+ 'hover': function(fn1,fn2) {
+ return this.addEvents({
+ 'mouseenter': function(e) {
+ fn1.attempt(e,this);
+ },
+ 'mouseleave': function(e) {
+ fn2.attempt(e,this);
+ }
+ })
+ }
+});
+
+
+window.addEvent('domready', function(){
+
+$$('.statusbutton').each(function(item){
+
+ item.hover(function(e){
+ this.tween('opacity',1)
+ },function(e){
+ this.tween('opacity',0.01)
+ }
+)
+})
+
+fx_reveal = new Fx.Reveal($('addlinks'));
+//fx_reveal.dissolve()
+
+
+$$('#addlinks .closeSticky').each(function(el){
+
+el.addEvent('click',function(e){
+
+fx_reveal.dissolve();
+
+});
+
+});
+
+$$('.statusbutton')[2].addEvent('click',function(e){
+
+$('addlinks').setStyle('top', e.page.y + 5)
+$('addlinks').setStyle('left', e.page.x + 5)
+
+fx_reveal.reveal()
+
+});
+
+}); \ No newline at end of file