Reverted docs.js changes

This commit is contained in:
Sam
2016-01-17 01:29:34 +11:00
parent f87a10ae0b
commit a277224ef4
2 changed files with 5 additions and 5 deletions

View File

@ -33,9 +33,9 @@ shr.setup({
buttons[i].addEventListener('click', newSource);
}
window.addEventListener('popstate', function(event) {
/*window.addEventListener('popstate', function(event) {
console.log(event);
});
});*/
function toggleClass(element, className, state) {
if (element) {
@ -117,9 +117,9 @@ shr.setup({
break;
}
if (window.history && window.history.pushState) {
/*if (window.history && window.history.pushState) {
history.pushState({ 'type': type }, '', '#' + type);
}
}*/
for (var x = buttons.length - 1; x >= 0; x--) {
toggleClass(buttons[x].parentElement, 'active', false);