From 5baadc72e7d63f548c62dea15ba23393307a0450 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Wed, 11 Apr 2018 12:48:11 -0400 Subject: update sendmail script, also fix line endings --- js/now.js | 120 +++++++++++++++++++++++++++++++------------------------------- 1 file changed, 60 insertions(+), 60 deletions(-) (limited to 'js/now.js') diff --git a/js/now.js b/js/now.js index fd6a01b..5c40015 100644 --- a/js/now.js +++ b/js/now.js @@ -1,60 +1,60 @@ -/*----------------------------------------------------------------------------------- -/* -/* Now JS -/* ------------------------------------------------------------------------------------*/ - - jQuery(document).ready(function($) { - -/*----------------------------------------------------*/ -/* FitText Settings ------------------------------------------------------- */ - - setTimeout(function() { - $('h1.responsive-headline').fitText(1, { minFontSize: '40px', maxFontSize: '90px' }); - }, 100); - - -/*----------------------------------------------------*/ -/* Make sure that #header-background-image height is -/* equal to the browser height. ------------------------------------------------------- */ - - $(window).on('resize', function() { - $('body').css({ 'width': $(window).width() }) - }); - - -/*----------------------------------------------------*/ -/* Fade In/Out Primary Navigation -------------------------------------------------------*/ - - $(window).on('scroll', function() { - - var h = $('header').height(); - var y = $(window).scrollTop(); - var nav = $('#nav-wrap'); - - if ( (y > h*.20) && (y < h) && ($(window).outerWidth() > 768 ) ) { - nav.fadeOut('fast'); - } - else { - if (y < h*.20) { - nav.removeClass('opaque').fadeIn('fast'); - } - else { - nav.addClass('opaque').fadeIn('fast'); - } - } - - }); - - -}); - - - - - - - +/*----------------------------------------------------------------------------------- +/* +/* Now JS +/* +-----------------------------------------------------------------------------------*/ + + jQuery(document).ready(function($) { + +/*----------------------------------------------------*/ +/* FitText Settings +------------------------------------------------------ */ + + setTimeout(function() { + $('h1.responsive-headline').fitText(1, { minFontSize: '40px', maxFontSize: '90px' }); + }, 100); + + +/*----------------------------------------------------*/ +/* Make sure that #header-background-image height is +/* equal to the browser height. +------------------------------------------------------ */ + + $(window).on('resize', function() { + $('body').css({ 'width': $(window).width() }) + }); + + +/*----------------------------------------------------*/ +/* Fade In/Out Primary Navigation +------------------------------------------------------*/ + + $(window).on('scroll', function() { + + var h = $('header').height(); + var y = $(window).scrollTop(); + var nav = $('#nav-wrap'); + + if ( (y > h*.20) && (y < h) && ($(window).outerWidth() > 768 ) ) { + nav.fadeOut('fast'); + } + else { + if (y < h*.20) { + nav.removeClass('opaque').fadeIn('fast'); + } + else { + nav.addClass('opaque').fadeIn('fast'); + } + } + + }); + + +}); + + + + + + + -- cgit 1.4.1