summaryrefslogtreecommitdiff
path: root/server/doc/css/phpdocumentor-clean-icons/lte-ie7.js
diff options
context:
space:
mode:
authorroot <root@serverpc.home>2016-05-04 19:46:53 +0200
committerroot <root@serverpc.home>2016-05-04 19:46:53 +0200
commit4b978d4584994536f05b016fb65de9a8667bcb2d (patch)
tree5f45e5b0cfcd74058c7de57afe0646cd253672f3 /server/doc/css/phpdocumentor-clean-icons/lte-ie7.js
parent0266c16ffc97042853916c390aaaccecc72e69a1 (diff)
parenta0056da90605f2fb4c2479cae310f12a81a9a3e7 (diff)
Merge branch 'master' into loic
Diffstat (limited to 'server/doc/css/phpdocumentor-clean-icons/lte-ie7.js')
-rw-r--r--server/doc/css/phpdocumentor-clean-icons/lte-ie7.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/server/doc/css/phpdocumentor-clean-icons/lte-ie7.js b/server/doc/css/phpdocumentor-clean-icons/lte-ie7.js
new file mode 100644
index 0000000..881c16e
--- /dev/null
+++ b/server/doc/css/phpdocumentor-clean-icons/lte-ie7.js
@@ -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' : '&#xe000;',
+ 'icon-interface' : '&#xe001;',
+ 'icon-class' : '&#xe002;'
+ },
+ 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]]);
+ }
+ }
+}; \ No newline at end of file