From: Laury GvR Date: Tue, 28 Aug 2018 19:21:06 +0000 (-0400) Subject: Further console test echos to identify the problem X-Git-Tag: v1.0.20^2~9 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=5dd8459f9f2eb1acb992a1c756f7b3f42da2ee93;p=WP-Themes%2Fbrewbakers.git Further console test echos to identify the problem --- diff --git a/js/app.js b/js/app.js index a320851..a72a9be 100644 --- a/js/app.js +++ b/js/app.js @@ -36,11 +36,13 @@ $(document).ready(function () { metasliderThumbs.appendTo(".slider-wrapper"); }); - + console.log("Test0"); if( $(window).width() > 786){ + console.log("Test1a"); $('.manufacturer-brand').attr('data-options',"is_hover:true" ); $(document).foundation('dropdown', 'reflow'); }else{ + console.log("Test1b"); $('.glm-rv-brand').each(function(){ let url = $(this).children('a').attr('href'); $(this).attr('data-url', url); @@ -48,7 +50,9 @@ $(document).ready(function () { $('.glm-rv-brand').on("click", function(){ window.location = $(this).data('url'); }) + console.log("Test2"); $('.manufacturer-brand').each(function(){ + console.log("Test3"); let url = $(this).children('a').attr('href'); console.log($(this)); console.log("Length of children:"); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 8c7fcca..f71a0a6 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -27,11 +27,13 @@ $(document).ready(function () { metasliderThumbs.appendTo(".slider-wrapper"); }); - + console.log("Test0"); if( $(window).width() > 786){ + console.log("Test1a"); $('.manufacturer-brand').attr('data-options',"is_hover:true" ); $(document).foundation('dropdown', 'reflow'); }else{ + console.log("Test1b"); $('.glm-rv-brand').each(function(){ let url = $(this).children('a').attr('href'); $(this).attr('data-url', url); @@ -39,7 +41,9 @@ $(document).ready(function () { $('.glm-rv-brand').on("click", function(){ window.location = $(this).data('url'); }) + console.log("Test2"); $('.manufacturer-brand').each(function(){ + console.log("Test3"); let url = $(this).children('a').attr('href'); console.log($(this)); console.log("Length of children:");