resources/assets/css/icons/themify-icons/ie7/ie7.js   A
last analyzed

Complexity

Total Complexity 5
Complexity/F 2.5

Size

Lines of Code 374
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 368
dl 0
loc 374
rs 10
c 0
b 0
f 0
wmc 5
mnd 3
bc 3
fnc 2
bpm 1.5
cpm 2.5
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A ie7.js ➔ addIcon 0 4 2
1
/* To avAdminid CSS expressions while still supporting IE 7 and IE 6, use this script */
2
/* The script tag referring to this file must be placed before the ending body tag. */
3
4
/* Use conditional comments in order to target IE 7 and older:
5
	<!--[if lt IE 8]><!-->
6
	<script src="ie7/ie7.js"></script>
7
	<!--<![endif]-->
8
*/
9
10
(function() {
11
	function addIcon(el, entity) {
12
		var html = el.innerHTML;
13
		el.innerHTML = '<span style="font-family: \'themify\'">' + entity + '</span>' + html;
14
	}
15
	var icons = {
16
		'ti-wand': '&#xe600;',
17
		'ti-volume': '&#xe601;',
18
		'ti-user': '&#xe602;',
19
		'ti-unlock': '&#xe603;',
20
		'ti-unlink': '&#xe604;',
21
		'ti-trash': '&#xe605;',
22
		'ti-thought': '&#xe606;',
23
		'ti-target': '&#xe607;',
24
		'ti-tag': '&#xe608;',
25
		'ti-tablet': '&#xe609;',
26
		'ti-star': '&#xe60a;',
27
		'ti-spray': '&#xe60b;',
28
		'ti-signal': '&#xe60c;',
29
		'ti-shopping-cart': '&#xe60d;',
30
		'ti-shopping-cart-full': '&#xe60e;',
31
		'ti-settings': '&#xe60f;',
32
		'ti-search': '&#xe610;',
33
		'ti-zoom-in': '&#xe611;',
34
		'ti-zoom-out': '&#xe612;',
35
		'ti-cut': '&#xe613;',
36
		'ti-ruler': '&#xe614;',
37
		'ti-ruler-pencil': '&#xe615;',
38
		'ti-ruler-alt': '&#xe616;',
39
		'ti-bookmark': '&#xe617;',
40
		'ti-bookmark-alt': '&#xe618;',
41
		'ti-reload': '&#xe619;',
42
		'ti-plus': '&#xe61a;',
43
		'ti-pin': '&#xe61b;',
44
		'ti-pencil': '&#xe61c;',
45
		'ti-pencil-alt': '&#xe61d;',
46
		'ti-paint-roller': '&#xe61e;',
47
		'ti-paint-bucket': '&#xe61f;',
48
		'ti-na': '&#xe620;',
49
		'ti-mobile': '&#xe621;',
50
		'ti-minus': '&#xe622;',
51
		'ti-medall': '&#xe623;',
52
		'ti-medall-alt': '&#xe624;',
53
		'ti-marker': '&#xe625;',
54
		'ti-marker-alt': '&#xe626;',
55
		'ti-arrow-up': '&#xe627;',
56
		'ti-arrow-right': '&#xe628;',
57
		'ti-arrow-left': '&#xe629;',
58
		'ti-arrow-down': '&#xe62a;',
59
		'ti-lock': '&#xe62b;',
60
		'ti-location-arrow': '&#xe62c;',
61
		'ti-link': '&#xe62d;',
62
		'ti-layout': '&#xe62e;',
63
		'ti-layers': '&#xe62f;',
64
		'ti-layers-alt': '&#xe630;',
65
		'ti-key': '&#xe631;',
66
		'ti-import': '&#xe632;',
67
		'ti-image': '&#xe633;',
68
		'ti-heart': '&#xe634;',
69
		'ti-heart-broken': '&#xe635;',
70
		'ti-hand-stop': '&#xe636;',
71
		'ti-hand-open': '&#xe637;',
72
		'ti-hand-drag': '&#xe638;',
73
		'ti-folder': '&#xe639;',
74
		'ti-flag': '&#xe63a;',
75
		'ti-flag-alt': '&#xe63b;',
76
		'ti-flag-alt-2': '&#xe63c;',
77
		'ti-eye': '&#xe63d;',
78
		'ti-export': '&#xe63e;',
79
		'ti-exchange-vertical': '&#xe63f;',
80
		'ti-desktop': '&#xe640;',
81
		'ti-cup': '&#xe641;',
82
		'ti-crown': '&#xe642;',
83
		'ti-comments': '&#xe643;',
84
		'ti-comment': '&#xe644;',
85
		'ti-comment-alt': '&#xe645;',
86
		'ti-close': '&#xe646;',
87
		'ti-clip': '&#xe647;',
88
		'ti-angle-up': '&#xe648;',
89
		'ti-angle-right': '&#xe649;',
90
		'ti-angle-left': '&#xe64a;',
91
		'ti-angle-down': '&#xe64b;',
92
		'ti-check': '&#xe64c;',
93
		'ti-check-box': '&#xe64d;',
94
		'ti-camera': '&#xe64e;',
95
		'ti-announcement': '&#xe64f;',
96
		'ti-brush': '&#xe650;',
97
		'ti-briefcase': '&#xe651;',
98
		'ti-bolt': '&#xe652;',
99
		'ti-bolt-alt': '&#xe653;',
100
		'ti-blackboard': '&#xe654;',
101
		'ti-bag': '&#xe655;',
102
		'ti-move': '&#xe656;',
103
		'ti-arrows-vertical': '&#xe657;',
104
		'ti-arrows-horizontal': '&#xe658;',
105
		'ti-fullscreen': '&#xe659;',
106
		'ti-arrow-top-right': '&#xe65a;',
107
		'ti-arrow-top-left': '&#xe65b;',
108
		'ti-arrow-circle-up': '&#xe65c;',
109
		'ti-arrow-circle-right': '&#xe65d;',
110
		'ti-arrow-circle-left': '&#xe65e;',
111
		'ti-arrow-circle-down': '&#xe65f;',
112
		'ti-angle-double-up': '&#xe660;',
113
		'ti-angle-double-right': '&#xe661;',
114
		'ti-angle-double-left': '&#xe662;',
115
		'ti-angle-double-down': '&#xe663;',
116
		'ti-zip': '&#xe664;',
117
		'ti-world': '&#xe665;',
118
		'ti-wheelchair': '&#xe666;',
119
		'ti-view-list': '&#xe667;',
120
		'ti-view-list-alt': '&#xe668;',
121
		'ti-view-grid': '&#xe669;',
122
		'ti-uppercase': '&#xe66a;',
123
		'ti-upload': '&#xe66b;',
124
		'ti-underline': '&#xe66c;',
125
		'ti-truck': '&#xe66d;',
126
		'ti-timer': '&#xe66e;',
127
		'ti-ticket': '&#xe66f;',
128
		'ti-thumb-up': '&#xe670;',
129
		'ti-thumb-down': '&#xe671;',
130
		'ti-text': '&#xe672;',
131
		'ti-stats-up': '&#xe673;',
132
		'ti-stats-down': '&#xe674;',
133
		'ti-split-v': '&#xe675;',
134
		'ti-split-h': '&#xe676;',
135
		'ti-smallcap': '&#xe677;',
136
		'ti-shine': '&#xe678;',
137
		'ti-shift-right': '&#xe679;',
138
		'ti-shift-left': '&#xe67a;',
139
		'ti-shield': '&#xe67b;',
140
		'ti-notepad': '&#xe67c;',
141
		'ti-server': '&#xe67d;',
142
		'ti-quote-right': '&#xe67e;',
143
		'ti-quote-left': '&#xe67f;',
144
		'ti-pulse': '&#xe680;',
145
		'ti-printer': '&#xe681;',
146
		'ti-power-off': '&#xe682;',
147
		'ti-plug': '&#xe683;',
148
		'ti-pie-chart': '&#xe684;',
149
		'ti-paragraph': '&#xe685;',
150
		'ti-panel': '&#xe686;',
151
		'ti-package': '&#xe687;',
152
		'ti-music': '&#xe688;',
153
		'ti-music-alt': '&#xe689;',
154
		'ti-mouse': '&#xe68a;',
155
		'ti-mouse-alt': '&#xe68b;',
156
		'ti-money': '&#xe68c;',
157
		'ti-microphone': '&#xe68d;',
158
		'ti-menu': '&#xe68e;',
159
		'ti-menu-alt': '&#xe68f;',
160
		'ti-map': '&#xe690;',
161
		'ti-map-alt': '&#xe691;',
162
		'ti-loop': '&#xe692;',
163
		'ti-location-pin': '&#xe693;',
164
		'ti-list': '&#xe694;',
165
		'ti-light-bulb': '&#xe695;',
166
		'ti-Italic': '&#xe696;',
167
		'ti-info': '&#xe697;',
168
		'ti-infinite': '&#xe698;',
169
		'ti-id-badge': '&#xe699;',
170
		'ti-hummer': '&#xe69a;',
171
		'ti-home': '&#xe69b;',
172
		'ti-help': '&#xe69c;',
173
		'ti-headphone': '&#xe69d;',
174
		'ti-harddrives': '&#xe69e;',
175
		'ti-harddrive': '&#xe69f;',
176
		'ti-gift': '&#xe6a0;',
177
		'ti-game': '&#xe6a1;',
178
		'ti-filter': '&#xe6a2;',
179
		'ti-files': '&#xe6a3;',
180
		'ti-file': '&#xe6a4;',
181
		'ti-eraser': '&#xe6a5;',
182
		'ti-envelope': '&#xe6a6;',
183
		'ti-download': '&#xe6a7;',
184
		'ti-direction': '&#xe6a8;',
185
		'ti-direction-alt': '&#xe6a9;',
186
		'ti-dashboard': '&#xe6aa;',
187
		'ti-control-stop': '&#xe6ab;',
188
		'ti-control-shuffle': '&#xe6ac;',
189
		'ti-control-play': '&#xe6ad;',
190
		'ti-control-pause': '&#xe6ae;',
191
		'ti-control-forward': '&#xe6af;',
192
		'ti-control-backward': '&#xe6b0;',
193
		'ti-cloud': '&#xe6b1;',
194
		'ti-cloud-up': '&#xe6b2;',
195
		'ti-cloud-down': '&#xe6b3;',
196
		'ti-clipboard': '&#xe6b4;',
197
		'ti-car': '&#xe6b5;',
198
		'ti-calendar': '&#xe6b6;',
199
		'ti-book': '&#xe6b7;',
200
		'ti-bell': '&#xe6b8;',
201
		'ti-basketball': '&#xe6b9;',
202
		'ti-bar-chart': '&#xe6ba;',
203
		'ti-bar-chart-alt': '&#xe6bb;',
204
		'ti-back-right': '&#xe6bc;',
205
		'ti-back-left': '&#xe6bd;',
206
		'ti-arrows-corner': '&#xe6be;',
207
		'ti-archive': '&#xe6bf;',
208
		'ti-anchor': '&#xe6c0;',
209
		'ti-align-right': '&#xe6c1;',
210
		'ti-align-left': '&#xe6c2;',
211
		'ti-align-justify': '&#xe6c3;',
212
		'ti-align-center': '&#xe6c4;',
213
		'ti-alert': '&#xe6c5;',
214
		'ti-alarm-clock': '&#xe6c6;',
215
		'ti-agenda': '&#xe6c7;',
216
		'ti-write': '&#xe6c8;',
217
		'ti-window': '&#xe6c9;',
218
		'ti-widgetized': '&#xe6ca;',
219
		'ti-widget': '&#xe6cb;',
220
		'ti-widget-alt': '&#xe6cc;',
221
		'ti-wallet': '&#xe6cd;',
222
		'ti-video-clapper': '&#xe6ce;',
223
		'ti-video-camera': '&#xe6cf;',
224
		'ti-vector': '&#xe6d0;',
225
		'ti-themify-logo': '&#xe6d1;',
226
		'ti-themify-favicon': '&#xe6d2;',
227
		'ti-themify-favicon-alt': '&#xe6d3;',
228
		'ti-support': '&#xe6d4;',
229
		'ti-stamp': '&#xe6d5;',
230
		'ti-split-v-alt': '&#xe6d6;',
231
		'ti-slice': '&#xe6d7;',
232
		'ti-shortcode': '&#xe6d8;',
233
		'ti-shift-right-alt': '&#xe6d9;',
234
		'ti-shift-left-alt': '&#xe6da;',
235
		'ti-ruler-alt-2': '&#xe6db;',
236
		'ti-receipt': '&#xe6dc;',
237
		'ti-pin2': '&#xe6dd;',
238
		'ti-pin-alt': '&#xe6de;',
239
		'ti-pencil-alt2': '&#xe6df;',
240
		'ti-palette': '&#xe6e0;',
241
		'ti-more': '&#xe6e1;',
242
		'ti-more-alt': '&#xe6e2;',
243
		'ti-microphone-alt': '&#xe6e3;',
244
		'ti-magnet': '&#xe6e4;',
245
		'ti-line-double': '&#xe6e5;',
246
		'ti-line-dotted': '&#xe6e6;',
247
		'ti-line-dashed': '&#xe6e7;',
248
		'ti-layout-width-full': '&#xe6e8;',
249
		'ti-layout-width-default': '&#xe6e9;',
250
		'ti-layout-width-default-alt': '&#xe6ea;',
251
		'ti-layout-tab': '&#xe6eb;',
252
		'ti-layout-tab-window': '&#xe6ec;',
253
		'ti-layout-tab-v': '&#xe6ed;',
254
		'ti-layout-tab-min': '&#xe6ee;',
255
		'ti-layout-slider': '&#xe6ef;',
256
		'ti-layout-slider-alt': '&#xe6f0;',
257
		'ti-layout-sidebar-right': '&#xe6f1;',
258
		'ti-layout-sidebar-none': '&#xe6f2;',
259
		'ti-layout-sidebar-left': '&#xe6f3;',
260
		'ti-layout-placeholder': '&#xe6f4;',
261
		'ti-layout-menu': '&#xe6f5;',
262
		'ti-layout-menu-v': '&#xe6f6;',
263
		'ti-layout-menu-separated': '&#xe6f7;',
264
		'ti-layout-menu-full': '&#xe6f8;',
265
		'ti-layout-media-right-alt': '&#xe6f9;',
266
		'ti-layout-media-right': '&#xe6fa;',
267
		'ti-layout-media-overlay': '&#xe6fb;',
268
		'ti-layout-media-overlay-alt': '&#xe6fc;',
269
		'ti-layout-media-overlay-alt-2': '&#xe6fd;',
270
		'ti-layout-media-left-alt': '&#xe6fe;',
271
		'ti-layout-media-left': '&#xe6ff;',
272
		'ti-layout-media-center-alt': '&#xe700;',
273
		'ti-layout-media-center': '&#xe701;',
274
		'ti-layout-list-thumb': '&#xe702;',
275
		'ti-layout-list-thumb-alt': '&#xe703;',
276
		'ti-layout-list-post': '&#xe704;',
277
		'ti-layout-list-large-image': '&#xe705;',
278
		'ti-layout-line-solid': '&#xe706;',
279
		'ti-layout-grid4': '&#xe707;',
280
		'ti-layout-grid3': '&#xe708;',
281
		'ti-layout-grid2': '&#xe709;',
282
		'ti-layout-grid2-thumb': '&#xe70a;',
283
		'ti-layout-cta-right': '&#xe70b;',
284
		'ti-layout-cta-left': '&#xe70c;',
285
		'ti-layout-cta-center': '&#xe70d;',
286
		'ti-layout-cta-btn-right': '&#xe70e;',
287
		'ti-layout-cta-btn-left': '&#xe70f;',
288
		'ti-layout-column4': '&#xe710;',
289
		'ti-layout-column3': '&#xe711;',
290
		'ti-layout-column2': '&#xe712;',
291
		'ti-layout-accordion-separated': '&#xe713;',
292
		'ti-layout-accordion-merged': '&#xe714;',
293
		'ti-layout-accordion-list': '&#xe715;',
294
		'ti-ink-pen': '&#xe716;',
295
		'ti-info-alt': '&#xe717;',
296
		'ti-help-alt': '&#xe718;',
297
		'ti-headphone-alt': '&#xe719;',
298
		'ti-hand-point-up': '&#xe71a;',
299
		'ti-hand-point-right': '&#xe71b;',
300
		'ti-hand-point-left': '&#xe71c;',
301
		'ti-hand-point-down': '&#xe71d;',
302
		'ti-gallery': '&#xe71e;',
303
		'ti-face-smile': '&#xe71f;',
304
		'ti-face-sad': '&#xe720;',
305
		'ti-credit-card': '&#xe721;',
306
		'ti-control-skip-forward': '&#xe722;',
307
		'ti-control-skip-backward': '&#xe723;',
308
		'ti-control-record': '&#xe724;',
309
		'ti-control-eject': '&#xe725;',
310
		'ti-comments-smiley': '&#xe726;',
311
		'ti-brush-alt': '&#xe727;',
312
		'ti-youtube': '&#xe728;',
313
		'ti-vimeo': '&#xe729;',
314
		'ti-twitter': '&#xe72a;',
315
		'ti-time': '&#xe72b;',
316
		'ti-tumblr': '&#xe72c;',
317
		'ti-skype': '&#xe72d;',
318
		'ti-share': '&#xe72e;',
319
		'ti-share-alt': '&#xe72f;',
320
		'ti-rocket': '&#xe730;',
321
		'ti-pinterest': '&#xe731;',
322
		'ti-new-window': '&#xe732;',
323
		'ti-microsoft': '&#xe733;',
324
		'ti-list-ol': '&#xe734;',
325
		'ti-linkedin': '&#xe735;',
326
		'ti-layout-sidebar-2': '&#xe736;',
327
		'ti-layout-grid4-alt': '&#xe737;',
328
		'ti-layout-grid3-alt': '&#xe738;',
329
		'ti-layout-grid2-alt': '&#xe739;',
330
		'ti-layout-column4-alt': '&#xe73a;',
331
		'ti-layout-column3-alt': '&#xe73b;',
332
		'ti-layout-column2-alt': '&#xe73c;',
333
		'ti-instagram': '&#xe73d;',
334
		'ti-google': '&#xe73e;',
335
		'ti-github': '&#xe73f;',
336
		'ti-flickr': '&#xe740;',
337
		'ti-facebook': '&#xe741;',
338
		'ti-dropbox': '&#xe742;',
339
		'ti-dribbble': '&#xe743;',
340
		'ti-apple': '&#xe744;',
341
		'ti-andrAdminid': '&#xe745;',
342
		'ti-save': '&#xe746;',
343
		'ti-save-alt': '&#xe747;',
344
		'ti-yahoo': '&#xe748;',
345
		'ti-wordpress': '&#xe749;',
346
		'ti-vimeo-alt': '&#xe74a;',
347
		'ti-twitter-alt': '&#xe74b;',
348
		'ti-tumblr-alt': '&#xe74c;',
349
		'ti-trello': '&#xe74d;',
350
		'ti-stack-overflow': '&#xe74e;',
351
		'ti-soundcloud': '&#xe74f;',
352
		'ti-sharethis': '&#xe750;',
353
		'ti-sharethis-alt': '&#xe751;',
354
		'ti-reddit': '&#xe752;',
355
		'ti-pinterest-alt': '&#xe753;',
356
		'ti-microsoft-alt': '&#xe754;',
357
		'ti-linux': '&#xe755;',
358
		'ti-jsfiddle': '&#xe756;',
359
		'ti-joomla': '&#xe757;',
360
		'ti-html5': '&#xe758;',
361
		'ti-flickr-alt': '&#xe759;',
362
		'ti-email': '&#xe75a;',
363
		'ti-drupal': '&#xe75b;',
364
		'ti-dropbox-alt': '&#xe75c;',
365
		'ti-css3': '&#xe75d;',
366
		'ti-rss': '&#xe75e;',
367
		'ti-rss-alt': '&#xe75f;',
368
		'0': 0
369
		},
370
		els = document.getElementsByTagName('*'),
371
		i, c, el;
372
	for (i = 0; ; i += 1) {
373
		el = els[i];
374
		if(!el) {
375
			break;
376
		}
377
		c = el.className;
378
		c = c.match(/ti-[^\s'"]+/);
379
		if (c && icons[c[0]]) {
380
			addIcon(el, icons[c[0]]);
381
		}
382
	}
383
}());
384