mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
edit js/ditto
This commit is contained in:
parent
091094a92a
commit
97816c40e3
@ -234,10 +234,14 @@ function router() {
|
|||||||
|
|
||||||
if(location.hash==='' || location.hash===menu[0]){
|
if(location.hash==='' || location.hash===menu[0]){
|
||||||
$('#pageup').css('display','none');
|
$('#pageup').css('display','none');
|
||||||
|
}else{
|
||||||
|
$('#pageup').css('display','inline-block');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (location.hash===menu[(menu.length-1)]){
|
if (location.hash===menu[(menu.length-1)]){
|
||||||
$('#pagedown').css('display','none');
|
$('#pagedown').css('display','none');
|
||||||
|
}else{
|
||||||
|
$('#pagedown').css('display','inline-block');
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#pageup').on('click',function (){
|
$('#pageup').on('click',function (){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user