File tree Expand file tree Collapse file tree 2 files changed +1
-18
lines changed Expand file tree Collapse file tree 2 files changed +1
-18
lines changed Original file line number Diff line number Diff line change 1
1
$ ( document ) . ready ( function ( ) {
2
- var windowHeight = $ ( window ) . height ( ) ;
3
2
var $backtotop = $ ( '#backtotop' ) ;
4
- var top = windowHeight - $backtotop . height ( ) - 200 ;
5
-
3
+ var top = $ ( window ) . height ( ) - $backtotop . height ( ) - 200 ;
6
4
7
5
function moveBacktotop ( ) {
8
6
$backtotop . css ( { top : top , right : 0 } ) ;
9
7
}
10
8
11
- function footerFixBottom ( ) {
12
- if ( $ ( document . body ) . height ( ) < windowHeight ) {
13
- $ ( "#footer" ) . addClass ( 'fix-bottom' ) ;
14
- } else {
15
- $ ( "#footer" ) . removeClass ( 'fix-bottom' ) ;
16
- }
17
- }
18
-
19
9
$backtotop . click ( function ( ) {
20
10
$ ( 'html,body' ) . animate ( { scrollTop : 0 } ) ;
21
11
return false ;
@@ -30,9 +20,7 @@ $(document).ready(function () {
30
20
} ) ;
31
21
32
22
moveBacktotop ( ) ;
33
- footerFixBottom ( ) ;
34
23
$ ( window ) . resize ( moveBacktotop ) ;
35
- $ ( window ) . resize ( footerFixBottom ) ;
36
24
37
25
$ ( '.topic_content a,.reply_content a' ) . attr ( 'target' , '_blank' ) ;
38
26
Original file line number Diff line number Diff line change @@ -98,11 +98,6 @@ body {
98
98
clear : both ;
99
99
position : relative ;
100
100
background : white ;
101
- & .fix-bottom {
102
- position : fixed ;
103
- bottom : 0 ;
104
- width :100% ;
105
- }
106
101
}
107
102
108
103
#footer_main {
You can’t perform that action at this time.
0 commit comments