$('.menu-login').on("click", function(){
$("#modal-login").toggleClass("show-login");
})
-
}
+ let course_cards = $('.cmvl-courses-list-shortcode').find('tbody').children('tr');
+ course_cards.each(function(){
+ let link = $(this).find('a').attr('href');
+ if(link){
+ $(this).attr("data-url", link);
+ $(this).append( $('<a></a>',{
+ "class": "view-course-link",
+ "href": link,
+ "text": "View Course"
+ }));
+ }
+ })
+ course_cards.on("click", function(){
+ window.location = $(this).data('url');
+ })
});
\ No newline at end of file
text-indent: 999999999px;
}
-
+div.cmvl-courses-list-shortcode table tbody tr{
+ position: relative;
+}
div.cmvl-courses-list-shortcode table thead tr th{
display: none;
}
box-shadow: 5px 5px 25px 0 rgba(46,61,73,.2);
}
div.cmvl-courses-list-shortcode table tbody tr td{
- text-align: center;
+ /* text-align: center; */
}
div.cmvl-courses-list-shortcode table tbody tr:hover{
cursor: pointer;
#modal-login.show-login{
top: 500px;
position: fixed;
+}
+body .cmvl-navbar-navigation {
+ border: none;
+}
+body .cmvl-navbar-navigation span{
+ background: #0071BC;
+ display: inline;
+ padding: 4px;
+ color: white;
+ border-top-left-radius: 7px;
+ border-top-right-radius: 7px;
+}
+.view-course-link{
+ position: absolute;
+ bottom: 5px;
+ right: 5px;
+ padding: 5px;
+ border: 1px solid #00AEEF;
+ border-radius: 5px;
+ transition: background-color 400ms ease-in-out, color 400ms ease-in-out;
+}
+.view-course-link:hover{
+ background-color: #00AEEF;
+ color: white;
}
\ No newline at end of file