Add jquery to examples for backwards compatibility with IE7/8

This commit is contained in:
Austin Hyde
2014-02-05 15:42:58 -05:00
parent 7930d1a129
commit 03b7d6ee92
53 changed files with 54 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
if (window.location.host === 'localhost:3000') {
return;
}
var container = document.querySelector('.navbar .navbar-inner .container'),
var container = $('.navbar .navbar-inner .container')[0],
form = document.createElement('form'),
select = document.createElement('select'),
possibleModes = {
@@ -54,7 +54,7 @@
}
}
select.addEventListener('change', modeChangedMethod);
$(select).change(modeChangedMethod);
select.className = 'input-medium';
form.className = 'navbar-form pull-right';