function init_page_articles(){ if($('#page_all_articles').length || $('#index_all_articles').length){ $('.shows').click(function(e) { if($(this).data('link') != null){ if($(this).data('target') != null && $(this).data('target') == "_blank"){ window.open($(this).data('link')); } else { $(location).attr('href', $(this).data('link')); } } // if($(this).data('link') != null) return false; }); // $('.shows').click(function(e) { } // if($('#page_all_articles').length){ } // function init_page_articles(){ /* function scroll_page_articles(){ if($('#page_all_articles').length && !isMobileWesite){ if($('.sideContent').length){ var scroll_position = $(window).scrollTop(); var offset_px = 40; if($('.sideContent').css('position') != 'fixed'){ if(scroll_position > ($('.sideContent').offset().top-offset_px)){ $('.sideContent').css({ 'position':'fixed', 'top':offset_px+'px', }); } } else if($('.sideContent').css('position') == 'fixed'){ if(scroll_position <= ($('.sideContent').position().top+offset_px)){ $('.sideContent').css({ 'position':'static', 'top':'0', }); } } // if($('.sideContent').css('position') != 'fixed'){ } // if($('.sideContent').length){ } // if($('#page_all_articles').length){ } */