Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Unified Diff: experimental/webtry/templates/content.html

Issue 246823004: Factor out common template code. Send stdout back to web page. (Closed) Base URL: https://skia.googlesource.com/skia.git@clickhistory
Patch Set: rebase Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « experimental/webtry/js/run.js ('k') | experimental/webtry/templates/iframe.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « experimental/webtry/js/run.js ('k') | experimental/webtry/templates/iframe.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698