demos/index.html - mapped #widget to #widget|default.

This commit is contained in:
Ca-Phun Ung 2009-01-02 12:20:10 +00:00
parent 3287ca7199
commit 55e6b80737

View File

@ -80,6 +80,9 @@
});
if (window.location.hash) {
if (window.location.hash.indexOf('|') === -1) {
window.location.hash += '|default';
}
var path = window.location.href.replace('#','');
path = path.replace('\|','/') + '.html';
loadPage(path);