From: Laury GvR Date: Wed, 16 Nov 2016 21:53:59 +0000 (-0500) Subject: Hover effects for the frontpage block partners X-Git-Tag: v1.0.0^2~48 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=8839ffa96172d2a97a026b7c4cb3a1856a5d6f7b;p=WP-Themes%2Funiversitycenter.git Hover effects for the frontpage block partners Now, when you hover over a block, it gets a top border color of gold, like the PSD shows. --- diff --git a/js/app.js b/js/app.js index 0db0068..6fdaada 100644 --- a/js/app.js +++ b/js/app.js @@ -68,13 +68,15 @@ $(document).ready(function () { // }, function () { // $(".top-bar-section").css('border-top', '10px solid blue'); // }); - $("#partners .blocks .block").each().hover( - function() { - $("#partners .block .block-content").css('border-color', '#fcb930') - }, - function() { - $("#partners .block .block-content").css('border-color', '#007697') - } - ); + $("#partners .blocks .block").each(function() { + $(this).hover( + function() { + $(this).children(".block-content").css('border-color', '#fcb930') + }, + function() { + $(this).children(".block-content").css('border-color', '#007697') + } + ) + }); }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index eaea925..f93a391 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -59,13 +59,15 @@ $(document).ready(function () { // }, function () { // $(".top-bar-section").css('border-top', '10px solid blue'); // }); - $("#partners .blocks .block").each().hover( - function() { - $("#partners .block .block-content").css('border-color', '#fcb930') - }, - function() { - $("#partners .block .block-content").css('border-color', '#007697') - } - ); + $("#partners .blocks .block").each(function() { + $(this).hover( + function() { + $(this).children(".block-content").css('border-color', '#fcb930') + }, + function() { + $(this).children(".block-content").css('border-color', '#007697') + } + ) + }); });