From b62d15199015445d1626e7584d607b655624a673 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 8 Jun 2018 10:30:01 -0400 Subject: [PATCH] adding click and hover function to the front page login getting started parallax section --- js/custom.js | 6 ++++++ style.css | 3 +++ 2 files changed, 9 insertions(+) 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 -- 2.17.1