updates for grunt and js
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 20 Oct 2014 18:27:31 +0000 (14:27 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 20 Oct 2014 18:27:31 +0000 (14:27 -0400)
js/app.js
js/custom/weather-widget.js

index d9b2efd..51fa8b9 100644 (file)
--- 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 {
index 9ec806a..782cda2 100644 (file)
@@ -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 {