Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
60 lines (39 sloc) 914 Bytes
<!doctype html>
<link rel="stylesheet" href="style.css">
<div class="container grid">
<textarea id="html"></textarea>
<textarea id="css"></textarea>
<div class="output grid">
<script src=""></script>
<script src="http://localhost:35729/livereload.js"></script>
(function() {
$('.grid').height( $(window).height() );
var contents = $('iframe').contents(),
body = contents.find('body'),
styleTag = $('<style></style>').appendTo(contents.find('head'));
$('textarea').keyup(function() {
var $this = $(this);
if ( $this.attr('id') === 'html') {
body.html( $this.val() );
} else {
// it had to be css
styleTag.text( $this.val() );
Something went wrong with that request. Please try again.