Last Updated: February 23, 2020
·
601
· becevka

One line JavaScript IDE in browser

It is not IDE actually, but at least you can edit and run your JavaScript code

data:text/html,<title>DoJS</title><style type="text/css">body{background:rgb(39,40,34)} .editor{font-size: 16px; position:absolute;top:0;right:0;bottom:0;left:0;margin-top:35px;} button{top:0; background:rgb(47,49,41); color:rgb(241,241,241)}</style><button id="run">Run</button><div id="e" class="editor"></div><script src="https://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/javascript");var r= document.getElementById("run"); r.addEventListener("click", function(){eval(e.getValue())})</script>

or

https://gist.github.com/becevka/6182911

Inspired by https://coderwall.com/p/lhsrcq