| 21627 |
kshitij.so |
1 |
/* Load this script using conditional IE comments if you need to support IE 7 and IE 6. */
|
|
|
2 |
|
|
|
3 |
window.onload = function() {
|
|
|
4 |
function addIcon(el, entity) {
|
|
|
5 |
var html = el.innerHTML;
|
|
|
6 |
el.innerHTML = '<span style="font-family: \'ElegantIcons\'">' + entity + '</span>' + html;
|
|
|
7 |
}
|
|
|
8 |
var icons = {
|
|
|
9 |
'arrow_up' : '!',
|
|
|
10 |
'arrow_down' : '"',
|
|
|
11 |
'arrow_left' : '#',
|
|
|
12 |
'arrow_right' : '$',
|
|
|
13 |
'arrow_left-up' : '%',
|
|
|
14 |
'arrow_right-up' : '&',
|
|
|
15 |
'arrow_right-down' : ''',
|
|
|
16 |
'arrow_left-down' : '(',
|
|
|
17 |
'arrow-up-down' : ')',
|
|
|
18 |
'arrow_up-down_alt' : '*',
|
|
|
19 |
'arrow_left-right_alt' : '+',
|
|
|
20 |
'arrow_left-right' : ',',
|
|
|
21 |
'arrow_expand_alt2' : '-',
|
|
|
22 |
'arrow_expand_alt' : '.',
|
|
|
23 |
'arrow_condense' : '/',
|
|
|
24 |
'arrow_expand' : '0',
|
|
|
25 |
'arrow_move' : '1',
|
|
|
26 |
'arrow_carrot-up' : '2',
|
|
|
27 |
'arrow_carrot-down' : '3',
|
|
|
28 |
'arrow_carrot-left' : '4',
|
|
|
29 |
'arrow_carrot-right' : '5',
|
|
|
30 |
'arrow_carrot-2up' : '6',
|
|
|
31 |
'arrow_carrot-2down' : '7',
|
|
|
32 |
'arrow_carrot-2left' : '8',
|
|
|
33 |
'arrow_carrot-2right' : '9',
|
|
|
34 |
'arrow_carrot-up_alt2' : ':',
|
|
|
35 |
'arrow_carrot-down_alt2' : ';',
|
|
|
36 |
'arrow_carrot-left_alt2' : '<',
|
|
|
37 |
'arrow_carrot-right_alt2' : '=',
|
|
|
38 |
'arrow_carrot-2up_alt2' : '>',
|
|
|
39 |
'arrow_carrot-2down_alt2' : '?',
|
|
|
40 |
'arrow_carrot-2left_alt2' : '@',
|
|
|
41 |
'arrow_carrot-2right_alt2' : 'A',
|
|
|
42 |
'arrow_triangle-up' : 'B',
|
|
|
43 |
'arrow_triangle-down' : 'C',
|
|
|
44 |
'arrow_triangle-left' : 'D',
|
|
|
45 |
'arrow_triangle-right' : 'E',
|
|
|
46 |
'arrow_triangle-up_alt2' : 'F',
|
|
|
47 |
'arrow_triangle-down_alt2' : 'G',
|
|
|
48 |
'arrow_triangle-left_alt2' : 'H',
|
|
|
49 |
'arrow_triangle-right_alt2' : 'I',
|
|
|
50 |
'arrow_back' : 'J',
|
|
|
51 |
'icon_minus-06' : 'K',
|
|
|
52 |
'icon_plus' : 'L',
|
|
|
53 |
'icon_close' : 'M',
|
|
|
54 |
'icon_check' : 'N',
|
|
|
55 |
'icon_minus_alt2' : 'O',
|
|
|
56 |
'icon_plus_alt2' : 'P',
|
|
|
57 |
'icon_close_alt2' : 'Q',
|
|
|
58 |
'icon_check_alt2' : 'R',
|
|
|
59 |
'icon_zoom-out_alt' : 'S',
|
|
|
60 |
'icon_zoom-in_alt' : 'T',
|
|
|
61 |
'icon_search' : 'U',
|
|
|
62 |
'icon_box-empty' : 'V',
|
|
|
63 |
'icon_box-selected' : 'W',
|
|
|
64 |
'icon_minus-box' : 'X',
|
|
|
65 |
'icon_plus-box' : 'Y',
|
|
|
66 |
'icon_box-checked' : 'Z',
|
|
|
67 |
'icon_circle-empty' : '[',
|
|
|
68 |
'icon_circle-slelected' : '\',
|
|
|
69 |
'icon_stop_alt2' : ']',
|
|
|
70 |
'icon_stop' : '^',
|
|
|
71 |
'icon_pause_alt2' : '_',
|
|
|
72 |
'icon_pause' : '`',
|
|
|
73 |
'icon_menu' : 'a',
|
|
|
74 |
'icon_menu-square_alt2' : 'b',
|
|
|
75 |
'icon_menu-circle_alt2' : 'c',
|
|
|
76 |
'icon_ul' : 'd',
|
|
|
77 |
'icon_ol' : 'e',
|
|
|
78 |
'icon_adjust-horiz' : 'f',
|
|
|
79 |
'icon_adjust-vert' : 'g',
|
|
|
80 |
'icon_document_alt' : 'h',
|
|
|
81 |
'icon_documents_alt' : 'i',
|
|
|
82 |
'icon_pencil' : 'j',
|
|
|
83 |
'icon_pencil-edit_alt' : 'k',
|
|
|
84 |
'icon_pencil-edit' : 'l',
|
|
|
85 |
'icon_folder-alt' : 'm',
|
|
|
86 |
'icon_folder-open_alt' : 'n',
|
|
|
87 |
'icon_folder-add_alt' : 'o',
|
|
|
88 |
'icon_info_alt' : 'p',
|
|
|
89 |
'icon_error-oct_alt' : 'q',
|
|
|
90 |
'icon_error-circle_alt' : 'r',
|
|
|
91 |
'icon_error-triangle_alt' : 's',
|
|
|
92 |
'icon_question_alt2' : 't',
|
|
|
93 |
'icon_question' : 'u',
|
|
|
94 |
'icon_comment_alt' : 'v',
|
|
|
95 |
'icon_chat_alt' : 'w',
|
|
|
96 |
'icon_vol-mute_alt' : 'x',
|
|
|
97 |
'icon_volume-low_alt' : 'y',
|
|
|
98 |
'icon_volume-high_alt' : 'z',
|
|
|
99 |
'icon_quotations' : '{',
|
|
|
100 |
'icon_quotations_alt2' : '|',
|
|
|
101 |
'icon_clock_alt' : '}',
|
|
|
102 |
'icon_lock_alt' : '~',
|
|
|
103 |
'icon_lock-open_alt' : '',
|
|
|
104 |
'icon_key_alt' : '',
|
|
|
105 |
'icon_cloud_alt' : '',
|
|
|
106 |
'icon_cloud-upload_alt' : '',
|
|
|
107 |
'icon_cloud-download_alt' : '',
|
|
|
108 |
'icon_image' : '',
|
|
|
109 |
'icon_images' : '',
|
|
|
110 |
'icon_lightbulb_alt' : '',
|
|
|
111 |
'icon_gift_alt' : '',
|
|
|
112 |
'icon_house_alt' : '',
|
|
|
113 |
'icon_genius' : '',
|
|
|
114 |
'icon_mobile' : '',
|
|
|
115 |
'icon_tablet' : '',
|
|
|
116 |
'icon_laptop' : '',
|
|
|
117 |
'icon_desktop' : '',
|
|
|
118 |
'icon_camera_alt' : '',
|
|
|
119 |
'icon_mail_alt' : '',
|
|
|
120 |
'icon_cone_alt' : '',
|
|
|
121 |
'icon_ribbon_alt' : '',
|
|
|
122 |
'icon_bag_alt' : '',
|
|
|
123 |
'icon_creditcard' : '',
|
|
|
124 |
'icon_cart_alt' : '',
|
|
|
125 |
'icon_paperclip' : '',
|
|
|
126 |
'icon_tag_alt' : '',
|
|
|
127 |
'icon_tags_alt' : '',
|
|
|
128 |
'icon_trash_alt' : '',
|
|
|
129 |
'icon_cursor_alt' : '',
|
|
|
130 |
'icon_mic_alt' : '',
|
|
|
131 |
'icon_compass_alt' : '',
|
|
|
132 |
'icon_pin_alt' : '',
|
|
|
133 |
'icon_pushpin_alt' : '',
|
|
|
134 |
'icon_map_alt' : '',
|
|
|
135 |
'icon_drawer_alt' : '',
|
|
|
136 |
'icon_toolbox_alt' : '',
|
|
|
137 |
'icon_book_alt' : '',
|
|
|
138 |
'icon_calendar' : '',
|
|
|
139 |
'icon_film' : '',
|
|
|
140 |
'icon_table' : '',
|
|
|
141 |
'icon_contacts_alt' : '',
|
|
|
142 |
'icon_headphones' : '',
|
|
|
143 |
'icon_lifesaver' : '',
|
|
|
144 |
'icon_piechart' : '',
|
|
|
145 |
'icon_refresh' : '',
|
|
|
146 |
'icon_link_alt' : '',
|
|
|
147 |
'icon_link' : '',
|
|
|
148 |
'icon_loading' : '',
|
|
|
149 |
'icon_blocked' : '',
|
|
|
150 |
'icon_archive_alt' : '',
|
|
|
151 |
'icon_heart_alt' : '',
|
|
|
152 |
'icon_star_alt' : '',
|
|
|
153 |
'icon_star-half_alt' : '',
|
|
|
154 |
'icon_star' : '',
|
|
|
155 |
'icon_star-half' : '',
|
|
|
156 |
'icon_tools' : '',
|
|
|
157 |
'icon_tool' : '',
|
|
|
158 |
'icon_cog' : '',
|
|
|
159 |
'icon_cogs' : '',
|
|
|
160 |
'arrow_up_alt' : '',
|
|
|
161 |
'arrow_down_alt' : '',
|
|
|
162 |
'arrow_left_alt' : '',
|
|
|
163 |
'arrow_right_alt' : '',
|
|
|
164 |
'arrow_left-up_alt' : '',
|
|
|
165 |
'arrow_right-up_alt' : '',
|
|
|
166 |
'arrow_right-down_alt' : '',
|
|
|
167 |
'arrow_left-down_alt' : '',
|
|
|
168 |
'arrow_condense_alt' : '',
|
|
|
169 |
'arrow_expand_alt3' : '',
|
|
|
170 |
'arrow_carrot_up_alt' : '',
|
|
|
171 |
'arrow_carrot-down_alt' : '',
|
|
|
172 |
'arrow_carrot-left_alt' : '',
|
|
|
173 |
'arrow_carrot-right_alt' : '',
|
|
|
174 |
'arrow_carrot-2up_alt' : '',
|
|
|
175 |
'arrow_carrot-2dwnn_alt' : '',
|
|
|
176 |
'arrow_carrot-2left_alt' : '',
|
|
|
177 |
'arrow_carrot-2right_alt' : '',
|
|
|
178 |
'arrow_triangle-up_alt' : '',
|
|
|
179 |
'arrow_triangle-down_alt' : '',
|
|
|
180 |
'arrow_triangle-left_alt' : '',
|
|
|
181 |
'arrow_triangle-right_alt' : '',
|
|
|
182 |
'icon_minus_alt' : '',
|
|
|
183 |
'icon_plus_alt' : '',
|
|
|
184 |
'icon_close_alt' : '',
|
|
|
185 |
'icon_check_alt' : '',
|
|
|
186 |
'icon_zoom-out' : '',
|
|
|
187 |
'icon_zoom-in' : '',
|
|
|
188 |
'icon_stop_alt' : '',
|
|
|
189 |
'icon_menu-square_alt' : '',
|
|
|
190 |
'icon_menu-circle_alt' : '',
|
|
|
191 |
'icon_document' : '',
|
|
|
192 |
'icon_documents' : '',
|
|
|
193 |
'icon_pencil_alt' : '',
|
|
|
194 |
'icon_folder' : '',
|
|
|
195 |
'icon_folder-open' : '',
|
|
|
196 |
'icon_folder-add' : '',
|
|
|
197 |
'icon_folder_upload' : '',
|
|
|
198 |
'icon_folder_download' : '',
|
|
|
199 |
'icon_info' : '',
|
|
|
200 |
'icon_error-circle' : '',
|
|
|
201 |
'icon_error-oct' : '',
|
|
|
202 |
'icon_error-triangle' : '',
|
|
|
203 |
'icon_question_alt' : '',
|
|
|
204 |
'icon_comment' : '',
|
|
|
205 |
'icon_chat' : '',
|
|
|
206 |
'icon_vol-mute' : '',
|
|
|
207 |
'icon_volume-low' : '',
|
|
|
208 |
'icon_volume-high' : '',
|
|
|
209 |
'icon_quotations_alt' : '',
|
|
|
210 |
'icon_clock' : '',
|
|
|
211 |
'icon_lock' : '',
|
|
|
212 |
'icon_lock-open' : '',
|
|
|
213 |
'icon_key' : '',
|
|
|
214 |
'icon_cloud' : '',
|
|
|
215 |
'icon_cloud-upload' : '',
|
|
|
216 |
'icon_cloud-download' : '',
|
|
|
217 |
'icon_lightbulb' : '',
|
|
|
218 |
'icon_gift' : '',
|
|
|
219 |
'icon_house' : '',
|
|
|
220 |
'icon_camera' : '',
|
|
|
221 |
'icon_mail' : '',
|
|
|
222 |
'icon_cone' : '',
|
|
|
223 |
'icon_ribbon' : '',
|
|
|
224 |
'icon_bag' : '',
|
|
|
225 |
'icon_cart' : '',
|
|
|
226 |
'icon_tag' : '',
|
|
|
227 |
'icon_tags' : '',
|
|
|
228 |
'icon_trash' : '',
|
|
|
229 |
'icon_cursor' : '',
|
|
|
230 |
'icon_mic' : '',
|
|
|
231 |
'icon_compass' : '',
|
|
|
232 |
'icon_pin' : '',
|
|
|
233 |
'icon_pushpin' : '',
|
|
|
234 |
'icon_map' : '',
|
|
|
235 |
'icon_drawer' : '',
|
|
|
236 |
'icon_toolbox' : '',
|
|
|
237 |
'icon_book' : '',
|
|
|
238 |
'icon_contacts' : '',
|
|
|
239 |
'icon_archive' : '',
|
|
|
240 |
'icon_heart' : '',
|
|
|
241 |
'icon_profile' : '',
|
|
|
242 |
'icon_group' : '',
|
|
|
243 |
'icon_grid-2x2' : '',
|
|
|
244 |
'icon_grid-3x3' : '',
|
|
|
245 |
'icon_music' : '',
|
|
|
246 |
'icon_pause_alt' : '',
|
|
|
247 |
'icon_phone' : '',
|
|
|
248 |
'icon_upload' : '',
|
|
|
249 |
'icon_download' : '',
|
|
|
250 |
'social_facebook' : '',
|
|
|
251 |
'social_twitter' : '',
|
|
|
252 |
'social_pinterest' : '',
|
|
|
253 |
'social_googleplus' : '',
|
|
|
254 |
'social_tumblr' : '',
|
|
|
255 |
'social_tumbleupon' : '',
|
|
|
256 |
'social_wordpress' : '',
|
|
|
257 |
'social_instagram' : '',
|
|
|
258 |
'social_dribbble' : '',
|
|
|
259 |
'social_vimeo' : '',
|
|
|
260 |
'social_linkedin' : '',
|
|
|
261 |
'social_rss' : '',
|
|
|
262 |
'social_deviantart' : '',
|
|
|
263 |
'social_share' : '',
|
|
|
264 |
'social_myspace' : '',
|
|
|
265 |
'social_skype' : '',
|
|
|
266 |
'social_youtube' : '',
|
|
|
267 |
'social_picassa' : '',
|
|
|
268 |
'social_googledrive' : '',
|
|
|
269 |
'social_flickr' : '',
|
|
|
270 |
'social_blogger' : '',
|
|
|
271 |
'social_spotify' : '',
|
|
|
272 |
'social_delicious' : '',
|
|
|
273 |
'social_facebook_circle' : '',
|
|
|
274 |
'social_twitter_circle' : '',
|
|
|
275 |
'social_pinterest_circle' : '',
|
|
|
276 |
'social_googleplus_circle' : '',
|
|
|
277 |
'social_tumblr_circle' : '',
|
|
|
278 |
'social_stumbleupon_circle' : '',
|
|
|
279 |
'social_wordpress_circle' : '',
|
|
|
280 |
'social_instagram_circle' : '',
|
|
|
281 |
'social_dribbble_circle' : '',
|
|
|
282 |
'social_vimeo_circle' : '',
|
|
|
283 |
'social_linkedin_circle' : '',
|
|
|
284 |
'social_rss_circle' : '',
|
|
|
285 |
'social_deviantart_circle' : '',
|
|
|
286 |
'social_share_circle' : '',
|
|
|
287 |
'social_myspace_circle' : '',
|
|
|
288 |
'social_skype_circle' : '',
|
|
|
289 |
'social_youtube_circle' : '',
|
|
|
290 |
'social_picassa_circle' : '',
|
|
|
291 |
'social_googledrive_alt2' : '',
|
|
|
292 |
'social_flickr_circle' : '',
|
|
|
293 |
'social_blogger_circle' : '',
|
|
|
294 |
'social_spotify_circle' : '',
|
|
|
295 |
'social_delicious_circle' : '',
|
|
|
296 |
'social_facebook_square' : '',
|
|
|
297 |
'social_twitter_square' : '',
|
|
|
298 |
'social_pinterest_square' : '',
|
|
|
299 |
'social_googleplus_square' : '',
|
|
|
300 |
'social_tumblr_square' : '',
|
|
|
301 |
'social_stumbleupon_square' : '',
|
|
|
302 |
'social_wordpress_square' : '',
|
|
|
303 |
'social_instagram_square' : '',
|
|
|
304 |
'social_dribbble_square' : '',
|
|
|
305 |
'social_vimeo_square' : '',
|
|
|
306 |
'social_linkedin_square' : '',
|
|
|
307 |
'social_rss_square' : '',
|
|
|
308 |
'social_deviantart_square' : '',
|
|
|
309 |
'social_share_square' : '',
|
|
|
310 |
'social_myspace_square' : '',
|
|
|
311 |
'social_skype_square' : '',
|
|
|
312 |
'social_youtube_square' : '',
|
|
|
313 |
'social_picassa_square' : '',
|
|
|
314 |
'social_googledrive_square' : '',
|
|
|
315 |
'social_flickr_square' : '',
|
|
|
316 |
'social_blogger_square' : '',
|
|
|
317 |
'social_spotify_square' : '',
|
|
|
318 |
'social_delicious_square' : '',
|
|
|
319 |
'icon_printer' : '',
|
|
|
320 |
'icon_calulator' : '',
|
|
|
321 |
'icon_building' : '',
|
|
|
322 |
'icon_floppy' : '',
|
|
|
323 |
'icon_drive' : '',
|
|
|
324 |
'icon_search-2' : '',
|
|
|
325 |
'icon_id' : '',
|
|
|
326 |
'icon_id-2' : '',
|
|
|
327 |
'icon_puzzle' : '',
|
|
|
328 |
'icon_like' : '',
|
|
|
329 |
'icon_dislike' : '',
|
|
|
330 |
'icon_mug' : '',
|
|
|
331 |
'icon_currency' : '',
|
|
|
332 |
'icon_wallet' : '',
|
|
|
333 |
'icon_pens' : '',
|
|
|
334 |
'icon_easel' : '',
|
|
|
335 |
'icon_flowchart' : '',
|
|
|
336 |
'icon_datareport' : '',
|
|
|
337 |
'icon_briefcase' : '',
|
|
|
338 |
'icon_shield' : '',
|
|
|
339 |
'icon_percent' : '',
|
|
|
340 |
'icon_globe' : '',
|
|
|
341 |
'icon_globe-2' : '',
|
|
|
342 |
'icon_target' : '',
|
|
|
343 |
'icon_hourglass' : '',
|
|
|
344 |
'icon_balance' : '',
|
|
|
345 |
'icon_rook' : '',
|
|
|
346 |
'icon_printer-alt' : '',
|
|
|
347 |
'icon_calculator_alt' : '',
|
|
|
348 |
'icon_building_alt' : '',
|
|
|
349 |
'icon_floppy_alt' : '',
|
|
|
350 |
'icon_drive_alt' : '',
|
|
|
351 |
'icon_search_alt' : '',
|
|
|
352 |
'icon_id_alt' : '',
|
|
|
353 |
'icon_id-2_alt' : '',
|
|
|
354 |
'icon_puzzle_alt' : '',
|
|
|
355 |
'icon_like_alt' : '',
|
|
|
356 |
'icon_dislike_alt' : '',
|
|
|
357 |
'icon_mug_alt' : '',
|
|
|
358 |
'icon_currency_alt' : '',
|
|
|
359 |
'icon_wallet_alt' : '',
|
|
|
360 |
'icon_pens_alt' : '',
|
|
|
361 |
'icon_easel_alt' : '',
|
|
|
362 |
'icon_flowchart_alt' : '',
|
|
|
363 |
'icon_datareport_alt' : '',
|
|
|
364 |
'icon_briefcase_alt' : '',
|
|
|
365 |
'icon_shield_alt' : '',
|
|
|
366 |
'icon_percent_alt' : '',
|
|
|
367 |
'icon_globe_alt' : '',
|
|
|
368 |
'icon_clipboard' : ''
|
|
|
369 |
},
|
|
|
370 |
els = document.getElementsByTagName('*'),
|
|
|
371 |
i, attr, c, el;
|
|
|
372 |
for (i = 0; ; i += 1) {
|
|
|
373 |
el = els[i];
|
|
|
374 |
if(!el) {
|
|
|
375 |
break;
|
|
|
376 |
}
|
|
|
377 |
attr = el.getAttribute('data-icon');
|
|
|
378 |
if (attr) {
|
|
|
379 |
addIcon(el, attr);
|
|
|
380 |
}
|
|
|
381 |
c = el.className;
|
|
|
382 |
c = c.match(/[^\s'"]+/);
|
|
|
383 |
if (c && icons[c[0]]) {
|
|
|
384 |
addIcon(el, icons[c[0]]);
|
|
|
385 |
}
|
|
|
386 |
}
|
|
|
387 |
};
|