Last active
August 29, 2015 14:01
-
-
Save buritica/07a55eb225f268f668e8 to your computer and use it in GitHub Desktop.
Glossy JSON Spec
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> | |
var namespace = 'onswipe'; | |
var message = JSON.stringify({ | |
view_url: '%%VIEW_URL_UNESC%%', | |
click_url: '%%CLICK_URL_UNESC%%%%DEST_URL%%', | |
cachebuster: '%%CACHEBUSTER%%', | |
glossy_id: 'my_id', | |
type: 'glossy', | |
pixels: [] | |
}); | |
window.top.postMessage(namespace + '/' + message, '*'); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As you can see, the new updated version includes a namespace, that is the only difference with v0.1 of glossy JSON