{"version":3,"sources":["main.js"],"names":["aos","AOS","init","disable","startEvent","initClassName","animatedClassName","useClassNames","disableMutationObserver","debounceDelay","throttleDelay","offset","delay","duration","easing","once","mirror","anchorPlacement","scrollTopTool","$","window","scrollTop","addClass","removeClass","clickButtonTool","click","animate","this","toggleClass","phantrang","find","parent","hide","clickPhoneDetail","button","getPhone","attr","width","SlideGioiThieu","slider_time","countSlideCircle","length","showSlideCircle","lastSlideCircle","console","log","selectedCircle","i","on","prevSlideNum","number","index","setTimeout","each","indexSlide","Number","$slider","show","nextSlideNum","indexNum","$this","val","css","heightBox","outerHeight","$current","fadeIn","sliderCircle","Swiper","slidesPerView","spaceBetween","speed","observer","observeParents","loop","lazy","navigation","nextEl","prevEl","mappingMenu","widthWindow","appendTo","clone","animationLoader","e","focusSearch","focus","blur","height","el","thisHeight","document","ready","setBackgroundElement","header","search","hambuger","toogleMenu","swiperInit","infiniti_scroll","slideToggle","scrollActive","background","background-size","background-position","background-image","autoplay","effect","slidesPerColumnFill","pagination","clickable","breakpoints","575","768","1024","1280","dotHomeProduct1","freeMode","watchSlidesProgress","mainHomeProduct1","thumbs","swiper","hasClass","stop","start","mainHomeProduct2","mainHomeProduct3","dotHomeProduct2","dotHomeProduct3","ProductDetailThumb","$items","$loadMoreButton","numberItems","maxItems","idx","item"],"mappings":"AAAA,aAuBA,SAASA,MACRC,IAAIC,KAAK,CACRC,SAAS,EACTC,WAAY,mBACZC,cAAe,WACfC,kBAAmB,cACnBC,eAAe,EACfC,yBAAyB,EACzBC,cAAe,GACfC,cAAe,GAEfC,OAAQ,IACRC,MAAO,EACPC,SAAU,IACVC,OAAQ,OACRC,MAAM,EACNC,QAAQ,EACRC,gBAAiB,eAInB,SAASC,gBACJC,EAAEC,QAAQC,YAAc,IAC3BF,EAAE,kBAAkBG,SAAS,UAE7BH,EAAE,kBAAkBI,YAAY,UAIlC,SAASC,kBACRL,EAAE,kBAAkBM,MAAM,WACzBN,EAAE,cAAcO,QACf,CACCL,UAAW,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ZE,IAAK,CACJ5C,cAAe,EACfC,aAAc,OAIG,IAAIF,OACvB,+CACA,CACCE,aAAc,GACdD,cAAe,EACfM,MAAM,EACNC,WAAY,CACXC,OAAQ,uCACRC,OAAQ,wCAETiC,YAAa,CACZE,IAAK,CACJ5C,cAAe,EACfC,aAAc,OAOnB,SAAS6B,kBACRvD,QAAQC,IAAI,OACZ,IACCqF,EADa/G,EAAE,0BACEW,KAAK,aACtBqG,EAAkBhH,EAAE,+BAErB,GADSA,EAAEC,QAAQiB,SACT,KACT,IAAI+F,EAAc,EACjBC,EAAW,OAERD,EAAc,EACjBC,EAAW,EAGblH,EAAEkC,KAAK6E,EAAQ,SAAUI,EAAKC,GACzBD,EAAMF,EAAc,GACvBjH,EAAEQ,MAAML,SAHQ,qBAMlB6G,EAAgBnF,GAAG,QAAS,SAAUoC,GACrCjE,EAAE,mBAAmBG,SAAS,UAC9B8B,WAAW,WACVjC,EAAE,mBAAmBI,YAAY,WAC/B,KACH6B,WAAW,WACVjC,EAAE,oBAAmBkC,KAAK,SAAUiF,EAAKC,GACpCD,EAAMD,IACTlH,EAAEQ,MAAMJ,YAdM,mBAedJ,EAAEQ,MAAML,SAAS,aAEkB,IAAhCH,EAAE,oBAAmBsB,QACxB0F,EAAgBnG,UAGhB,OAGLb,EAAEwE,UAAU3C,GAAG,SAAU,WACxB8C,OAAOO","file":"main.min.js","sourcesContent":["$(document).ready(function () {\r\n\tanimationLoader();\r\n\tsetBackgroundElement();\r\n\t// header\r\n\theader.search();\r\n\theader.hambuger();\r\n\theader.toogleMenu();\r\n\tfocusSearch();\r\n\t// swiper\r\n\tswiperInit();\r\n\t// Other\r\n\tmappingMenu();\r\n\tinfiniti_scroll();\r\n\tSlideGioiThieu();\r\n\tclickPhoneDetail();\r\n\tphantrang();\r\n\tclickButtonTool();\r\n\t$(document).on(\"scroll\", function () {\r\n\t\tscrollTopTool();\r\n\t});\r\n\taos();\r\n});\r\n/*==================== AOS ====================*/\r\nfunction aos() {\r\n\tAOS.init({\r\n\t\tdisable: false, // accepts following values: 'phone', 'tablet', 'mobile', boolean, expression or function\r\n\t\tstartEvent: \"DOMContentLoaded\", // name of the event dispatched on the document, that AOS should initialize on\r\n\t\tinitClassName: \"aos-init\", // class applied after initialization\r\n\t\tanimatedClassName: \"aos-animate\", // class applied on animation\r\n\t\tuseClassNames: false, // if true, will add content of `data-aos` as classes on scroll\r\n\t\tdisableMutationObserver: false, // disables automatic mutations' detections (advanced)\r\n\t\tdebounceDelay: 50, // the delay on debounce used while resizing window (advanced)\r\n\t\tthrottleDelay: 99, // the delay on throttle used while scrolling the page (advanced)\r\n\t\t// Settings that can be overridden on per-element basis, by `data-aos-*` attributes:\r\n\t\toffset: 120, // offset (in px) from the original trigger point\r\n\t\tdelay: 0, // values from 0 to 3000, with step 50ms\r\n\t\tduration: 900, // values from 0 to 3000, with step 50ms\r\n\t\teasing: \"ease\", // default easing for AOS animations\r\n\t\tonce: false, // whether animation should happen only once - while scrolling down\r\n\t\tmirror: false, // whether elements should animate out while scrolling past them\r\n\t\tanchorPlacement: \"top-bottom\", // defines which position of the element regarding to window should trigger the animation\r\n\t});\r\n}\r\n/*==================== check Scroll ====================*/\r\nfunction scrollTopTool() {\r\n\tif ($(window).scrollTop() > 400) {\r\n\t\t$(\".hotline-fixed\").addClass(\"active\");\r\n\t} else {\r\n\t\t$(\".hotline-fixed\").removeClass(\"active\");\r\n\t}\r\n}\r\n/*==================== clickButtonTool ====================*/\r\nfunction clickButtonTool() {\r\n\t$(\".button-to-top\").click(function () {\r\n\t\t$(\"html, body\").animate(\r\n\t\t\t{\r\n\t\t\t\tscrollTop: 0,\r\n\t\t\t},\r\n\t\t\t300\r\n\t\t);\r\n\t});\r\n\t$(\".button-expand\").click(function () {\r\n\t\t$(this).toggleClass(\"active\");\r\n\t\t$(\".wrap-button-fixed\").toggleClass(\"active\");\r\n\t});\r\n}\r\n/*==================== Phan Trang ====================*/\r\nfunction phantrang() {\r\n\t$(\".modulepager\")\r\n\t\t.find(\".pagination\")\r\n\t\t.find(\"li>a.NextPage, li>a.LastPage, li>a.BackPage, li>a.FirstPage\")\r\n\t\t.parent()\r\n\t\t.hide();\r\n}\r\n/*==================== Click Phone ====================*/\r\nfunction clickPhoneDetail() {\r\n\tlet button = $(\".product-detail-content .btn-contact\");\r\n\tlet getPhone = $(this).attr(\"data-phone\");\r\n\tif ($(window).width() >= 1280) {\r\n\t\tbutton.attr(\"href\", \"javascrip:;\");\r\n\t\tbutton.attr(\"data-fancybox\", \"form\");\r\n\t\tbutton.attr(\"data-src\", \"#modal-popup-phone\");\r\n\t} else {\r\n\t\tbutton.attr(\"href\", \"tel: +84\" + getPhone);\r\n\t}\r\n}\r\n/*==================== Slide Gioi Thiey ====================*/\r\nfunction SlideGioiThieu() {\r\n\t/*==================== SlideGioiThieu ====================*/\r\n\tvar slider_time = true;\r\n\tlet countSlideCircle = $(\".page-gioi-thieu.section-2 .slider .item\").length;\r\n\tlet showSlideCircle = 5;\r\n\tlet lastSlideCircle = countSlideCircle;\r\n\tconsole.log(\"count-slide\", countSlideCircle);\r\n\t// Gán giá trị select vào\r\n\tvar selectedCircle = [];\r\n\tfor (var i = 0; i < countSlideCircle; ++i) {\r\n\t\tselectedCircle[i] = $(\r\n\t\t\t'.page-gioi-thieu.section-2 .slider .item[item=\"' + i + '\"]'\r\n\t\t);\r\n\t}\r\n\tfunction prevSlide() {\r\n\t\tif (!slider_time) return; // Nếu là true thì sẽ ngắc luôn ở dòng này - nếu false thì sẽ chạy tiếp phía dưới\r\n\t\tslider_time = false;\r\n\t\t$(\".page-gioi-thieu.section-2 .slider .item.active\").removeClass(\r\n\t\t\t\"active\"\r\n\t\t);\r\n\t\t$(\".page-gioi-thieu.section-2 .slider .item\").each(function () {\r\n\t\t\tlet indexSlide = Number($(this).attr(\"item\"));\r\n\t\t\tif (indexSlide == 2) {\r\n\t\t\t\t$(this).addClass(\"active\").attr(\"item\", 3); // Active\r\n\t\t\t} else if (indexSlide == showSlideCircle) {\r\n\t\t\t\t$(this).addClass(\"out-right\");\r\n\t\t\t\t$(this).attr(\"item\", indexSlide + 1);\r\n\t\t\t\tsetTimeout(function () {\r\n\t\t\t\t\t$(\".page-gioi-thieu.section-2 .slider .item\").removeClass(\r\n\t\t\t\t\t\t\"out-right\"\r\n\t\t\t\t\t);\r\n\t\t\t\t}, 500);\r\n\t\t\t} else if (indexSlide == lastSlideCircle) {\r\n\t\t\t\t$(this).attr(\"item\", 1);\r\n\t\t\t} else if (indexSlide < countSlideCircle) {\r\n\t\t\t\t$(this).attr(\"item\", indexSlide + 1);\r\n\t\t\t}\r\n\t\t});\r\n\t\t$slider.show();\r\n\t\tsetTimeout(function () {\r\n\t\t\tslider_time = true;\r\n\t\t}, 400);\r\n\t}\r\n\tfunction nextSlide() {\r\n\t\tif (!slider_time) return; // Nếu là true thì sẽ ngắc luôn ở dòng này - nếu false thì sẽ chạy tiếp phía dưới\r\n\t\tslider_time = false;\r\n\t\t$(\".page-gioi-thieu.section-2 .slider .item.active\").removeClass(\r\n\t\t\t\"active\"\r\n\t\t);\r\n\t\t// Active\r\n\t\t$(\".page-gioi-thieu.section-2 .slider .item\").each(function () {\r\n\t\t\tlet indexSlide = Number($(this).attr(\"item\"));\r\n\t\t\tif (indexSlide == 4) {\r\n\t\t\t\t$(this).addClass(\"active\").attr(\"item\", 3); // Active\r\n\t\t\t} else if (indexSlide == 1) {\r\n\t\t\t\t$(this).addClass(\"out-left\");\r\n\t\t\t\t$(this).attr(\"item\", lastSlideCircle);\r\n\t\t\t\tsetTimeout(function () {\r\n\t\t\t\t\t$(\".page-gioi-thieu.section-2 .slider .item\").removeClass(\r\n\t\t\t\t\t\t\"out-left\"\r\n\t\t\t\t\t);\r\n\t\t\t\t}, 500);\r\n\t\t\t} else if (indexSlide == lastSlideCircle) {\r\n\t\t\t\t$(this).attr(\"item\", indexSlide - 1);\r\n\t\t\t} else if (indexSlide < countSlideCircle) {\r\n\t\t\t\t$(this).attr(\"item\", indexSlide - 1);\r\n\t\t\t}\r\n\t\t});\r\n\t\t$slider.show();\r\n\t\tsetTimeout(function () {\r\n\t\t\tslider_time = true;\r\n\t\t}, 400);\r\n\t\t//\r\n\t}\r\n\t$(\".page-gioi-thieu.section-2 .slider-circle .slider\").on(\r\n\t\t\"click\",\r\n\t\t\".item\",\r\n\t\tfunction () {\r\n\t\t\tfunction prevSlideNum(number) {\r\n\t\t\t\tfor (let index = 0; index < number; index++) {\r\n\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\tprevSlide();\r\n\t\t\t\t\t}, index * 500);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfunction nextSlideNum(number) {\r\n\t\t\t\tfor (let index = 0; index < number; index++) {\r\n\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\tnextSlide();\r\n\t\t\t\t\t}, index * 500);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlet indexNum = $(this).attr(\"item\");\r\n\t\t\t// Case Next\r\n\t\t\tswitch (Number(indexNum)) {\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tprevSlideNum(2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tprevSlideNum(1);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 4:\r\n\t\t\t\t\tnextSlideNum(1);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 5:\r\n\t\t\t\t\tnextSlideNum(2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t);\r\n\tfunction sliderCircle() {\r\n\t\tvar $this = $(\".page-gioi-thieu.section-2 .col-lg-7\");\r\n\t\tvar $slider = $(\".page-gioi-thieu.section-2 .slider-circle\");\r\n\t\tvar $num = $(\".circle-num\");\r\n\t\t$num.find(\".item-num\").each(function (i, val) {\r\n\t\t\t$(this)\r\n\t\t\t\t.attr(\"data-slider-id\", i + 1)\r\n\t\t\t\t.attr(\"item\", i + 1);\r\n\t\t});\r\n\t\t$(\".slider-circle .slider .item\").each(function (i, val) {\r\n\t\t\t$(this)\r\n\t\t\t\t.attr(\"data-slider-id\", i + 1)\r\n\t\t\t\t.attr(\"item\", i + 1);\r\n\t\t});\r\n\t\t$this.find(\".box-slide-main\").each(function (i, val) {\r\n\t\t\t$(this).attr(\"data-slider-id\", i + 1);\r\n\t\t});\r\n\t\t$this.find(\".box-slide-main\").css(\"display\", \"none\");\r\n\t\t$(\".page-gioi-thieu.section-2 .col-lg-7 .box-slide-main:eq(2)\").show();\r\n\t\tsetTimeout(() => {\r\n\t\t\tlet heightBox = $(\r\n\t\t\t\t\".page-gioi-thieu.section-2 .col-lg-7 .box-slide-main:eq(2)\"\r\n\t\t\t).outerHeight();\r\n\t\t\t$this.css(\"height\", heightBox + 40);\r\n\t\t}, 1000);\r\n\t\treturn {\r\n\t\t\tshow: function () {\r\n\t\t\t\tvar $current = $slider.find(\".slider .item.active\");\r\n\t\t\t\t$this.find(\".box-slide-main\").hide();\r\n\t\t\t\t$this\r\n\t\t\t\t\t.find(\r\n\t\t\t\t\t\t'.box-slide-main[data-slider-id=\"' +\r\n\t\t\t\t\t\t\t$current.attr(\"data-slider-id\") +\r\n\t\t\t\t\t\t\t'\"]'\r\n\t\t\t\t\t)\r\n\t\t\t\t\t.hide()\r\n\t\t\t\t\t.fadeIn();\r\n\t\t\t},\r\n\t\t};\r\n\t}\r\n\tvar $slider = sliderCircle();\r\n\tvar GioiThieuSection2 = new Swiper(\r\n\t\t\".page-gioi-thieu.section-2 .swiper-container\",\r\n\t\t{\r\n\t\t\tslidesPerView: 1,\r\n\t\t\tspaceBetween: 10,\r\n\t\t\tspeed: 800,\r\n\t\t\tobserver: true,\r\n\t\t\tobserveParents: true,\r\n\t\t\tloop: true,\r\n\t\t\tlazy: true,\r\n\t\t\tnavigation: {\r\n\t\t\t\tnextEl: \".page-gioi-thieu.section-2 .btn-next\",\r\n\t\t\t\tprevEl: \".page-gioi-thieu.section-2 .btn-prev\",\r\n\t\t\t},\r\n\t\t}\r\n\t);\r\n}\r\n/*==================== Mapping Menu ====================*/\r\nfunction mappingMenu() {\r\n\tlet widthWindow = $(window).width();\r\n\tif (widthWindow < 1280) {\r\n\t\t$(\"header .main-menu .list-menu\").appendTo(\".main-menu-mobile\");\r\n\t\t$(\".main-menu .icon-search\").appendTo(\".main-menu-mobile .search-lang\");\r\n\t\t$(\".main-menu .wrap-lang\").appendTo(\".main-menu-mobile .search-lang\");\r\n\t\t$(\".tab-main-gt ul li\")\r\n\t\t\t.clone()\r\n\t\t\t.appendTo(\".category-page-gt .list-menu-page\");\r\n\t}\r\n\tif (widthWindow < 575) {\r\n\t\t$(\".main-menu .btn-buy-online\").appendTo(\"main\");\r\n\t}\r\n}\r\n/*==================== Animation loader ====================*/\r\nfunction animationLoader(e) {\r\n\t$(\"body\").addClass(\"loaded\");\r\n}\r\n/*==================== Focus Search ====================*/\r\nfunction focusSearch() {\r\n\t$(\".searchbox input\")\r\n\t\t.focus(function () {\r\n\t\t\t$(this).parent().removeClass(\"notFocus\");\r\n\t\t\t$(this).parent().addClass(\"focus\");\r\n\t\t})\r\n\t\t.blur(function () {\r\n\t\t\t$(this).parent().removeClass(\"focus\");\r\n\t\t\t$(this).parent().addClass(\"notFocus\");\r\n\t\t\t$(\".wrap-search-main\").removeClass(\"active\");\r\n\t\t});\r\n}\r\n/*==================== JS Other ====================*/\r\nfunction height(el) {\r\n\tvar height = 0;\r\n\t$(el).each(function () {\r\n\t\tvar thisHeight = $(this).height();\r\n\t\tif (thisHeight > height) {\r\n\t\t\theight = thisHeight;\r\n\t\t}\r\n\t\tsetTimeout(() => {\r\n\t\t\t$(el).height(height);\r\n\t\t}, 100);\r\n\t});\r\n}\r\n\r\nlet header = {\r\n\ttoogleMenu: function () {\r\n\t\tif ($(window).width() < 1280) {\r\n\t\t\t$(\".main-menu .dropdown .item\").click(function () {\r\n\t\t\t\t$(this).parent().find(\".menu-dropdown\").slideToggle();\r\n\t\t\t\t$(this).parent().toggleClass(\"isOpen\");\r\n\t\t\t\treturn false;\r\n\t\t\t});\r\n\t\t}\r\n\t},\r\n\tsearch: function () {\r\n\t\t$(\".icon-search\").on(\"click\", function () {\r\n\t\t\t$(\".wrap-search-main\").toggleClass(\"active\");\r\n\t\t});\r\n\t\t$(\".wrap-search-main .close\").click(function () {\r\n\t\t\t$(\".wrap-search-main\").removeClass(\"active\");\r\n\t\t});\r\n\t},\r\n\thambuger: function () {\r\n\t\t$(\".hambuger\").click(function () {\r\n\t\t\t$(this).toggleClass(\"active\");\r\n\t\t\t$(\".main-menu-mobile\").toggleClass(\"isOpen\");\r\n\t\t\t$(\".overlay\").addClass(\"active\");\r\n\t\t});\r\n\t\t$(\".main-menu-mobile .close\").click(function () {\r\n\t\t\t$(\".main-menu-mobile\").removeClass(\"isOpen\");\r\n\t\t\t$(\".hambuger\").removeClass(\"active\");\r\n\t\t\t$(\".overlay\").removeClass(\"active\");\r\n\t\t});\r\n\t\t$(\".overlay\").click(function () {\r\n\t\t\t$(\".main-menu-mobile\").removeClass(\"isOpen\");\r\n\t\t\t$(\".hambuger\").removeClass(\"active\");\r\n\t\t\t$(\".overlay\").removeClass(\"active\");\r\n\t\t});\r\n\t},\r\n\tscrollActive: function () {\r\n\t\tlet height = $(\"header\").height();\r\n\t\tif ($(window).scrollTop() > height) {\r\n\t\t\t$(\"header\").addClass(\"active\");\r\n\t\t} else {\r\n\t\t\t$(\"header\").removeClass(\"active\");\r\n\t\t}\r\n\t},\r\n};\r\n\r\nfunction setBackgroundElement() {\r\n\t$(\"[setBackground]\").each(function () {\r\n\t\tvar background = $(this).attr(\"setBackground\");\r\n\t\t$(this).css({\r\n\t\t\t\"background-size\": \"cover\",\r\n\t\t\t\"background-position\": \"center center\",\r\n\t\t\t\"background-image\": \"url(\" + background + \")\",\r\n\t\t});\r\n\t});\r\n}\r\nfunction swiperInit() {\r\n\tvar bannerHome = new Swiper(\".banner-home .swiper-container\", {\r\n\t\tslidesPerView: 1,\r\n\t\tloop: true,\r\n\t\tautoplay: {\r\n\t\t\tdelay: 5000,\r\n\t\t},\r\n\t\tspeed: 800,\r\n\t\teffect: \"fade\",\r\n\t\tslidesPerColumnFill: \"row\",\r\n\t\tpagination: {\r\n\t\t\tel: \".banner-home .swiper-pagination\",\r\n\t\t\tclickable: true,\r\n\t\t},\r\n\t\tnavigation: {\r\n\t\t\tnextEl: \".banner-home .btn-next\",\r\n\t\t\tprevEl: \".banner-home .btn-prev\",\r\n\t\t},\r\n\t});\r\n\tvar SecHome1 = new Swiper(\".sec-why-choose .swiper-container\", {\r\n\t\tslidesPerView: 2,\r\n\t\tspaceBetween: 5,\r\n\t\tobserveParents: true,\r\n\t\tobserver: true,\r\n\t\tautoplay: {\r\n\t\t\tdelay: 3500,\r\n\t\t},\r\n\t\tlazy: true,\r\n\t\tbreakpoints: {\r\n\t\t\t575: {\r\n\t\t\t\tslidesPerView: 2,\r\n\t\t\t\tspaceBetween: 10,\r\n\t\t\t},\r\n\t\t\t768: {\r\n\t\t\t\tslidesPerView: 3,\r\n\t\t\t\tspaceBetween: 10,\r\n\t\t\t},\r\n\t\t\t1024: {\r\n\t\t\t\tslidesPerView: 3,\r\n\t\t\t\tspaceBetween: 10,\r\n\t\t\t},\r\n\t\t\t1280: {\r\n\t\t\t\tslidesPerView: 5,\r\n\t\t\t\tspaceBetween: 10,\r\n\t\t\t},\r\n\t\t},\r\n\t});\r\n\tvar SecNewsPosts = new Swiper(\".wrap-news-main .swiper-container\", {\r\n\t\tslidesPerView: 1.3,\r\n\t\tspaceBetween: 5,\r\n\t\tobserveParents: true,\r\n\t\tobserver: true,\r\n\t\tautoplay: {\r\n\t\t\tdelay: 3500,\r\n\t\t},\r\n\t\tlazy: true,\r\n\t\tnavigation: {\r\n\t\t\tnextEl: \".wrap-news-main .btn-next\",\r\n\t\t\tprevEl: \".wrap-news-main .btn-prev\",\r\n\t\t},\r\n\t\tbreakpoints: {\r\n\t\t\t575: {\r\n\t\t\t\tslidesPerView: 2.3,\r\n\t\t\t\tspaceBetween: 10,\r\n\t\t\t},\r\n\t\t\t768: {\r\n\t\t\t\tslidesPerView: 3,\r\n\t\t\t\tspaceBetween: 10,\r\n\t\t\t},\r\n\t\t\t1024: {\r\n\t\t\t\tslidesPerView: 3,\r\n\t\t\t\tspaceBetween: 30,\r\n\t\t\t},\r\n\t\t},\r\n\t});\r\n\t$(\".sec-home-product\").each(function (index) {\r\n\t\t$(this).addClass(\"home-product-slide-\" + index);\r\n\t});\r\n\tvar dotHomeProduct1 = new Swiper(\r\n\t\t\".home-product-slide-0 .home-product-left .swiper-container\",\r\n\t\t{\r\n\t\t\tspaceBetween: 0,\r\n\t\t\tslidesPerView: 5,\r\n\t\t\tfreeMode: true,\r\n\t\t\twatchSlidesProgress: true,\r\n\t\t}\r\n\t);\r\n\tvar mainHomeProduct1 = new Swiper(\r\n\t\t\".home-product-slide-0 .home-product-right .swiper-container\",\r\n\t\t{\r\n\t\t\tspaceBetween: 10,\r\n\t\t\tnavigation: {\r\n\t\t\t\tnextEl: \".swiper-button-next\",\r\n\t\t\t\tprevEl: \".swiper-button-prev\",\r\n\t\t\t},\r\n\t\t\tthumbs: {\r\n\t\t\t\tswiper: dotHomeProduct1,\r\n\t\t\t},\r\n\t\t}\r\n\t);\r\n\t$(\".home-product-slide-0 .play-button\").click(function () {\r\n\t\tif ($(this).hasClass(\"active\")) {\r\n\t\t\tmainHomeProduct1.autoplay.stop();\r\n\t\t} else {\r\n\t\t\tmainHomeProduct1.autoplay.start();\r\n\t\t}\r\n\t\t$(this).toggleClass(\"active\");\r\n\t});\r\n\t$(\".home-product-slide-1 .play-button\").click(function () {\r\n\t\tif ($(this).hasClass(\"active\")) {\r\n\t\t\tmainHomeProduct2.autoplay.stop();\r\n\t\t} else {\r\n\t\t\tmainHomeProduct2.autoplay.start();\r\n\t\t}\r\n\t\t$(this).toggleClass(\"active\");\r\n\t});\r\n\t$(\".home-product-slide-2 .play-button\").click(function () {\r\n\t\tif ($(this).hasClass(\"active\")) {\r\n\t\t\tmainHomeProduct3.autoplay.stop();\r\n\t\t} else {\r\n\t\t\tmainHomeProduct3.autoplay.start();\r\n\t\t}\r\n\t\t$(this).toggleClass(\"active\");\r\n\t});\r\n\tvar dotHomeProduct2 = new Swiper(\r\n\t\t\".home-product-slide-1 .home-product-left .swiper-container\",\r\n\t\t{\r\n\t\t\tspaceBetween: 0,\r\n\t\t\tslidesPerView: 5,\r\n\t\t\tfreeMode: true,\r\n\t\t\twatchSlidesProgress: true,\r\n\t\t}\r\n\t);\r\n\tvar mainHomeProduct2 = new Swiper(\r\n\t\t\".home-product-slide-1 .home-product-right .swiper-container\",\r\n\t\t{\r\n\t\t\tspaceBetween: 10,\r\n\t\t\tnavigation: {\r\n\t\t\t\tnextEl: \".swiper-button-next\",\r\n\t\t\t\tprevEl: \".swiper-button-prev\",\r\n\t\t\t},\r\n\t\t\tthumbs: {\r\n\t\t\t\tswiper: dotHomeProduct2,\r\n\t\t\t},\r\n\t\t}\r\n\t);\r\n\tvar dotHomeProduct3 = new Swiper(\r\n\t\t\".home-product-slide-2 .home-product-left .swiper-container\",\r\n\t\t{\r\n\t\t\tspaceBetween: 0,\r\n\t\t\tslidesPerView: 5,\r\n\t\t\tfreeMode: true,\r\n\t\t\twatchSlidesProgress: true,\r\n\t\t}\r\n\t);\r\n\tvar mainHomeProduct3 = new Swiper(\r\n\t\t\".home-product-slide-2 .home-product-right .swiper-container\",\r\n\t\t{\r\n\t\t\tspaceBetween: 10,\r\n\t\t\tnavigation: {\r\n\t\t\t\tnextEl: \".swiper-button-next\",\r\n\t\t\t\tprevEl: \".swiper-button-prev\",\r\n\t\t\t},\r\n\t\t\tthumbs: {\r\n\t\t\t\tswiper: dotHomeProduct3,\r\n\t\t\t},\r\n\t\t}\r\n\t);\r\n\tvar slideStep = new Swiper(\".wrap-slide-step .swiper-container\", {\r\n\t\tslidesPerView: 2,\r\n\t\tspaceBetween: 5,\r\n\t\tbreakpoints: {\r\n\t\t\t768: {\r\n\t\t\t\tslidesPerView: 3,\r\n\t\t\t\tspaceBetween: 10,\r\n\t\t\t},\r\n\t\t\t1024: {\r\n\t\t\t\tslidesPerView: 4,\r\n\t\t\t\tspaceBetween: 30,\r\n\t\t\t},\r\n\t\t\t1280: {\r\n\t\t\t\tslidesPerView: 5,\r\n\t\t\t\tspaceBetween: 30,\r\n\t\t\t},\r\n\t\t},\r\n\t});\r\n\tvar slideJobapply = new Swiper(\".job-apply .swiper-container\", {\r\n\t\tslidesPerView: 1,\r\n\t\tspeed: 900,\r\n\t\tspaceBetween: 30,\r\n\t\tnavigation: {\r\n\t\t\tnextEl: \".job-apply .btn-next\",\r\n\t\t\tprevEl: \".job-apply .btn-prev\",\r\n\t\t},\r\n\t});\r\n\tvar ProductDetailThumb = new Swiper(\r\n\t\t\".page-product-detail .product-detail-img-thumb .swiper-container\",\r\n\t\t{\r\n\t\t\tspaceBetween: 20,\r\n\t\t\tslidesPerView: 3,\r\n\t\t\tbreakpoints: {\r\n\t\t\t\t768: {\r\n\t\t\t\t\tslidesPerView: 4,\r\n\t\t\t\t\tspaceBetween: 20,\r\n\t\t\t\t},\r\n\t\t\t},\r\n\t\t}\r\n\t);\r\n\tvar ProductDetailImg = new Swiper(\r\n\t\t\".page-product-detail .product-detail-img-main .swiper-container\",\r\n\t\t{\r\n\t\t\tspaceBetween: 10,\r\n\t\t\tslidesPerView: 1,\r\n\t\t\tlazy: true,\r\n\t\t\tnavigation: {\r\n\t\t\t\tnextEl: \".page-product-detail .btn-next\",\r\n\t\t\t\tprevEl: \".page-product-detail .btn-prev\",\r\n\t\t\t},\r\n\t\t\tthumbs: {\r\n\t\t\t\tswiper: ProductDetailThumb,\r\n\t\t\t},\r\n\t\t}\r\n\t);\r\n\tvar ProductOther = new Swiper(\".other-product-main .swiper-container\", {\r\n\t\tspaceBetween: 10,\r\n\t\tslidesPerView: 2,\r\n\t\tlazy: true,\r\n\t\tnavigation: {\r\n\t\t\tnextEl: \".other-product-main .btn-next\",\r\n\t\t\tprevEl: \".other-product-main .btn-prev\",\r\n\t\t},\r\n\t\tbreakpoints: {\r\n\t\t\t768: {\r\n\t\t\t\tslidesPerView: 3,\r\n\t\t\t\tspaceBetween: 30,\r\n\t\t\t},\r\n\t\t},\r\n\t});\r\n\tvar GioiThieuNews = new Swiper(\r\n\t\t\".page-gioi-thieu.section-5 .swiper-container\",\r\n\t\t{\r\n\t\t\tspaceBetween: 10,\r\n\t\t\tslidesPerView: 2,\r\n\t\t\tlazy: true,\r\n\t\t\tnavigation: {\r\n\t\t\t\tnextEl: \".page-gioi-thieu.section-5 .btn-next\",\r\n\t\t\t\tprevEl: \".page-gioi-thieu.section-5 .btn-prev\",\r\n\t\t\t},\r\n\t\t\tbreakpoints: {\r\n\t\t\t\t768: {\r\n\t\t\t\t\tslidesPerView: 2,\r\n\t\t\t\t\tspaceBetween: 30,\r\n\t\t\t\t},\r\n\t\t\t},\r\n\t\t}\r\n\t);\r\n}\r\n/*==================== Click View More Product ====================*/\r\nfunction infiniti_scroll() {\r\n\tconsole.log(\"run\");\r\n\tvar $parent = $(\".sec-product-list .row\"),\r\n\t\t$items = $parent.find(\".col-lg-4\"),\r\n\t\t$loadMoreButton = $(\".sec-product-list .btn-main\");\r\n\tlet ww = $(window).width();\r\n\tif (ww >= 1024) {\r\n\t\tvar numberItems = 9,\r\n\t\t\tmaxItems = 6;\r\n\t} else {\r\n\t\tvar numberItems = 8,\r\n\t\t\tmaxItems = 4;\r\n\t}\r\n\tvar hiddenClass = \"visually-hidden\";\r\n\t$.each($items, function (idx, item) {\r\n\t\tif (idx > numberItems - 1) {\r\n\t\t\t$(this).addClass(hiddenClass);\r\n\t\t}\r\n\t});\r\n\t$loadMoreButton.on(\"click\", function (e) {\r\n\t\t$(\".loading-search\").addClass(\"active\");\r\n\t\tsetTimeout(() => {\r\n\t\t\t$(\".loading-search\").removeClass(\"active\");\r\n\t\t}, 250);\r\n\t\tsetTimeout(() => {\r\n\t\t\t$(\".\" + hiddenClass).each(function (idx, item) {\r\n\t\t\t\tif (idx < maxItems) {\r\n\t\t\t\t\t$(this).removeClass(hiddenClass);\r\n\t\t\t\t\t$(this).addClass(\"fadeInUp\");\r\n\t\t\t\t}\r\n\t\t\t\tif ($(\".\" + hiddenClass).length === 0) {\r\n\t\t\t\t\t$loadMoreButton.hide();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}, 300);\r\n\t});\r\n}\r\n$(document).on(\"scroll\", function () {\r\n\theader.scrollActive();\r\n});\r\n"]}