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
5692ed24ba7c4925ba7898a79038d4c47091c121
1 parent
d1cdd5fd
侧边栏修改
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
static/js/home/home.js
static/js/home/home.js
View file @
5692ed2
...
...
@@ -25,6 +25,7 @@ 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'
);
...
...
@@ -37,6 +38,11 @@ $('.nav-btn').on('touchstart', function(event) {
height
:
$
(
window
).
height
(),
overflow
:
'hidden'
});
setTimeout
(
function
()
{
$sideNav
.
css
(
'pointer-events'
,
'auto'
);
},
400
);
return
false
;
});
...
...
Please
register
or
login
to post a comment