Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | /* Load this script using conditional IE comments if you need to support IE 7 and IE 6. */ |
| 2 | |||
| 3 | window.onload = function() { |
||
| 4 | function addIcon(el, entity) { |
||
| 5 | var html = el.innerHTML; |
||
| 6 | el.innerHTML = '<span style="font-family: \'Simple-Line-Icons\'">' + entity + '</span>' + html; |
||
| 7 | } |
||
| 8 | var icons = { |
||
| 9 | 'icon-user-unfollow' : '', |
||
| 10 | 'icon-user-friends' : '', |
||
| 11 | 'icon-user-following' : '', |
||
| 12 | 'icon-user-follow' : '', |
||
| 13 | 'icon-trophy' : '', |
||
| 14 | 'icon-speedometer' : '', |
||
| 15 | 'icon-social-youtube' : '', |
||
| 16 | 'icon-social-twitter' : '', |
||
| 17 | 'icon-social-tumblr' : '', |
||
| 18 | 'icon-social-facebook' : '', |
||
| 19 | 'icon-social-dropbox' : '', |
||
| 20 | 'icon-social-dribbble' : '', |
||
| 21 | 'icon-shield' : '', |
||
| 22 | 'icon-screen-tablet' : '', |
||
| 23 | 'icon-screen-smartphone' : '', |
||
| 24 | 'icon-screen-desktop' : '', |
||
| 25 | 'icon-plane' : '', |
||
| 26 | 'icon-notebook' : '', |
||
| 27 | 'icon-moustache' : '', |
||
| 28 | 'icon-mouse' : '', |
||
| 29 | 'icon-magnet' : '', |
||
| 30 | 'icon-magic-wand' : '', |
||
| 31 | 'icon-hourglass' : '', |
||
| 32 | 'icon-graduation' : '', |
||
| 33 | 'icon-ghost' : '', |
||
| 34 | 'icon-game-controller' : '', |
||
| 35 | 'icon-fire' : '', |
||
| 36 | 'icon-eyeglasses' : '', |
||
| 37 | 'icon-envelope-open' : '', |
||
| 38 | 'icon-envelope-letter' : '', |
||
| 39 | 'icon-energy' : '', |
||
| 40 | 'icon-emoticon-smile' : '', |
||
| 41 | 'icon-disc' : '', |
||
| 42 | 'icon-cursor-move' : '', |
||
| 43 | 'icon-crop' : '', |
||
| 44 | 'icon-credit-card' : '', |
||
| 45 | 'icon-chemistry' : '', |
||
| 46 | 'icon-bell' : '', |
||
| 47 | 'icon-badge' : '', |
||
| 48 | 'icon-anchor' : '', |
||
| 49 | 'icon-action-redo' : '', |
||
| 50 | 'icon-action-undo' : '', |
||
| 51 | 'icon-bag' : '', |
||
| 52 | 'icon-basket' : '', |
||
| 53 | 'icon-basket-loaded' : '', |
||
| 54 | 'icon-book-open' : '', |
||
| 55 | 'icon-briefcase' : '', |
||
| 56 | 'icon-bubbles' : '', |
||
| 57 | 'icon-calculator' : '', |
||
| 58 | 'icon-call-end' : '', |
||
| 59 | 'icon-call-in' : '', |
||
| 60 | 'icon-call-out' : '', |
||
| 61 | 'icon-compass' : '', |
||
| 62 | 'icon-cup' : '', |
||
| 63 | 'icon-diamond' : '', |
||
| 64 | 'icon-direction' : '', |
||
| 65 | 'icon-directions' : '', |
||
| 66 | 'icon-docs' : '', |
||
| 67 | 'icon-drawer' : '', |
||
| 68 | 'icon-drop' : '', |
||
| 69 | 'icon-earphones' : '', |
||
| 70 | 'icon-earphones-alt' : '', |
||
| 71 | 'icon-feed' : '', |
||
| 72 | 'icon-film' : '', |
||
| 73 | 'icon-folder-alt' : '', |
||
| 74 | 'icon-frame' : '', |
||
| 75 | 'icon-globe' : '', |
||
| 76 | 'icon-globe-alt' : '', |
||
| 77 | 'icon-handbag' : '', |
||
| 78 | 'icon-layers' : '', |
||
| 79 | 'icon-map' : '', |
||
| 80 | 'icon-picture' : '', |
||
| 81 | 'icon-pin' : '', |
||
| 82 | 'icon-playlist' : '', |
||
| 83 | 'icon-present' : '', |
||
| 84 | 'icon-printer' : '', |
||
| 85 | 'icon-puzzle' : '', |
||
| 86 | 'icon-speech' : '', |
||
| 87 | 'icon-vector' : '', |
||
| 88 | 'icon-wallet' : '', |
||
| 89 | 'icon-arrow-down' : '', |
||
| 90 | 'icon-arrow-left' : '', |
||
| 91 | 'icon-arrow-right' : '', |
||
| 92 | 'icon-arrow-up' : '', |
||
| 93 | 'icon-bar-chart' : '', |
||
| 94 | 'icon-bulb' : '', |
||
| 95 | 'icon-calendar' : '', |
||
| 96 | 'icon-control-end' : '', |
||
| 97 | 'icon-control-forward' : '', |
||
| 98 | 'icon-control-pause' : '', |
||
| 99 | 'icon-control-play' : '', |
||
| 100 | 'icon-control-rewind' : '', |
||
| 101 | 'icon-control-start' : '', |
||
| 102 | 'icon-cursor' : '', |
||
| 103 | 'icon-dislike' : '', |
||
| 104 | 'icon-equalizer' : '', |
||
| 105 | 'icon-graph' : '', |
||
| 106 | 'icon-grid' : '', |
||
| 107 | 'icon-home' : '', |
||
| 108 | 'icon-like' : '', |
||
| 109 | 'icon-list' : '', |
||
| 110 | 'icon-login' : '', |
||
| 111 | 'icon-logout' : '', |
||
| 112 | 'icon-loop' : '', |
||
| 113 | 'icon-microphone' : '', |
||
| 114 | 'icon-music-tone' : '', |
||
| 115 | 'icon-music-tone-alt' : '', |
||
| 116 | 'icon-note' : '', |
||
| 117 | 'icon-pencil' : '', |
||
| 118 | 'icon-pie-chart' : '', |
||
| 119 | 'icon-question' : '', |
||
| 120 | 'icon-rocket' : '', |
||
| 121 | 'icon-share' : '', |
||
| 122 | 'icon-share-alt' : '', |
||
| 123 | 'icon-shuffle' : '', |
||
| 124 | 'icon-size-actual' : '', |
||
| 125 | 'icon-size-fullscreen' : '', |
||
| 126 | 'icon-support' : '', |
||
| 127 | 'icon-tag' : '', |
||
| 128 | 'icon-trash' : '', |
||
| 129 | 'icon-umbrella' : '', |
||
| 130 | 'icon-wrench' : '', |
||
| 131 | 'icon-ban' : '', |
||
| 132 | 'icon-bubble' : '', |
||
| 133 | 'icon-camcorder' : '', |
||
| 134 | 'icon-camera' : '', |
||
| 135 | 'icon-check' : '', |
||
| 136 | 'icon-clock' : '', |
||
| 137 | 'icon-close' : '', |
||
| 138 | 'icon-cloud-download' : '', |
||
| 139 | 'icon-cloud-upload' : '', |
||
| 140 | 'icon-doc' : '', |
||
| 141 | 'icon-envelope' : '', |
||
| 142 | 'icon-eye' : '', |
||
| 143 | 'icon-flag' : '', |
||
| 144 | 'icon-folder' : '', |
||
| 145 | 'icon-heart' : '', |
||
| 146 | 'icon-info' : '', |
||
| 147 | 'icon-key' : '', |
||
| 148 | 'icon-link' : '', |
||
| 149 | 'icon-lock' : '', |
||
| 150 | 'icon-lock-open' : '', |
||
| 151 | 'icon-magnifier' : '', |
||
| 152 | 'icon-magnifier-add' : '', |
||
| 153 | 'icon-magnifier-remove' : '', |
||
| 154 | 'icon-paper-clip' : '', |
||
| 155 | 'icon-paper-plane' : '', |
||
| 156 | 'icon-plus' : '', |
||
| 157 | 'icon-pointer' : '', |
||
| 158 | 'icon-power' : '', |
||
| 159 | 'icon-refresh' : '', |
||
| 160 | 'icon-reload' : '', |
||
| 161 | 'icon-settings' : '', |
||
| 162 | 'icon-star' : '', |
||
| 163 | 'icon-symbol-female' : '', |
||
| 164 | 'icon-symbol-male' : '', |
||
| 165 | 'icon-target' : '', |
||
| 166 | 'icon-user-female' : '', |
||
| 167 | 'icon-user-male' : '', |
||
| 168 | 'icon-volume-1' : '', |
||
| 169 | 'icon-volume-2' : '', |
||
| 170 | 'icon-volume-off' : '' |
||
| 171 | }, |
||
| 172 | els = document.getElementsByTagName('*'), |
||
| 173 | i, attr, c, el; |
||
| 174 | for (i = 0; ; i += 1) { |
||
| 175 | el = els[i]; |
||
| 176 | if(!el) { |
||
| 177 | break; |
||
| 178 | } |
||
| 179 | attr = el.getAttribute('data-icon'); |
||
| 180 | if (attr) { |
||
| 181 | addIcon(el, attr); |
||
| 182 | } |
||
| 183 | c = el.className; |
||
| 184 | c = c.match(/icon-[^\s'"]+/); |
||
| 185 | if (c && icons[c[0]]) { |
||
| 186 | addIcon(el, icons[c[0]]); |
||
| 187 | } |
||
| 188 | } |
||
| 189 | }; |