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

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

Issue 235323006: permalinks working (Closed) Base URL: https://skia.googlesource.com/skia.git@sql
Patch Set: fix sql formating 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/setup/continue_install ('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/index.html
diff --git a/experimental/webtry/templates/index.html b/experimental/webtry/templates/index.html
index 00a245e067c6735e583e8d83fce3cb08ba54fc65..3e0bd4243259f922d30ebef9704ea40fe4d33a39 100644
--- a/experimental/webtry/templates/index.html
+++ b/experimental/webtry/templates/index.html
@@ -25,14 +25,7 @@
<pre><code>#include "SkCanvas.h"
void draw(SkCanvas* canvas) {
- <textarea name='code' id='code' rows='15' cols='80'>SkPaint p;
-p.setColor(SK_ColorRED);
-p.setAntiAlias(true);
-p.setStyle(SkPaint::kStroke_Style);
-p.setStrokeWidth(10);
-
-canvas->drawLine(20, 20, 100, 100, p);
-</textarea>
+ <textarea name='code' id='code' rows='15' cols='80'>{{.UserCode}}</textarea>
}
</code></pre>
@@ -77,6 +70,7 @@ canvas->drawLine(20, 20, 100, 100, p);
} else {
img.src = '';
}
+ window.history.pushState(null, null, "/c/" + body.hash);
}
function codeError(e) {
« no previous file with comments | « experimental/webtry/setup/continue_install ('k') | experimental/webtry/webtry.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698