Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
梁志锋
9 years ago
Commit
839af9e2286f2e48f131c2822fef2334ec1b13bc
1 parent
37a31ca2
侧边栏点透问题
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
static/js/home/home.js
static/js/home/home.js
View file @
839af9e
...
...
@@ -25,18 +25,24 @@ var start = 0,
lazyLoad
(
$
(
'img.lazy'
));
$
(
'.nav-btn'
).
on
(
'touchstart'
,
function
(
event
)
{
$sideNav
.
css
(
'pointer-events'
,
'none'
);
$mobileWrap
.
addClass
(
'menu-open'
);
$overlay
.
show
().
css
(
'opacity'
,
0.3
);
$sideNav
.
addClass
(
'on'
);
openSideNav
=
true
;
event
.
preventDefault
();
event
.
stopPropagation
();
openSideNav
=
true
;
//设置boy高宽,页面不能上下滑动
$
(
'body'
).
css
({
height
:
$
(
window
).
height
(),
overflow
:
'hidden'
});
setTimeout
(
function
()
{
$sideNav
.
css
(
'pointer-events'
,
'auto'
);
},
400
);
return
false
;
});
...
...
Please
register
or
login
to post a comment