-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
defering possible js and css files (#2072)
- Loading branch information
1 parent
8412a03
commit 3aaef79
Showing
17 changed files
with
231 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,6 @@ | |
error.innerHTML = res.error; | ||
} | ||
}); | ||
|
||
}); | ||
}); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,41 @@ | ||
/*eslint-env jquery*/ | ||
/*eslint semi: ["error", "always"]*/ | ||
$(".course-slider").slick({ | ||
rows: 0, | ||
slidesToShow: 3, | ||
slidesToScroll: 1, | ||
dots: false, | ||
infinite: false, | ||
autoplay: false, | ||
responsive: [ | ||
{ | ||
breakpoint: 1024, | ||
settings: { | ||
slidesToShow: 3, | ||
slidesToScroll: 3 | ||
} | ||
}, | ||
{ | ||
breakpoint: 992, | ||
settings: { | ||
slidesToShow: 2, | ||
slidesToScroll: 1 | ||
} | ||
}, | ||
{ | ||
breakpoint: 767, | ||
settings: { | ||
slidesToShow: 1, | ||
slidesToScroll: 1 | ||
|
||
export default function coursewareCarousel() { | ||
$(".course-slider").slick({ | ||
rows: 0, | ||
slidesToShow: 3, | ||
slidesToScroll: 1, | ||
dots: false, | ||
infinite: false, | ||
autoplay: false, | ||
responsive: [ | ||
{ | ||
breakpoint: 1024, | ||
settings: { | ||
slidesToShow: 3, | ||
slidesToScroll: 3 | ||
} | ||
}, | ||
{ | ||
breakpoint: 992, | ||
settings: { | ||
slidesToShow: 2, | ||
slidesToScroll: 1 | ||
} | ||
}, | ||
{ | ||
breakpoint: 767, | ||
settings: { | ||
slidesToShow: 1, | ||
slidesToScroll: 1 | ||
} | ||
} | ||
} | ||
] | ||
}); | ||
] | ||
}); | ||
|
||
$(".course-slider .slide").on("click", function() { | ||
const targetUrl = $(this).data("url"); | ||
window.location.href = targetUrl; | ||
}); | ||
$(".course-slider .slide").on("click", function() { | ||
const targetUrl = $(this).data("url"); | ||
window.location.href = targetUrl; | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,19 @@ | ||
import "../notifications.js" | ||
import "../tooltip.js" | ||
import "../hero.js" | ||
import "../testimonials_carousel.js" | ||
import "../courseware_carousel.js" | ||
import "../text_video_section.js" | ||
import "../image_carousel.js" | ||
import "../faculty_carousel.js" | ||
import notifications from "../notifications.js" | ||
import tooltip from "../tooltip.js" | ||
import hero from "../hero.js" | ||
import testimonialsCarousel from "../testimonials_carousel.js" | ||
import coursewareCarousel from "../courseware_carousel.js" | ||
import textVideoSection from "../text_video_section.js" | ||
import imageCarousel from "../image_carousel.js" | ||
import facultyCarousel from "../faculty_carousel.js" | ||
|
||
document.addEventListener("DOMContentLoaded", function() { | ||
notifications() | ||
tooltip() | ||
hero() | ||
testimonialsCarousel() | ||
coursewareCarousel() | ||
textVideoSection() | ||
imageCarousel() | ||
facultyCarousel() | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import "jquery" | ||
import "popper.js" | ||
import "bootstrap" | ||
import "popper.js" | ||
import "slick-carousel" | ||
import "hls.js" | ||
import "@fancyapps/fancybox" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,41 @@ | ||
/*eslint-env jquery*/ | ||
/*eslint semi: ["error", "always"]*/ | ||
const numFacultySlides = $(".faculty-slider .slide").length; | ||
|
||
$(".faculty-slider").slick({ | ||
rows: 0, | ||
slidesToShow: 3, | ||
slidesToScroll: 1, | ||
dots: numFacultySlides > 3, | ||
infinite: false, | ||
autoplay: false, | ||
responsive: [ | ||
{ | ||
breakpoint: 1024, | ||
settings: { | ||
slidesToShow: 3, | ||
slidesToScroll: 3, | ||
dots: numFacultySlides > 3 | ||
} | ||
}, | ||
{ | ||
breakpoint: 992, | ||
settings: { | ||
slidesToShow: 2, | ||
slidesToScroll: 1, | ||
dots: numFacultySlides > 2 | ||
} | ||
}, | ||
{ | ||
breakpoint: 767, | ||
settings: { | ||
slidesToShow: 1, | ||
slidesToScroll: 1, | ||
dots: numFacultySlides > 1 | ||
export default function facultyCarousel() { | ||
const numFacultySlides = $(".faculty-slider .slide").length; | ||
|
||
$(".faculty-slider").slick({ | ||
rows: 0, | ||
slidesToShow: 3, | ||
slidesToScroll: 1, | ||
dots: numFacultySlides > 3, | ||
infinite: false, | ||
autoplay: false, | ||
responsive: [ | ||
{ | ||
breakpoint: 1024, | ||
settings: { | ||
slidesToShow: 3, | ||
slidesToScroll: 3, | ||
dots: numFacultySlides > 3 | ||
} | ||
}, | ||
{ | ||
breakpoint: 992, | ||
settings: { | ||
slidesToShow: 2, | ||
slidesToScroll: 1, | ||
dots: numFacultySlides > 2 | ||
} | ||
}, | ||
{ | ||
breakpoint: 767, | ||
settings: { | ||
slidesToShow: 1, | ||
slidesToScroll: 1, | ||
dots: numFacultySlides > 1 | ||
} | ||
} | ||
} | ||
] | ||
}); | ||
] | ||
}); | ||
} |
Oops, something went wrong.