JSFiddle - React, Tailwind, and code Playground

by Chase Wilson

JavaScript

var exports = mootools = {};
var head = $$('head')[0];
var mootoolize = function(text){
    var script = new Element('script',{
        text: '(function(exports){' + text + '})(mootools);'
    }).inject(head);
    console.log(exports);
}

window.addEvent('domready',function(){
    var SomeFile = new IFrame({
        src:'https://raw.github.com/gist/1052974/SomeFile.html',
        events:{
            load: function(){
                child = window.frames[0];
                console.dir(child);
            }
        }
    }).inject(head);
    
});