Index: experimental/webtry/templates/content.html |
diff --git a/experimental/webtry/templates/content.html b/experimental/webtry/templates/content.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..77e68e3d49df4043ff4c9829edfb67a197b5a9e6 |
--- /dev/null |
+++ b/experimental/webtry/templates/content.html |
@@ -0,0 +1,25 @@ |
+ |
+<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 id='img' src='{{if .Hash}}/i/{{.Hash}}.png{{end}}'/> |
+ </p> |
+ |
+ <h2>Errors</h2> |
+ <pre><code id='output'></code></pre> |
+ <h2>Runtime output</h2> |
+ <pre id='stdout'></pre> |
+ |
+</section> |