Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOOD
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
2586703@qq.com
10 years ago
Commit
4d0afc74692491a47f58c9ea02e98733dfad3420
1 parent
7a669fdc
搜索页js修改
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
res/js/mobile.js
res/js/mobile.js
View file @
4d0afc7
...
...
@@ -107,11 +107,11 @@ define('mobile', function(require, exports) {
$
(
'.search-wrap input'
).
on
(
'focus'
,
function
()
{
var
offsetTop
=
$
(
'.search-wrap'
).
offset
().
top
;
$
(
'.overlay'
).
addClass
(
'show'
);
if
(
$
(
'.header-download'
).
hasClass
(
'fix'
))
{
offsetTop
=
$
(
'.header-download'
).
outerHeight
();
}
$
(
'body,html'
).
animate
({
scrollTop
:
offsetTop
},
function
()
{
$
(
'.header-download-wrap'
).
removeClass
(
'show'
);
$
(
'.header-download'
).
removeClass
(
'fix'
);
});
});
$
(
'.search-wrap'
).
find
(
'input'
).
on
(
'keyup'
,
function
(
event
)
{
...
...
Please
register
or
login
to post a comment