adding click and hover function to the front page login getting started parallax...
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 8 Jun 2018 14:30:01 +0000 (10:30 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 8 Jun 2018 14:30:01 +0000 (10:30 -0400)
js/custom.js
style.css

index 4e8ff02..cecad74 100644 (file)
@@ -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
index 1f106f8..b60f79a 100644 (file)
--- 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