Slept long and deep. Coffee (+vitamins, check) staved off hunger til ~1PM. PB sammich, a little pretzels and crackers, and a scramble dog wrap fixed me up til evening.
Grocery shopping last night meant half a cantaloupe waiting for me this morning. Good night's sleep, coffee, vitamins, and though weather is not exactly fine and clear, it's a marked improvement over yesterday's.
16x DBx2x15 tricep extensions
25 lazy DBx2x15 squats
10+15 crunches
20 tricep dips
10 bench push-ups, halted by elbow stress
pay bills, 2nd bk course, 2nd breakfast and 2nd coffee
commission new toothbrush (soft, we'll try this) and water-pitcher-filter (on sale yay)
hell of a drive ...
(...more)
Yesterday I left off looking at 3 loopish ways to apply a jQuery effect on each child element contained in a parent element - iconically, all DIVs within a parent DIV, but just as easily, all TRs in a TABLE, all LI elements in a UL, etc. The code in its originally-accepted form was:
(function hidenext(jq){
jq.eq(0).fadeOut("fast", function(){
(jq=jq.slice(1)).length && hidenext(jq);
});
})($('div#bodyContent a'))
So, given a DIV with id=bodyContent, containing an arbitrary number of...
(...more)
Consider the following:
$("#div1").fadeIn("slow", function(){
$("#div2").fadeIn("slow", function(){
$("#div3").fadeIn("slow", function(){
$("#div4").fadeIn("slow");
});
});
});
div1
div2
div3
div4
$(document).ready(function(){
$("#div1").fadeIn("slow", function(){
$("#div2").fadeIn("slow", function(){
$("#div3").fadeIn("slow", function(){
$("#div4").fadeIn("slow");
});
});
});
});
It works, but the code is ... I don't want to say "ugly", be...
(...more)
Back in October I made an entry about centralizing JavaScript library references in dev, but I never got around to actually applying the technique in Phosphoros. Or technically, in the mindfire.net site container. Either way, JQ libraries uploaded and referenced in the site template head, and although it's not strict HTML, most browsers let you declare script within the body element.
click to fadeIn
Ohhai, jQuery here
var superclick = function(target){
$(target).fadeIn('slow');
}
$("#...
(...more)