Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
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
梁志锋
9 years ago
Commit
d93cf911ee3048a6dd04e7dbbc9e641a3a648bbc
1 parent
06963754
逛返回点透
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
static/js/home/home.js
static/js/home/home.js
View file @
d93cf91
...
...
@@ -29,8 +29,6 @@ $('.nav-btn').on('touchstart', function(event) {
$mobileWrap
.
addClass
(
'menu-open'
);
$overlay
.
show
().
css
(
'opacity'
,
0.3
);
$sideNav
.
addClass
(
'on'
);
event
.
preventDefault
();
event
.
stopPropagation
();
openSideNav
=
true
;
setTimeout
(
function
()
{
...
...
@@ -75,6 +73,11 @@ $sideNav.on('touchstart', 'li', function(e) {
//返回一级导航,收起二级导航
$subNav
.
each
(
function
()
{
$
(
this
).
find
(
'li'
).
eq
(
0
).
on
(
'touchend'
,
function
()
{
$sideNav
.
css
(
'pointer-events'
,
'none'
);
setTimeout
(
function
()
{
$sideNav
.
css
(
'pointer-events'
,
'auto'
);
},
400
);
$
(
'.sub-nav'
).
removeClass
(
'show'
);
return
false
;
});
...
...
Please
register
or
login
to post a comment