Skip to content

Instantly share code, notes, and snippets.

@stolksdorf
Last active August 22, 2021 18:21
Show Gist options
  • Select an option

  • Save stolksdorf/258774eaa531b52aae4b269da1009b0c to your computer and use it in GitHub Desktop.

Select an option

Save stolksdorf/258774eaa531b52aae4b269da1009b0c to your computer and use it in GitHub Desktop.
js pad - a bookmarklet for js fiddling

js_pad

a micro javascript sandbox to play around in

Drag this link to your bookmark bar. [js_pad](data:text/html,<title>js_pad</title><style>html{background:rgb(63,63,63);color:rgb(240,239,208);font-size:1.5em;font-family:Monospace}</style>)

readable code

data:text/html,<html contenteditable onkeyup="try{
		this.style.color='rgb(240,239,208)';
		console.clear();
		eval(this.innerText);
	}catch(err){
		this.style.color='rgb(223,175,143)';
		console.log(err);
	}">
	<title>js_pad</title>
	<style>
		html{
			background:rgb(63,63,63);
			color:rgb(240,239,208);
			font-size:1.5em;
			font-family:Monospace
		}
	</style>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment