Light and Healthy Chinese Recipes | Yan Can Cook | KQED

')}),$("#magspot-load-more-link").each(function(){var e=$(this),t=e.data("load");t&&e.show(),e.click(function(a){a.preventDefault(),e.hide(),$.ajax({url:t,success:function(a){var s=$(a).find(".blog-posts");s.find(".index-post").addClass("fadeInUp"),$(".blog-posts").append(s.html()),(t=$(a).find("#magspot-load-more-link").data("load"))?e.show():(e.hide(),$("#blog-pager .no-more").addClass("show"))},beforeSend:function(){$("#blog-pager .loading").show()},complete:function(){$("#blog-pager .loading").hide(),$(".index-post .entry-image-wrap .entry-image").not(".pbt-lazy").pbtLazy(),pbtFixedSidebar("#main-wrapper, #sidebar-wrapper")}})})}),$("#magspot-cookie-consent").each(function(){var e=$(this),t=e.find(".widget.Text").data("shortcode"),a=e.find(".consent-button");e.length>0&&(t&&(ok=getAttr(t,"ok"),days=getAttr(t,"days"),!1!=ok&&a.text(ok),days=!1!=days?Number(days):7),"1"!==$.cookie("magspot_cookie_consent")&&(e.css("display","block"),$(window).on("load",function(){e.addClass("is-visible")})),a.off("click").click(function(t){t.preventDefault(),t.stopPropagation(),$.cookie("magspot_cookie_consent","1",{expires:days,path:"/"}),e.removeClass("is-visible"),setTimeout(function(){e.css("display","none")},500)}),cookieChoices={})}),$("#back-top").each(function(){var e=$(this);$(window).on("scroll",function(){$(this).scrollTop()>=100?e.addClass("show"):e.removeClass("show"),e.offset().top>=$("#footer-wrapper").offset().top-34?e.addClass("on-footer"):e.removeClass("on-footer")}),e.click(function(e){e.preventDefault(),$("html, body").animate({scrollTop:0},500)})})}); //]]>