From 3592cda3d6dfe6dd358abb5048ba08bd121821b7 Mon Sep 17 00:00:00 2001 From: ruanyf Date: Tue, 29 Apr 2014 22:39:09 +0800 Subject: [PATCH] edit js/ditto --- js/ditto.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/js/ditto.js b/js/ditto.js index a5d3904..f665241 100644 --- a/js/ditto.js +++ b/js/ditto.js @@ -232,6 +232,21 @@ function router() { }, 200); } + if(location.hash==='' || location.hash===menu[0]){ + $('#pageup').style.display='none'; + } + + if (location.hash===menu[(menu.length-1)]){ + $('pagedown').style.display='none'; + } + + $('#pageup').on('click',function (){ + + }); + $('#pagedown').on('click',function (){ + + }); + }).fail(function() { show_error();