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

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

Issue 240773003: First pass at workspaces. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
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/templates/titlebar.html ('k') | experimental/webtry/webtry.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/webtry/templates/workspace.html
diff --git a/experimental/webtry/templates/workspace.html b/experimental/webtry/templates/workspace.html
new file mode 100644
index 0000000000000000000000000000000000000000..3d7003512f48e1586ef5109187fc6acb58b0875b
--- /dev/null
+++ b/experimental/webtry/templates/workspace.html
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Workspace</title>
+ <meta charset='utf-8' />
+ <link rel="stylesheet" href="/css/" type="text/css" media="screen">
+</head>
+<body>
+ {{template "titlebar.html"}}
+ <section id=content>
+ <h1>Create</h1>
+{{if .Name}}
+ <pre><code>#include "SkCanvas.h"
+
+void draw(SkCanvas* canvas) {
+ <textarea name='code' id='code' rows='15' cols='80'>{{.Code}}</textarea>
+}
+</code></pre>
+
+ <input type='button' value='Run' id='run'>
+
+ <p>Image appears here:</p>
+ <img id='img' src=''/>
+
+ <pre><code id='output'></code></pre>
+ </section>
+ <section id=tryHistory>
+ {{range .Tries}}
+ <div class=tries>
+ <a href="/c/{{.Hash}}">
+ <img width=64 height=64 src="/i/{{.Hash}}.png">
+ </a>
+ </div>
+ {{end}}
+ </section>
+
+ <script type='text/javascript' charset='utf-8'>
+ // Set the workspace name so run.js also updates the history.
+ var workspaceName = "{{.Name}}";
+ </script>
+ <script src="/js/run.js" type="text/javascript" charset="utf-8"></script>
+{{else}}
+ Create a new workspace:
+ <form action="." method="POST" accept-charset="utf-8">
+ <p><input type="submit" value="Create"></p>
+ </form>
+{{end}}
+ </section>
+</body>
+</html>
« no previous file with comments | « experimental/webtry/templates/titlebar.html ('k') | experimental/webtry/webtry.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698