Acme-MUDLike
view release on metacpan or search on metacpan
lib/Acme/MUDLike.pm view on Meta::CPAN
244624472448244924502451245224532454245524562457245824592460246124622463246424652466
script = null;
// If Safari is used
}
else
if
( jQuery.browser.safari )
// Continually check to see
if
the document.readyState is valid
jQuery.safariTimer = setInterval(function(){
// loaded and complete are both valid states
if
( document.readyState ==
"loaded"
||
document.readyState ==
"complete"
) {
// If either one are found, remove the timer
clearInterval( jQuery.safariTimer );
jQuery.safariTimer = null;
// and execute any waiting functions
jQuery.ready();
}
}, 10);
// A fallback to window.onload, that will always work
jQuery.event.add( window,
"load"
, jQuery.ready );
lib/Acme/MUDLike.pm view on Meta::CPAN
305330543055305630573058305930603061306230633064306530663067306830693070307130723073
var r = parseFloat( jQuery.curCSS(elem, prop) );
return
r && r > -10000 ? r : z.max();
};
// Start an animation from one number to another
z.custom = function(from,to){
z.startTime = (new Date()).getTime();
z.now = from;
z.a();
z.timer = setInterval(function(){
z.step(from, to);
}, 13);
};
// Simple
'show'
function
z.show = function(){
if
( !elem.orig ) elem.orig = {};
// Remember where we started, so that we can go back to it later
elem.orig[prop] = this.cur();
lib/Acme/MUDLike.pm view on Meta::CPAN
31173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139
// Begin the animation
z.custom(elem.orig[prop], 0);
}
};
// Each step of an animation
z.step = function(firstNum, lastNum){
var t = (new Date()).getTime();
if
(t > options.duration + z.startTime) {
// Stop the timer
clearInterval(z.timer);
z.timer = null;
z.now = lastNum;
z.a();
if
(elem.curAnim) elem.curAnim[ prop ] = true;
var done = true;
for
( var i in elem.curAnim )
if
( elem.curAnim[i] !== true )
done = false;
( run in 0.258 second using v1.01-cache-2.11-cpan-9b1e4054eb1 )