25,204
edits
No edit summary |
|||
Line 6: | Line 6: | ||
})(); | })(); | ||
/* | /* | ||
addOnloadHook(function(){ | |||
$('div.tabdiv > ul > li').click(function(){ | $('div.tabdiv > ul > li').click(function(){ | ||
$(this).parent().parent().children('div').hide(); | |||
$((this).children('a:first').attr('href')).show(); | |||
$(this).parent().children('li').removeClass('active').addClass('inactive'); | |||
$(this).removeClass('inactive').addClass('active'); | |||
$(this).addClass('active'); | |||
}); | }); | ||
$('div.tabdiv > ul > li > a:first').each(function(){ | $('div.tabdiv > ul > li > a:first').each(function(){ | ||
Line 22: | Line 17: | ||
}); | }); | ||
}); | }); | ||
/ | */ | ||
addOnloadHook(function($) { | |||
return function() { | return function() { | ||
$('.tabdiv > div').hide(); | $('.tabdiv > div').hide(); | ||
Line 50: | Line 46: | ||
/****************************** Slides JS ******************************/ | /****************************** Slides JS ******************************/ | ||
addOnloadHook(function(){ | |||
$('.slidediv').each(function(){ | $('.slidediv').each(function(){ | ||
var width = $(this).width(); | var width = $(this).width(); | ||
Line 69: | Line 65: | ||
/* Add a hook to make buttons, where need be, on every pageload */ | /* Add a hook to make buttons, where need be, on every pageload */ | ||
addOnloadHook( createTableButtons ); | |||
/* Define global variables: | /* Define global variables: | ||
Line 397: | Line 393: | ||
} | } | ||
addOnloadHook( doRoundEdges ); | |||
Line 430: | Line 426: | ||
/* Add a hook to perform code on every pageload */ | /* Add a hook to perform code on every pageload */ | ||
addOnloadHook( performIE ); | |||
function performIE() | function performIE() | ||
{ | { | ||
Line 486: | Line 482: | ||
console.log(headerList); | console.log(headerList); | ||
headerList.each(function(){ | headerList.each(function(){ | ||
$(this).css('- | var bgc = $(this).css('background-color'); | ||
$(this).css('background-image', 'linear-gradient(to bottom, #eee, ' + bgc + ')'); | |||
}); | }); | ||
rainbowList.css({ | rainbowList.css({ | ||
'backgroundColor': ' | 'backgroundColor': 'orange' | ||
}); | }); | ||
}); | }); |