diff options
author | Chad Kieffer <ckieffer@gmail.com> | 2009-07-12 11:43:41 -0600 |
---|---|---|
committer | Chad Kieffer <ckieffer@gmail.com> | 2009-07-12 11:43:41 -0600 |
commit | 58d0a5013d4cda1be0cf528b8ff08d44b123d75f (patch) | |
tree | 578a07a68ae513e9129cf2c09c4fb5bf53f8fbb7 /themes/default/js | |
parent | e2967aa1c1a0232e1a1f162db46e6f6db7154dac (diff) |
First attempt at animating gThumbMenu. Doesn't work.
Diffstat (limited to 'themes/default/js')
-rw-r--r-- | themes/default/js/ui.init.js | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/themes/default/js/ui.init.js b/themes/default/js/ui.init.js index b14127f6..d5755aed 100644 --- a/themes/default/js/ui.init.js +++ b/themes/default/js/ui.init.js @@ -50,8 +50,23 @@ $(document).ready(function() { .css({ "height":"10px", "margin":"0", - "padding":"0" + "padding":"0", + "width":"16px" }); + var menuHt = $("#gContent .gThumbMenu").height(); + var bottomPos = "-" + (menuHt - 15) + "px"; + $("#gContent .gThumbMenu").css("bottom",bottomPos); + console.log("Initilizing: Placing at " + bottomPos); + $("#gContent .gThumbMenu li").hover( + function(){ + $(this).css("bottom","0"); + console.log("Placing at 0px"); + }, + function(){ + $(this).css("bottom",bottomPos); + console.log("Placing at " + bottomPos); + } + ); } // Initialize view menu |