skia2/experimental/webtry/templates/content.html
commit-bot@chromium.org 3dbcb10e75 Display the color at a point.
BUG=skia:
R=mtklein@google.com

Author: jcgregorio@google.com

Review URL: https://codereview.chromium.org/261533006

git-svn-id: http://skia.googlecode.com/svn/trunk@14494 2bbb7eff-a529-9590-31e7-b0007b416f81
2014-05-01 12:54:25 +00:00

27 lines
707 B
HTML

<section id=content>
<pre><code>#include "SkCanvas.h"
void draw(SkCanvas* canvas) {
<textarea spellcheck=false name='code' id='code' rows='15' cols='80'>{{.Code}}</textarea>
}
</code></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 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>