/* Name: TotalTracker Description: capture code using js. */ var user_ip = '54.162.173.119'; var user_id = '8154c76bf2aa1d056849509b9f8da4fb'; //var user_agent = navigator.userAgent; var http_referer = document.referrer; var host_name = getHost(); var full_host_name = getHost( true ); var request_domain = host_name; var request_uri = getUri( full_host_name ); var requestUrl = 'https://dowser.org/tr/trproxy.php'; var cookie_data = getCookie('HTRMV'); if(cookie_data == ''){ setCookie('HTRMV',user_id,365); }else{ user_id = cookie_data; } function getHost( full_host ){ var strhost = document.location.hostname; if( full_host ){ return strhost; } else { return strhost.replace('www.', ''); } } function getUri( full_host_name ){ var struri = document.location.href; return struri.replace('https://'+full_host_name, ''); } function setCookie(c_name,value,expiredays){ var exdate=new Date(); exdate.setDate(exdate.getDate()+expiredays); document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : ";expires="+exdate.toUTCString()); } function getCookie(c_name){ return ""; } function set_banner_cookie(c_name,value,expiredays){ var exdate=new Date(); exdate.setDate(exdate.getDate()+expiredays); document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : ";expires="+exdate.toUTCString()); } function set_banner_cookie_two(name, value) { var date = new Date(); date.setTime(date.getTime()+(30*1000)); var expires = "; expires="+date.toGMTString(); document.cookie = name+"="+value+expires+"; path=/"; } function get_banner_cookie(c_name){ if (document.cookie.length>0){ c_start=document.cookie.indexOf(c_name + "="); if (c_start!=-1){ c_start=c_start + c_name.length+1; c_end=document.cookie.indexOf(";",c_start); if (c_end==-1) c_end=document.cookie.length; return unescape(document.cookie.substring(c_start,c_end)); } } return ""; } function isElementInViewport (el) { //special bonus for those using jQuery if (typeof jQuery === "function" && el instanceof jQuery) { el = el[0]; } var rect = el.getBoundingClientRect(); return ( rect.top >= 0 && rect.left >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && /*or $(window).height() */ rect.right <= (window.innerWidth || document.documentElement.clientWidth) /*or $(window).width() */ ); } function postData(requestUrl, requestPost) { //alert('requestUrl = '+requestUrl); //alert('requestPost = '+requestPost); var objHTTP, strResult; if (window.XMLHttpRequest) { objHTTP = new XMLHttpRequest(); }else if (window.ActiveXObject) { var version = parseFloat(navigator.appVersion.split("MSIE")[1]); if(version > 6){ objHTTP = new ActiveXObject("Microsoft.XMLHTTP"); }else{ objHTTP = new ActiveXObject('MSXML2.XMLHTTP.3.0'); } } objHTTP.open('POST',requestUrl,true); objHTTP.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); objHTTP.send(requestPost); //var strResult=objHTTP.responseText; // alert('strResult = '+strResult); } function qs() { var qsParm = new Array(); var query = window.location.search.substring(1); //alert('query = '+ query); var parms = query.split('&'); for (var i=0; i 0) { var key = parms[i].substring(0,pos); var val = parms[i].substring(pos+1); qsParm[key] = val; } } return qsParm; } jQuery( document ).ready(function() { jQuery('#dw_top_ah_default').click(function() { var post_data = 'session='+escape(user_id)+ '&event_type='+escape('click')+ '&banner_id='+escape('72')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); }); jQuery('#dw_top_rt_default').click(function() { var post_data = 'session='+escape(user_id)+ '&event_type='+escape('click')+ '&banner_id='+escape('71')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); }); jQuery('#first_guide_ah_default').click(function() { var post_data = 'session='+escape(user_id)+ '&event_type='+escape('click')+ '&banner_id='+escape('70')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); }); jQuery('#first_guide_rt_default').click(function() { var post_data = 'session='+escape(user_id)+ '&event_type='+escape('click')+ '&banner_id='+escape('69')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); }); jQuery('#second_guide_ah_default').click(function() { var post_data = 'session='+escape(user_id)+ '&event_type='+escape('click')+ '&banner_id='+escape('73')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); }); jQuery('#second_guide_rt_default').click(function() { var post_data = 'session='+escape(user_id)+ '&event_type='+escape('click')+ '&banner_id='+escape('74')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); }); jQuery('#dw_top_ah').click(function() { var post_data = 'session='+escape(user_id)+ '&event_type='+escape('click')+ '&banner_id='+escape('76')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); }); jQuery('#dw_top_rt').click(function() { var post_data = 'session='+escape(user_id)+ '&event_type='+escape('click')+ '&banner_id='+escape('75')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); }); jQuery('#first_guide_ah').click(function() { var post_data = 'session='+escape(user_id)+ '&event_type='+escape('click')+ '&banner_id='+escape('77')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); }); jQuery('#first_guide_rt').click(function() { var post_data = 'session='+escape(user_id)+ '&event_type='+escape('click')+ '&banner_id='+escape('78')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); }); jQuery('#second_guide_ah').click(function() { var post_data = 'session='+escape(user_id)+ '&event_type='+escape('click')+ '&banner_id='+escape('79')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); }); jQuery('#second_guide_rt').click(function() { var post_data = 'session='+escape(user_id)+ '&event_type='+escape('click')+ '&banner_id='+escape('80')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); }); });jQuery( document ).ready(function() { jQuery(window).scroll(function() { //alert('scroll'); if (jQuery('#dw_top_ah_default').length) { if (isElementInViewport(jQuery('#dw_top_ah_default'))) { var dw_top_ah_default_impression = get_banner_cookie('dw_top_ah_default_impression'); if (!dw_top_ah_default_impression) { set_banner_cookie('dw_top_ah_default_impression',1,1); var post_data = 'session='+escape(user_id)+ '&event_type='+escape('impression')+ '&banner_id='+escape('72')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); } } } }); //alert('scroll'); if (jQuery('#dw_top_ah_default').length) { if (isElementInViewport(jQuery('#dw_top_ah_default'))) { var dw_top_ah_default_impression = get_banner_cookie('dw_top_ah_default_impression'); if (!dw_top_ah_default_impression) { set_banner_cookie('dw_top_ah_default_impression',1,1); var post_data = 'session='+escape(user_id)+ '&event_type='+escape('impression')+ '&banner_id='+escape('72')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); } } } jQuery(window).scroll(function() { //alert('scroll'); if (jQuery('#dw_top_rt_default').length) { if (isElementInViewport(jQuery('#dw_top_rt_default'))) { var dw_top_rt_default_impression = get_banner_cookie('dw_top_rt_default_impression'); if (!dw_top_rt_default_impression) { set_banner_cookie('dw_top_rt_default_impression',1,1); var post_data = 'session='+escape(user_id)+ '&event_type='+escape('impression')+ '&banner_id='+escape('71')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); } } } }); //alert('scroll'); if (jQuery('#dw_top_rt_default').length) { if (isElementInViewport(jQuery('#dw_top_rt_default'))) { var dw_top_rt_default_impression = get_banner_cookie('dw_top_rt_default_impression'); if (!dw_top_rt_default_impression) { set_banner_cookie('dw_top_rt_default_impression',1,1); var post_data = 'session='+escape(user_id)+ '&event_type='+escape('impression')+ '&banner_id='+escape('71')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); } } } jQuery(window).scroll(function() { //alert('scroll'); if (jQuery('#first_guide_ah_default').length) { if (isElementInViewport(jQuery('#first_guide_ah_default'))) { var first_guide_ah_default_impression = get_banner_cookie('first_guide_ah_default_impression'); if (!first_guide_ah_default_impression) { set_banner_cookie('first_guide_ah_default_impression',1,1); var post_data = 'session='+escape(user_id)+ '&event_type='+escape('impression')+ '&banner_id='+escape('70')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); } } } }); //alert('scroll'); if (jQuery('#first_guide_ah_default').length) { if (isElementInViewport(jQuery('#first_guide_ah_default'))) { var first_guide_ah_default_impression = get_banner_cookie('first_guide_ah_default_impression'); if (!first_guide_ah_default_impression) { set_banner_cookie('first_guide_ah_default_impression',1,1); var post_data = 'session='+escape(user_id)+ '&event_type='+escape('impression')+ '&banner_id='+escape('70')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); } } } jQuery(window).scroll(function() { //alert('scroll'); if (jQuery('#first_guide_rt_default').length) { if (isElementInViewport(jQuery('#first_guide_rt_default'))) { var first_guide_rt_default_impression = get_banner_cookie('first_guide_rt_default_impression'); if (!first_guide_rt_default_impression) { set_banner_cookie('first_guide_rt_default_impression',1,1); var post_data = 'session='+escape(user_id)+ '&event_type='+escape('impression')+ '&banner_id='+escape('69')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); } } } }); //alert('scroll'); if (jQuery('#first_guide_rt_default').length) { if (isElementInViewport(jQuery('#first_guide_rt_default'))) { var first_guide_rt_default_impression = get_banner_cookie('first_guide_rt_default_impression'); if (!first_guide_rt_default_impression) { set_banner_cookie('first_guide_rt_default_impression',1,1); var post_data = 'session='+escape(user_id)+ '&event_type='+escape('impression')+ '&banner_id='+escape('69')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); } } } jQuery(window).scroll(function() { //alert('scroll'); if (jQuery('#second_guide_ah_default').length) { if (isElementInViewport(jQuery('#second_guide_ah_default'))) { var second_guide_ah_default_impression = get_banner_cookie('second_guide_ah_default_impression'); if (!second_guide_ah_default_impression) { set_banner_cookie('second_guide_ah_default_impression',1,1); var post_data = 'session='+escape(user_id)+ '&event_type='+escape('impression')+ '&banner_id='+escape('73')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); } } } }); //alert('scroll'); if (jQuery('#second_guide_ah_default').length) { if (isElementInViewport(jQuery('#second_guide_ah_default'))) { var second_guide_ah_default_impression = get_banner_cookie('second_guide_ah_default_impression'); if (!second_guide_ah_default_impression) { set_banner_cookie('second_guide_ah_default_impression',1,1); var post_data = 'session='+escape(user_id)+ '&event_type='+escape('impression')+ '&banner_id='+escape('73')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); } } } jQuery(window).scroll(function() { //alert('scroll'); if (jQuery('#second_guide_rt_default').length) { if (isElementInViewport(jQuery('#second_guide_rt_default'))) { var second_guide_rt_default_impression = get_banner_cookie('second_guide_rt_default_impression'); if (!second_guide_rt_default_impression) { set_banner_cookie('second_guide_rt_default_impression',1,1); var post_data = 'session='+escape(user_id)+ '&event_type='+escape('impression')+ '&banner_id='+escape('74')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); } } } }); //alert('scroll'); if (jQuery('#second_guide_rt_default').length) { if (isElementInViewport(jQuery('#second_guide_rt_default'))) { var second_guide_rt_default_impression = get_banner_cookie('second_guide_rt_default_impression'); if (!second_guide_rt_default_impression) { set_banner_cookie('second_guide_rt_default_impression',1,1); var post_data = 'session='+escape(user_id)+ '&event_type='+escape('impression')+ '&banner_id='+escape('74')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); } } } jQuery(window).scroll(function() { //alert('scroll'); if (jQuery('#dw_top_ah').length) { if (isElementInViewport(jQuery('#dw_top_ah'))) { var dw_top_ah_impression = get_banner_cookie('dw_top_ah_impression'); if (!dw_top_ah_impression) { set_banner_cookie('dw_top_ah_impression',1,1); var post_data = 'session='+escape(user_id)+ '&event_type='+escape('impression')+ '&banner_id='+escape('76')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); } } } }); //alert('scroll'); if (jQuery('#dw_top_ah').length) { if (isElementInViewport(jQuery('#dw_top_ah'))) { var dw_top_ah_impression = get_banner_cookie('dw_top_ah_impression'); if (!dw_top_ah_impression) { set_banner_cookie('dw_top_ah_impression',1,1); var post_data = 'session='+escape(user_id)+ '&event_type='+escape('impression')+ '&banner_id='+escape('76')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); } } } jQuery(window).scroll(function() { //alert('scroll'); if (jQuery('#dw_top_rt').length) { if (isElementInViewport(jQuery('#dw_top_rt'))) { var dw_top_rt_impression = get_banner_cookie('dw_top_rt_impression'); if (!dw_top_rt_impression) { set_banner_cookie('dw_top_rt_impression',1,1); var post_data = 'session='+escape(user_id)+ '&event_type='+escape('impression')+ '&banner_id='+escape('75')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); } } } }); //alert('scroll'); if (jQuery('#dw_top_rt').length) { if (isElementInViewport(jQuery('#dw_top_rt'))) { var dw_top_rt_impression = get_banner_cookie('dw_top_rt_impression'); if (!dw_top_rt_impression) { set_banner_cookie('dw_top_rt_impression',1,1); var post_data = 'session='+escape(user_id)+ '&event_type='+escape('impression')+ '&banner_id='+escape('75')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); } } } jQuery(window).scroll(function() { //alert('scroll'); if (jQuery('#first_guide_ah').length) { if (isElementInViewport(jQuery('#first_guide_ah'))) { var first_guide_ah_impression = get_banner_cookie('first_guide_ah_impression'); if (!first_guide_ah_impression) { set_banner_cookie('first_guide_ah_impression',1,1); var post_data = 'session='+escape(user_id)+ '&event_type='+escape('impression')+ '&banner_id='+escape('77')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); } } } }); //alert('scroll'); if (jQuery('#first_guide_ah').length) { if (isElementInViewport(jQuery('#first_guide_ah'))) { var first_guide_ah_impression = get_banner_cookie('first_guide_ah_impression'); if (!first_guide_ah_impression) { set_banner_cookie('first_guide_ah_impression',1,1); var post_data = 'session='+escape(user_id)+ '&event_type='+escape('impression')+ '&banner_id='+escape('77')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); } } } jQuery(window).scroll(function() { //alert('scroll'); if (jQuery('#first_guide_rt').length) { if (isElementInViewport(jQuery('#first_guide_rt'))) { var first_guide_rt_impression = get_banner_cookie('first_guide_rt_impression'); if (!first_guide_rt_impression) { set_banner_cookie('first_guide_rt_impression',1,1); var post_data = 'session='+escape(user_id)+ '&event_type='+escape('impression')+ '&banner_id='+escape('78')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); } } } }); //alert('scroll'); if (jQuery('#first_guide_rt').length) { if (isElementInViewport(jQuery('#first_guide_rt'))) { var first_guide_rt_impression = get_banner_cookie('first_guide_rt_impression'); if (!first_guide_rt_impression) { set_banner_cookie('first_guide_rt_impression',1,1); var post_data = 'session='+escape(user_id)+ '&event_type='+escape('impression')+ '&banner_id='+escape('78')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); } } } jQuery(window).scroll(function() { //alert('scroll'); if (jQuery('#second_guide_ah').length) { if (isElementInViewport(jQuery('#second_guide_ah'))) { var second_guide_ah_impression = get_banner_cookie('second_guide_ah_impression'); if (!second_guide_ah_impression) { set_banner_cookie('second_guide_ah_impression',1,1); var post_data = 'session='+escape(user_id)+ '&event_type='+escape('impression')+ '&banner_id='+escape('79')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); } } } }); //alert('scroll'); if (jQuery('#second_guide_ah').length) { if (isElementInViewport(jQuery('#second_guide_ah'))) { var second_guide_ah_impression = get_banner_cookie('second_guide_ah_impression'); if (!second_guide_ah_impression) { set_banner_cookie('second_guide_ah_impression',1,1); var post_data = 'session='+escape(user_id)+ '&event_type='+escape('impression')+ '&banner_id='+escape('79')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); } } } jQuery(window).scroll(function() { //alert('scroll'); if (jQuery('#second_guide_rt').length) { if (isElementInViewport(jQuery('#second_guide_rt'))) { var second_guide_rt_impression = get_banner_cookie('second_guide_rt_impression'); if (!second_guide_rt_impression) { set_banner_cookie('second_guide_rt_impression',1,1); var post_data = 'session='+escape(user_id)+ '&event_type='+escape('impression')+ '&banner_id='+escape('80')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); } } } }); //alert('scroll'); if (jQuery('#second_guide_rt').length) { if (isElementInViewport(jQuery('#second_guide_rt'))) { var second_guide_rt_impression = get_banner_cookie('second_guide_rt_impression'); if (!second_guide_rt_impression) { set_banner_cookie('second_guide_rt_impression',1,1); var post_data = 'session='+escape(user_id)+ '&event_type='+escape('impression')+ '&banner_id='+escape('80')+ '&referer='+escape(http_referer)+ '&site_id='+escape(2)+ '&url='+escape(request_uri)+ '&ip='+escape(user_ip); postData(requestUrl, post_data); } } } });