'}e+="",$("#disqus_thread").empty(),$("#disqus_thread").append(e),s.cursor.more&&$("#comments").append('')}else $(".disqus-loading").text("Um...Nothing yet")},error:function(s){console.log(s)}})},error:function(s){console.log(s)}})}function directMode(s){$("#disqus_thread").empty(),$("#disqus-switch").remove(),$("#disqus-loadmore").remove(),$("#comments").prepend('');var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src="//"+disqus_shortname+".disqus.com/"+s,(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(e),setLocalStorage("disqusMode","direct")}var disqus_shortname="easonyang",disqus_identifier="tags/shell/index.html",disqus_title="",disqus_url="";$("body").on("click","#disqus-switch-to-proxy",function(){proxyMode()}),$("body").on("click","#disqus-switch-to-direct",function(){directMode("embed.js")}),$(window).on("scroll.comments",function(){if($(window).scrollTop()+$(window).height()>.7*$(document).height()){try{"proxy"==localStorage.getItem("disqusMode")?proxyMode():directMode("embed.js")}catch(s){console.log(s),console.log("Failed to get localStorage item"),proxyMode()}$(window).off("scroll.comments")}})