Skip to content

Commit 409f588

Browse files
committed
remove code that was throwing errors in console
1 parent 5f64c6f commit 409f588

File tree

1 file changed

+8
-59
lines changed

1 file changed

+8
-59
lines changed

js/script.js

Lines changed: 8 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -33,27 +33,17 @@ function fadedEls(el, shift) {
3333

3434
(function($) {
3535
$(function() {
36-
36+
3737
$(window).resize(function() {
3838
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');
5140

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+
}
5747
});
5848

5949
// Faded elements
@@ -63,46 +53,5 @@ function fadedEls(el, shift) {
6353
});
6454
}
6555

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-
10756
});
10857
})(jQuery);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy