Merge branch 'fix_back_to_home' of github.com:LLK/scratchx into gh-pages

This commit is contained in:
Ray Schamp 2015-05-08 18:30:43 -04:00
commit 0744483ca2

View file

@ -277,6 +277,10 @@ $(document).on('click', "[data-action='static-link']", function(e) {
showPage(path);
});
$(window).bind('hashchange', function(e) {
if (document.location.hash == '') showPage('home');
});
function showPage(path) {
/*
* Show a part of the page. The site is set up like