From: Anthony Talarico Date: Fri, 8 Jun 2018 14:30:01 +0000 (-0400) Subject: adding click and hover function to the front page login getting started parallax... X-Git-Tag: v1.0.0^2~18 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=b62d15199015445d1626e7584d607b655624a673;p=WP-Themes%2Fhospitalitymentality.git adding click and hover function to the front page login getting started parallax section --- diff --git a/js/custom.js b/js/custom.js index 4e8ff02..cecad74 100644 --- a/js/custom.js +++ b/js/custom.js @@ -176,4 +176,10 @@ jQuery(document).ready(function($){ course_cards.on("click", function(){ window.location = $(this).data('url'); }) + let getting_started = $(".parallax-section:first-child"); + let login_section = getting_started.find(".service-listing").children(".service-list:first-child"); + login_section.addClass("parallax-hover"); + login_section.on("click", function(){ + $("#modal-login").toggleClass("show-login"); + }) }); \ No newline at end of file diff --git a/style.css b/style.css index 1f106f8..b60f79a 100644 --- a/style.css +++ b/style.css @@ -2669,4 +2669,7 @@ body .cmvl-navbar-navigation span{ } .single-page-nav li:nth-child(3){ display: none; +} +.parallax-hover{ + cursor: pointer; } \ No newline at end of file