jQuery(()=>{const o=jQuery('#sidebar')const t=jQuery(window)if(!o[0]){return}function isScrolledIntoView(el){if(typeof jQuery==='function'&&el instanceof jQuery){el=el[0]}else if(typeof jQuery==='function'){el=jQuery(el)[0]}if(!el){return!1}const rect=el.getBoundingClientRect();return(rect.top>=0&&rect.left>=0&&rect.bottom{jQuery('#sidebar').css('left',`${( t.width() - jQuery( '.td-pb-row' ).width() ) / 2 - 60}px`)if(isScrolledIntoView('.td-footer-wrapper')||(jQuery('#sidebar').offset().top+jQuery('#sidebar').height()>jQuery('.td-sidebar-guide').offset().top)){o.hide()}else{o.show()}});t.resize(()=>{jQuery('#sidebar').css('left',`${( t.width() - jQuery( '.td-pb-row' ).width() ) / 2 - 60}px`)if(isScrolledIntoView('.td-footer-wrapper')||(jQuery('#sidebar').offset().top+jQuery('#sidebar').height()>jQuery('.td-sidebar-guide').offset().top)){o.hide()}else{o.show()}});jQuery(document).ready(()=>{jQuery('#sidebar').css('position','fixed')jQuery('#sidebar').css('left',`${( t.width() - jQuery( '.td-pb-row' ).width() ) / 2 - 60}px`)if(isScrolledIntoView('.td-footer-wrapper')||(jQuery('#sidebar').offset().top+jQuery('#sidebar').height()>jQuery('.td-sidebar-guide').offset().top)){o.hide()}else{o.show()}})})Source link Save my name, email, and website in this browser for the next time I comment.By using this form you agree with the storage and handling of your data. * Δdocument.getElementById( "ak_js_1" ).setAttribute( "value", ( new Date() ).getTime() );Tech dedicated news site to equip you with all tech related stuff.I agree that my submitted data is being collected and stored.✉️ Send us an emailTechToday © 2023. All Rights Reserved.TechToday.co is a technology blog and review site specializing in providing in-depth insights into the latest news and trends in the technology sector.TechToday © 2023. All Rights Reserved.Be the first to know the latest updatesI agree that my submitted data is being collected and stored.