(function(){var second=0;window.setInterval(bangboss_tongji_time,1000);function bangboss_tongji_time(){ second++;}var unique = (function () { var time= (new Date()).getTime()+'-', i=0; return function () { return time + (i++); }})();var imgLog = function (url) { var data = window['imgLogData'] || (window['imgLogData'] = {}); var img = new Image(); var uid = unique(); data[uid] = img; img.onload = img.onerror = function () { img.onload = img.onerror = null; img = null; delete data[uid]; }; img.src = url + '&_uid=' + uid + '&text=|PC|1|';};function leave_page_totongji(){ var url='//tongji.bangboss.com/tongji/end.jpg?time='+second; var urlArr = (document.referrer).split('/'); url = url+'&pid=60d055d2fc918f6631a7e435'+'&source='+urlArr[2]; imgLog(url);}function isIOS() {var userAgentInfo = navigator.userAgent;var Agents = [ 'iPhone','iPad'];var flag = false;for (var v = 0; v < Agents.length; v++) {if (userAgentInfo.indexOf(Agents[v]) > 0) {flag = true;break;}}return flag;} if(isIOS()){ window.addEventListener('pagehide', leave_page_totongji, false); }else{window.onbeforeunload = leave_page_totongji;}})();