mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-06 08:07:42 +02:00
adding phpdoc fix #48
This commit is contained in:
30
docs/api/css/phpdocumentor-clean-icons/lte-ie7.js
Normal file
30
docs/api/css/phpdocumentor-clean-icons/lte-ie7.js
Normal file
@@ -0,0 +1,30 @@
|
||||
/* Load this script using conditional IE comments 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: \'phpdocumentor-clean-icons\'">' + entity + '</span>' + html;
|
||||
}
|
||||
var icons = {
|
||||
'icon-trait' : '',
|
||||
'icon-interface' : '',
|
||||
'icon-class' : ''
|
||||
},
|
||||
els = document.getElementsByTagName('*'),
|
||||
i, attr, html, c, el;
|
||||
for (i = 0; ; i += 1) {
|
||||
el = els[i];
|
||||
if(!el) {
|
||||
break;
|
||||
}
|
||||
attr = el.getAttribute('data-icon');
|
||||
if (attr) {
|
||||
addIcon(el, attr);
|
||||
}
|
||||
c = el.className;
|
||||
c = c.match(/icon-[^\s'"]+/);
|
||||
if (c && icons[c[0]]) {
|
||||
addIcon(el, icons[c[0]]);
|
||||
}
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user