forked from draeton/stitches
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstitches.html
44 lines (43 loc) · 1.85 KB
/
stitches.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!-- templates -->
<script type="text/html" id="stitches_tmpl">
<div class="stitches">
<div class="drawer">
<form class="cabinet">
<span>Choose File</span>
<input type="file" class="files" multiple>
</form>
<a href="javascript:;" class="open-options">Options</a>
</div>
<div class="dropbox">
<span class="droplabel">Drop images here...</span>
<ul class="filelist"></ul>
</div>
<div class="options">
<a href="javascript:;" class="close-options">×</a>
<h2>options</h2>
<p>Prefix before CSS classes in stylesheet<br>
<label><input name="prefix" type="text" required></label>
</p>
<p>Padding between images in pixels<br>
<label>0 <input name="padding" type="range" min="0" max="20"> 20</label>
</p>
<p>Include sprite in stylesheet as Data URI<br>
<label>Yes <input name="dataURI" type="radio" value="true"></label>
<label>No <input name="dataURI" type="radio" value="false"></label>
</p>
</div>
<div class="buttons">
<a href="javascript:;" class="disabled generate">Generate</a>
<a href="javascript:;" class="disabled dlsprite" target=_blank>Sprite »</a>
<a href="javascript:;" class="disabled dlstylesheet" target=_blank>Stylesheet »</a>
<a href="javascript:;" class="disabled clear">Clear Images</a>
</div>
</div>
</script>
<script type="text/html" id="stitches_icon_tmpl">
<li>
<span class="icon"><img src="<%=image.src%>" alt="<%=name%>" /></span>
<span class="name"><%= name %></span>
<a href="javascript:void(0)" class="remove">remove</a>
</li>
</script>