Last active
July 30, 2023 09:57
-
-
Save xem/91a7875060c05ed80632 to your computer and use it in GitHub Desktop.
miniCodeEditor in 162b (Fx, Chrome, Opera)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body oninput='f.srcdoc=t2[v="value"]+"<script>"+t0[v]+"</script><style>"+t1[v]'onload='for(i=3;i--;)e.innerHTML+="<textarea id=t"+i+" rows=9>"'id=e><iframe id=f> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Demo: https://rawgit.com/xem/91a7875060c05ed80632/raw/c2b6f5a60b53cdbc01508214267175e9b4b5c319/index.html
For the record, the old version didn't have an id on the iframe because it only worked on Fx at that time:
http://xem.github.io/miniCodeEditor/minimal.html
Now that it works on Blink too, I guess we can trim it :)