Created
October 19, 2017 08:17
-
-
Save arafathusayn/4b3d6b509f5dce2029a94336c23d6987 to your computer and use it in GitHub Desktop.
Wanna run your Javascript snippets on your mobile offline? Save this bookmarklet in your mobile browser bookmarks. You may navigate to about:blank first to get a blank page to run the bookmarklet on it. Start typing your bookmark name which contains the 'javascript:' code below as URL in your address bar and tap on it. Then start playing!
This file contains hidden or 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
| javascript:document.body.innerHTML=`<div style='border-radius:10px;height:290px;width:600px;margin:auto;padding:10px;background-color:green;'> <textarea style='border:1px solid green;border-radius:5px;margin:auto;padding:5px;width:600px;height:290px;' onkeyup='(new Function(this.value.trim()))()' onfocus='(new Function(this.value.trim()))()'>\n\n\n\n\n\n\n\ndocument.getElementById('r').innerText = "Hello!"</textarea> <div id='r' style='font-size:24px;font-weight:bold;padding:30px;margin-top:30px;text-align:center;border:2px solid green;' ></div> </div>` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment