/**
* 修改点击input输入框时的位置
*input框获取焦点footer隐藏,失去焦点时显示
*/
$('.input-footer-none').on('focus',function(){
$('.footer-focus-none').css('display','none');
var _this=this;
setTimeout(function(){
_this.scrollIntoView();
_this.scrollIntoViewIfNeeded();
},200);
});
$('.input-footer-none').on('blur',function(){
$('.footer-focus-none').css('display','block');
});
//点击键盘上的向下按钮隐藏输入法的情况
window.onresize = function () {
var h = $(window).height();
//console.log(h+','+window.screen.availHeight)
var u = navigator.userAgent;
if (u.indexOf('Android') > -1 || u.indexOf('Linux') > -1) {
if(h <= window.screen.availHeight/2){
$('.footer-focus-none').css({'position':'absoult',"margin-top":"-.5rem",'display':'none'});
}else{
$('.footer-focus-none').css({'position':'fixed','display':'block'});
}
}
}