From eed7b4d9693d8f8cf0ede9885737586b0ed1816d Mon Sep 17 00:00:00 2001 From: Tim Yang Date: Sat, 16 Feb 2019 12:24:15 -0600 Subject: [PATCH] remove fade-in (bugged on 4K displays) --- public/javascripts/libraries/homeScript.js | 31 +++++++++++----------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/public/javascripts/libraries/homeScript.js b/public/javascripts/libraries/homeScript.js index 1c395a7a..2bd548b5 100644 --- a/public/javascripts/libraries/homeScript.js +++ b/public/javascripts/libraries/homeScript.js @@ -78,21 +78,22 @@ jQuery(document).ready(function($){ ); - if ( $(window).width() > 1023) { - - tiles = $("p, h1, h2, h3, .column-one, .column-two, .column-three, .start-page .content .text, hr, .grid li, .contact .content .form, .contact .content .contact-text ").fadeTo(0, 0); - - $(window).scroll(function(d,h) { - tiles.each(function(i) { - a = $(this).offset().top + $(this).height(); - b = $(window).scrollTop() + $(window).height(); - if (a < b) $(this).fadeTo(1000,1); - }); - }); - - } - else { - } + //TODO: fix compatibility with 4K displays + //if ( $(window).width() > 1023) { + + //tiles = $("p, h1, h2, h3, .column-one, .column-two, .column-three, .start-page .content .text, hr, .grid li, .contact .content .form, .contact .content .contact-text ").fadeTo(0, 0); + + //$(window).scroll(function(d,h) { + //tiles.each(function(i) { + //a = $(this).offset().top + $(this).height(); + //b = $(window).scrollTop() + $(window).height(); + //if (a < b) $(this).fadeTo(1000,1); + //}); + //}); + + //} + //else { + //} //Menu mobile click