OLD | NEW |
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> |
OLD | NEW |