Commit ded2a79e by libai

测试

parent ab44963a
Showing with 10 additions and 0 deletions
...@@ -970,6 +970,7 @@ $(function(){ ...@@ -970,6 +970,7 @@ $(function(){
$(".layer-shadow").on("click",function(){ $(".layer-shadow").on("click",function(){
$(".layer-shadow").hide() $(".layer-shadow").hide()
$(".keyboard-box").hide() $(".keyboard-box").hide()
fixScroll()
$(".login-box").css("bottom","-15rem") $(".login-box").css("bottom","-15rem")
$(".rich-list-layer").css("bottom","-9.1rem") $(".rich-list-layer").css("bottom","-9.1rem")
$(".hot-list-layer").css("bottom","-9.1rem") $(".hot-list-layer").css("bottom","-9.1rem")
...@@ -2164,6 +2165,7 @@ $(function(){ ...@@ -2164,6 +2165,7 @@ $(function(){
} }
if(data.code==1){ if(data.code==1){
$(".keyboard-box").hide() $(".keyboard-box").hide()
fixScroll()
$(".layer-shadow").hide() $(".layer-shadow").hide()
$(".keyboard-input").val("") $(".keyboard-input").val("")
...@@ -2524,6 +2526,13 @@ $(function(){ ...@@ -2524,6 +2526,13 @@ $(function(){
function asinGo(x,y){ function asinGo(x,y){
return degNum=Math.round(180*Math.asin(x/Math.sqrt(x*x+y*y))/Math.PI*10)/10 return degNum=Math.round(180*Math.asin(x/Math.sqrt(x*x+y*y))/Math.PI*10)/10
} }
function fixScroll() {
var u = navigator.userAgent;
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
if (isiOS) {
window.scrollTo(0, 0);
}
}
}) })
</script> </script>
</html> </html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment