Commit 622f99b4 by doszhang

dos

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