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
xuqi
9 years ago
Commit
5b8fcbe504f944ae0e6484814345522c8f0bac80
1 parent
7e3e8cde
pos footer
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
static/js/common.js
static/js/common.js
View file @
5b8fcbe
...
...
@@ -7,8 +7,6 @@ var $ = require('jquery');
var
$footer
=
$
(
'#yoho-footer'
);
var
FOOTERHEIGHT
=
120
;
//footer height
function
cookie
(
name
)
{
var
cookies
=
document
.
cookie
,
cookieVal
,
...
...
@@ -100,7 +98,7 @@ function rePosFooter() {
return
;
}
if
(
$
(
'body'
).
height
()
<
$
(
window
).
height
()
-
FOOTERHEIGHT
)
{
if
(
$
(
'body'
).
height
()
<
=
$
(
window
).
height
()
)
{
$footer
.
addClass
(
'bottom'
);
}
else
{
$footer
.
removeClass
(
'bottom'
);
...
...
@@ -113,7 +111,7 @@ function rePosFooter() {
var
user
=
getUser
();
if
(
$
(
'body'
).
height
()
<
$
(
window
).
height
()
-
FOOTERHEIGHT
)
{
if
(
$
(
'body'
).
height
()
<
=
$
(
window
).
height
()
)
{
$footer
.
addClass
(
'bottom'
);
}
...
...
Please
register
or
login
to post a comment