feat: course details page structure
This commit is contained in:
@@ -3,8 +3,6 @@ frappe.ready(() => {
|
||||
check_mentor_request();
|
||||
}
|
||||
|
||||
expand_the_first_chapter();
|
||||
|
||||
hide_wrapped_mentor_cards();
|
||||
|
||||
$("#apply-now").click((e) => {
|
||||
@@ -175,16 +173,6 @@ var rotate_chapter_icon = (e) => {
|
||||
}
|
||||
}
|
||||
|
||||
var expand_the_first_chapter = () => {
|
||||
var elements = $(".collapse");
|
||||
elements.each((i, elem) => {
|
||||
if (i <= 1) {
|
||||
$(elem).addClass("show");
|
||||
$(elem).siblings(".chapter-title").children(".chapter-icon").css("transform", "rotate(90deg)");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
var highlight_rating = (e) => {
|
||||
var rating = $(e.currentTarget).attr("data-rating");
|
||||
$(".icon-rating").removeClass("star-click");
|
||||
|
||||
Reference in New Issue
Block a user