From: Steve Sutton Date: Mon, 20 Oct 2014 18:27:31 +0000 (-0400) Subject: updates for grunt and js X-Git-Tag: v1.0.0~62 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=c593272b2c3f22f5c8558eb6389f8d1cf1c698d8;p=WP-Themes%2FVisitAlpena.git updates for grunt and js --- 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 {