Commit 190f9c29 by doszhang

dos

parent ea9947d7
......@@ -16,8 +16,8 @@
width: 640px;
height: 1238px;
top: 50%;
transform: translate(0, -48%);
-webkit-transform: translate(0, -48%);
transform: translate(0, -50%);
-webkit-transform: translate(0, -50%);
}
/*消除ios点击阴影*/
......
......@@ -111,16 +111,29 @@ preloadimages(preloadImageList, function () {
$('.loading-page .plant').css('transform', 'translateX(' + (-368 + (368 * progress)) + 'px)');
});
const originalHeight = document.documentElement.clientHeight || document.body.clientHeight;
$(document).ready(function () {
// $('.logo').css('top', getTranslateDistance(40, true));
$("input").on("focus blur", function () {
$("input").on("blur", function () {
window.scroll(0, 0); //失焦后强制让页面归位
});
setInterval(function () {
window.scroll(0, 0);
}, 5)
window.οnresize = function () {
//键盘弹起与隐藏都会引起窗口的高度发生变化
var resizeHeight = document.documentElement.clientHeight || document.body.clientHeight;
if ((resizeHeight) < (originalHeight)) {
//当软键盘弹起,在此处操作
if (browser.versions.weixin && ($('input[name=name]').is(":focus") || $('input[name=business]').is(":focus"))) {
alert(resizeHeight);
}
} else {
//当软键盘收起,在此处操作
if (browser.versions.weixin) {
alert(resizeHeight);
}
}
}
$('.music').click(function () {
if ($('#music')[0].paused) {
......
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