Created
December 19, 2016 10:06
-
-
Save hasantayyar/e93648159c6386ccfa936cc6fc60e86b to your computer and use it in GitHub Desktop.
we transfer creatives
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
<style> | |
*{ padding:0;margin:0;border:0; } | |
</style> | |
<script> | |
function wallpaper(data){ | |
var img = data.ads.ad[0].creative[0].media; | |
var w = data.ads.ad[0].creative[0].width; | |
var h = data.ads.ad[0].creative[0].height; | |
img = img.match(/\<file\>(.*)\<\/file\>/); | |
img = img[1].replace("[SIZE]", w + "x" + h); | |
console.log(img); | |
document.write("<img src='" + img + "' />") | |
} | |
</script> | |
<script src="https://wtplus.wetransfer.com/?auid=34333&c.flash=no&c.newsite=yes&c.html=yes&c.plus=no&c.state=d&jsonp=wallpaper"></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment