jquery
var effects1 = function(){
jQuery(“#blank”).fadeOut(5000);
return jQuery(“#blank”);
};
var effects2 = function(){
if(window.location.href == ‘http://markroskams.com/’)
{
jQuery(“#blank”).hide(0).delay(1500).fadeIn(5000);
return jQuery(“#blank”);
}
else { return; }
};
var effects3 = function(){
if(window.location.href == ‘http://markroskams.com/’)
{ window.location.href=(“/wp/slideshow”);
return window.location.href; }
else { return; }
};
var effects4 = function(){
jQuery(“.site-footer”).show();
jQuery(“#blank”).fadeOut(5000);
return jQuery(“#blank”);
};
var effects5 = function(){
jQuery(“#blank”).stop();
return jQuery(“#blank”);
};
var runAnimations = function(functionArray){
var func = functionArray.splice(0,1);
func[0]().promise().done(function(){
if(functionArray.length > 0 ) runAnimations(functionArray);
});
}
jQuery(document).ready(function(){
if(window.location.href == ‘http://markroskams.com/’)
{
jQuery(“.site-footer”).hide();
}
console.log(“script loaded”);
runAnimations([effects1,effects2,effects3, effects4, effects5]);
});