sac.ayads.co Open in urlscan Pro
2606:4700:10::6814:b25  Public Scan

URL: https://sac.ayads.co/redirect/2uLaa0d561eebbb4289f33a55feca474b41d3bf834b608437479dda3ef0e554020a.js
Submission Tags: falconsandbox
Submission: On September 06 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

// REDIRECT Sublimeskinz "[Redirect Tailor Made - US - DBM - Mediacom] Dell - MPP - Labor Day - 12309250397517020 2019-08-30 20:07:55 UTC"
var ayads_data_third_party ={
    "rid": 20158,
    "raid": 154866,
    "cid": 12171,
    "url": "https://altfarm.mediaplex.com/ad/ck/12309-250397-51702-0?mpt=[timestamp]",
    "original_url": "https://altfarm.mediaplex.com/ad/ck/12309-250397-51702-0?mpt=[timestamp]",
    "color": "#F4ECD9",
    "fixed": 1,
    "top": 1,
    "moat": 1,
    "video_autoplay": 1,
    "click_area": "double",
    "viewability": 0,
    "format": 1,
    "type": "html5",
    "creative_type": "html5 full skinz html5",
    "html": "<script>\n    (function() {\n        if(!window.sublime) return;\n        var ssk_dv_tag='https://cdn.doubleverify.com/dvtp_src.js?ctx=569086&cmp=250397&sid=51702&plc=12309250397517020&adsrv=8&btreg=&btadsrv=&crt=&tagtype=&dvtagver=6.1.src';\n \n        var div=document.createElement('div');\n        div.id='ay-dv-div';\n        div.style.cssText=\n            'position:'+((window.sublime && window.sublime.ad && window.sublime.ad.fixed) ? 'fixed' : 'absolute')+';' +\n            'top:0;' +\n            'left:50%;' +\n            'width:1800px;' +\n            'height:1000px;' +\n            'margin-left:-900px;'+\n            'z-index:-2147483647;' +\n            'pointer-events: none;';\n        window.sublime.document.body.appendChild(div);\n \n        var s=document.createElement('script');\n        s.id='ay-dv-script';\n        s.src=ssk_dv_tag;\n        div.style.pointerEvents==='none' && window.sublime.document.body.appendChild(s);\n    })();\n</script>\n\n<script>var img = (new Image()).src=\"https://altfarm.mediaplex.com/ad/bn/12309-250397-51702-0?mpt=[timestamp]\";</script>\n\n<!--\ncreative    AID\nname        TD - Client - 1800x1000 HTML5 Responsive\n-->\n\n<style>\n    #ayads-html {\n        position: absolute;\n        left: 0;\n        z-index: -9999;\n        overflow: hidden;\n    }\n    #sublime-iframe-container {\n        position: absolute;\n        width: 100%;\n        height: 100%;\n        transform: translateX(-50%);\n        left: 50%;\n        margin: 0;\n    }\n    #sublime-iframe {\n        width: 100%;\n        height: 100%;\n        border: none;\n        margin: 0;\n    }\n</style>\n\n<script>\n    function displaySkin() {\n        /* Creative variables */\n        var zoneScale = sublime.zone.scale,\n            IsEdge = navigator.userAgent.indexOf('Edge') != -1,\n            isVideo = !sublime.isEmpty(sublime.creativeAd.videos),\n            sublimeRedirection = sublime.display.getFinalClickUrl(sublime.creativeAd),\n            ayadsHtml = sublime.document.getElementById('ayads-html'),\n            htmlStyle = sublime.window.getComputedStyle(sublime.window.document.getElementsByTagName('html')[0]),\n            htmlMarginTop = parseInt(htmlStyle.marginTop),\n            newMarginTop,\n            clickTag = encodeURIComponent(sublime.creativeAd.url),\n            click_macro = encodeURIComponent('${CLICK_URL}');\n        /*\n            macro cachebuster = [timestamp]\n            click macro = ${CLICK_URL}\n        */\n        /*\n            Use http://madvas.github.io/multiline-string-to-javascript-converter/dist/\n            to convert multiline script to JS compliant string\n            Variable Name= iframeContent\n            Concat with -> Split with backslash\n        */\n        var iframeContent = '<div class=\"celtra-ad-v3\">\\\n    <!-- dest.urlOpened[Click Through] = raw  https://altfarm.mediaplex.com/ad/ck/12309-250397-51702-0?mpt=[timestamp] -->\\\n    <!-- externalCreativeId            = eval top.sublime.ad.raid || top.sublime.ad.id || 0 -->\\\n    <!-- externalCreativeName          = eval top.sublime.ad.name -->\\\n    <!-- externalPlacementId           = eval top.sublime.ad.rcid || top.sublime.ad.campaign_id || 0 -->\\\n    <!-- externalSiteId                = eval top.sublime.zone.id || 0 -->\\\n    <!-- externalSiteName              = eval top.sublime.zone.url -->\\\n    <!-- externalSupplierName          = eval top.sublime.ad.ssp_name -->\\\n    <!-- externalLineItemId            = eval top.sublime.ad.creative_id || top.sublime.ad.ssp_id || 0 -->\\\n    <img src=\"data:image/png,celtra\" style=\"display: none\" onerror=\"\\\n        (function(img) {\\\n            var params = {\\'clickUrl\\':\\'${CLICK_URL}\\',\\'expandDirection\\':\\'undefined\\',\\'preferredClickThroughWindow\\':\\'new\\',\\'clickEvent\\':\\'advertiser\\',\\'externalAdServer\\':\\'Sublimeskinz\\',\\'tagVersion\\':\\'6\\'};\\\n            [].slice.apply(img.parentNode.childNodes).forEach(function(n) { var decfs = { urldecode: decodeURIComponent, htmldecode: function(v) { var d = document.createElement(\\'div\\'); d.innerHTML = v; return d.textContent; }, eval: function(v) { return eval(v); }, raw: function(v) { return v; } }; var m; if (n.nodeType == 8 && (m = n.textContent.match(/^&#92;s+([&#92;w%.]+)(&#92;[.+&#92;])?&#92;s+=&#92;s+(&#92;w+)&#92;s+(.*)$/i))) { try { params[m[1]+(m[2] || \\'\\')] = decfs[m[3]](m[4].replace(/^&#92;s+|&#92;s+$/g, \\'\\')); } catch (e) {} } });\\\n            var req = document.createElement(\\'script\\');\\\n            req.id = params.scriptId = \\'celtra-script-\\' + (window.celtraScriptIndex = (window.celtraScriptIndex||0)+1);\\\n            params.clientTimestamp = new Date/1000;\\\n            params.clientTimeZoneOffsetInMinutes = new Date().getTimezoneOffset();\\\n            params.hostPageLoadId=window.celtraHostPageLoadId=window.celtraHostPageLoadId||(Math.random()+\\'\\').slice(2);\\\n            var qs = \\'\\';\\\n            for (var k in params) {\\\n                qs += \\'&\\' + encodeURIComponent(k) + \\'=\\' + encodeURIComponent(params[k]);\\\n            }\\\n            var src = \\'https://ads.celtra.com/a80571ba/web.js?\\' + qs;\\\n            req.src = src;\\\n            img.parentNode.insertBefore(req, img.nextSibling);\\\n        })(this);\\\n    \"/>\\\n</div>';\n        /*Create Container*/\n        var container = sublime.document.createElement('div');\n        container.id = 'sublime-iframe-container';\n        container.style.maxWidth = Math.ceil(1800 * zoneScale) + \"px\";\n        container.style.maxHeight = Math.ceil(1000 * zoneScale) + \"px\";\n        container.style.minWidth = Math.ceil(1280 * zoneScale) + \"px\";\n        /* Append Container to Ayads-HTML */\n        ayadsHtml.style.setProperty('width', '100%');\n        ayadsHtml.style.setProperty('height', Math.ceil(1000 * zoneScale) + 'px');\n        ayadsHtml.style.top = htmlMarginTop + 'px';\n        if (sublime.creativeAd.fixed === 1) {\n            ayadsHtml.style.position = \"fixed\";\n        }\n        ayadsHtml.appendChild(container);\n        /* Create Iframe Content */\n        var iframe = sublime.document.createElement('iframe');\n        iframe.type = 'text/javascript';\n        iframe.id = 'sublime-iframe';\n        /* Append Iframe Content to Container */\n        container.appendChild(iframe);\n        /* Iframe Content styles */\n        var iframeStyle = 'width:100%; height:100%; margin:0; padding:0; overflow:hidden; transform-origin: center top; backface-visibility: hidden; transform: translateZ(0);';\n        /* Add content to Iframe */\n        iframe.contentWindow.document.open();\n        iframe.contentWindow.inDapIF = true; /* IAB Best Practices for Rich Media Ads in Asynchronous Ad Environments https://www.iab.com/wp-content/uploads/2015/09/rich_media_ajax_best_practices.pdf */\n        iframe.contentWindow.document.write('<html style=\"' + iframeStyle + '\"><body style=\"' + iframeStyle + ' transform: translateZ(0) scale(' + zoneScale + ');\">' + iframeContent + '</body></html>');\n        iframe.contentWindow.document.close();\n        sublime.display.addCss('.celtra-ad-inline-host {' + iframeStyle + ' transform: translateZ(0) scale(' + zoneScale + ');}');\n        function sublimeEventResize() {\n            ayadsHtml.style.setProperty('width', '100%');\n        }\n        /*==========  INIT OBSERVER  ==========*/\n        function observeMarginTop() {\n            if (IsEdge) {\n                topOverlayEdge();\n                sublime.window.document.addEventListener('scroll', topOverlayEdge);\n            } else if (window.MutationObserver) {\n                var config = {\n                    attributes: true,\n                    childList: true,\n                    characterData: true\n                };\n                var observer = new MutationObserver(function(mutations) {\n                    mutations.forEach(function(mutationRecord) {\n                        if (isVideo) {\n                            newMarginTop = parseInt(mutationRecord.target.style.top);\n                        } else if (target.style.backgroundPosition) {\n                            newMarginTop = parseInt(mutationRecord.target.style.backgroundPosition.split(' ')[1]);\n                        }\n                        ayadsHtml.style.top = newMarginTop + \"px\";\n                    });\n                });\n                observer.observe(target, config);\n            } else {\n                console.log('mutation not accepted');\n            }\n        }\n        /*========== EVENT SCROLL FOR EDGE ==========*/\n        function topOverlayEdge() {\n            var yPos = sublime.window.pageYOffset;\n            if (yPos === 0) {\n                newMarginTop = htmlMarginTop;\n            } else if (isVideo) {\n                newMarginTop = parseInt(target.style.top);\n            } else if (target.style.backgroundPosition) {\n                newMarginTop = parseInt(target.style.backgroundPosition.split(' ')[1]);\n            } else {\n                newMarginTop = parseInt(sublime.window.getComputedStyle(target, null).getPropertyValue(\"background-position\").split('%')[1]);\n            }\n            ayadsHtml.style.top = newMarginTop + \"px\";\n        }\n        /*========== DETECT DIV PRESENCE ==========*/\n        function checkDivPresence(div, callback) {\n            target = sublime.window.document.querySelector(div);\n            if (target) {\n                if (sublime.creativeAd.fixed === 1) {\n                    callback();\n                }\n            } else {\n                top.sublime.timer.setTimeout(function() {\n                    checkDivPresence(div, callback);\n                }, 100);\n            }\n        }\n        /*==========  LAUNCH FUNCTIONS  ==========*/\n        sublime.window.addEventListener('resize', sublimeEventResize, false);\n        if (isVideo) {\n            checkDivPresence('#ayads-video-layer', observeMarginTop);\n        } else {\n            checkDivPresence('body', observeMarginTop);\n        }\n        sublime.hook.register('event.cleanUp', function() {\n            if (IsEdge) {\n                sublime.window.document.removeEventListener('scroll', topOverlayEdge);\n            }\n            sublime.window.removeEventListener('resize', sublimeEventResize);\n        });\n    }\n    sublime.hook.register('dom.ready', displaySkin);\n</script>",
    "dsp_id": 2,
    "redirect_protocol": "https://",
    "html_usage": "raw",
    "image": "https://cdn.ayads.co/15/46/image-154690.jpg",
    "video": "",
    "video_bg": ""
};
var ayads_data = {};
for (var attrname in ayads_data_compact) {
    if(ayads_data_compact.hasOwnProperty(attrname)){
        ayads_data[attrname] = ayads_data_compact[attrname];
    }
}
for (var attrname in ayads_data_third_party) {
    if(ayads_data_third_party.hasOwnProperty(attrname)){
        ayads_data[attrname] = ayads_data_third_party[attrname];
    }
}
// Merge redirect data
if (ayads_data.url && ayads_data.click_macro && ["$none","${CLICK_URL}","[[[CLICKURL]]]","%%TTD_CLK%%","[UNENCODED_CLICK_REDIRECT]","%%c1;cpdir=","XXCLICK_FORM_URL[]XX","%%clicktag%%","{{context.preUrl}}","{scriptclickprefix}","<!-#HREF_D_Q->","{{clickUrlWithoutRedirect}}","%click_url_unesc%","[countgo]","${HAWK_CLICK}","${CLICKURL}","_ADCLICK_","{click_URL}","{nativebrowser_click_url}"].indexOf(ayads_data.click_macro) < 0 ){
    ayads_data.url = ayads_data.click_macro + ayads_data.url;
}
var ayads_ads = [{data: ayads_data}];// Get the highest accessible window
var topW=lastTopW=window;for(;top!==topW;)try{lastTopW=topW,(topW=topW.parent).location.href}catch(o){topW=lastTopW;break}// Is ajs | sublime  present.
if (!topW.ayads && !topW.sublime) {
    document.write('<scr' + 'ipt type="text/javascript" id="sublimeRedirectPreview" src="https://ads.ayads.co/ajs.php?zid=803"></scr' + 'ipt>');
}