fixed unclosed div and added jquery comments for $, alert etc
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 22 Apr 2016 16:31:17 +0000 (12:31 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 22 Apr 2016 16:31:17 +0000 (12:31 -0400)
front-page.php
js/custom/pageSetup.js

index 9c3d3f8..5114297 100644 (file)
@@ -18,6 +18,7 @@
                 <div class="blocks">
                     <div class="row" >
                             <?php get_template_part('parts/glm-blocks'); ?>
+                    </div>
             </div>
         </div>
     </div>
index 7b76e81..29d8f11 100644 (file)
@@ -1,6 +1,8 @@
+/*global $, document, window, alert, console, require*/
 // Load foundation
 $(document).foundation();
 $(document).ready(function () {
+    'use strict';
     $('ul.children').each(function () {
         $(this).before('<a class="toggle" href="#"></a>');
     });
@@ -8,7 +10,7 @@ $(document).ready(function () {
         $(this).toggleClass('open');
         $(this).siblings('ul').toggleClass('open');
     });
-    $('.top-bar-section').find('ul.sub-menu.dropdown').each(function (){
+    $('.top-bar-section').find('ul.sub-menu.dropdown').each(function () {
         var menuImg = $(this).parent('li').prop('id');
         var menuNum = menuImg.match(/\d+/)[0];
         var menuImgSrc = 'img_for_menu_' + menuNum;