Skip to content

Instantly share code, notes, and snippets.

@buger
Created April 3, 2012 13:15
Show Gist options
  • Select an option

  • Save buger/2291893 to your computer and use it in GitHub Desktop.

Select an option

Save buger/2291893 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
<script type="text/javascript">
var frame = document.createElement('iframe');
frame.src = "http://localhost:8000";
setTimeout(function(){
document.getElementsByTagName('body')[0].appendChild(frame);
}, 0);
var receiveMessage = function(evt){
var data = evt.data;
if (data.indexOf('uuid:') == 0) {
var uuid = data.substring(5, data.length);
console.log(uuid);
}
}
window.addEventListener("message", receiveMessage, false);
</script>
{"view":"split","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment