From c593272b2c3f22f5c8558eb6389f8d1cf1c698d8 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Mon, 20 Oct 2014 14:27:31 -0400 Subject: [PATCH] updates for grunt and js --- js/app.js | 10 ++++++---- js/custom/weather-widget.js | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/js/app.js b/js/app.js index d9b2efd..51fa8b9 100644 --- a/js/app.js +++ b/js/app.js @@ -11,7 +11,7 @@ $(window).on('scroll', function () { setTimeout(function(){ // Slight delay to avoid a jumpy transition $('#sticky-footer').css({'position' : get_footer_position}); }, 200); - } + } }); // Set footer position on load @@ -42,12 +42,14 @@ function get_footer_position() { else if (bottom <= top_of_footer) { return 'fixed'; } -}; -$(function(){ +} + + +;$(function(){ if ($('.weather-widget').length && $('.weather-widget-popup').length) { $('.weather-widget').appendTo($('.weather-widget-popup')); $('.weather-widget-popup > a').on('click', function(){ - if ($('.weather-widget').is(':visible')) { + if ('.weather-widget').is(':visible') { $('.weather-widget').css({'display': 'none'}); } else { diff --git a/js/custom/weather-widget.js b/js/custom/weather-widget.js index 9ec806a..782cda2 100644 --- a/js/custom/weather-widget.js +++ b/js/custom/weather-widget.js @@ -2,7 +2,7 @@ $(function(){ if ($('.weather-widget').length && $('.weather-widget-popup').length) { $('.weather-widget').appendTo($('.weather-widget-popup')); $('.weather-widget-popup > a').on('click', function(){ - if ($('.weather-widget').is(':visible')) { + if ('.weather-widget').is(':visible') { $('.weather-widget').css({'display': 'none'}); } else { -- 2.17.1