From 5a1a06b0d0e2bd2fb493cdf13e03e61ed3134d6f Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 27 Jan 2016 13:36:42 -0500 Subject: [PATCH] testing menu item hover radius --- js/app.js | 5 +++-- js/custom/pageSetup.js | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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"); -- 2.17.1