From 6a76719799e8b38e78903500489b448f0d67a219 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 22 Apr 2016 12:31:17 -0400 Subject: [PATCH] fixed unclosed div and added jquery comments for $, alert etc --- front-page.php | 1 + js/custom/pageSetup.js | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/front-page.php b/front-page.php index 9c3d3f8..5114297 100644 --- a/front-page.php +++ b/front-page.php @@ -18,6 +18,7 @@
+
diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 7b76e81..29d8f11 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -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(''); }); @@ -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; -- 2.17.1