packer-cn/website/source/assets/javascripts/app/Init.js

37 lines
465 B
JavaScript
Raw Normal View History

2015-11-10 16:31:42 -05:00
(function(){
// Quick and dirty IE detection
var isIE = (function(){
if (window.navigator.userAgent.match('Trident')) {
return true;
} else {
return false;
}
})();
// isIE = true;
var Init = {
start: function(){
var id = document.body.id.toLowerCase();
if (this.Pages[id]) {
this.Pages[id]();
}
//always init sidebar
Init.initializeSidebar();
},
initializeSidebar: function(){
new Sidebar();
},
Pages: {}
};
Init.start();
})();