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
weiqingting
9 years ago
Commit
eeef8c344f8c53febddc2c800c34788cb463f0fb
1 parent
cc8f085e
hover效果
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
web-static/js/home/home.js
web-static/js/home/home.js
View file @
eeef8c3
...
...
@@ -16,6 +16,13 @@ require('../common/logo-brand');
require
(
'../common/accordion'
);
$
(
document
).
on
(
'mouseenter'
,
'.imgopacity a img'
,
function
()
{
$
(
this
).
css
(
'opacity'
,
0.8
);
});
$
(
document
).
on
(
'mouseout'
,
'.imgopacity a img'
,
function
()
{
$
(
this
).
css
(
'opacity'
,
1
);
});
if
(
homePage
===
'brands'
)
{
require
(
'./brands'
);
}
...
...
@@ -34,12 +41,7 @@ if ($.inArray(homePage, ['boys','girls','kids','lifestyle']) > -1) {
});
}
$
(
document
).
on
(
"mouseenter"
,
".imgopacity a img"
,
function
(){
$
(
this
).
css
(
'opacity'
,
0.8
);
});
$
(
document
).
on
(
"mouseout"
,
".imgopacity a img"
,
function
(){
$
(
this
).
css
(
'opacity'
,
1
);
})
lazyLoad
(
$
(
'img.lazy'
));
if
(
homePage
===
'boys'
)
{
...
...
Please
register
or
login
to post a comment