LinkedIn
Just a quick post since I apparently haven't posted it on teh blog yet.
I'm working on some new mootools plugins. Publish/subscribe based databinding. Reusable HTML based templates. And more!
Checkout my github.
Poll: Tabs or Spaces? Every language has its preferred style. Ruby prefers two spaces, Python prefers 4 spaces. Javascript seems to be pretty split against Tabs and Spaces. MooTools and jQuery use Tabs. Python and Dojo use Spaces. etc...
How to have a box default to hidden and then fade it in later.
Fade is just a Tween. And Tween simple animates one CSS property from one value to another. That's it. Also, you can't have your code run until the dom is ready (when the page finishes loading enough). None of your javascript rules can effect anything until after the user has already seen the page. So, you have to hide your box yourself using CSS. There are a million ways to do that, but I recommend having a 'hide' class.
Simple: Use a hide class
Add this rule to your CSS somewhere:
.hide{ display:none; }
Then, manually apply it to all the HTML elements that you want to be hidden by default:
<div class="alert hide">Warning Mr Robinson!</div> <div class="confirm hide">Are you sure you want to do that?</div> <div class="info hide">Um... Your arm is missing.</div>
Thomas Aylott has posted a comment:
Funny how the density of people seems to be exactly mirrored on the shore and in the sea.
gitscm's description:
Git homepage that rocks - from the git.or.cz awesomeness
HEAD is ac23514e7d1ba7d89356be1eced19b693ab38f71
ac23514e7d1ba7d89356be1eced19b693ab38f71
WIP - READ ME!
http://www.last.fm/music/Watch+Tower+Bible+and+Tract+Society+of+PA