`:””}let h=$(t).find(“#data”);if(h.length){let u=JSON.parse(h.text()),p=”card”!=a?u.posts:u.postData;if(p){if(“related”==a){1==p.length&&”recent”!=n&&(p=getRecentPostsData(s));let f=p.length;for(let m=0;m<f;m++){let g=p[m];if(1!=p.length&&getPostID(g)==l){p.splice(m,1);break}}}let b=p.length;for(let v=0;v<b;v++){let y=p[v];o+=getPostContent({type:a,post:y,index:v,num:s,headline:i,target:r})}c=b}else d=!0}else d=!0;switch(a){case”mega”:o+=”
“,o=d?`
${msgError()}
`:o,e.addClass(a).find(“.ul”).replaceWith(o);break;case”video”:if(o+=”
“,o=d?msgError(a):o,e.html(o),!d&&pbt.videoCover){let k=e.find(“.item-0 .thumbnail”).data(“src”);e.parent(“.widget”).addClass(“has-thumb”).attr(“style”,`background-image:url(‘${k}’)`)}break;default:o+=”card”!=a?”
“:””,o=d?msgError(a):o,e.html(o),”search”==a&&(s<c&&e.parent().append(`${pbt.viewAll}`),setTimeout(function(){e.addClass(“scroll”)},500))}switch(a){case”mega”:case”megatabs”:case”search”:e.find(“span.thumbnail”).pbtLazy({onScroll:!1});break;case”ticker”:e.pbtTicker();break;default:e.find(“span.thumbnail”).pbtLazy()}},error:function(){“mega”===a?e.find(“.ul”).replaceWith(`
${msgError()}
`):e.html(msgError(a))}})}function megaTabs(t,e){let a,s=e.length,n=’
`);function o(){t.find(“.mega-tab”).length==t.find(“.mega-tab.loaded”).length?clearInterval(a):t.find(“.mega-tab.active”).not(“.loaded”).each(function(){let t=$(this);e=t.data(“tab”),getPosts({t:t,type:”megatabs”,num:5,label:e})})}n+=”
“,t.addClass(“megatabs”).append(n).children(“a”).on(“click”,function(t){t.preventDefault()}),t.mouseenter(function(){a=setInterval(o,100)}).mouseleave(function(){clearInterval(a)}),t.find(“.mega-tabs”).pbtTabs({onHover:!0,isLinked:!0,animated:!1,transition:”fadeIn”})}function getSearch(t,e){let a=t.val(),s=a.trim();””!=s&&s!=localStorage.search_term&&(localStorage.search_term=s,getPosts({t:e,type:”search”,num:4,label:s,link:`/search/?q=${s}&by-date=true&max-results=5&=1`}))}function getPostCard(){$(“.post-card”).each(function(){let t=$(this),e=t.data(“url”),a=t.data(“title”),s=t.data(“target”),n=a?`${a}`:””;e?(t.removeAttr(“data-url”).removeAttr(“data-title”).removeAttr(“data-target”),$w.on(“load resize scroll”,function a(){$w.scrollTop()+$w.height()>=t.offset().top&&($w.off(“load resize scroll”,a),getPosts({t:t,type:”card”,link:e,headline:n,target:s}))}).trigger(“scroll”)):t.html(msgError())})}function getStickySidebar(t){$(t).each(function(){if(pbt.stickySidebar){let t=pbt.stickyMenu?$(“.header-inner”).height()+30:30;$(this).pbtStickySidebar({containerSelector:”.content-wrap > .container”,additionalMarginTop:t,additionalMarginBottom:30})}})}function disqusComments(t){let e=document.getElementsByTagName(“head”)[0],a=document.createElement(“script”);a.type=”text/javascript”,a.async=!0,a.src=`https://${t}.disqus.com/blogger_item.js`,e.appendChild(a)}function beautiAvatar(t){$(t).attr(“src”,function(t,e){let a=”//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCxxt0n6b048h4UEHf-L5T22U8xCk-IsG2qbfVUMBMKdt2t3ijO6qzhyphenhyphen5UBg63qH4V_6z8uIBe7z6VNnueFbF3XKIWkCJPmFQqfm3Rmx3tpBOk74LGDZrUEgGnJF2-VDrzlkZSVyJs2sYjtiCytrEjsw23o88dqy5mdjw0KPwNuySVA7iYfdHWYpgsuQ/s35/avatar.webp”;return e=e.replace(“//resources.blogblog.com/img/blank.gif”,a).replace(“//lh3.googleusercontent.com/zFdxGE77vvD2w5xHy6jkVuElKv-U9_9qLkRYK8OnbDeJPtjSZ82UPq5w6hJ-SA=s35”,a).replace(“/s35″,”/s39-rw”).replace(“=s35″,”=s39-rw”)})}$(“#main-menu”).pbtMenu(),$h.each(function(){let t=$(this),e=localStorage.dark_mode;!0!=pbt.isDark&&!1!=pbt.userDarkMode&&(“true”==e&&(t.addClass(“is-dark”),darkModeLogo(e)),$(“.darkmode-toggle”).on(“click”,function(){$(this),t.toggleClass(“is-dark”),e=”true”!=e?”true”:”false”,localStorage.dark_mode=e,darkModeLogo(e)}))}),$(“.dark-logo”).each(function(){!0==pbt.isDark&&darkModeLogo(“true”)}),$(“.search-toggle”).on(“click”,function(t){openSearch(),closeSearch()}),$w.on(“keydown”,function(t){t.ctrlKey&&75==t.keyCode&&(t.preventDefault(),openSearch(),closeSearch())}),$(“#trending .PopularPosts .widget-content”).pbtTicker(),$(“.social-icons a”).each(function(){let t=$(this),e=t.attr(“href”),a=e.split(“#”),s=t.data(“text”);if(a[1]&&!0==s){let n=a[1].trim();””!=n&&t.append(`${n}`)}t.attr(“href”,a[0].trim())}),$(“.MailChimp .widget-content”).each(function(){let t=$(this),e=t.data(“shortcode”);if(e){let a=getAttr(e,”title”),s=getAttr(e,”text”);!1!=a&&t.find(“.mailchimp-title”).html(a),!1!=s&&t.find(“.mailchimp-text”).html(s)}}),$(“.post-body a”).each(function(){let t=$(this),e=t.text(),a=getAttr(e,”text”);if(e.match(“getButton”)&&a&&(t.replaceText(/([^{}]+(?=}))/g,”$1“),t.find(“em”).replaceText(“$”,”%s”),t.each(function(){let t=$(this),e=t.text(),a=getAttr(e,”text”),s=getAttr(e,”icon”),n=getAttr(e,”color”),l=getAttr(e,”size”),o=getAttr(e,”info”),i=getAttr(e,”id”),r=t.parent().attr(“style”);t.addClass(l?”button btn x2″:”button btn”).text(a.replace(“%s”,”$”)),i&&t.attr(“href”,t.attr(“href”)+”#gd=”+btoa(i)),!1!=s&&t.addClass(s),n&&t.addClass(“color”).attr(“style”,`background:${n};`),r&&r.match(“center”)&&t.addClass(“is-c”),o&&(t.addClass(s?”x2 “+s:”x2”),t.append(`${o.replace(“%s”,”$”)}`))})),e.match(“getCard”)){let s=getAttr(e,”type”),n=getAttr(e,”title”),l=t.attr(“href”),o=t.attr(“target”);switch(s){case”download”:case”product”:case”custom”:t.replaceText(/([^{}]+(?=}))/g,”$1“),t.find(“em”).replaceText(“$”,”%s”),t.each(function(){let t=$(this),e=t.text(),a=getAttr(e,”button”),n=getAttr(e,”icon”),i=getAttr(e,”title”),r=getAttr(e,”info”),c=getAttr(e,”id”);r=r?` `:””,t.replaceWith(`
`)});break;default:t.replaceWith(`
`)}}}),$(“.post-body blockquote”).each(function(){let t=$(this),e=[{shc:”{alertSuccess}”,cls:”success”},{shc:”{alertInfo}”,cls:”info”},{shc:”{alertWarning}”,cls:”warning”},{shc:”{alertError}”,cls:”error”},{shc:”{codeBox}”,cls:”code”}],a=t.text(),s=t.html();function n(e,n){a.trim().match(e)&&(s=s.replace(e,””),t.replaceWith(“code”!=n?`
${s}
`:`
${s}
`))}for(let l in e)n(e[l].shc,e[l].cls)}),$(“.post-body b”).each(function(){let t=$(this),e=t.text();function a(t){return e.trim().match(t)}if((a(“{inAds}”)||a(“{ads}”)||a(/$ads={1}/g)||a(/$ads={2}/g))&&t.replaceWith(‘
‘),a(“{showAds}”)&&t.replaceWith(“”),a(“{nextPage}”)&&t.replaceWith(““),a(“{getToc}”)){let s=getAttr(e,”title”),n=getAttr(e,”count”);s=s||”Table of Contents”,t.replaceWith(`
`);let l=$(“#pbt-toc”);$(“.pbt-toc-title”).on(“click”,function(){$(this).toggleClass(“is-expanded”),l.slideToggle(170)}),l.pbtToc({content:”#post-body”,headings:”h2,h3,h4″}),l.find(“a”).each(function(){let t=$(this);t.on(“click”,function(e){return e.preventDefault(),$(“html,body”).animate({scrollTop:$(t.attr(“href”)).offset().top-20},500),!1})})}function o(e,s){a(e)&&($b.addClass(s),t.remove(),”is-right”==s&&$b.removeClass(“is-left”))}a(“{contactForm}”)&&(t.replaceWith(‘
‘),$(“.post-body .contact-form-widget”).append($(“#ContactForm1 form”)));let i=[{shc:”{leftSidebar}”,cls:”is-left”},{shc:”{rightSidebar}”,cls:”is-right”},{shc:”{fullWidth}”,cls:”no-sidebar”}];for(let r in i)o(i[r].shc,i[r].cls);if(a(“{getLink}”)){let c=getAttr(e,”seconds”),d=getAttr(e,”before”),h=getAttr(e,”after”),u=getAttr(e,”message”),p=getAttr(e,”size”);t.replaceWith(`
${c||”15″}
`),$(“.gd-link”).each(function(){let t=$(this),e=t.find(“.get-link”),a=t.find(“.goto-link”),s=t.find(“.gd-seconds”),n=window.location.href,l=n.match(/?/g)?”&”:”?”,o=new URL(n.replace(“#”,l)),i=new URLSearchParams(o.search),r=i.get(“gd”),d=i.get(“go”),h=c?Number(c)-1:14;r?localStorage.gd_key=r:localStorage.gd_key=0,d?localStorage.go_key=d:localStorage.go_key=0,(r||d)&&e.removeAttr(“disabled”).on(“click”,function(){if(e.not(“[disabled]”)){t.addClass(“loading”);let a=setInterval(function e(){0==h?(clearTimeout(a),t.addClass(“loaded”).removeClass(“loading”),$(“.gd-btn”).removeAttr(“disabled”)):(s.text(h),h–)},1e3)}}),a.on(“click”,function(){$(“html,body”).animate({scrollTop:$(“.gd-btn”).offset().top-$w.height()/2+$(“.gd-btn”).height()/2},500)})})}if(a(“{getDownload}”)){let f=getAttr(e,”button”),m=getAttr(e,”size”);t.replaceWith(`
`),$(“.gd-btn”).each(function(){let t=$(this);t.on(“click”,function(){if(t.not(“[disabled]”)){let e=localStorage.gd_key,a=localStorage.go_key,s=0!=e?`https://drive.google.com/uc?id=${atob(e)}&export=download`:0!=a&&atob(a);s&&(t.addClass(“loading”),setTimeout(function(){window.open(s,”_self”),t.removeClass(“loading”)},2e3))}})})}if(a(“{getContinue}”)){let g=getAttr(e,”button”),b=getAttr(e,”size”);t.replaceWith(`
`),$(“.go-btn”).each(function(){let t=$(this),e=window.location.href,a=e.match(/?/g)?”&”:”?”,s=new URL(e.replace(“#”,a)),n=new URLSearchParams(s.search),l=n.get(“go”),o=!!l&&atob(l);o&&(t.removeAttr(“disabled”),t.on(“click”,function(){t.not(“[disabled]”)&&window.open(o,”_self”)}))})}}),$(“.before-ads”).each(function(){$(“#post-ads-1”).length&&pAd(“#post-ads-1”,$(this))}),$(“.after-ads”).each(function(){$(“#post-ads-2”).length&&pAd(“#post-ads-2”,$(this))}),$(“.article-ads”).each(function(){$(“#post-ads-3”).length&&pAd(“#post-ads-3”,$(this))}),$(“.post-footer-ads”).each(function(){$(“#post-ads-4”).length&&pAd(“#post-ads-4”,$(this))}),$(“.item-post”).each(function(){let t=$(this),e=t.find(“.post-body”),a=t.find(“.pagination”),s=e.html().split(//i),n=s.length,l=0;if(n>1){function o(){let t=window.location.href,o=t.match(/?/g)?”&”:”?”,i=new URL(t.replace(“#”,o)),r=new URLSearchParams(i.search),c=r.get(“page”);l=(l=Number(0==c||c=n?n-1:l,e.html(s[l]),function t(e){let s=”undefined”!=typeof pageOf?pageOf:”Page {page} of {pages}”,l=”undefined”!=typeof prevMsg?prevMsg:”Previous”,o=”undefined”!=typeof nextMsg?nextMsg:”Next”,i=e+1,r=i>1?`${l}`:””,c=i<n?`${o}`:””;a.html(`${r}${s.replace(“{page}”,i>n?n:i).replace(“{pages}”,n)}${c}`).addClass(“visible”)}(l),a.find(“.btn”).on(“click”,function(){$(“html, body”).animate({scrollTop:0},500)}),getPostCard()}$w.on(“hashchange”,o),o()}}),$(“.pbt-wo”).on(“click”,function(t){t.preventDefault();let e=$(this),a=e.attr(“href”),s=window.open(a,”_blank”,”scrollbars=yes,resizable=yes,toolbar=0,width=860,height=540,top=50,left=50″);s.focus()}),$w.on(“keydown”,function(t){pbt.isPost&&t.ctrlKey&&83==t.keyCode&&(t.preventDefault(),openShare())}),$(“.post-share .show-more .btn, .share-toggle”).on(“click”,function(){openShare()}),$(“.copy-link”).each(function(){let t=$(this),e=t.children(“input”);e.on(“click”,function(){this.select()}),t.children(“button”).on(“click”,function(){navigator.clipboard.writeText(e.val()),t.removeClass(“copied-off”).addClass(“copied”),setTimeout(function(){t.removeClass(“copied”).addClass(“copied-off”)},3e3)})}),$(“.about-author .author-text”).each(function(){let t=$(this),e=t.find(“a”);e.length&&(e.each(function(){let t=$(this),e=t.text().trim(),a=t.attr(“href”),s=”external-link”==e?”website”:e;t.replaceWith(`
`)}),t.parent().append(‘
‘),t.find(“li”).appendTo(t.parent().find(“.author-links”)))}),$w.on(“keydown”,function(t){pbt.isPost&&(t.ctrlKey&&37==t.keyCode?(t.preventDefault(),navShortcuts(pbt.isRTL?”.post-nav-older-link”:”.post-nav-newer-link”)):t.ctrlKey&&39==t.keyCode&&(t.preventDefault(),navShortcuts(pbt.isRTL?”.post-nav-newer-link”:”.post-nav-older-link”)))}),$(“.main-nav li.mega-menu”).each(function(){let t=$(this),e=t.find(“a”),a=e.data(“shortcode”);if(a){let s=getAttr(a,”label”),n=s||”recent”;if(n){let l=n.split(“/”),o=n.match(“/”)&&l[1]?”tabs”:”mega”;if(“tabs”==o)megaTabs(t,l);else{let i=”recent”==n?”/search”:`/search/label/${n}`;t.mouseenter(function(){t.hasClass(“loaded”)||getPosts({t:t,type:”mega”,num:5,label:n})}).children(“a”).attr(“href”,i)}}else t.append(`
${msgError()}
`).addClass(“loaded”)}}),$(“.main-search”).each(function(){let t=$(this),e=t.find(“input”),a=t.find(“button”),s=t.find(“.search-results”);a.on(“click”,function(){getSearch(e,s)}),$w.on(“keydown”,function(t){13==t.keyCode&&getSearch(e,s)})}),$(“#featured .HTML .widget-content”).each(function(){let t=$(this),e=t.data(“shortcode”);if(e){let a=getAttr(e,”label”);t.removeAttr(“data-shortcode”),$w.on(“load resize scroll”,function e(){$w.scrollTop()+$w.height()>=t.offset().top&&($w.off(“load resize scroll”,e),getPosts({t:t,type:”featured”,num:3,label:a}))}).trigger(“scroll”)}}),$(“#trending .HTML .widget-content”).each(function(){let t=$(this),e=t.data(“shortcode”);if(e){let a=getAttr(e,”results”),s=getAttr(e,”label”);t.removeAttr(“data-shortcode”),getPosts({t:t,type:”ticker”,num:a||5,label:s})}}),$(“.content-section .HTML .widget-content”).each(function(){let t=$(this),e=t.data(“shortcode”);if(e){let a=getAttr(e,”results”),s=getAttr(e,”label”),n=s||”recent”,l=getAttr(e,”type”),o=4,i=l?”grid1″==l?”grid”:l:”block1″;”grid2″===i&&(o=6),o=a||o,o=”video”==i||”block1″==i?5:o,”col”==i&&t.parent().addClass(“is-col”),t.removeAttr(“data-shortcode”),”block1″==i||”block2″==i||”list”==i||”grid”==i||”grid2″==i||”col”==i||”video”==i?(n&&t.parent().find(“.title-link”).attr(“href”,”recent”==n?”/search”:”/search/label/”+n),$w.on(“load resize scroll”,function e(){$w.scrollTop()+$w.height()>=t.offset().top&&($w.off(“load resize scroll”,e),getPosts({t:t,type:i,num:o,label:n}))}).trigger(“scroll”)):t.html(msgError())}}),$(“.getPosts .widget-content”).each(function(){let t=$(this),e=t.data(“shortcode”);if(e){let a=getAttr(e,”results”),s=a||4,n=getAttr(e,”label”);t.removeAttr(“data-shortcode”),$w.on(“load resize scroll”,function e(){$w.scrollTop()+$w.height()>=t.offset().top&&($w.off(“load resize scroll”,e),getPosts({t:t,type:”side”,num:s,label:n}))}).trigger(“scroll”)}}),getPostCard(),$(“#related-posts .HTML”).each(function(){let t=$(this),e=t.data(“shortcode”);e&&$(“.related-wrap”).each(function(){let a=$(this),s=a.find(“.related-tag”),n=s.data(“id”),l=s.data(“label”),o=a.find(“.widget-content”),i=function t(){let a=getAttr(e,”results”),s=a?Number(a)+1:4,n=getAttr(e,”label”);return[s,n]}(),r=i[0],c=i[1],d=c&&c!=l&&”related”!=c?c:l;c&&c!=l&&”related”!=c&&o.parent().find(“.title-link”).attr(“href”,”/search/label/”+d),$w.on(“load resize scroll”,function e(){$w.scrollTop()+$w.height()>=o.offset().top&&($w.off(“load resize scroll”,e),getPosts({t:o,type:”related”,num:r,label:d,id:n}),t.parent().remove())}).trigger(“scroll”)})}),$(“.blog-post-comments”).each(function(){let t=$(this),e=t.data(“shortcode”),a=getAttr(e,”type”),s=`${a}-comments`;switch(a){case”disqus”:let n=getAttr(e,”shortname”);!1!=n&&(disqus_shortname=n),disqusComments(disqus_shortname),t.addClass(s+” visible”);break;case”facebook”:let l=getAttr(e,”lang”),o=!1!=l?`https://connect.facebook.net/${l}/all.js#xfbml=1&version=v14.0`:”https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v14.0″;$(“head”).append(“),t.addClass(s).find(“#comments”).html(`
`),t.addClass(“visible”);break;default:t.addClass(“blogger-comments visible”),t.find(“#top-continue .comment-reply”).addClass(“btn”),beautiAvatar(“.avatar-image-container img”)}let i=t.find(“.comments .comment-reply”),r=t.find(“.comments #top-continue”),c=t.find(“.show-cf”);i.on(“click”,function(e){e.preventDefault(),t.addClass(“cf-on”),r.show(),c.remove()}),r.on(“click”,function(t){t.preventDefault(),r.hide()}),c.on(“click”,function(){t.addClass(“cf-on”),c.remove(),getStickySidebar(“.main-wrap, .sidebar-wrap”)})}),$(function(){$(“.entry-thumbnail .thumbnail, .entry-avatar .avatar”).not(“.pbt-lazy”).pbtLazy(),$(“.header-inner”).each(function(){let t=$(this);if(!0==pbt.stickyMenu&&t.length>0){let e=$(document).scrollTop(),a=t.offset().top,s=t.height(),n=a+2*s;$w.scroll(function(){let a=$(document).scrollTop(),s=t.offset().top,l=$(“.main-header”).offset().top+1;a>n?t.addClass(“is-fixed”):s<=l&&t.removeClass(“is-fixed”).removeClass(“show”),a=l&&t.addClass(“show”)},170):setTimeout(function(){t.removeClass(“show”)},170),e=a})}}),$(“.mobile-logo”).each(function(){let t=$(this),e=$(“.main-logo a”).clone();e.find(“h1”).remove(),e.appendTo(t)}),$(“#mobile-menu”).each(function(){let t=$(this),e=$(“.main-nav”).clone();e.attr(“class”,”mobile-nav”).attr(“id”,”mobile-nav”),e.find(“.mega-menu > .ul”).remove(),e.find(“.mega-menu”).not(“.megatabs”).removeAttr(“class”),e.find(“.mega-menu > a”).each(function(){let t=$(this),e=t.data(“shortcode”);if(e){let a=getAttr(e,”label”);if(a){let s=a.split(“/”),n=a.match(“/”)&&s[1]?”tabs”:”mega”;if(“tabs”==n){let l=(a=s).length,o=’
“,t.parent().append(o)}else{let r=”recent”==a?”/search”:`/search/label/${a}`;t.attr(“href”,r)}}}}),e.appendTo(t),$(“.mobile-menu-toggle, .hide-mobile-menu”).on(“click”,function(){$b.toggleClass(“menu-on”),$(“.menu-on .overlay-bg”).on(“click”,function(){$b.removeClass(“menu-on”)})}),$(“.mobile-menu .has-sub > a”).on(“click”,function(t){t.preventDefault();let e=$(this);e.parent().hasClass(“expanded”)?e.parent().removeClass(“expanded”).children(“.sub-menu”).slideToggle(170):e.parent().addClass(“expanded”).children(“.sub-menu”).slideToggle(170)})}),$(“.mm-footer”).each(function(){let t=$(this),e=$(“.about-section .LinkList .social-icons”),a=$(“#footer-menu .link-list”),s=!!e.length&&e.clone();!1!=s&&(s.attr(“class”,”social-icons social color”).find(“.text”).remove(),t.append(s));let n=!!a.length&&a.clone();!1!=n&&t.append(n)}),$(“#load-more”).each(function(){let t=$(this),e=$(“.blog-pager .loading”),a=”visible”,s=t.data(“url”);t.on(“click”,function(n){n.preventDefault(),t.removeClass(a),$.ajax({url:s,beforeSend:function(){e.addClass(a)},success:function(e){let n=$(e).find(“.blog-posts”);n.find(“.post”).addClass(“fadeInUp”),$(“.blog-posts”).append(n.html()),(s=$(e).find(“#load-more”).data(“url”))?t.addClass(a):(t.removeClass(a),$(“.blog-pager .no-more”).addClass(a)),author_mapping_execute()},complete:function(){e.removeClass(a),getStickySidebar(“.main-wrap, .sidebar-wrap”),$(“.blog-posts .thumbnail”).not(“.pbt-lazy”).pbtLazy()}})})}),$(“p.comment-content”).each(function(){let t=$(this);$w.on(“load resize scroll”,function e(){$w.scrollTop()+$w.height()>=t.offset().top&&($w.off(“load resize scroll”,e),t.replaceText(/{image}([^}]*){/image}/g,’‘),t.replaceText(/{video}([^}]*){/video}/g,’$1‘),t.find(“.comment-video-url”).each(function(){var t;let e=$(this),a=e.text(),s,n,l,o;e.replaceWith((t=a,s=new URL(t),n=new URLSearchParams(s.search),(o=(l=!!t.match(“youtube.com”)&&n.get(“v”))||!!t.match(“youtu.be”)&&s.pathname.replace(“/”,””))?`
`:”Error: “+pbt.noResults))}),t.find(“.comment-video”).each(function(){let t=$(this),e=t.data(“id”);t.on(“click”,function(){t.replaceWith(`https://www.youtube.com/watch?v=${e}`)})}))}).trigger(“scroll”)}),getStickySidebar(“.main-wrap, .sidebar-wrap”),$(“.cookie-consent”).each(function(){let t=$(this),e=(t.find(“.widget.Text”),t.find(“.consent-button”));if(t.length>0){let a=e.data(“title”);a&&e.text(a),”true”!==Cookies.get(“cookie_consent”)&&(t.css(“display”,”block”),$w.on(“load”,function(){t.addClass(“visible”)})),e.off(“click”).on(“click”,function(e){e.stopPropagation(),Cookies.set(“cookie_consent”,”true”,{expires:7,path:”/”}),t.removeClass(“visible”),setTimeout(function(){t.css(“display”,”none”)},500)})}}),$(“.back-top”).each(function(){let t=$(this);$w.on(“scroll”,function(){$(this).scrollTop()>=100?t.addClass(“show”):t.removeClass(“show”),t.offset().top>=$(“.site-footer”).offset().top-36?t.addClass(“on-footer”):t.removeClass(“on-footer”)}),t.on(“click”,function(){$(“html, body”).animate({scrollTop:0},500)})})}),pbt.hasCookie&&(window.cookieChoices={});
//]]>
————————————————
Source link
Related
Click Here For The Original Source.
————————————————————————————-