File indexing completed on 2024-05-19 06:00:18
0001 /* Load this script using conditional IE comments if you need to support IE 7 and IE 6. */ 0002 0003 window.onload = function() { 0004 function addIcon(el, entity) { 0005 var html = el.innerHTML; 0006 el.innerHTML = '<span style="font-family: \'Flat-UI-Icons\'">' + entity + '</span>' + html; 0007 } 0008 var icons = { 0009 'fui-arrow-right' : '', 0010 'fui-arrow-left' : '', 0011 'fui-cmd' : '', 0012 'fui-check-inverted' : '', 0013 'fui-heart' : '', 0014 'fui-location' : '', 0015 'fui-plus' : '', 0016 'fui-check' : '', 0017 'fui-cross' : '', 0018 'fui-list' : '', 0019 'fui-new' : '', 0020 'fui-video' : '', 0021 'fui-photo' : '', 0022 'fui-volume' : '', 0023 'fui-time' : '', 0024 'fui-eye' : '', 0025 'fui-chat' : '', 0026 'fui-search' : '', 0027 'fui-user' : '', 0028 'fui-mail' : '', 0029 'fui-lock' : '', 0030 'fui-gear' : '', 0031 'fui-radio-unchecked' : '', 0032 'fui-radio-checked' : '', 0033 'fui-checkbox-unchecked' : '', 0034 'fui-checkbox-checked' : '', 0035 'fui-calendar-solid' : '', 0036 'fui-pause' : '', 0037 'fui-play' : '', 0038 'fui-check-inverted-2' : '' 0039 }, 0040 els = document.getElementsByTagName('*'), 0041 i, attr, html, c, el; 0042 for (i = 0; ; i += 1) { 0043 el = els[i]; 0044 if(!el) { 0045 break; 0046 } 0047 attr = el.getAttribute('data-icon'); 0048 if (attr) { 0049 addIcon(el, attr); 0050 } 0051 c = el.className; 0052 c = c.match(/fui-[^\s'"]+/); 0053 if (c && icons[c[0]]) { 0054 addIcon(el, icons[c[0]]); 0055 } 0056 } 0057 };