| Current Path : /home/bonneesp/www/media/com_icagenda/icicons/ie7/ |
| Current File : /home/bonneesp/www/media/com_icagenda/icicons/ie7/ie7.js |
/* To avoid CSS expressions while still supporting IE 7 and IE 6, use this script */
/* The script tag referencing this file must be placed before the ending body tag. */
/* Use conditional comments in order to target IE 7 and older:
<!--[if lt IE 8]><!-->
<script src="ie7/ie7.js"></script>
<!--<![endif]-->
*/
(function() {
function addIcon(el, entity) {
var html = el.innerHTML;
el.innerHTML = '<span style="font-family: \'iCicons\'">' + entity + '</span>' + html;
}
var icons = {
'iCicon-header-before': '',
'iCicon-header-after': '',
'iCicon-iclogo': '',
'iCicon-thumbs': '',
'iCicon-form': '',
'iCicon-location': '',
'iCicon-clock': '',
'iCicon-calendar': '',
'iCicon-calendar-2': '',
'iCicon-print': '',
'iCicon-disk': '',
'iCicon-reset': '',
'iCicon-people': '',
'iCicon-search': '',
'iCicon-private': '',
'iCicon-options': '',
'iCicon-register': '',
'iCicon-timezone': '',
'iCicon-earth': '',
'iCicon-blocked': '',
'iCicon-nextic': '▶',
'iCicon-backic': '◀',
'iCicon-backicY': '◁',
'iCicon-nexticY': '▷',
'iCicon-filter': '',
'iCicon-filter-2': '',
'iCicon-screen': '',
'iCicon-minus': '',
'iCicon-info': '',
'iCicon-info-circle': '',
'iCicon-icons': '',
'iCicon-navigation': '',
'iCicon-arrow-down': '',
'iCicon-arrow-up': '',
'0': 0
},
els = document.getElementsByTagName('*'),
i, c, el;
for (i = 0; ; i += 1) {
el = els[i];
if(!el) {
break;
}
c = el.className;
c = c.match(/iCicon-[^\s'"]+/);
if (c && icons[c[0]]) {
addIcon(el, icons[c[0]]);
}
}
}());