PHP Classes

File: docs/api/css/phpdocumentor-clean-icons/lte-ie7.js

Recommend this page to a friend!
  Classes of Vagner vinicius bispo cantuares   Simple PHP Database Manager   docs/api/css/phpdocumentor-clean-icons/lte-ie7.js   Download  
File: docs/api/css/phpdocumentor-clean-icons/lte-ie7.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Simple PHP Database Manager
Build and run SQL queries with a fluent interface
Author: By
Last change: Update of docs/api/css/phpdocumentor-clean-icons/lte-ie7.js
Date: 9 days ago
Size: 731 bytes
 

Contents

Class file image Download
/* 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]]); } } };