This file contains 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
//LIQUID LAYOUT | |
function setScreenClass(){ | |
var fmt = document.documentElement.clientWidth; | |
var cls = (fmt>640&&fmt<=800)?'screen_low':(fmt>800&&fmt<=1024)?'screen_med':(fmt>1024&&fmt<=1280)?'screen_high':(fmt>1280)?'screen_wide':'screen_low'; | |
document.body.className=cls; | |
}; |
This file contains 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
/* SET #PORTFOLIO TOGGLE */ | |
$("#portfolio_toggle").toggle( | |
function(){ | |
portfolioOpen(); | |
}, | |
function(){ | |
portfolioClose(); | |
} | |
); |
This file contains 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
// custom easing called "comicSwing" | |
$.easing.comicSwing = function (x, t, b, c, d) { | |
var s = 1.5; | |
if ((t/=d/2) < 1) return c/5*(t*t*(((s*=(1.525))+1)*t - s)) + b; | |
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; | |
} |
This file contains 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
//BUSY MESSAGE | |
function busy() { | |
var x = $('#header a, #portfolio a');//ALL ELEMENTS TO BE AFFECTED | |
$(x).addClass('busy'); | |
setTimeout(function(){ | |
$(x).removeClass('busy').addClass('ready'); | |
}, 10000); | |
} |
This file contains 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
/* FADE IN TEXT */ | |
$('.fader').delay(0).each(function (i){ //SELECTS ALL ELEMENTS WITH THE CLASS "FADER" | |
var me = $(this); | |
setTimeout(function(){ $(me).fadeIn('slow'); }, (400 * i)); // SETS FADE IN SPEED AND DELAY BETWEEN EACH | |
}); |
This file contains 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
//AD MODALS | |
function myModalClose() { | |
$('.myOverlay, #exposeMask').fadeOut('slow'); | |
$('.ad').css({'position':'relative','margin-left':'auto'}); //SHOW ADS | |
}; | |
function myModalPop(type,timer,target,link,creative,width,height) { //setup for variables coming from ad server script | |
var date = new Date(); |
This file contains 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
//Ad SKINS | |
function loadAdSkinBkg(bgrnd_skin_bgColor,bgrnd_skin_imageSrc,bgrnd_skin_linkTarget){ | |
$('body','html').css({"background-image":"none","background-color":bgrnd_skin_bgColor}); | |
$('body','html').css({"background-image":bgrnd_skin_imageSrc, "background-position":"center top","background-repeat":"no-repeat"}).prepend('<a id="skin_background" href="'+ bgrnd_skin_linkTarget+'" target="_blank"> </a>'); | |
$.getDocHeight = function(){ | |
return Math.max( | |
$(document).height(), | |
$(window).height(), | |
document.documentElement.clientHeight | |
); |
This file contains 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 vcenter(a, b) { | |
var wHeight = $(window).height(); | |
var fHeight = $(a).height(); | |
var nHeight = (wHeight / 2) - (fHeight); | |
if (!b || b == "" || b == null) { | |
var b = a; | |
} | |
$(b).css({ | |
'position' : 'relative', | |
'top' : nHeight |
This file contains 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
var measure = { | |
'num' : 9, | |
'wHeight' : function(){ | |
var h = $(window).height(); | |
return h; | |
}, | |
'wWidth' : function(){ | |
var w = $(window).width(); | |
return w; | |
}, |
OlderNewer