Merge branch 'fix_back_to_home' of github.com:LLK/scratchx into gh-pages
This commit is contained in:
commit
0744483ca2
1 changed files with 4 additions and 0 deletions
|
@ -277,6 +277,10 @@ $(document).on('click', "[data-action='static-link']", function(e) {
|
||||||
showPage(path);
|
showPage(path);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(window).bind('hashchange', function(e) {
|
||||||
|
if (document.location.hash == '') showPage('home');
|
||||||
|
});
|
||||||
|
|
||||||
function showPage(path) {
|
function showPage(path) {
|
||||||
/*
|
/*
|
||||||
* Show a part of the page. The site is set up like
|
* Show a part of the page. The site is set up like
|
||||||
|
|
Reference in a new issue