Created
August 21, 2014 14:37
-
-
Save tomer/a9145cdbd85dc8e1d755 to your computer and use it in GitHub Desktop.
Untitled
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
.field { | |
border: 1px solid silver; | |
min-height: 2em; | |
width: 50%; | |
display: inline-block; | |
font-size: 100%; | |
margin: 0; | |
padding: 0; | |
} | |
#input { width: 99%; border: none; outline: none;} |
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
<!-- content to be placed inside <body>…</body> --> | |
<div class="field"> | |
<textarea id="input"Input"></textarea></div> | |
<input type="button" value="Load" onClick="linkify.input=(document.getElementById('input').value;" /> | |
<input type="button" value="Execute" onClick="document.getElementById('output').textContent = linkify" /> | |
<div id="output" class="field"></div> |
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
var linkify = { | |
input = function(input) { | |
this.content = input; | |
} | |
toString : function() { | |
return this.content; | |
} | |
} |
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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"javascript"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment