Sha256: 8c2df236873b8a22760763ccef007a376e139e8a902fbc6ee383d3c12b676166
Contents?: true
Size: 1.2 KB
Versions: 5
Compression:
Stored size: 1.2 KB
Contents
/* Use this script if you need to support IE 7 and IE 6. */ window.onload = function() { function addIcon(el, entity) { var html = el.innerHTML; el.innerHTML = '<span style="font-family: \'Flat-UI-Icons-24\'">' + entity + '</span>' + html; } var icons = { 'fui-video-24' : '', 'fui-time-24' : '', 'fui-settings-24' : '', 'fui-plus-24' : '', 'fui-new-24' : '', 'fui-menu-24' : '', 'fui-man-24' : '', 'fui-mail-24' : '', 'fui-lock-24' : '', 'fui-location-24' : '', 'fui-heart-24' : '', 'fui-eye-24' : '', 'fui-cross-24' : '', 'fui-cmd-24' : '', 'fui-checkround-24' : '', 'fui-checkmark-24' : '', 'fui-calendar-24' : '', 'fui-bubble-24' : '', 'fui-volume-24' : '', 'fui-camera-24' : '' }, els = document.getElementsByTagName('*'), i, attr, html, c, el; for (i = 0; i < els.length; i += 1) { el = els[i]; attr = el.getAttribute('data-icon'); if (attr) { addIcon(el, attr); } c = el.className; c = c.match(/fui-[^\s'"]+/); if (c && icons[c[0]]) { addIcon(el, icons[c[0]]); } } };
Version data entries
5 entries across 5 versions & 3 rubygems