Last active
December 19, 2015 08:49
-
-
Save flesler/5928649 to your computer and use it in GitHub Desktop.
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
<script type="text/javascript"> | |
function encode() { | |
var v = document.getElementById('t').value; | |
v = encodeURIComponent(v); | |
document.getElementById('r').innerHTML = v; | |
} | |
</script> | |
<input type="text" id="t" placeholder="Put your data here..." /> | |
<button onclick="encode()">Encode</button> | |
<p id="r"></p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment