function WDSendDataClick(event) { var alt = event.getAttribute('data-id'); var href = event.getAttribute('href'); var url = top.location.href; var referrerUrl = ''; $.ajax({ url: 'http://panel.adtodate.net/code/saveClick.php', data: {'alt':alt,'url':url,'href':href,'referrer_url':referrerUrl}, type: 'POST', success: function(data){ } }); } var status,country,countryCode,region,regionName,city,zip, lat,lon,timezone,isp,org,as,query; var url = top.location.href; status = 1; country = 'USA'; countryCode = 'USA'; region = ''; regionName = 'USA'; city = 'USA'; zip = ''; lat = ''; lon = ''; timezone = ''; isp = ''; org = ''; as = ''; query = ''; var htmlCat = $('.topNewsContainer .serviceHeader').html(); if(!htmlCat) { htmlCat = $('.newsDetailContainer .serviceHeader').html(); } else { htmlCatT = htmlCat.trim(); if(htmlCatT == 'ایران') { htmlCat = 'homePage'; } } var device = ''; device = 'desktop'; var referrer_url = ''; var resolution = window.screen.availHeight +'*'+window.screen.availWidth; function WDSendDataViews(event) { var status,country,countryCode,region,regionName,city,zip, lat,lon,timezone,isp,org,as,query; var url = top.location.href; var alt = event.getAttribute('data-id'); var href = event.getAttribute('href'); status = 1; country = 'USA'; countryCode = 'USA'; region = ''; regionName = 'USA'; city = 'USA'; zip = ''; lat = ''; lon = ''; timezone = ''; isp = ''; org = ''; as = ''; query = ''; var htmlCat = $('.topNewsContainer .serviceHeader').html(); if(!htmlCat) { htmlCat = $('.newsDetailContainer .serviceHeader').html(); } else { htmlCatT = htmlCat.trim(); if(htmlCatT == 'ایران') { htmlCat = 'homePage'; } } var device = ''; device = 'desktop'; var referrer_url = ''; var resolution = window.screen.availHeight +'*'+window.screen.availWidth; dataMember = { 'status':status, 'country':country, 'countryCode':countryCode, 'region':region, 'regionName':regionName, 'city':city, 'alt':alt, 'href':href, 'zip':zip, 'lat':lat, 'lon':lon, 'timezone':timezone, 'isp':isp, 'org':org, 'as':as, 'device':device, 'resolution':resolution, 'query':query, 'url':url, 'category':htmlCat, referrer_url:referrer_url, } var referrerUrl = ''; $.ajax({ url: 'http://panel.adtodate.net/code/saveViews.php', data: dataMember, type: 'POST', success: function(data){ } }); } div = document.createElement('div'); div.id = 'WEWS-CODE-GET-DATA'; document.body.appendChild(div); divT = document.createElement('div'); divT.id = 'WEWS-CODE-GET-DATA-TOP'; document.body.appendChild(divT); var url = top.location.href; var dataMember; /* setInterval(function(){ $.ajax({ url: 'http://panel.adtodate.net/code/script.php?setOnline=3360174089', data: {'data':true}, type: 'POST', success: function(data){ } }); },15000);*/ $(document).ready(function(e) { //$("img[src='http://images.hamshahrionline.ir/system/menus/15/1401632381_rss.png'").hide(); /*$('head').append('');*/ var status,country,countryCode,region,regionName,city,zip, lat,lon,timezone,isp,org,as,query; var url = top.location.href; status = 1; country = 'USA'; countryCode = 'USA'; region = ''; regionName = 'USA'; city = 'USA'; zip = ''; lat = ''; lon = ''; timezone = ''; isp = ''; org = ''; as = ''; query = ''; var htmlCat = $('.topNewsContainer .serviceHeader').html(); if(!htmlCat) { htmlCat = $('.newsDetailContainer .serviceHeader').html(); } else { htmlCatT = htmlCat.trim(); if(htmlCatT == 'ایران') { htmlCat = 'homePage'; } } var device = ''; device = 'desktop'; var referrer_url = ''; var resolution = window.screen.availHeight +'*'+window.screen.availWidth; dataMember = { 'status':status, 'country':country, 'countryCode':countryCode, 'region':region, 'regionName':regionName, 'city':city, 'zip':zip, 'lat':lat, 'lon':lon, 'timezone':timezone, 'isp':isp, 'org':org, 'as':as, 'device':device, 'resolution':resolution, 'query':query, 'url':url, 'category':htmlCat, referrer_url:referrer_url, } var scrr = $('.WD_LOAD_SCRIPT_RAP').html(); if(!scrr) { if(true) { $.ajax({ url: 'http://panel.adtodate.net/code/script.php?insertDataMember=54215452101', data: dataMember, type: 'POST', success: function(data){ } }); } // ******** add space ads in layer *********** var url = top.location.href; /* function WDSendDataViews(event) { var alt = event.getAttribute('data-id'); var href = event.getAttribute('href'); dataMember2 = { 'status':status, 'country':country, 'countryCode':countryCode, 'region':region, 'regionName':regionName, 'city':city, 'zip':zip, 'lat':lat, 'lon':lon, 'timezone':timezone, 'isp':isp, 'org':org, 'as':as, 'href':href, 'alt':alt, 'device':device, 'resolution':resolution, 'query':query, 'url':url, 'category':htmlCat, referrer_url:referrer_url, } $.ajax({ url: 'http://panel.adtodate.net/code/saveViews.php', data: dataMember2, type: 'POST', success: function(data){ } }); }*/ if(url.indexOf('details') > 0) { $('#WEWS-CODE-GET-DATA').attr('data-layer','details'); htmlCat = $('.newsDetailContainer .serviceHeader a').html(); var EngCat = ''; if(htmlCat.search("ایران") != -1 || htmlCat.search("جهان") != -1 || htmlCat.search("دفاع") != -1) { EngCat = 'syasi'; } if(htmlCat.search("ارتباطات") != -1 || htmlCat.search("شهر") != -1 || htmlCat.search("اجتماع") != -1 || htmlCat.search("کودک و نوجوان") != -1) { EngCat = 'ejtemai'; } if(htmlCat.search("سینما و تلویزیون") != -1 || htmlCat.search("زندگی") != -1 || htmlCat.search("دانش") != -1 || htmlCat.search("میزآنلاین") != -1 || htmlCat.search("دین و اندیشه") != -1) { EngCat = 'farhangi'; } if(htmlCat.search("اقتصاد") != -1) { EngCat = 'eghtesadi'; } if(htmlCat.search("ورزش") != -1) { EngCat = 'varzeshi'; } /* $( window ).resize(function() { if($( window ).width() >= 1024) { var offset = $('.advContainer').eq(2).offset(); var topPadding = 15; $(window).scroll(function() { if ($(window).scrollTop() > offset.top) { $('.advContainer').eq(2).stop().animate({ marginTop: $(window).scrollTop() - offset.top + topPadding - ($(window).scrollTop() -100) }); } else { $('.advContainer').eq(2).stop().animate({ marginTop: 0 }); }; }); } }); if($( window ).width() >= 1024) { var offset = $('.advContainer').eq(2).offset(); var topPadding = 15; $(window).scroll(function() { if ($(window).scrollTop() > offset.top) { $('.advContainer').eq(2).stop().animate({ marginTop: $(window).scrollTop() - offset.top + topPadding }); } else { $('.advContainer').eq(2).stop().animate({ marginTop: 0 }); }; }); } */ var hrefData = 'http://panel.adtodate.net/code/showADS.php?isp='+isp+'&layer=details&country='+country+'&city='+regionName+'&category='+EngCat+'&url='+url; var hrefData2 = 'http://panel.adtodate.net/code/newShowAds.php?isp='+isp+'&layer=details&country='+country+'&city='+regionName+'&category='+EngCat+'&url='+url; //$('.advContainer').eq(1).find('ul').append(''); $('.advContainer').eq(1).find('ul').append(''); } else { if(url.indexOf('service') > 0) { $('#WEWS-CODE-GET-DATA').attr('data-layer','service'); htmlCat = $('.topNewsContainer .serviceHeader').html(); var EngCat = ''; if(htmlCat.search("ایران") != -1 || htmlCat.search("جهان") != -1 || htmlCat.search("دفاع") != -1) { EngCat = 'syasi'; } if(htmlCat.search("ارتباطات") != -1 || htmlCat.search("شهر") != -1 || htmlCat.search("اجتماع") != -1 || htmlCat.search("کودک و نوجوان") != -1) { EngCat = 'ejtemai'; } if(htmlCat.search("سینما و تلویزیون") != -1 || htmlCat.search("زندگی") != -1 || htmlCat.search("دانش") != -1 || htmlCat.search("میزآنلاین") != -1 || htmlCat.search("دین و اندیشه") != -1) { EngCat = 'farhangi'; } if(htmlCat.search("اقتصاد") != -1) { EngCat = 'eghtesadi'; } if(htmlCat.search("ورزش") != -1) { EngCat = 'varzeshi'; } var hrefData = 'http://panel.adtodate.net/code/showADS.php?isp='+isp+'&layer=service&country='+country+'&city='+regionName+'&category='+EngCat+'&url='+url; var hrefData2 = 'http://panel.adtodate.net/code/newShowAds.php?isp='+isp+'&layer=home&country='+country+'&city='+regionName+'&category='+htmlCat+'&url='+url; //$('.advContainer').eq(2).find('ul').append(''); $('.advContainer').eq(2).find('ul').append(''); } else { $('#WEWS-CODE-GET-DATA').attr('data-layer','homePage'); htmlCat = 'all'; var hrefData = 'http://panel.adtodate.net/code/showADS.php?isp='+isp+'&layer=home&country='+country+'&city='+regionName+'&category='+htmlCat+'&url='+url; var hrefData2 = 'http://panel.adtodate.net/code/newShowAds.php?isp='+isp+'&layer=home&country='+country+'&city='+regionName+'&category='+htmlCat+'&url='+url; //$('.advContainer').eq(2).find('ul').append(''); $('.advContainer').eq(2).find('ul').append(''); setTimeout(function(){ }, 5000); } } } });