Last active
August 10, 2018 07:56
-
-
Save dannysofftie/670736b463dcbb0323f65ac71af67cdf to your computer and use it in GitHub Desktop.
Embed code for Tickles Ad Server.
This file contains hidden or 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> | |
(function () { | |
var script = document.getElementsByTagName('script')[0] | |
var t = document.createElement('script') | |
t.src = 'https://adxserver.herokuapp.com/resources/js/tickles-main.js' | |
t.async = true | |
t.defer = true | |
script.parentNode.insertBefore(t, script) | |
window.addEventListener('load', function () { | |
// You will paste this code snippet at the bottom of every page you want | |
// to feature Tickles ads. Replace 'element-id' with the id of element | |
// to place Tickles ads. Allowed element sizes are either, | |
// 800 x 120 or 120 x 540 (width x height) respectively | |
new Tickles().init('element-id') | |
}) | |
})() | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment