JSFiddle - React, Tailwind, and code Playground

by adamschwartz

HTML

<a href="
javascript:(function(){
    var w = window.open('about:blank'), 
        s = w.document;
    s.write('<!DOCTYPE html><html><head><title>Source of ' + location.href + '</title><meta name=\'viewport\' content=\'width=device-width\' /></head><body></body></html>');
    s.close();
 
    var pre = s.body.appendChild(s.createElement('pre'));
    pre.style.overflow = 'auto';
    pre.style.whiteSpace = 'pre-wrap';
    pre.appendChild(s.createTextNode('<ht' + 'ml>' + document.documentElement.innerHTML + '</ht' + 'ml>'));
})();
">View Souce</a>

<br/>

<a href="//view-souce:http://jsfiddle.net/adamschwartz/TvkqS/show/light/" target="_blank">View Souce</a>

<br/>

<a class="button" onclick="window.location=&quot;view-source:&quot; + window.location.href">Primitive View Source</a>