@@ -33,27 +33,17 @@ function fadedEls(el, shift) {
33
33
34
34
( function ( $ ) {
35
35
$ ( function ( ) {
36
-
36
+
37
37
$ ( window ) . resize ( function ( ) {
38
38
var sH = $ ( window ) . height ( ) ;
39
- $ ( 'section.header-21-sub' ) . css ( 'height' , ( sH - $ ( 'header' ) . outerHeight ( ) ) + 'px' ) ;
40
-
41
- if ( $ ( window ) . width ( ) <= 768 ) {
42
- console . log ( $ ( window ) . width ( ) ) ;
43
- $ ( 'section.content-17' ) . css ( 'height' , ( sH + 'px' ) ) ;
44
- } else {
45
- $ ( 'section.content-17' ) . css ( 'height' , 'auto' ) ;
46
- }
47
-
48
-
49
- } ) ;
50
-
39
+ $ ( 'section.header-21-sub' ) . css ( 'height' , ( sH - $ ( 'header' ) . outerHeight ( ) ) + 'px' ) ;
51
40
52
- // Focus state for append/prepend inputs
53
- $ ( '.input-prepend, .input-append' ) . on ( 'focus' , 'input' , function ( ) {
54
- $ ( this ) . closest ( '.control-group, form' ) . addClass ( 'focus' ) ;
55
- } ) . on ( 'blur' , 'input' , function ( ) {
56
- $ ( this ) . closest ( '.control-group, form' ) . removeClass ( 'focus' ) ;
41
+ if ( $ ( window ) . width ( ) <= 768 ) {
42
+ console . log ( $ ( window ) . width ( ) ) ;
43
+ $ ( 'section.content-17' ) . css ( 'height' , ( sH + 'px' ) ) ;
44
+ } else {
45
+ $ ( 'section.content-17' ) . css ( 'height' , 'auto' ) ;
46
+ }
57
47
} ) ;
58
48
59
49
// Faded elements
@@ -63,46 +53,5 @@ function fadedEls(el, shift) {
63
53
} ) ;
64
54
}
65
55
66
- if ( $ ( window ) . width ( ) > 480 ) {
67
- ( function ( el ) {
68
- $ ( window ) . resize ( function ( ) {
69
-
70
- var wndHeight = $ ( window ) . height ( ) ;
71
- var offsetTop = el . offset ( ) . top ;
72
-
73
- el . data ( 'aniInStart' , offsetTop - wndHeight ) ;
74
- el . data ( 'aniInStop' , offsetTop - wndHeight + wndHeight / 3 * 2 ) ;
75
-
76
- el . data ( 'aniOutStart' , offsetTop + el . outerHeight ( ) - wndHeight / 3 * 2 ) ;
77
- el . data ( 'aniOutStop' , offsetTop + el . outerHeight ( ) ) ;
78
-
79
- } ) . scroll ( function ( ) {
80
-
81
- var aniType = '' ;
82
- var factor = 1 ;
83
- var scrollTop = $ ( window ) . scrollTop ( ) ;
84
-
85
- if ( scrollTop < el . data ( 'aniInStop' ) ) {
86
- aniType = 'in' ;
87
- factor = - ( el . data ( 'aniInStart' ) - scrollTop ) / ( el . data ( 'aniInStop' ) - el . data ( 'aniInStart' ) ) ;
88
- } else {
89
- aniType = 'out' ;
90
- factor = - ( el . data ( 'aniOutStart' ) - scrollTop ) / ( el . data ( 'aniOutStop' ) - el . data ( 'aniOutStart' ) ) ;
91
- }
92
-
93
- factor = Math . min ( 1 , Math . max ( 0 , factor ) ) ;
94
-
95
- if ( aniType == 'in' ) {
96
- el . css ( 'opacity' , factor ) ;
97
- } else {
98
- el . css ( 'opacity' , 1 - factor ) ;
99
- }
100
-
101
- } ) ;
102
- } ) ( $ ( '.blog-2' ) ) ;
103
- }
104
-
105
-
106
-
107
56
} ) ;
108
57
} ) ( jQuery ) ;
0 commit comments