-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.html
233 lines (228 loc) Β· 8.92 KB
/
index.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Find icon positions from a CSS sprite image</title>
<meta
name="Description"
content="This tool helps to find icon positions inside a CSS sprite sheet which you can use in background-position CSS property. You can use the generated styles in you CSS class."
/>
<meta
name="Keywords"
content="css sprite, sprite image, sprite sheet, icon position, background, position, generate css"
/>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
<link href="css/getspritexy-styles.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="css/jquery.Jcrop.min.css" type="text/css" />
</head>
<body class="no-filereader">
<div class="contents">
GetSpriteXY is a tool to get the CSS background positions from a CSS
sprite. This is favorite amoong web developers and can be useful for
anyone creating website using css sprites.
<p>A handly tool for web developers</p>
</div>
<div id="contents">
<div id="page-wrapper">
<div id="header">
<span class="page-title"><strong>GetSpriteXY π</strong></span>
|
<h1><a href="#" id="what-why">What, Why, How?</a></h1>
<span><img src="images/bell.png" /></span>
<span class="bookmark"
>Bookmark our <b>NEW url</b> https://getspritexy.netlify.com/</span
>
<div class="hidden-dom" id="helper-window">
Q: What does this site do ? <br />
A: Using this site you can find the co-ordinates of the icons inside
a CSS sprite. <br /><br />
Q: How to use it? <br />
A: Upload your CSS sprite. The uploaded sprite will be displayed.
Use mouse to select an icon. CSS will generated. Copy and use it in
your CSS class.<br /><br />
Icons credit<br />
<a href="http://www.gnome.org/" target="_blank"
>Gnome Desktop Project</a
><br /><a href="http://p.yusukekamiyamane.com/" target="_blank"
>Yusuke Kamiyamane</a
><br /><a
href="https://ar.al/scribbles/fork-me-on-github-retina-ribbons/"
target="_blank"
>Aral Balkan</a
><br />
<!--<a href="change-log.html">Change log</a>-->
<span id="close-helper">X</span>
</div>
</div>
<form action="" method="post" enctype="multipart/form-data">
<div id="file-upload-container">
<label for="sprite-upload"
>Click here to use your CSS sprite image
</label>
<input type="file" id="sprite-upload" name="sprite-upload" />
</div>
</form>
<div id="settings-panel">
<div id="change-background-container">
<span id="color-section-title">Change background color</span>
<span class="background-colors selected" id="color-dark"></span>
<span class="background-colors" id="color-white"></span>
<span class="background-colors" id="color-red"></span>
<span class="background-colors" id="color-green"></span>
<span class="background-colors" id="color-blue"></span>
<span class="transparent-bg" id="transparent-bg"></span>
</div>
</div>
<div id="work-area">
<div id="image-container">
<img src="images/base-sprite.png" id="loaded-sprite-image" />
</div>
<div id="info-panel" class="is-right-aligned">
<div id="info-panel-title-bar">
<span id="display-panel" class="hidden-dom">Hide</span>
<span id="move-panel-left" title="Move this panel to left"></span>
<span
id="move-panel-right"
title="Move this panel to right"
></span>
</div>
<div id="info-panel-contents">
<span> X = <span id="selection-x" class="info-data"></span></span>
<span> Y = <span id="selection-y" class="info-data"></span></span
><br />
<span>
Width = <span id="selection-width" class="info-data"></span
></span>
<span>
Height = <span id="selection-height" class="info-data"></span
></span>
<div id="user-backgrounds-container">
<div class="user-background">
<label for="sytle-output">Generated style</label>
<textarea id="style-output"></textarea>
<br />
<br />
<span>Generated sprite image</span>
<div id="generated-sprite-div-wrapper">
<div
class="background-image"
id="generated-sprite-div"
></div>
</div>
</div>
<!-- End of .user-background -->
<form id="feedback" name="feedback" method="POST" netlify>
<h2 style="color: chartreuse;">3 second feeback</h2>
<p>Did you like this site?</p>
<div>
<label
><input type="radio" name="like" value="yes" checked />π
Yes </label
><br />
<label
><input type="radio" name="like" value="no" />No, I don't
like ππ₯</label
>
<p>
<label
><small
>Please write something good or
<strike>bad</strike> not so good :) </small
><br />
<input
style="width: 100%;"
type="text"
name="feedback"
placeholder="(optional - anything you want to tell me)"
/></label>
</p>
<div>
<button style="padding: 5px;" type="submit">
π Submit
</button>
</div>
</div>
</form>
</div>
<!-- End of user-backgrounds-container -->
</div>
<!-- End of info-panel-contents -->
<!-- getspritexy2 -->
</div>
</div>
<div id="footer">
<span id="version">v1.0.e14ee9e ♣ </span
><span
>Crafted by
<a href="https://kiranvj.com" class="crafted"
>Kiran Paul V.J.</a
></span
>
<span>♣ </span> Fork
<a class="crafted" href="https://github.com/kiranvj/GetSpriteXY.com"
>here</a
>
<p style="padding-top: 10px;">
<span style="font-size: 3em;">πΊ</span><br />Peace π€
</p>
<!-- Start of WebFreeCounter Code -->
<a href="https://www.webfreecounter.com/" target="_blank"
><img
src="https://www.webfreecounter.com/hit.php?id=gkxxqk&nd=6&style=2"
border="0"
alt="hit counter"
/></a>
<!-- End of WebFreeCounter Code -->
</div>
</div>
<a href="https://github.com/kiranvj/GetSpriteXY.com"
><img
style="
position: absolute;
z-index: 5001;
top: 0;
right: 0;
border: 0;
width: 149px;
height: 149px;
"
src="images/[email protected]"
alt="Fork me on GitHub"
/></a>
</div>
<div id="no-support-message">
Your browser does not support HTML5 features needed to function this
website properly.
<p>
Please use latest Firefox, Chrome, Safari or any other forward thinking
browsers.
</p>
</div>
<script type="text/javascript" src="js/lib/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="js/lib/jquery.Jcrop.min.js"></script>
<script type="text/javascript" src="js/get-sprite-xy.js?v=38"></script>
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
(i[r] =
i[r] ||
function () {
(i[r].q = i[r].q || []).push(arguments);
}),
(i[r].l = 1 * new Date());
(a = s.createElement(o)), (m = s.getElementsByTagName(o)[0]);
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m);
})(
window,
document,
'script',
'//www.google-analytics.com/analytics.js',
'ga'
);
ga('create', 'UA-33065764-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>