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

Side by Side Diff: experimental/webtry/templates/workspace.html

Issue 242613005: iframe (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Workspace</title> 4 <title>Workspace</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 <section id=content>
11 <h1>Create</h1>
12 {{if .Name}} 11 {{if .Name}}
13 <pre><code>#include "SkCanvas.h" 12 <pre><code>#include "SkCanvas.h"
14 13
15 void draw(SkCanvas* canvas) { 14 void draw(SkCanvas* canvas) {
16 <textarea name='code' id='code' rows='15' cols='80'>{{.Code}}</textarea> 15 <textarea spellcheck=false name='code' id='code' rows='15' cols='80'>{{.Code}} </textarea>
17 } 16 }
18 </code></pre> 17 </code></pre>
19 18
20 <input type='button' value='Run' id='run'> 19 <input type='button' value='Run' id='run'>
21 20
22 <p>Image appears here:</p> 21 <p>Image appears here:</p>
23 <img id='img' src=''/> 22 <img id='img' src=''/>
24 23
25 <pre><code id='output'></code></pre> 24 <pre><code id='output'></code></pre>
26 </section> 25 </section>
27 <section id=tryHistory> 26 <section id=tryHistory>
28 {{range .Tries}} 27 {{range .Tries}}
29 <div class=tries> 28 <div class=tries>
30 <a href="/c/{{.Hash}}"> 29 <a href="/c/{{.Hash}}">
31 <img width=64 height=64 src="/i/{{.Hash}}.png"> 30 <img width=64 height=64 src="/i/{{.Hash}}.png">
32 </a> 31 </a>
33 </div> 32 </div>
34 {{end}} 33 {{end}}
35 </section> 34 </section>
36 35
37 <script type='text/javascript' charset='utf-8'> 36 <script type='text/javascript' charset='utf-8'>
38 // Set the workspace name so run.js also updates the history. 37 // Set the workspace name so run.js also updates the history.
39 var workspaceName = "{{.Name}}"; 38 var workspaceName = "{{.Name}}";
40 </script> 39 </script>
41 <script src="/js/run.js" type="text/javascript" charset="utf-8"></script> 40 <script src="/js/" type="text/javascript" charset="utf-8"></script>
42 {{else}} 41 {{else}}
42 <h1>Create</h1>
43 Create a new workspace: 43 Create a new workspace:
44 <form action="." method="POST" accept-charset="utf-8"> 44 <form action="." method="POST" accept-charset="utf-8">
45 <p><input type="submit" value="Create"></p> 45 <p><input type="submit" value="Create"></p>
46 </form> 46 </form>
47 {{end}} 47 {{end}}
48 </section> 48 </section>
49 </body> 49 </body>
50 </html> 50 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698