theadssy.com Open in urlscan Pro
103.195.185.187  Public Scan

URL: https://theadssy.com/assets/ads/ad.js
Submission: On June 28 via manual from RO — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

window.onload = function() 
{
    var advertises = document.getElementsByClassName("MainAdverTiseMentDiv");
    var scripTags = document.getElementsByClassName("adScriptClass");
    var scripturl = scripTags[0].getAttribute('src');
    var siteurl =  scripturl.replace("/assets/ads/ad.js", "");
    var currentUrl = window.location.hostname;
    var inx;
    for (inx = 0; inx < advertises.length; inx++) 
    
    {
        advertises[inx].setAttribute("style", "position:relative; z-index: 0; display:inline-block;");
        
        var getAdSize = advertises[inx].getAttribute('data-adsize');
        var getPublisher =  advertises[inx].getAttribute('data-publisher');
        var AdUrl = siteurl+'/ads/'+getPublisher+'/'+getAdSize+'/'+currentUrl;
        AdUrl+="?priority="+parseInt(inx+1);
        var xhttp = new XMLHttpRequest();
        xhttp.customdata = advertises[inx];
        xhttp.onreadystatechange = function() {
            if (this.readyState == 4 && this.status == 200) 
            {
                this.customdata.innerHTML = this.responseText;
            }
        };
       
        xhttp.open('GET', AdUrl , true);
        xhttp.send();
    }
  
}
function hideAdverTiseMent(elem) 
{
 elem.parentElement.style.display = "none";
}