wp_enqueue_script('jquery');
wp_enqueue_script(
'glm_foundation',
- get_template_directory_uri() . '/js/app.js?v=1.0.19',
+ get_template_directory_uri() . '/js/app.js',
'jquery',
- '1.0.9',
+ '1.0.19.0',
true
);
if(is_front_page()) {
})
$('.manufacturer-brand').each(function(){
let url = $(this).children('a').attr('href');
+ console.log($(this));
+ console.log("Length of children:");
+ console.log($(this).children('ul').length);
if( $(this).children('ul').length <= 0 || $(this).children('ul').css("touch-action") === "manipulation"){
+
+ console.log("Has children");
// $(this).attr('data-url', url);
$(this).on("click", function(){
window.location = url;
})
+ } else {
+ console.log("Has no children");
}
})
}
})
$('.manufacturer-brand').each(function(){
let url = $(this).children('a').attr('href');
+ console.log($(this));
+ console.log("Length of children:");
+ console.log($(this).children('ul').length);
if( $(this).children('ul').length <= 0 || $(this).children('ul').css("touch-action") === "manipulation"){
+
+ console.log("Has children");
// $(this).attr('data-url', url);
$(this).on("click", function(){
window.location = url;
})
+ } else {
+ console.log("Has no children");
}
})
}