PageSourceSearch

https://smallit.co.jp/cloud-gunshi/wp-content/cache/autoptimize/js…49a23556a85d2f0b5777b437169402.js?ver=1.5.6

js smallit.co.jp collected 2026-09-28 06:30:06 UTC 5,922 bytes, 19 lines download raw bytes

1(function(){"use strict";var html,body;var self={readY:0,readPosition:1,readTimerCount:0,maxReadY:0,disabled:false,ajax_delay:0,init:function(){html=document.documentElement;body=document.body;this.args=aurora_heatmap_reporter,this.args.interval=(parseInt(this.args.interval)||10)*1000;this.args.stacks=parseInt(this.args.stacks)||10;this.args.reports=this.args.reports.split(',');this.args.debug=!!parseInt(this.args.debug);this.args.ajax_delay_time=parseInt(this.args.ajax_delay_time);if(!Number.isInteger(this.args.ajax_delay_time)){this.args.ajax_delay_time=3000;}
2this.ajax_delay=new Date().getTime()+this.args.ajax_delay_time;const callback_click=self.push_click.bind(self);const callback_breakaway=self.push_breakaway.bind(self);const md=new MobileDetect(window.navigator.userAgent);this.args.access=md.mobile()?'mobile':md.tablet()?'tablet':'pc';switch(this.args.access){case'mobile':this.readPosition=0.1;window.addEventListener('pagehide',callback_breakaway);Array.prototype.forEach.call(document.body.children,function(e){e.addEventListener('click',callback_click);});break;case'pc':this.readPosition=0.5;window.addEventListener('beforeunload',callback_breakaway);document.addEventListener('click',callback_click);break;case'tablet':default:return;}
3window.setInterval(function(){self.calc_attention();},1000);},getReadY:function(){return Math.floor(this.getScrollTop()+this.getWindowHeight()*this.readPosition);},calc_attention:function(){var readY=this.getReadY();this.maxReadY=Math.max(this.maxReadY,readY);if(readY===this.readY){this.readTimerCount++;}else{this.readTimerCount=0;}
4this.readY=readY;if(3===this.readTimerCount){this.push_attention();}
5var now=new Date().getTime();if(now-this.lastTime>this.args.interval){this.push_data(null,true);}},getCursorPos:function(event){var x,y;if((event.clientX||event.clientY)&&body.scrollLeft){return{x:event.clientX+body.scrollLeft,y:event.clientY+body.scrollTop,};}else if((event.clientX||event.clientY)&&document.compatMode=='CSS1Compat'&&html.scrollLeft){return{x:event.clientX+html.scrollLeft,y:event.clientY+html.scrollTop,};}else if(event.pageX||event.pageY){return{x:event.pageX,y:event.pageY,};}},push_click:function(event){var pos=this.getCursorPos(event);if(!pos){return;}
6pos.event='click_'+this.args.access;this.push_data(pos,true);},getContentEnd:function(){var e=document.getElementsByClassName('ahm-content-end-marker'),y=0;if(e&&e.length){e=e[e.length-1];y=this.getPageHeight()-window.pageYOffset-e.getBoundingClientRect().bottom;y=Math.max(0,y);}
7return y;},push_breakaway:function(event){var maxReadY=Math.max(this.maxReadY,this.getReadY());this.push_data({event:'breakaway_'+this.args.access,x:this.getContentEnd(),y:maxReadY,},false);},push_attention:function(){this.push_data({event:'attention_'+this.args.access,x:this.getContentEnd(),y:this.readY,},true);},getScrollTop:function(){return html.scrollTop||body.scrollTop;},getPageWidth:function(){return html.clientWidth||body.clientWidth||0;},getPageHeight:function(){return Math.max(body.scrollHeight,body.offsetHeight,html.clientHeight,html.scrollHeight,html.offsetHeight);},getWindowHeight:function(){return window.innerHeight||html.clientHeight||null;},stack:[],lastTime:new Date().getTime(),build_preview:function(e){return'<div><b>event=</b> '+e.event+' <b>x=</b> '+('x'in e?e.x:'null')+' <b>y=</b> '+e.y+' <b>height=</b> '+e.height+' <b>width=</b> '+e.width+'</div>';},show_preview:function(title,content,style,timeout){var div=document.createElement('div');div.setAttribute('style','color:#000;padding:0.2em;position:fixed;right:0;border:1px solid #000;font-family:monospace;z-index:999999;');div.style.background=style.background;div.style.top=style.top;div.innerHTML='<div style="color:'+style.color+'"><b>'+title+'</b></div>'+content.map(this.build_preview).join('');body.appendChild(div);window.setTimeout(function(){body.removeChild(div);},timeout);},push_data:function(data,is_async){if(this.disabled){return;}
8var now=new Date().getTime(),post;if(data&&~this.args.reports.indexOf(data.event)){data.time=now;data.width=this.getPageWidth();data.height=this.getPageHeight();this.stack.push(data);if(this.args.debug){this.show_preview('Store',[data],{color:'#963',background:'#ffc',top:'0'},1000);}}
9if(!'jQuery'in window){return;}
10if(now<=this.ajax_delay){return;}
11if(is_async&&(now-this.lastTime)<this.args.interval&&this.stack.length<this.args.stacks){return;}
12if(!this.stack.length){return;}
13[post,this.stack]=[this.stack,[]];post.forEach(function(e){e.time=Math.floor((e.time-now)/1000);e.x=Math.floor(e.x);e.y=Math.floor(e.y);e.width=Math.floor(e.width);e.height=Math.floor(e.height);});this.lastTime=now;if(this.args.debug){this.show_preview('Send',post,{color:'#369',background:'#cff',top:'4em'},5000);}
14var res=jQuery.ajax({type:'POST',datatype:'json',url:this.args.ajax_url,cache:false,timeout:3000,async:is_async,data:{url:document.location.href,title:document.title,data:post,action:this.args.action,},});if(res.readyState){return;}
15if(navigator.sendBeacon){var form=new FormData();form.append('action',this.args.action);form.append('url',document.location.href);form.append('title',document.title);post.forEach(function(e,i){for(var key in e){if(!e.hasOwnProperty(key)){continue;}
16form.append('data['+i+']['+key+']',e[key]);}});if(navigator.sendBeacon(this.args.ajax_url,form)){return;}}
17self.disabled=true;},};
17function init(){var ms=Date.now();var requirements=['jQuery','MobileDetect','aurora_heatmap_reporter'];function check(){var now=Date.now();requirements=requirements.filter(function(e){return!window[e];});if(!requirements.length){self.init();}else if(15000<now-ms){requirements.forEach(function(e){console.error(e+' is not defined. Timed out.');});}else{setTimeout(check,250);}}
18check();}
19if(~location.search.indexOf("aurora-heatmap=")){return;}else if('loading'!==document.readyState){init();}else{document.addEventListener('DOMContentLoaded',init);}})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.