Skip to content

Instantly share code, notes, and snippets.

@tomer
Created August 21, 2014 14:37
Show Gist options
  • Save tomer/a9145cdbd85dc8e1d755 to your computer and use it in GitHub Desktop.
Save tomer/a9145cdbd85dc8e1d755 to your computer and use it in GitHub Desktop.
Untitled
.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;}
<!-- 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>
var linkify = {
input = function(input) {
this.content = input;
}
toString : function() {
return this.content;
}
}
{"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