|
@@ -323,7 +323,14 @@ $(".sec-01__slider").slick({
|
|
|
const navbar = document.querySelector('.navbar-main');
|
|
|
|
|
|
function fixedOnScroll() {
|
|
|
- detectDirection ();
|
|
|
+ if(window.innerHeight < window.innerWidth){
|
|
|
+ $('.sec-02 .slide-item').css('height', `130vh`);
|
|
|
+ $('.sec-00 .slide-item').css('height', `200px`);
|
|
|
+ $('.sec-00 .container-fluid').css('height', `200px`);
|
|
|
+ } else {
|
|
|
+ detectDirection ();
|
|
|
+ }
|
|
|
+
|
|
|
const sticky = document.querySelector('.sec-00 .container-fluid').offsetHeight;
|
|
|
if(window.pageYOffset >= sticky){
|
|
|
navbar.classList.add('sticky');
|