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

Side by Side Diff: experimental/webtry/templates/index.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 unified diff | Download patch
« no previous file with comments | « experimental/webtry/templates/iframe.html ('k') | experimental/webtry/templates/template.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Skia WebTry</title> 4 <title>Skia WebTry</title>
5 <meta charset='utf-8' /> 5 <meta charset='utf-8' />
6 <link rel="stylesheet" href="/css/" type="text/css" media="screen"> 6 <link rel="stylesheet" href="/css/" type="text/css" media="screen">
7 </head> 7 </head>
8 <body> 8 <body>
9 {{template "titlebar.html"}} 9 {{template "titlebar.html"}}
10 <section id=content> 10 {{template "content.html" .}}
11 <pre><code>#include "SkCanvas.h"
12 11
13 void draw(SkCanvas* canvas) {
14 <textarea spellcheck=false name='code' id='code' rows='15' cols='80'>{{.UserCo de}}</textarea>
15 }
16 </code></pre>
17
18 <input type='button' value='Run' id='run'>
19
20 <input type='button' value='Embed' id='embedButton' disabled/>
21 <input type="text" value="" id="embed" readonly style="display:none;">
22
23 <p>
24 <img id='img' src='{{if .Hash}}/i/{{.Hash}}.png{{end}}'/>
25 </p>
26
27 <pre><code id='output'></code></pre>
28
29 </section>
30 <script type='text/javascript' charset='utf-8'> 12 <script type='text/javascript' charset='utf-8'>
31 // Not running in a workspace. 13 // Not running in a workspace.
32 var workspaceName = ""; 14 var workspaceName = "";
33 </script> 15 </script>
34 <script src="/js/" type="text/javascript" charset="utf-8"></script> 16 <script src="/js/" type="text/javascript" charset="utf-8"></script>
35 </body> 17 </body>
36 </html> 18 </html>
OLDNEW
« no previous file with comments | « experimental/webtry/templates/iframe.html ('k') | experimental/webtry/templates/template.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698