Glamorama
1 2 3 4 5
jQuery(document).ready(function(){ jQuery('#search-pane').click(function(e){ e.preventDefault(); if(jQuery('#search-bar').val() != ''){ jQuery('#search-pane').submit(); }else{ return; } }); var containerHeight = 1800; var container = jQuery('#content-masonry'); jQuery(window).on('load', function(){ var container = jQuery('#content-masonry'); container.masonry({ itemSelector: '.msnry-post' }); containerHeight = jQuery('#content').outerHeight(true); }); if(jQuery('#div-gpt-ad-1424458100764-15 > div').length) { jQuery('.banner-bruce').css('min-height','200px'); } if(jQuery('#div-gpt-ad-1424458100764-12-oop > div').length) { jQuery('#header-banners').remove(); jQuery('nav.cf').addClass('header-nav-fixed-skin'); jQuery('#main-body').addClass('skin-ad'); jQuery('#full-site').addClass('full-skin'); jQuery('#div-gpt-ad-1424458100764-12-oop').find('style:first').html(jQuery('#div-gpt-ad-1424458100764-12-oop').find('style:first').html().replace('body','.full-skin')); jQuery('#div-gpt-ad-1424458100764-12-oop').find('style:last').html(jQuery('#div-gpt-ad-1424458100764-12-oop').find('style:last').html().replace('top: 0px','top:60px')); } var skyscraper_container = jQuery('#div-gpt-ad-1424458100764-13 > div'); if(skyscraper_container.length) { jQuery('#content').addClass('sky-ad'); jQuery('.left-banner').css('width','160px'); var last_scroll = containerHeight - 115; jQuery(window).on('scroll', function () { if (jQuery(window).scrollTop() > 115 && jQuery(window).scrollTop() < (last_scroll - 1)) { jQuery('#div-gpt-ad-1424458100764-13 > div').addClass('sky-fixed'); jQuery('#content').addClass('sky-ad-fixed'); jQuery('#div-gpt-ad-1424458100764-13 > div').css('display','block'); } else if (jQuery(window).scrollTop() >= last_scroll) { jQuery('#div-gpt-ad-1424458100764-13 > div').css('display','none'); } else { jQuery('#div-gpt-ad-1424458100764-13 > div').removeClass('sky-fixed'); jQuery('#content').removeClass('sky-ad-fixed'); } }); } });