blob: ca5741fc6da4f3b53f23dd640425e29eec2437d9 [file] [log] [blame]
<section id=content>
<script src="/res/js/cm/codemirror.js"></script>
<script src="/res/js/cm/clike.js"></script>
<pre>
<textarea spellcheck=false name='code' id='code' rows='15' cols='100'>{{.Code}}</textarea>
</pre>
<input type='button' value='Run' id='run'>
<a href='{{if .Hash}}/c/{{.Hash}}{{end}}' target=_blank id=permalink>Share</a>
<input type='button' value='Embed' id='embedButton' disabled/>
<input type="text" value="" id="embed" readonly style="display:none;">
<p>
<img touch-action='none' class='zoom' id='img' src='{{if .Hash}}/i/{{.Hash}}.png{{end}}'/>
</p>
<p id='zoomHex'></p>
<h2>Warnings and Errors</h2>
<pre><code id='output'></code></pre>
<h2>Runtime output</h2>
<pre id='stdout'></pre>
</section>