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
biao
9 years ago
Commit
54cd76db36fbda7db93b728cf088647b29d8e020
1 parent
a201ad11
show stander bottom when there is fixed bottom element on page
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
static/js/common.js
static/js/home/home.js
static/js/common.js
View file @
54cd76d
...
...
@@ -115,7 +115,7 @@ function rePosFooter() {
function
reMarginFooter
(
fixedElement
)
{
var
fixedElH
=
$
(
fixedElement
).
outerHeight
();
if
(
fixedElement
)
{
if
(
fixedElement
)
{
$footer
.
css
(
'margin-bottom'
,
fixedElH
+
'px'
);
}
}
...
...
static/js/home/home.js
View file @
54cd76d
...
...
@@ -69,7 +69,7 @@ $('.overlay').on('touchstart', function(e) {
});
//点击一级导航,弹出二级导航
$sideNav
.
on
(
'touchstart'
,
'li'
,
function
(
e
)
{
$sideNav
.
on
(
'touchstart'
,
'li'
,
function
(
e
)
{
if
(
$
(
this
).
find
(
'.sub-nav'
).
size
()
>
0
)
{
$
(
'.sub-nav'
).
removeClass
(
'show'
);
$
(
this
).
find
(
'.sub-nav'
).
addClass
(
'show'
);
...
...
@@ -82,8 +82,8 @@ $sideNav.on('touchstart', 'li', function (e) {
});
//返回一级导航,收起二级导航
$subNav
.
each
(
function
()
{
$
(
this
).
find
(
'li'
).
eq
(
0
).
on
(
'touchstart'
,
function
(
e
)
{
$subNav
.
each
(
function
()
{
$
(
this
).
find
(
'li'
).
eq
(
0
).
on
(
'touchstart'
,
function
(
e
)
{
$
(
'.sub-nav'
).
removeClass
(
'show'
);
e
.
stopPropagation
();
return
false
;
...
...
@@ -145,7 +145,7 @@ if ($('.trend-topic-swiper').find('li').size() > 1) {
}
//潮流上装/经典裤装等轮播
$
(
'.category-swiper'
).
each
(
function
(
i
,
index
)
{
$
(
'.category-swiper'
).
each
(
function
(
i
,
index
)
{
swiperClass
=
'category-swiper'
+
i
;
$
(
this
).
addClass
(
swiperClass
);
if
(
$
(
'.'
+
swiperClass
).
find
(
'.swiper-slide'
).
size
()
>
1
)
{
...
...
@@ -161,7 +161,7 @@ $('.category-swiper').each(function (i, index) {
});
//logo动画
requestFrame
=
(
function
()
{
requestFrame
=
(
function
()
{
var
tempFunc
=
null
,
prefixList
=
[
'webkit'
,
'moz'
,
'ms'
];
...
...
@@ -174,11 +174,11 @@ requestFrame = (function () {
}
if
(
supportCss3
)
{
return
function
(
callback
)
{
return
function
(
callback
)
{
window
[
tempFunc
](
callback
);
};
}
return
function
(
callback
)
{
return
function
(
callback
)
{
window
.
setTimeout
(
callback
,
67
);
};
})();
...
...
@@ -205,7 +205,7 @@ function tsAnimate() {
if
(
start
%
360
===
0
)
{
window
.
setTimeout
(
tsAnimate
,
60
*
1000
);
}
else
{
requestFrame
(
function
()
{
requestFrame
(
function
()
{
tsAnimate
();
});
}
...
...
Please
register
or
login
to post a comment