fix error
This commit is contained in:
parent
f139a4cc68
commit
4f5e240e1b
|
@ -799,8 +799,9 @@ function transdate(){
|
||||||
});
|
});
|
||||||
$('.modules-menu-level-1').css('left','-'+$('.outdropdowns .dropdowns').offset().left+'px');
|
$('.modules-menu-level-1').css('left','-'+$('.outdropdowns .dropdowns').offset().left+'px');
|
||||||
$(".downIcon").click(function() {
|
$(".downIcon").click(function() {
|
||||||
|
var move_to_target=function (m) {
|
||||||
$(".kenjohn").addClass('navFixed');
|
$(".kenjohn").addClass('navFixed');
|
||||||
window.setTimeout(function(){
|
$('.layout-content').css('margin-top',$('.kenjohn').height());
|
||||||
var theTop;
|
var theTop;
|
||||||
if (parseInt($('.layout-content').css('margin-top')==0)){
|
if (parseInt($('.layout-content').css('margin-top')==0)){
|
||||||
theTop = $('.layout-content-inner.container').offset().top-$(".kenjohn").position().top+10;
|
theTop = $('.layout-content-inner.container').offset().top-$(".kenjohn").position().top+10;
|
||||||
|
@ -808,8 +809,11 @@ function transdate(){
|
||||||
theTop = $('.layout-content-inner.container').offset().top-$(".kenjohn").position().top-$(".kenjohn").height()+10;
|
theTop = $('.layout-content-inner.container').offset().top-$(".kenjohn").position().top-$(".kenjohn").height()+10;
|
||||||
}
|
}
|
||||||
$("html, body").animate({
|
$("html, body").animate({
|
||||||
scrollTop: theTop }, {duration: 500,easing: "swing"});
|
scrollTop: theTop - m }, {duration: 500,easing: "swing"},function(){
|
||||||
},100);
|
move_to_target(0);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
move_to_target(50);
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue