1if("undefined"==typeof console){window.console={log:function(){}}} 2jQuery(function($){var debugMode=gtm4wp_scrollerscript_debugmode;var callBackTime=gtm4wp_scrollerscript_callbacktime;var readerLocation=gtm4wp_scrollerscript_readerlocation;var timer=0;var scroller=!1;var endContent=!1;var didComplete=!1;var startTime=new Date();var beginning=startTime.getTime();var totalTime=0;if(!debugMode){window[gtm4wp_datalayer_name].push({'event':'gtm4wp.reading.articleLoaded'})}else{console.log('Article loaded')} 3function trackLocation(){bottom=$(window).height()+$(window).scrollTop();height=$(document).height();if(bottom>readerLocation&&!scroller){currentTime=new Date();scrollStart=currentTime.getTime();timeToScroll=Math.round((scrollStart-beginning)/1000);if(!debugMode){window[gtm4wp_datalayer_name].push({'event':'gtm4wp.reading.startReading','timeToScroll':timeToScroll})}else{console.log('Started reading '+timeToScroll)} 4scroller=!0} 5if(bottom>=$('#'+gtm4wp_scrollerscript_contentelementid).scrollTop()+$('#'+gtm4wp_scrollerscript_contentelementid).innerHeight()&&!endContent){currentTime=new Date();contentScrollEnd=currentTime.getTime();timeToContentEnd=Math.round((contentScrollEnd-scrollStart)/1000);if(!debugMode){window[gtm4wp_datalayer_name].push({'event':'gtm4wp.reading.contentBottom','timeToScroll':timeToContentEnd})}else{console.log('End content section '+timeToContentEnd)} 6endContent=!0} 7if(bottom>=height&&!didComplete){currentTime=new Date();end=currentTime.getTime();totalTime=Math.round((end-scrollStart)/1000);if(!debugMode){if(totalTime<gtm4wp_scrollerscript_scannertime){window[gtm4wp_datalayer_name].push({'event':'gtm4wp.reading.readerType','readerType':'scanner'})}else{window[gtm4wp_datalayer_name].push({'event':'gtm4wp.reading.readerType','readerType':'reader'})} 8window[gtm4wp_datalayer_name].push({'event':'gtm4wp.reading.pagebottom','timeToScroll':totalTime})}else{if(totalTime<gtm4wp_scrollerscript_scannertime){console.log('The visitor seems to be a "scanner"')}else{console.log('The visitor seems to be a "reader"')} 9console.log('Bottom of page '+totalTime)} 10didComplete=!0}} 11$(window).scroll(function(){if(timer){clearTimeout(timer)} 12timer=setTimeout(trackLocation,callBackTime)})})
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.