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

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

Issue 294903017: Add the ability to select a source image to use in the code. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « experimental/webtry/result.cpp ('k') | experimental/webtry/templates/template.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 <section id=content> 2 <section id=content>
3
4 <template id=sourcesTemplate>
5 <button id="" class=source><img width=64 height=64 src=''></button>
6 </template>
7 <input type="checkbox" id="enableSource" data-id="{{.Source}}"> Use an input b itmap.
8 <br>
9 <button id=selectedSource></button>
10 <pre id=sourceCode>SkBitmap source;</pre>
11 <div id=chooseSource>
12 Choose an image below or upload a new one to use as an input bitmap.
13 <div id="chooseList">
14 </div>
15 <form action="/sources/" method="post" accept-charset="utf-8" enctype="multi part/form-data">
16 <input type="file" accept="image/*" name="upload" value="" id="upload">
17 <input type="submit" value="Add Image">
18 </form>
19 </div>
20
3 <pre> 21 <pre>
4 <textarea spellcheck=false name='code' id='code' rows='15' cols='100'>{{.Cod e}}</textarea> 22 <textarea spellcheck=false name='code' id='code' rows='15' cols='100'>{{.Cod e}}</textarea>
5 </pre> 23 </pre>
6 24
7 <input type='button' value='Run' id='run'> 25 <input type='button' value='Run' id='run'>
8 <a href='{{if .Hash}}/c/{{.Hash}}{{end}}' target=_blank id=permalink>Share</a> 26 <a href='{{if .Hash}}/c/{{.Hash}}{{end}}' target=_blank id=permalink>Share</a>
9 27
10 <input type='button' value='Embed' id='embedButton' disabled/> 28 <input type='button' value='Embed' id='embedButton' disabled/>
11 <input type="text" value="" id="embed" readonly style="display:none;"> 29 <input type="text" value="" id="embed" readonly style="display:none;">
30 <br>
12 31
13 <p> 32 <p>
14 <img touch-action='none' class='zoom' id='img' src='{{if .Hash}}/i/{{.Hash}}. png{{end}}'/> 33 <img touch-action='none' class='zoom' id='img' src='{{if .Hash}}/i/{{.Hash}}. png{{end}}'/>
15 </p> 34 </p>
16 <p id='zoomHex'></p> 35 <p id='zoomHex'></p>
17 36
18 <h2>Warnings and Errors</h2> 37 <h2>Warnings and Errors</h2>
19 <pre><code id='output'></code></pre> 38 <pre><code id='output'></code></pre>
20 <h2>Runtime output</h2> 39 <h2>Runtime output</h2>
21 <pre id='stdout'></pre> 40 <pre id='stdout'></pre>
22 41
23 </section> 42 </section>
OLDNEW
« no previous file with comments | « experimental/webtry/result.cpp ('k') | experimental/webtry/templates/template.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698