mirror of
https://github.com/mashirozx/sakura.git
synced 2024-11-22 06:48:12 +08:00
commit
8bde25ae5a
@ -1407,9 +1407,14 @@ var home = location.href,
|
|||||||
$('#bgvideo').css({
|
$('#bgvideo').css({
|
||||||
'min-height': _height
|
'min-height': _height
|
||||||
});
|
});
|
||||||
|
window.resizeFlag= null;
|
||||||
$(window).resize(function () {
|
$(window).resize(function () {
|
||||||
Siren.AH();
|
//直接resize性能爆炸,改成延时
|
||||||
});
|
if(resizeFlag!=null){
|
||||||
|
clearTimeout(resizeFlag);
|
||||||
|
}
|
||||||
|
resizeFlag = setTimeout(function(){ Siren.AH();resizeFlag=null }, 1000);
|
||||||
|
})
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$('.headertop').addClass('headertop-bar');
|
$('.headertop').addClass('headertop-bar');
|
||||||
@ -1811,4 +1816,4 @@ if ((isWebkit || isOpera || isIe) && document.getElementById && window.addEventL
|
|||||||
element.focus();
|
element.focus();
|
||||||
}
|
}
|
||||||
}, false);
|
}, false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user