Create a gist now

Instantly share code, notes, and snippets.

What would you like to do? Future of 3PJS
<div class="container">
<style scoped>
p { color: red; }
<p>This paragraph has red text.<p>
<p>This paragraph does not.</p>
function wrapInIframe( iframe, content ) {
var win = iframe.contentWindow;
var doc;
if (!win) {
throw("Failed to wrap content in iFrame: \
please ensure the target iFrame is appended \
to the document before writing");
doc = win.document;;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment