$(function(){function t(t){return 0==t.length?!1:!0}var n=!1,e=$(".cengboxindex");e.load("comment.html");var a,o,i=$("#activityon"),r=$(".hiring"),c="http://activity.ayibang.com/2016/zhaopin/",s=($("html"),navigator.userAgent,t(i));$(".hiringhref").attr("href",c),r.on("click",function(){n=!0,a=$(".cengboxindex"),o=$(".serviceurl"),s&&(i.removeClass("on"),r.addClass("on")),o.attr("src",c),a.show(),document.addEventListener("touchmove",function(t){n&&(t.preventDefault(),t.stopPropagation())})}),e.on("click",function(t){if(t.target&&"DIV"==t.target.nodeName){var e=t.target.className.split(" ");for(var c in e)"closebtnindex"==e[c]&&(a.hide(),o.attr("src",""),n=!1,s&&(i.addClass("on"),r.removeClass("on")))}})});