Last active
March 26, 2020 22:29
-
-
Save xurizaemon/0772209bf053d1c977fcb14ad8d5263a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
(function() { | |
function loadIt() { | |
console.log("DOM fully loaded and parsed"); | |
// Enter OutStream configuration options HERE // | |
var configParams = { | |
"width": 640, | |
"height": 360, | |
"k_pos": "after", | |
"k_placement": "a/middle", | |
"k_align": "center", | |
"k_label": "Ads by Scroll Media" | |
}; | |
// End OutStream configuration options // | |
var doc = top.window.document; | |
var as = doc.createElement('script'), | |
aT = '//video-ads-apex.rubiconproject.com/apex/18118/302292/1590572/203/apex.js?r=' + Math.random() * 10000000000000000; | |
as.type = 'text/javascript'; | |
as.src = aT; | |
as.async = true; | |
if (as.textContent) { | |
as.textContent = JSON.stringify(configParams); | |
} else { | |
as.innerText = JSON.stringify(configParams); | |
} | |
doc.body.appendChild(as); | |
} | |
if (document.readyState === "complete" || (document.readyState !== "loading" && !document.documentElement.doScroll)) { | |
loadIt(); | |
} else { | |
document.addEventListener("DOMContentLoaded", loadIt); | |
} | |
}()); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment