Last active
April 20, 2017 21:56
-
-
Save walia/07062e6a2d93b977b700bb9ae4eba7c6 to your computer and use it in GitHub Desktop.
MREC mraid ad
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 src="mraid.js"></script> | |
| <script type="text/javascript"> | |
| function setupAd(){ | |
| var image = document.getElementById('Apple News_Vox_Media_MREC_iPhone'); | |
| image.addEventListener('click', function(){ | |
| mraid.open('https://theverge.com'); | |
| }); | |
| } | |
| if(mraid.getState() === 'loading') { | |
| mraid.addEventListener('ready', setupAd); | |
| } else { | |
| setupAd(); | |
| } | |
| </script> | |
| <div> | |
| <img id="Apple News_Vox_Media_MREC_iPhone" | |
| width="300" height="250" | |
| src="https://dl.dropbox.com/s/yxs0zb5nt1wnt2w/colony-900-750%403x.png" | |
| srcset="https://dl.dropbox.com/s/yxs0zb5nt1wnt2w/colony-900-750%403x.png 3x, | |
| https://dl.dropbox.com/s/q1j9zxnu3lrl83g/colony-900-750%402x.png 2x, | |
| https://dl.dropbox.com/s/34z9ngj2pxf1ii0/colony-900-750.png 1x"/> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
<3 https://widget.mixpo.com/script/mraid/