Skip to content

Instantly share code, notes, and snippets.

@vilmibm
Created January 22, 2012 21:09
Show Gist options
  • Save vilmibm/1658824 to your computer and use it in GitHub Desktop.
Save vilmibm/1658824 to your computer and use it in GitHub Desktop.
marimo writeCapture widget
<script>
// add now so ad can begin rendering
marimo.add_widget({
widget_prototype:'writecapture_widget',
id: "some_ad",
html: '<script src="/my/ad/server.js"></script>',
});
</script>
<!-- ... -->
<div id="some_ad"></div>
<script>
// this will trigger the sanitized ad to be painted to the DOM
marimo.emit('some_ad_ready');
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment