Skip to content

Instantly share code, notes, and snippets.

@buritica
Created February 13, 2014 17:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buritica/8979153 to your computer and use it in GitHub Desktop.
Save buritica/8979153 to your computer and use it in GitHub Desktop.
Glossy JSON format for Leaf
<script>
var message = JSON.stringify({
view_url: '%%VIEW_URL_UNESC%%',
click_url: '%%CLICK_URL_UNESC%%',
cachebuster: '%%CACHEBUSTER%%',
glossy_id: '{{replace me with glossy id}}',
type: 'glossy',
pixels: [
'{{replace me with pixel or delete me}}',
'{{replace me with pixel or delete me}}'
]
});
window.top.postMessage(message, '*');
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment