1function esStickySidebar() { 2 3 jQuery(".mvp-post-soc-wrap.left.relative").stick_in_parent({spacer: "mvp-content-body", offset_top: 100}); 4 5 if (typeof array === 'undefined') { 6 array = []; 7 } 8 var postId = jQuery(".es-sticky-sidebar").last().attr('data-post-id'); 9 //jQuery("#sidebar-" + postId).css("min-height", jQuery("#post-" + postId).height()); 10 jQuery("#sidebar-one-" + postId).stick_in_parent({parent: "#parrent-sidebar-one-" + postId, spacer: "#spacer-sidebar-one-" + postId, offset_top: 100}) 11 .on("sticky_kit:stick", function (e) { 12 if (typeof array[postId] === 'undefined') { 13 array[postId] = true; 14 } else { 15 return; 16 } 17 //jQuery("#sidebar-" + postId).css("min-height", jQuery("#post-" + postId).height()); 18 19 jQuery(".sticky-desktop-infeed").last().attr('id', 'sticky-infeed-' + postId); 20 21 jQuery("#sidebar-two-" + postId).stick_in_parent({parent: "#parrent-sidebar-two-" + postId, spacer: "#spacer-sidebar-two-" + postId, offset_top: 100}) 22 .on("sticky_kit:bottom", function (e) { 23 //console.log(3); 24 //jQuery("#sidebar-" + postId).css("min-height", jQuery("#mvp-content-body").height()); 25 //var essheight = jQuery("#sidebar-" + postId).height() - jQuery("#parrent-sidebar-one-" + postId).height() - jQuery("#sticky-infeed-" + postId).height() - 100; 26 //jQuery("#parrent-sidebar-two-" + postId).css('height', jQuery("#sidebar-" + postId).height() - jQuery("#parrent-sidebar-one-" + postId).height() - jQuery("#sticky-infeed-" + postId).height() - 100); 27 es_height = jQuery("#mvp-content-body").height() - jQuery("#parrent-sidebar-one-" + postId).height() - jQuery("#sticky-infeed-" + postId).height(); 28 jQuery("#parrent-sidebar-two-" + postId).height(es_height); 29 jQuery("#sidebar-two-" + postId).stick_in_parent({parent: "#parrent-sidebar-two-" + postId, spacer: "#spacer-sidebar-two-" + postId, offset_top: 100}); 30 }); 31 32 33// if (jQuery("#post-" + postId).height() < jQuery("#sidebar-" + postId).height()) { 34// 35// jQuery("#top-parrent-article-" + postId).css("min-height", jQuery("#sidebar-" + postId).height()); 36// 37// jQuery("#post-" + postId).stick_in_parent({parent: "#top-parrent-article-" + postId, spacer: "#parrent-article-" + postId}); 38// 39// } 40 41// if (jQuery("#mvp-content-body").height() < jQuery("#sidebar-" + postId).height()) { 42// 43// jQuery("#top-parrent-article-" + postId).css("min-height", jQuery("#sidebar-" + postId).height()); 44// 45// jQuery("#mvp-content-body").stick_in_parent({parent: "#top-parrent-article-" + postId, spacer: "#parrent-article-" + postId}); 46// 47// } 48 49 50 }); 51} 52 53 54function isView(elem) { 55 if ((jQuery(window).scrollTop() + jQuery(window).height()) < (jQuery(elem).offset().top - 200)) 56 return false; 57 return true; 58} 59 60jQuery(document).ready(function () { 61 esStickySidebar(); 62 jQuery(".home-sticky-adv").stick_in_parent({parent: ".home-sticky-parrent", spacer: ".home-sticky-spacer", offset_top: 50}); 63 /*sidebarAdvOne();*/ 64}); 65 66jQuery(window).scroll(function () { 67 jQuery('ul.mvp-post-soc-list li').css({WebkitTransform: 'rotate(' + ((jQuery(window).scrollTop() / 1) % 360) + 'deg)'}); 68}); 69 70jQuery(".fb-comments-parrent").each(function () { 71 lazyFB(this); 72}); 73function lazyFB(elem) { 74 var listener = function () { 75 if (isView(elem) && typeof window.FB !== "undefined") { 76 jQuery(elem).children('.fb-lazy').addClass('fb-comments'); 77 window.removeEventListener('scroll', listener); 78 FB.XFBML.parse(elem); 79 } 80 }; 81 window.addEventListener('scroll', listener); 82} 83
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.