Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
pingan-promise
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
622f99b4
authored
Mar 12, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
e19f8830
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
Public/static/js/common.js
+14
-14
No files found.
Public/static/js/common.js
View file @
622f99b4
...
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment