Skip to content
Snippets Groups Projects
Commit 329c62df authored by Ken Hawkins's avatar Ken Hawkins Committed by GitHub
Browse files

Remove depreciated code, <=IE8 code (per #18)

IE8 is not an officially supported browser: https://ebiwd.github.io/EBI-Pattern-library/components/browser-compatibility/
parent 1409af6c
No related branches found
No related tags found
No related merge requests found
......@@ -69,13 +69,7 @@
})();
(function fixes() {
// extend string prototype
if (!String.prototype.trim) {
String.prototype.trim = function() {
return this.replace(/^\s+|\s+$/g, '');
};
}
// set text in copyright notice, adjust to current year
(function copyrightFix() {
try {
......@@ -222,22 +216,6 @@
}
};
/*
// add hint
searchInput.onfocus = function() {
if (this.value === searchInputDefault) {
this.value = '';
}
this.style.color = '#000';
}
searchInput.onblur = function() {
if (this.value === '') {
this.value = searchInputDefault;
}
this.style.color = '#ccc';
}
searchInput['onblur'].call(searchInput);
*/
}
}
}
......@@ -265,14 +243,6 @@
catch (err) {}
})();
(function browserIdentify() {
if (document.all && !document.addEventListener) { // <IE8
if (document.body.parentNode.className.indexOf('oldie') === -1) {
document.body.parentNode.className += ' oldie';
}
}
})();
// tap the location bar to scroll to the top
(function scrollMeUp() {
var localMasthead = document.getElementById('local-masthead');
......@@ -341,10 +311,3 @@ $.fn.foundationExtendEBI = function() {
}
}(jQuery));
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment