Skip to content

Commit

Permalink
Fix the back/forward button.
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyFitz committed Jun 15, 2013
1 parent e47a7ee commit 5525160
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions templates/index.html
Expand Up @@ -52,19 +52,8 @@
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

// http://stackoverflow.com/questions/6927637/addeventlistener-in-internet-explorer
function addEvent(evnt, elem, func) {
if (elem.addEventListener) // W3C DOM
elem.addEventListener(evnt,func,false);
else if (elem.attachEvent) { // IE DOM
elem.attachEvent("on"+evnt, func);
}
else { // No much to do
elem[evnt] = func;
}
}
$(window).on("hashchange", on_hash_change);

window.addEvent("hashchange", on_hash_change, false);
var current_filename = "";

function filename_only(url) {
Expand Down

0 comments on commit 5525160

Please sign in to comment.