Commit 622f99b4 by doszhang

dos

parent e19f8830
...@@ -124,21 +124,21 @@ $(document).ready(function () { ...@@ -124,21 +124,21 @@ $(document).ready(function () {
}, 2000) }, 2000)
}); });
document.οnresize = function () { window.οnresize = function () {
alert(1); alert(1);
//键盘弹起与隐藏都会引起窗口的高度发生变化 // //键盘弹起与隐藏都会引起窗口的高度发生变化
var resizeHeight = document.documentElement.clientHeight || document.body.clientHeight; // var resizeHeight = document.documentElement.clientHeight || document.body.clientHeight;
if ((resizeHeight) < (originalHeight)) { // if ((resizeHeight) < (originalHeight)) {
//当软键盘弹起,在此处操作 // //当软键盘弹起,在此处操作
if (browser.versions.android && ($('input[name=name]').is(":focus") || $('input[name=business]').is(":focus"))) { // if (browser.versions.android && ($('input[name=name]').is(":focus") || $('input[name=business]').is(":focus"))) {
alert(resizeHeight); // alert(resizeHeight);
} // }
} else { // } else {
//当软键盘收起,在此处操作 // //当软键盘收起,在此处操作
if (browser.versions.android) { // if (browser.versions.android) {
alert(resizeHeight); // alert(resizeHeight);
} // }
} // }
} }
$('.music').click(function () { $('.music').click(function () {
......
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