PageRenderTime 52ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/docs/assets/plugins/elegant_font/css/lte-ie7.js

https://gitlab.com/lkotoula/syndromidocs
JavaScript | 387 lines | 385 code | 1 blank | 1 comment | 3 complexity | 56e71bc4c7bf2b5fa1254ca74acf6932 MD5 | raw file
  1. /* Load this script using conditional IE comments if you need to support IE 7 and IE 6. */
  2. window.onload = function() {
  3. function addIcon(el, entity) {
  4. var html = el.innerHTML;
  5. el.innerHTML = '<span style="font-family: \'ElegantIcons\'">' + entity + '</span>' + html;
  6. }
  7. var icons = {
  8. 'arrow_up' : '&#x21;',
  9. 'arrow_down' : '&#x22;',
  10. 'arrow_left' : '&#x23;',
  11. 'arrow_right' : '&#x24;',
  12. 'arrow_left-up' : '&#x25;',
  13. 'arrow_right-up' : '&#x26;',
  14. 'arrow_right-down' : '&#x27;',
  15. 'arrow_left-down' : '&#x28;',
  16. 'arrow-up-down' : '&#x29;',
  17. 'arrow_up-down_alt' : '&#x2a;',
  18. 'arrow_left-right_alt' : '&#x2b;',
  19. 'arrow_left-right' : '&#x2c;',
  20. 'arrow_expand_alt2' : '&#x2d;',
  21. 'arrow_expand_alt' : '&#x2e;',
  22. 'arrow_condense' : '&#x2f;',
  23. 'arrow_expand' : '&#x30;',
  24. 'arrow_move' : '&#x31;',
  25. 'arrow_carrot-up' : '&#x32;',
  26. 'arrow_carrot-down' : '&#x33;',
  27. 'arrow_carrot-left' : '&#x34;',
  28. 'arrow_carrot-right' : '&#x35;',
  29. 'arrow_carrot-2up' : '&#x36;',
  30. 'arrow_carrot-2down' : '&#x37;',
  31. 'arrow_carrot-2left' : '&#x38;',
  32. 'arrow_carrot-2right' : '&#x39;',
  33. 'arrow_carrot-up_alt2' : '&#x3a;',
  34. 'arrow_carrot-down_alt2' : '&#x3b;',
  35. 'arrow_carrot-left_alt2' : '&#x3c;',
  36. 'arrow_carrot-right_alt2' : '&#x3d;',
  37. 'arrow_carrot-2up_alt2' : '&#x3e;',
  38. 'arrow_carrot-2down_alt2' : '&#x3f;',
  39. 'arrow_carrot-2left_alt2' : '&#x40;',
  40. 'arrow_carrot-2right_alt2' : '&#x41;',
  41. 'arrow_triangle-up' : '&#x42;',
  42. 'arrow_triangle-down' : '&#x43;',
  43. 'arrow_triangle-left' : '&#x44;',
  44. 'arrow_triangle-right' : '&#x45;',
  45. 'arrow_triangle-up_alt2' : '&#x46;',
  46. 'arrow_triangle-down_alt2' : '&#x47;',
  47. 'arrow_triangle-left_alt2' : '&#x48;',
  48. 'arrow_triangle-right_alt2' : '&#x49;',
  49. 'arrow_back' : '&#x4a;',
  50. 'icon_minus-06' : '&#x4b;',
  51. 'icon_plus' : '&#x4c;',
  52. 'icon_close' : '&#x4d;',
  53. 'icon_check' : '&#x4e;',
  54. 'icon_minus_alt2' : '&#x4f;',
  55. 'icon_plus_alt2' : '&#x50;',
  56. 'icon_close_alt2' : '&#x51;',
  57. 'icon_check_alt2' : '&#x52;',
  58. 'icon_zoom-out_alt' : '&#x53;',
  59. 'icon_zoom-in_alt' : '&#x54;',
  60. 'icon_search' : '&#x55;',
  61. 'icon_box-empty' : '&#x56;',
  62. 'icon_box-selected' : '&#x57;',
  63. 'icon_minus-box' : '&#x58;',
  64. 'icon_plus-box' : '&#x59;',
  65. 'icon_box-checked' : '&#x5a;',
  66. 'icon_circle-empty' : '&#x5b;',
  67. 'icon_circle-slelected' : '&#x5c;',
  68. 'icon_stop_alt2' : '&#x5d;',
  69. 'icon_stop' : '&#x5e;',
  70. 'icon_pause_alt2' : '&#x5f;',
  71. 'icon_pause' : '&#x60;',
  72. 'icon_menu' : '&#x61;',
  73. 'icon_menu-square_alt2' : '&#x62;',
  74. 'icon_menu-circle_alt2' : '&#x63;',
  75. 'icon_ul' : '&#x64;',
  76. 'icon_ol' : '&#x65;',
  77. 'icon_adjust-horiz' : '&#x66;',
  78. 'icon_adjust-vert' : '&#x67;',
  79. 'icon_document_alt' : '&#x68;',
  80. 'icon_documents_alt' : '&#x69;',
  81. 'icon_pencil' : '&#x6a;',
  82. 'icon_pencil-edit_alt' : '&#x6b;',
  83. 'icon_pencil-edit' : '&#x6c;',
  84. 'icon_folder-alt' : '&#x6d;',
  85. 'icon_folder-open_alt' : '&#x6e;',
  86. 'icon_folder-add_alt' : '&#x6f;',
  87. 'icon_info_alt' : '&#x70;',
  88. 'icon_error-oct_alt' : '&#x71;',
  89. 'icon_error-circle_alt' : '&#x72;',
  90. 'icon_error-triangle_alt' : '&#x73;',
  91. 'icon_question_alt2' : '&#x74;',
  92. 'icon_question' : '&#x75;',
  93. 'icon_comment_alt' : '&#x76;',
  94. 'icon_chat_alt' : '&#x77;',
  95. 'icon_vol-mute_alt' : '&#x78;',
  96. 'icon_volume-low_alt' : '&#x79;',
  97. 'icon_volume-high_alt' : '&#x7a;',
  98. 'icon_quotations' : '&#x7b;',
  99. 'icon_quotations_alt2' : '&#x7c;',
  100. 'icon_clock_alt' : '&#x7d;',
  101. 'icon_lock_alt' : '&#x7e;',
  102. 'icon_lock-open_alt' : '&#xe000;',
  103. 'icon_key_alt' : '&#xe001;',
  104. 'icon_cloud_alt' : '&#xe002;',
  105. 'icon_cloud-upload_alt' : '&#xe003;',
  106. 'icon_cloud-download_alt' : '&#xe004;',
  107. 'icon_image' : '&#xe005;',
  108. 'icon_images' : '&#xe006;',
  109. 'icon_lightbulb_alt' : '&#xe007;',
  110. 'icon_gift_alt' : '&#xe008;',
  111. 'icon_house_alt' : '&#xe009;',
  112. 'icon_genius' : '&#xe00a;',
  113. 'icon_mobile' : '&#xe00b;',
  114. 'icon_tablet' : '&#xe00c;',
  115. 'icon_laptop' : '&#xe00d;',
  116. 'icon_desktop' : '&#xe00e;',
  117. 'icon_camera_alt' : '&#xe00f;',
  118. 'icon_mail_alt' : '&#xe010;',
  119. 'icon_cone_alt' : '&#xe011;',
  120. 'icon_ribbon_alt' : '&#xe012;',
  121. 'icon_bag_alt' : '&#xe013;',
  122. 'icon_creditcard' : '&#xe014;',
  123. 'icon_cart_alt' : '&#xe015;',
  124. 'icon_paperclip' : '&#xe016;',
  125. 'icon_tag_alt' : '&#xe017;',
  126. 'icon_tags_alt' : '&#xe018;',
  127. 'icon_trash_alt' : '&#xe019;',
  128. 'icon_cursor_alt' : '&#xe01a;',
  129. 'icon_mic_alt' : '&#xe01b;',
  130. 'icon_compass_alt' : '&#xe01c;',
  131. 'icon_pin_alt' : '&#xe01d;',
  132. 'icon_pushpin_alt' : '&#xe01e;',
  133. 'icon_map_alt' : '&#xe01f;',
  134. 'icon_drawer_alt' : '&#xe020;',
  135. 'icon_toolbox_alt' : '&#xe021;',
  136. 'icon_book_alt' : '&#xe022;',
  137. 'icon_calendar' : '&#xe023;',
  138. 'icon_film' : '&#xe024;',
  139. 'icon_table' : '&#xe025;',
  140. 'icon_contacts_alt' : '&#xe026;',
  141. 'icon_headphones' : '&#xe027;',
  142. 'icon_lifesaver' : '&#xe028;',
  143. 'icon_piechart' : '&#xe029;',
  144. 'icon_refresh' : '&#xe02a;',
  145. 'icon_link_alt' : '&#xe02b;',
  146. 'icon_link' : '&#xe02c;',
  147. 'icon_loading' : '&#xe02d;',
  148. 'icon_blocked' : '&#xe02e;',
  149. 'icon_archive_alt' : '&#xe02f;',
  150. 'icon_heart_alt' : '&#xe030;',
  151. 'icon_star_alt' : '&#xe031;',
  152. 'icon_star-half_alt' : '&#xe032;',
  153. 'icon_star' : '&#xe033;',
  154. 'icon_star-half' : '&#xe034;',
  155. 'icon_tools' : '&#xe035;',
  156. 'icon_tool' : '&#xe036;',
  157. 'icon_cog' : '&#xe037;',
  158. 'icon_cogs' : '&#xe038;',
  159. 'arrow_up_alt' : '&#xe039;',
  160. 'arrow_down_alt' : '&#xe03a;',
  161. 'arrow_left_alt' : '&#xe03b;',
  162. 'arrow_right_alt' : '&#xe03c;',
  163. 'arrow_left-up_alt' : '&#xe03d;',
  164. 'arrow_right-up_alt' : '&#xe03e;',
  165. 'arrow_right-down_alt' : '&#xe03f;',
  166. 'arrow_left-down_alt' : '&#xe040;',
  167. 'arrow_condense_alt' : '&#xe041;',
  168. 'arrow_expand_alt3' : '&#xe042;',
  169. 'arrow_carrot_up_alt' : '&#xe043;',
  170. 'arrow_carrot-down_alt' : '&#xe044;',
  171. 'arrow_carrot-left_alt' : '&#xe045;',
  172. 'arrow_carrot-right_alt' : '&#xe046;',
  173. 'arrow_carrot-2up_alt' : '&#xe047;',
  174. 'arrow_carrot-2dwnn_alt' : '&#xe048;',
  175. 'arrow_carrot-2left_alt' : '&#xe049;',
  176. 'arrow_carrot-2right_alt' : '&#xe04a;',
  177. 'arrow_triangle-up_alt' : '&#xe04b;',
  178. 'arrow_triangle-down_alt' : '&#xe04c;',
  179. 'arrow_triangle-left_alt' : '&#xe04d;',
  180. 'arrow_triangle-right_alt' : '&#xe04e;',
  181. 'icon_minus_alt' : '&#xe04f;',
  182. 'icon_plus_alt' : '&#xe050;',
  183. 'icon_close_alt' : '&#xe051;',
  184. 'icon_check_alt' : '&#xe052;',
  185. 'icon_zoom-out' : '&#xe053;',
  186. 'icon_zoom-in' : '&#xe054;',
  187. 'icon_stop_alt' : '&#xe055;',
  188. 'icon_menu-square_alt' : '&#xe056;',
  189. 'icon_menu-circle_alt' : '&#xe057;',
  190. 'icon_document' : '&#xe058;',
  191. 'icon_documents' : '&#xe059;',
  192. 'icon_pencil_alt' : '&#xe05a;',
  193. 'icon_folder' : '&#xe05b;',
  194. 'icon_folder-open' : '&#xe05c;',
  195. 'icon_folder-add' : '&#xe05d;',
  196. 'icon_folder_upload' : '&#xe05e;',
  197. 'icon_folder_download' : '&#xe05f;',
  198. 'icon_info' : '&#xe060;',
  199. 'icon_error-circle' : '&#xe061;',
  200. 'icon_error-oct' : '&#xe062;',
  201. 'icon_error-triangle' : '&#xe063;',
  202. 'icon_question_alt' : '&#xe064;',
  203. 'icon_comment' : '&#xe065;',
  204. 'icon_chat' : '&#xe066;',
  205. 'icon_vol-mute' : '&#xe067;',
  206. 'icon_volume-low' : '&#xe068;',
  207. 'icon_volume-high' : '&#xe069;',
  208. 'icon_quotations_alt' : '&#xe06a;',
  209. 'icon_clock' : '&#xe06b;',
  210. 'icon_lock' : '&#xe06c;',
  211. 'icon_lock-open' : '&#xe06d;',
  212. 'icon_key' : '&#xe06e;',
  213. 'icon_cloud' : '&#xe06f;',
  214. 'icon_cloud-upload' : '&#xe070;',
  215. 'icon_cloud-download' : '&#xe071;',
  216. 'icon_lightbulb' : '&#xe072;',
  217. 'icon_gift' : '&#xe073;',
  218. 'icon_house' : '&#xe074;',
  219. 'icon_camera' : '&#xe075;',
  220. 'icon_mail' : '&#xe076;',
  221. 'icon_cone' : '&#xe077;',
  222. 'icon_ribbon' : '&#xe078;',
  223. 'icon_bag' : '&#xe079;',
  224. 'icon_cart' : '&#xe07a;',
  225. 'icon_tag' : '&#xe07b;',
  226. 'icon_tags' : '&#xe07c;',
  227. 'icon_trash' : '&#xe07d;',
  228. 'icon_cursor' : '&#xe07e;',
  229. 'icon_mic' : '&#xe07f;',
  230. 'icon_compass' : '&#xe080;',
  231. 'icon_pin' : '&#xe081;',
  232. 'icon_pushpin' : '&#xe082;',
  233. 'icon_map' : '&#xe083;',
  234. 'icon_drawer' : '&#xe084;',
  235. 'icon_toolbox' : '&#xe085;',
  236. 'icon_book' : '&#xe086;',
  237. 'icon_contacts' : '&#xe087;',
  238. 'icon_archive' : '&#xe088;',
  239. 'icon_heart' : '&#xe089;',
  240. 'icon_profile' : '&#xe08a;',
  241. 'icon_group' : '&#xe08b;',
  242. 'icon_grid-2x2' : '&#xe08c;',
  243. 'icon_grid-3x3' : '&#xe08d;',
  244. 'icon_music' : '&#xe08e;',
  245. 'icon_pause_alt' : '&#xe08f;',
  246. 'icon_phone' : '&#xe090;',
  247. 'icon_upload' : '&#xe091;',
  248. 'icon_download' : '&#xe092;',
  249. 'social_facebook' : '&#xe093;',
  250. 'social_twitter' : '&#xe094;',
  251. 'social_pinterest' : '&#xe095;',
  252. 'social_googleplus' : '&#xe096;',
  253. 'social_tumblr' : '&#xe097;',
  254. 'social_tumbleupon' : '&#xe098;',
  255. 'social_wordpress' : '&#xe099;',
  256. 'social_instagram' : '&#xe09a;',
  257. 'social_dribbble' : '&#xe09b;',
  258. 'social_vimeo' : '&#xe09c;',
  259. 'social_linkedin' : '&#xe09d;',
  260. 'social_rss' : '&#xe09e;',
  261. 'social_deviantart' : '&#xe09f;',
  262. 'social_share' : '&#xe0a0;',
  263. 'social_myspace' : '&#xe0a1;',
  264. 'social_skype' : '&#xe0a2;',
  265. 'social_youtube' : '&#xe0a3;',
  266. 'social_picassa' : '&#xe0a4;',
  267. 'social_googledrive' : '&#xe0a5;',
  268. 'social_flickr' : '&#xe0a6;',
  269. 'social_blogger' : '&#xe0a7;',
  270. 'social_spotify' : '&#xe0a8;',
  271. 'social_delicious' : '&#xe0a9;',
  272. 'social_facebook_circle' : '&#xe0aa;',
  273. 'social_twitter_circle' : '&#xe0ab;',
  274. 'social_pinterest_circle' : '&#xe0ac;',
  275. 'social_googleplus_circle' : '&#xe0ad;',
  276. 'social_tumblr_circle' : '&#xe0ae;',
  277. 'social_stumbleupon_circle' : '&#xe0af;',
  278. 'social_wordpress_circle' : '&#xe0b0;',
  279. 'social_instagram_circle' : '&#xe0b1;',
  280. 'social_dribbble_circle' : '&#xe0b2;',
  281. 'social_vimeo_circle' : '&#xe0b3;',
  282. 'social_linkedin_circle' : '&#xe0b4;',
  283. 'social_rss_circle' : '&#xe0b5;',
  284. 'social_deviantart_circle' : '&#xe0b6;',
  285. 'social_share_circle' : '&#xe0b7;',
  286. 'social_myspace_circle' : '&#xe0b8;',
  287. 'social_skype_circle' : '&#xe0b9;',
  288. 'social_youtube_circle' : '&#xe0ba;',
  289. 'social_picassa_circle' : '&#xe0bb;',
  290. 'social_googledrive_alt2' : '&#xe0bc;',
  291. 'social_flickr_circle' : '&#xe0bd;',
  292. 'social_blogger_circle' : '&#xe0be;',
  293. 'social_spotify_circle' : '&#xe0bf;',
  294. 'social_delicious_circle' : '&#xe0c0;',
  295. 'social_facebook_square' : '&#xe0c1;',
  296. 'social_twitter_square' : '&#xe0c2;',
  297. 'social_pinterest_square' : '&#xe0c3;',
  298. 'social_googleplus_square' : '&#xe0c4;',
  299. 'social_tumblr_square' : '&#xe0c5;',
  300. 'social_stumbleupon_square' : '&#xe0c6;',
  301. 'social_wordpress_square' : '&#xe0c7;',
  302. 'social_instagram_square' : '&#xe0c8;',
  303. 'social_dribbble_square' : '&#xe0c9;',
  304. 'social_vimeo_square' : '&#xe0ca;',
  305. 'social_linkedin_square' : '&#xe0cb;',
  306. 'social_rss_square' : '&#xe0cc;',
  307. 'social_deviantart_square' : '&#xe0cd;',
  308. 'social_share_square' : '&#xe0ce;',
  309. 'social_myspace_square' : '&#xe0cf;',
  310. 'social_skype_square' : '&#xe0d0;',
  311. 'social_youtube_square' : '&#xe0d1;',
  312. 'social_picassa_square' : '&#xe0d2;',
  313. 'social_googledrive_square' : '&#xe0d3;',
  314. 'social_flickr_square' : '&#xe0d4;',
  315. 'social_blogger_square' : '&#xe0d5;',
  316. 'social_spotify_square' : '&#xe0d6;',
  317. 'social_delicious_square' : '&#xe0d7;',
  318. 'icon_printer' : '&#xe103;',
  319. 'icon_calulator' : '&#xe0ee;',
  320. 'icon_building' : '&#xe0ef;',
  321. 'icon_floppy' : '&#xe0e8;',
  322. 'icon_drive' : '&#xe0ea;',
  323. 'icon_search-2' : '&#xe101;',
  324. 'icon_id' : '&#xe107;',
  325. 'icon_id-2' : '&#xe108;',
  326. 'icon_puzzle' : '&#xe102;',
  327. 'icon_like' : '&#xe106;',
  328. 'icon_dislike' : '&#xe0eb;',
  329. 'icon_mug' : '&#xe105;',
  330. 'icon_currency' : '&#xe0ed;',
  331. 'icon_wallet' : '&#xe100;',
  332. 'icon_pens' : '&#xe104;',
  333. 'icon_easel' : '&#xe0e9;',
  334. 'icon_flowchart' : '&#xe109;',
  335. 'icon_datareport' : '&#xe0ec;',
  336. 'icon_briefcase' : '&#xe0fe;',
  337. 'icon_shield' : '&#xe0f6;',
  338. 'icon_percent' : '&#xe0fb;',
  339. 'icon_globe' : '&#xe0e2;',
  340. 'icon_globe-2' : '&#xe0e3;',
  341. 'icon_target' : '&#xe0f5;',
  342. 'icon_hourglass' : '&#xe0e1;',
  343. 'icon_balance' : '&#xe0ff;',
  344. 'icon_rook' : '&#xe0f8;',
  345. 'icon_printer-alt' : '&#xe0fa;',
  346. 'icon_calculator_alt' : '&#xe0e7;',
  347. 'icon_building_alt' : '&#xe0fd;',
  348. 'icon_floppy_alt' : '&#xe0e4;',
  349. 'icon_drive_alt' : '&#xe0e5;',
  350. 'icon_search_alt' : '&#xe0f7;',
  351. 'icon_id_alt' : '&#xe0e0;',
  352. 'icon_id-2_alt' : '&#xe0fc;',
  353. 'icon_puzzle_alt' : '&#xe0f9;',
  354. 'icon_like_alt' : '&#xe0dd;',
  355. 'icon_dislike_alt' : '&#xe0f1;',
  356. 'icon_mug_alt' : '&#xe0dc;',
  357. 'icon_currency_alt' : '&#xe0f3;',
  358. 'icon_wallet_alt' : '&#xe0d8;',
  359. 'icon_pens_alt' : '&#xe0db;',
  360. 'icon_easel_alt' : '&#xe0f0;',
  361. 'icon_flowchart_alt' : '&#xe0df;',
  362. 'icon_datareport_alt' : '&#xe0f2;',
  363. 'icon_briefcase_alt' : '&#xe0f4;',
  364. 'icon_shield_alt' : '&#xe0d9;',
  365. 'icon_percent_alt' : '&#xe0da;',
  366. 'icon_globe_alt' : '&#xe0de;',
  367. 'icon_clipboard' : '&#xe0e6;'
  368. },
  369. els = document.getElementsByTagName('*'),
  370. i, attr, c, el;
  371. for (i = 0; ; i += 1) {
  372. el = els[i];
  373. if(!el) {
  374. break;
  375. }
  376. attr = el.getAttribute('data-icon');
  377. if (attr) {
  378. addIcon(el, attr);
  379. }
  380. c = el.className;
  381. c = c.match(/[^\s'"]+/);
  382. if (c && icons[c[0]]) {
  383. addIcon(el, icons[c[0]]);
  384. }
  385. }
  386. };