From: Anthony Talarico Date: Wed, 27 Jan 2016 18:36:42 +0000 (-0500) Subject: testing menu item hover radius X-Git-Tag: v1.0.0^2~75 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=5a1a06b0d0e2bd2fb493cdf13e03e61ed3134d6f;p=WP-Themes%2Fsaultstemarie.git testing menu item hover radius --- diff --git a/js/app.js b/js/app.js index 948ae96..30a6600 100644 --- a/js/app.js +++ b/js/app.js @@ -201,12 +201,13 @@ var extraDay, end, arrival, currentDate, currentDate2, requiredDate, requiredDat window.scrollTo(0,0); }); var $topMenu = $("ul#menu-top-menu li > a"); + var $menuLi = $("ul#menu-top-menu li"); $("#headerLinks").children("ul#menu-top-menu").children("li").each(function () { $($topMenu).css("background", "none").css("font-size", "16px"); - $($topMenu).mouseenter( function () { + $($menuLi).mouseenter( function () { $(this).css("background", "white") ; }); - $($topMenu).mouseout( function () { + $($menuLi).mouseout( function () { $(this).css("background", "none") ; }); $($topMenu).css("padding", "10px 5px"); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 4e52458..a20a579 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -192,12 +192,13 @@ var extraDay, end, arrival, currentDate, currentDate2, requiredDate, requiredDat window.scrollTo(0,0); }); var $topMenu = $("ul#menu-top-menu li > a"); + var $menuLi = $("ul#menu-top-menu li"); $("#headerLinks").children("ul#menu-top-menu").children("li").each(function () { $($topMenu).css("background", "none").css("font-size", "16px"); - $($topMenu).mouseenter( function () { + $($menuLi).mouseenter( function () { $(this).css("background", "white") ; }); - $($topMenu).mouseout( function () { + $($menuLi).mouseout( function () { $(this).css("background", "none") ; }); $($topMenu).css("padding", "10px 5px");