edit js/ditto

This commit is contained in:
ruanyf
2014-04-29 22:58:13 +08:00
parent 97816c40e3
commit 65206f8905
+10 -2
View File
@@ -245,10 +245,18 @@ function router() {
}
$('#pageup').on('click',function (){
for (var i=0;i<menu.length;i++){
if (location.hash==='') break;
if (menu[i]===location.hash) break;
}
location.hash = menu[i-1]
});
$('#pagedown').on('click',function (){
for (var i=0;i<menu.length;i++){
if (location.hash==='') break;
if (menu[i]===location.hash) break;
}
location.hash = menu[i+1];
});
}).fail(function() {