Created
December 17, 2008 00:30
-
-
Save batok/36884 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function inicio(){ | |
dojo.query(".headLink").forEach(function(n){ | |
var widget = new dojox.widget.FisheyeLite({ | |
properties: { | |
height:65 | |
}, | |
easeOut:dojox.fx.easing.bounceOut, | |
durationOut:700 | |
},n); | |
var myTarget = dojo.query(".subtext",n)[0]; | |
if(myTarget){ | |
dojo.style(myTarget,{ opacity:"0", visibility:"visible" }); | |
var _anim = null; | |
dojo.connect(widget,"show",function(e){ | |
_anim && _anim.status && _anim.stop(); | |
_anim = dojo.fadeIn({ node: myTarget, duration:250 }); | |
_anim.play(); | |
}); | |
dojo.connect(widget,"hide",function(e){ | |
_anim && _anim.status && _anim.stop(); | |
_anim = dojo.fadeOut({ node: myTarget, duration:250 }); | |
_anim.play(); | |
}); | |
} | |
dojo.connect(n,"onclick",function(e){ | |
var id = dojo.attr(n,"id"); | |
if ( id == "todosLink" ){ | |
window.location = "listposts" | |
} | |
if ( id == "miosLink" ){ | |
window.location = "listposts?by_author=" + AUTHOR; | |
} | |
if ( id == "menuLink" ){ | |
window.location = "/" | |
} | |
if ( id == "nuevoLink" ){ | |
window.location = "blogpost" | |
} | |
if ( id == "comentarLink" ){ | |
alert("En construccion"); | |
} | |
if ( id == "adjuntarLink" ){ | |
alert("En construccion"); | |
} | |
}); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment