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

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

Issue 623173004: rework webtry css with compass and bootstrap (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 1
2 <section id=content> 2 <section id=content>
3 3
4 <template id=sourcesTemplate> 4 <template id="sourcesTemplate">
5 <button id="" class=source><img width=64 height=64 src=''></button> 5 <button id="" class=source><img width=64 height=64 src=''></button>
6 </template> 6 </template>
7 <input type="checkbox" id="enableSource" data-id="{{.Source}}"> Use an input b itmap. 7
8 <br> 8 <div id="inputBitmapEnable">
9 <button id="selectedSource"></button> 9 <input type="checkbox" id="enableSource" data-id="{{.Source}}">
10 <pre id="sourceCode">SkBitmap source;</pre> 10 <label for="enableSource">Use an input bitmap</label>
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> 11 </div>
20 12
21 <pre> 13 <button id="selectedSource"></button>
22 <textarea spellcheck=false name='code' id='code' rows='15' cols='100'>{{.Cod e}}</textarea>
23 </pre>
24 14
25 <input type='button' value='Run' id='run'> 15 <pre id="sourceCode">SkBitmap source;</pre>
26 <a href='{{if .Hash}}/c/{{.Hash}}{{end}}' target=_blank id=permalink>Share</a>
27 16
28 <input type='button' value='Embed' id='embedButton' disabled/> 17 <div class="well" id="chooseSource">
29 <input type="text" value="" id="embed" readonly style="display:none;"> 18 <div class="panel panel-primary">
30 <br> 19 <div class="panel-heading">
20 <h3 class="panel-title">
21 Choose an existing image to use as an input bitmap, or upload a new on e below.
22 </h3>
23 </div>
24 <div class="panel-body" id="chooseList">
25 </div>
26 </div>
27 <div class="panel panel-default">
28 <div class="panel-heading">
29 <div class="panel-title">
30 Upload a new image
31 </div>
32 </div>
33 <div class="panel-body">
34 <form action="/sources/" method="post" accept-charset="utf-8" enctype="m ultipart/form-data">
35 <div class="form-group">
36 <label for="upload">File input</label>
37 <input type="file" accept="image/*" name="upload" value="" id="uploa d">
38 </div>
39 <button class="btn btn-default" type="submit">Upload Image</button>
40 </form>
41 </div>
42 </div>
43 </div>
44
45 <textarea spellcheck=false name='code' id='code' rows='15' cols='100'>{{.Code} }</textarea>
46
47 <div class="action-buttons">
48 <button class="btn btn-primary btn-lg" id='run'>Run</button>
49 <a class="btn btn-default btn-lg" href='{{if .Hash}}/c/{{.Hash}}{{end}}' {{i f not .Hash}}style="display: none;"{{end}} target=_blank id="permalink">Share</a >
50
51 <button class="btn btn-default btn-lg" id='embedButton' {{if not .Hash}}styl e="display:none;"{{end}}/>Embed</button>
52 <input type="text" value="" id="embed" readonly style="display:none;">
53 </div>
31 54
32 <p> 55 <p>
33 <img touch-action='none' class='zoom' id='img' src='{{if .Hash}}/i/{{.Hash}}. png{{end}}'/> 56 <img touch-action='none' class='zoom' id='img' src='{{if .Hash}}/i/{{.Hash}}. png{{end}}'/>
34 </p> 57 </p>
35 <p id='zoomHex'></p> 58 <p id='zoomHex'></p>
36 59
37 <h2>Warnings and Errors</h2> 60 <h2>Warnings and Errors</h2>
38 <pre><code id='output'></code></pre> 61 <pre class="fiddle-output"><code id='output'></code></pre>
39 <h2>Runtime output</h2> 62 <h2>Runtime output</h2>
40 <pre id='stdout'></pre> 63 <pre class="fiddle-output" id='stdout'></pre>
41 64
42 </section> 65 </section>
OLDNEW
« no previous file with comments | « experimental/webtry/res/webtry/sass/webtry.scss ('k') | experimental/webtry/templates/footercommon.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698