Permalink
Browse files

Drop support for IE7 and lower for the icon font.

The icons are an 'enhancement' and this site is quite usable without
the icons. I see no need to slow down IE7 nd lower even further.
  • Loading branch information...
markvl committed Mar 12, 2013
1 parent e6dfb60 commit 63f40e89e5e299573251f2cb2d0459bc009f2623
Showing with 0 additions and 36 deletions.
  1. +0 −33 assets/js/lte-ie7.js
  2. +0 −3 theme/base.html
View
@@ -1,33 +0,0 @@
-/* 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: \'icomoon\'">' + entity + '</span>' + html;
- }
- var icons = {
- 'icon-cc' : '&#xe000;',
- 'icon-twitter' : '&#xe001;',
- 'icon-google-plus' : '&#xe002;',
- 'icon-linkedin' : '&#xe003;',
- 'icon-github' : '&#xe004;',
- 'icon-feed' : '&#xe005;',
- 'icon-mail' : '&#xe006;',
- 'icon-bubble' : '&#xe00a;',
- 'icon-info' : '&#xe007;'
- },
- els = document.getElementsByTagName('*'),
- i, attr, html, c, el;
- for (i = 0; i < els.length; i += 1) {
- el = els[i];
- 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]]);
- }
- }
-};
View
@@ -14,9 +14,6 @@
<!--[if lte IE 8]>
<link media="all" href="{{ env.path + '/css/screen-old-ie.css' }}" rel="stylesheet" />
<![endif]-->
- <!--[if lte IE 7]>
- <script src="lte-ie7.js"></script>
- <![endif]-->
<!--[if gt IE 8]><!-->
<link media="all" href="{{ env.path + '/css/screen.css' }}" rel="stylesheet" />
<!--<![endif]-->

0 comments on commit 63f40e8

Please sign in to comment.