2dceedaa1e
Also add support for creating the <iframe /> code needed for embedding. This CL must land after https://codereview.chromium.org/240773003/ BUG=skia: R=mtklein@google.com Author: jcgregorio@google.com Review URL: https://codereview.chromium.org/242613005 git-svn-id: http://skia.googlecode.com/svn/trunk@14266 2bbb7eff-a529-9590-31e7-b0007b416f81
37 lines
902 B
HTML
37 lines
902 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Skia WebTry</title>
|
|
<meta charset='utf-8' />
|
|
<link rel="stylesheet" href="/css/" type="text/css" media="screen">
|
|
</head>
|
|
<body>
|
|
{{template "titlebar.html"}}
|
|
<section id=content>
|
|
<pre><code>#include "SkCanvas.h"
|
|
|
|
void draw(SkCanvas* canvas) {
|
|
<textarea spellcheck=false name='code' id='code' rows='15' cols='80'>{{.UserCode}}</textarea>
|
|
}
|
|
</code></pre>
|
|
|
|
<input type='button' value='Run' id='run'>
|
|
|
|
<input type='button' value='Embed' id='embedButton' disabled/>
|
|
<input type="text" value="" id="embed" readonly style="display:none;">
|
|
|
|
<p>
|
|
<img id='img' src=''/>
|
|
</p>
|
|
|
|
<pre><code id='output'></code></pre>
|
|
|
|
</section>
|
|
<script type='text/javascript' charset='utf-8'>
|
|
// Not running in a workspace.
|
|
var workspaceName = "";
|
|
</script>
|
|
<script src="/js/" type="text/javascript" charset="utf-8"></script>
|
|
</body>
|
|
</html>
|