{"version":3,"sources":["main.js"],"names":["$","document","ready","headerInit","init","setBackgroundElement","swiperInit","lazyloadFun","toggleNavCategory","toggleFaqs","loadMore","loadAjaxLink","backToTop","fancyboxInit","uploadImageForm","animationJS","moveHtml","height","changeQuantilyProduct","headerScrollTop","el","each","thisHeight","this","setTimeout","on","scrollActive","windowScrollTop","window","scrollTop","toggleClass","addClass","removeClass","heightHeader","outerHeight","mappingMenu","mapping","mobileWrapper","mobileMethod","desktopWrapper","desktopMethod","breakpoint","toggleMenuMobile","btnMenu","mobileWrap","searchBox","slideToggle","slideUp","toggleSearchBox","btnSearch","btnSearchTop","btnClose","btnCloseTop","searchBoxTop","disableScroll","enableScroll","dropdownMenuMobile","append","find","prev","parent","siblings","next","thisUI","children","unbind","triggerButtonSearch","focus","keyup","e","keyCode","trigger","background","attr","css","background-image","background-size","background-position","homeBanner","Swiper","loop","autoplay","delay","disableOnInteraction","speed","spaceBetween","observer","observeParents","grabCursor","effect","creativeEffect","shadow","translate","navigation","nextEl","prevEl","pagination","clickable","length","stop","centeredSlides","slidesPerView","breakpoints","1280","coverflowEffect","rotate","stretch","depth","modifier","slideShadows","index","576","1024","768","grid","rows","preventDefault","animate","backToLink","noHashURL","location","href","replace","console","log","history","replaceState","title","LoadMoreProductAjax","pageurl","ajax","url","type","data","isajax","success","html","pictureObserver","lozad","threshold","enableAutoReload","load","src","getAttribute","backgroundObserver","observe","fbs_click","width","leftPosition","topPosition","windowFeatures","screen","u","t","open","encodeURIComponent","IntersectionObserver","entries","forEach","entry","isIntersecting","target","style","animation","dataset","querySelectorAll","item","Fancybox","bind","showLoading","preload","infinite","parentEl","forms","mainClass","groupAttr","dataShow","dataLoadMore","slice","show","slideDown","hide","indexNew","uploadArea","querySelector","dropZoon","fileInput","previewImage","imagesTypes","uploadFile","file","fileReader","FileReader","fileType","fileSize","filter","indexOf","concat","alert","fileValidate","size","classList","add","display","addEventListener","setAttribute","result","readAsDataURL","event","remove","dataTransfer","files","click","keys","37","38","39","40","preventDefaultForScrollKeys","supportsPassive","Object","defineProperty","get","wheelOpt","passive","wheelEvent","createElement","removeEventListener","ajaxLink","appendTo","r","parseInt","val"],"mappings":"AAAA,aAAAA,EAAEC,UAAUC,MAAM,WAEjBC,WAAWC,OACXC,uBAGAC,aACAC,cAEAC,oBACAC,aACAC,WAEAC,eACAC,YACAC,eACAC,kBAEAC,cACAC,WACAC,OAAOjB,EAAE,+BACTiB,OAAOjB,EAAE,yBACTkB,0BAKD,IAAIC,gBAAkB,EActB,SAASF,OAAOG,GACf,IAAIH,EAAS,EACbjB,EAAEoB,GAAIC,KAAK,WACV,IAAIC,EAAatB,EAAEuB,MAAMN,SACrBK,EAAaL,IAChBA,EAASK,GAEVE,WAAW,WACVxB,EAAEoB,GAAIH,OAAOA,IACX,OArBLjB,EAAEC,UAAUwB,GAAG,SAAU,WACxBtB,WAAWuB,eACX,IAAIC,EAAkB3B,EAAE4B,QAAQC,YAChC7B,EAAE,6BAA6B8B,YAAY,OAAQH,EAAkBR,iBACpEA,gBAAkBnB,EAAE4B,QAAQC,YAAaF,EAAkB,EAAI3B,EAAE,6BAA6B+B,SAAS,eAAiB/B,EAAE,6BAA6BgC,YAAY,eACnKhC,EAAE4B,QAAQC,YAAe7B,EAAEC,UAAUgB,SAAWjB,EAAE4B,QAAQX,WAG5DjB,EAAEC,UAAUwB,GAAG,SAAU,cAiBzB,IAAItB,WAAa,CAChBuB,aAAc,WACb,IAAIO,EAAejC,EAAE,UAAUkC,cAC3BlC,EAAE4B,QAAQC,YAAcI,EAC3BjC,EAAE,UAAU+B,SAAS,UAErB/B,EAAE,UAAUgC,YAAY,UAErBhC,EAAE4B,QAAQC,YAAc,IAC3B7B,EAAE,gBAAgB+B,SAAS,UAE3B/B,EAAE,gBAAgBgC,YAAY,WAGhCG,YAAa,WACGnC,EAAE,gCAAgCoC,QAAQ,CACxDC,cAAe,sBACfC,aAAc,WACdC,eAAgB,0BAChBC,cAAe,WACfC,WAAY,OAECzC,EAAE,+BAA+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EO,KAKV,SAASU,WACJhB,EAAE,kBAAkBkG,OAAS,GAChClG,EAAE,wCAAwCqO,SAAS,+BAIrD,SAASnN,wBAERlB,EAAE,YAAYyB,GAAG,QAAS,SAAU4C,GACnCA,EAAE+C,iBACF,IAAIqC,EAAIzJ,EAAEuB,MAAMuC,OACfwK,EAAIC,SAAS9E,EAAE+E,OAChBF,GAAK,EAAIA,EAAI,EAAIA,IAAK7E,EAAE+E,IAAIF,GAC3B7E,EAAElF,QAAQ,YAGZvE,EAAE,YAAYyB,GAAG,QAAS,SAAU4C,GACnCA,EAAE+C,iBACF,IAAIqC,EAAIzJ,EAAEuB,MAAMoC,OACf2K,EAAIC,SAAS9E,EAAE+E,OAChBF,IAAK7E,EAAE+E,IAAIF,GACV7E,EAAElF,QAAQ","file":"main.min.js","sourcesContent":["$(document).ready(function () {\n\t// header\n\theaderInit.init();\n\tsetBackgroundElement();\n\n\t// swiper\n\tswiperInit();\n\tlazyloadFun();\n\t// toggle\n\ttoggleNavCategory();\n\ttoggleFaqs();\n\tloadMore();\n\n\tloadAjaxLink();\n\tbackToTop();\n\tfancyboxInit();\n\tuploadImageForm();\n\n\tanimationJS();\n\tmoveHtml();\n\theight($('.step-section .step-nav li'));\n\theight($('.share-item .caption'));\n\tchangeQuantilyProduct();\n\n\t// snowInit();\n});\n\nlet headerScrollTop = 0;\n\n$(document).on('scroll', function () {\n\theaderInit.scrollActive();\n\tlet windowScrollTop = $(window).scrollTop();\n\t$(\"header, .nav-link-section\").toggleClass(\"hide\", windowScrollTop > headerScrollTop),\n\t\theaderScrollTop = $(window).scrollTop(), windowScrollTop > 0 ? $(\"header, .nav-link-section\").addClass(\"is-scrolled\") : $(\"header, .nav-link-section\").removeClass(\"is-scrolled\"),\n\t\t$(window).scrollTop() >= $(document).height() - $(window).height()\n});\n\n$(document).on('resize', function () {\n\n});\n\nfunction height(el) {\n\tvar height = 0;\n\t$(el).each(function () {\n\t\tvar thisHeight = $(this).height();\n\t\tif (thisHeight > height) {\n\t\t\theight = thisHeight;\n\t\t}\n\t\tsetTimeout(() => {\n\t\t\t$(el).height(height)\n\t\t}, 100)\n\t})\n}\n\nvar headerInit = {\n\tscrollActive: function () {\n\t\tlet heightHeader = $(\"header\").outerHeight();\n\t\tif ($(window).scrollTop() > heightHeader) {\n\t\t\t$(\"header\").addClass(\"active\");\n\t\t} else {\n\t\t\t$(\"header\").removeClass(\"active\");\n\t\t}\n\t\tif ($(window).scrollTop() > 500) {\n\t\t\t$(\".back-to-top\").addClass(\"active\");\n\t\t} else {\n\t\t\t$(\".back-to-top\").removeClass(\"active\");\n\t\t}\n\t},\n\tmappingMenu: () => {\n\t\tlet mainMenu = $('header .main-wrap .main-menu').mapping({\n\t\t\tmobileWrapper: 'header .mobile-wrap',\n\t\t\tmobileMethod: 'appendTo',\n\t\t\tdesktopWrapper: 'header .right-wrap .bot',\n\t\t\tdesktopMethod: 'appendTo',\n\t\t\tbreakpoint: 1279\n\t\t});\n\t\tlet menuTop = $('header .main-wrap .menu-top').mapping({\n\t\t\tmobileWrapper: 'header .mobile-wrap',\n\t\t\tmobileMethod: 'appendTo',\n\t\t\tdesktopWrapper: 'header .right-wrap .top',\n\t\t\tdesktopMethod: 'prependTo',\n\t\t\tbreakpoint: 1279\n\t\t});\n\t\tlet searchBox = $('header .search-top .search').mapping({\n\t\t\tmobileWrapper: 'header .search-wrap',\n\t\t\tmobileMethod: 'appendTo',\n\t\t\tdesktopWrapper: 'header .right-wrap .search-top',\n\t\t\tdesktopMethod: 'appendTo',\n\t\t\tbreakpoint: 1279\n\t\t});\n\t\tlet account = $('header .main-wrap .account-wrap').mapping({\n\t\t\tmobileWrapper: 'header .mobile-wrap',\n\t\t\tmobileMethod: 'appendTo',\n\t\t\tdesktopWrapper: 'header .main-wrap .search-top',\n\t\t\tdesktopMethod: 'insertAfter',\n\t\t\tbreakpoint: 767\n\t\t});\n\t\tlet registerAmission = $('header .main-wrap .btn-register-amission').mapping({\n\t\t\tmobileWrapper: 'header .mobile-wrap',\n\t\t\tmobileMethod: 'appendTo',\n\t\t\tdesktopWrapper: 'header .main-wrap .account-wrap',\n\t\t\tdesktopMethod: 'insertAfter',\n\t\t\tbreakpoint: 767\n\t\t});\n\t\tlet language = $('header .main-wrap .language').mapping({\n\t\t\tmobileWrapper: 'header .mobile-wrap',\n\t\t\tmobileMethod: 'appendTo',\n\t\t\tdesktopWrapper: 'header .main-wrap .account-wrap',\n\t\t\tdesktopMethod: 'insertAfter',\n\t\t\tbreakpoint: 767\n\t\t});\n\t},\n\ttoggleMenuMobile: () => {\n\t\tlet btnMenu = $(\"header .menu\"),\n\t\t\tmobileWrap = $(\"header .mobile-wrap\"),\n\t\t\tsearchBox = $('header .search-wrap');\n\t\tbtnMenu.on(\"click\", function () {\n\t\t\t$(this).toggleClass(\"active\");\n\t\t\tmobileWrap.slideToggle();\n\t\t\t// close search box\n\t\t\tsearchBox.slideUp();\n\t\t});\n\t},\n\ttoggleSearchBox: () => {\n\t\tlet btnSearch = $('header .btn-search'),\n\t\t\tbtnSearchTop = $('header .btn-search'),\n\t\t\tbtnClose = $('header .search-wrap .btn-close'),\n\t\t\tbtnCloseTop = $('header .search-top .btn-close'),\n\t\t\tsearchBox = $('header .search-wrap'),\n\t\t\tsearchBoxTop = $('header .search-top .search'),\n\t\t\tinputTop = $('header .search-top .search input'),\n\t\t\tbtnMenu = $(\"header .menu\"),\n\t\t\tmobileWrap = $(\"header .mobile-wrap\");\n\t\tbtnSearch.on('click', function () {\n\t\t\tsearchBox.slideToggle();\n\n\t\t\t// close mobile menu\n\t\t\tbtnMenu.removeClass('active');\n\t\t\tmobileWrap.slideUp();\n\t\t\tdisableScroll();\n\t\t});\n\t\tbtnSearchTop.on('click', function () {\n\t\t\tsearchBoxTop.addClass('active');\n\n\t\t\t// close mobile menu\n\t\t\tbtnMenu.removeClass('active');\n\t\t\tdisableScroll();\n\t\t});\n\t\tbtnClose.on('click', function () {\n\t\t\tsearchBox.slideToggle();\n\t\t\tenableScroll();\n\t\t});\n\t\tbtnCloseTop.on('click', function () {\n\t\t\tsearchBoxTop.removeClass('active');\n\t\t\tenableScroll();\n\t\t});\n\t},\n\tdropdownMenuMobile: () => {\n\t\tlet dropdownEach = $('header li.has-dropdown');\n\t\tdropdownEach.each(function () {\n\t\t\t$(this).append('');\n\t\t\t$(this).find('.toggle-dropdown').on('click', function () {\n\t\t\t\t$(this).toggleClass('active').prev().slideToggle().parent().toggleClass('active');\n\t\t\t\t$(this).parent().siblings().removeClass('active').find('.dropdown-menu').slideUp().next().removeClass('active');\n\t\t\t\t$(this).parent().on('mouseleave', function () {\n\t\t\t\t\tvar thisUI = $(this);\n\t\t\t\t\t$('html').on('click', function () {\n\t\t\t\t\t\tthisUI.children(\".dropdown-menu\").slideUp().next().removeClass('active');\n\t\t\t\t\t\t$('html').unbind('click');\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t})\n\t\t});\n\n\t},\n\ttriggerButtonSearch: () => {\n\t\t$(\".searchbox input\").focus(function () {\n\t\t\t$(this).keyup(function (e) {\n\t\t\t\tif (e.keyCode == 13) {\n\t\t\t\t\t$(this).next().trigger(\"click\");\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t},\n\tinit: () => {\n\t\theaderInit.scrollActive();\n\t\theaderInit.mappingMenu();\n\t\theaderInit.toggleMenuMobile();\n\t\theaderInit.toggleSearchBox();\n\t\theaderInit.dropdownMenuMobile();\n\t\theaderInit.triggerButtonSearch();\n\t}\n}\n\nfunction setBackgroundElement() {\n\t$('[setBackground]').each(function () {\n\t\tlet background = $(this).attr('setBackground')\n\t\t$(this).css({\n\t\t\t\"background-image\": \"url(\" + background + \")\",\n\t\t\t\"background-size\": \"cover\",\n\t\t\t\"background-position\": \"center center\"\n\t\t});\n\t});\n}\n\nfunction swiperInit() {\n\tlet homeBanner = new Swiper('.home-banner .swiper', {\n\t\tloop: true,\n\t\tautoplay: {\n\t\t\tdelay: 5000,\n\t\t\tdisableOnInteraction: true,\n\t\t},\n\t\tspeed: 500,\n\t\tspaceBetween: 10,\n\t\tobserver: true,\n\t\tobserveParents: true,\n\t\tgrabCursor: true,\n\t\teffect: \"creative\",\n\t\tcreativeEffect: {\n\t\t\tprev: {\n\t\t\t\tshadow: true,\n\t\t\t\ttranslate: [\"-110%\", 0, -500],\n\t\t\t},\n\t\t\tnext: {\n\t\t\t\tshadow: true,\n\t\t\t\ttranslate: [\"110%\", 0, -500],\n\t\t\t},\n\t\t},\n\t\tnavigation: {\n\t\t\tnextEl: \".home-banner .button-next\",\n\t\t\tprevEl: \".home-banner .button-prev\",\n\t\t},\n\t\tpagination: {\n\t\t\tel: '.home-banner .swiper-pagination',\n\t\t\tclickable: true,\n\t\t},\n\t\ton: {\n\t\t\tinit: function () {\n\t\t\t},\n\t\t},\n\t});\n\t\n\tif($('.home-banner .swiper video').length){\n\t\thomeBanner.autoplay.stop();\n\t}\n\t\n\tlet home1Slide = new Swiper('.home-1 .swiper', {\n\t\tspeed: 500,\n\t\tspaceBetween: 30,\n\t\tobserver: true,\n\t\tobserveParents: true,\n\t\tnavigation: {\n\t\t\tnextEl: \".home-1 .button-next\",\n\t\t\tprevEl: \".home-1 .button-prev\",\n\t\t},\n\t\tpagination: {\n\t\t\tel: '.home-1 .swiper-pagination',\n\t\t\tclickable: true,\n\t\t},\n\t});\n\n\tlet home2Slide = new Swiper('.home-2 .swiper', {\n\t\tspeed: 500,\n\t\tspaceBetween: 30,\n\t\tobserver: true,\n\t\tobserveParents: true,\n\t\teffect: \"coverflow\",\n\t\tgrabCursor: true,\n\t\tcenteredSlides: true,\n\t\tslidesPerView: 1,\n\t\tnavigation: {\n\t\t\tnextEl: \".home-2 .button-next\",\n\t\t\tprevEl: \".home-2 .button-prev\",\n\t\t},\n\t\tpagination: {\n\t\t\tel: '.home-2 .swiper-pagination',\n\t\t\tclickable: true,\n\t\t},\n\t\tbreakpoints: {\n\t\t\t1280: {\n\t\t\t\tloop: true,\n\t\t\t\tspaceBetween: 0,\n\t\t\t\tslidesPerView: 'auto',\n\t\t\t\tcoverflowEffect: {\n\t\t\t\t\trotate: 0,\n\t\t\t\t\tstretch: 575,\n\t\t\t\t\tdepth: 240,\n\t\t\t\t\tmodifier: 1,\n\t\t\t\t\tslideShadows: true,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t});\n\n\tif ($('.home-3 .main-slide').length > 0) {\n\t\t$('.home-3 .main-slide').each(function (index) {\n\t\t\t$(this).addClass('mySwiper-' + index).find('.button-prev').addClass('button-prev-' + index).next().addClass('button-next-' + index);\n\t\t\tlet home3Slide = new Swiper('.home-3 .mySwiper-' + index + ' .swiper', {\n\t\t\t\tspeed: 500,\n\t\t\t\tspaceBetween: 10,\n\t\t\t\tobserver: true,\n\t\t\t\tobserveParents: true,\n\t\t\t\tnavigation: {\n\t\t\t\t\tnextEl: \".home-3 .button-next-\" + index,\n\t\t\t\t\tprevEl: \".home-3 .button-prev-\" + index,\n\t\t\t\t},\n\t\t\t\tpagination: {\n\t\t\t\t\tel: '.home-3 .swiper-pagination-' + index,\n\t\t\t\t\tclickable: true,\n\t\t\t\t},\n\t\t\t});\n\t\t})\n\t}\n\n\tlet home4Slide = new Swiper('.home-4 .swiper', {\n\t\tspeed: 500,\n\t\tspaceBetween: 30,\n\t\tobserver: true,\n\t\tobserveParents: true,\n\t\tnavigation: {\n\t\t\tnextEl: \".home-4 .button-next\",\n\t\t\tprevEl: \".home-4 .button-prev\",\n\t\t},\n\t\tpagination: {\n\t\t\tel: '.home-4 .swiper-pagination',\n\t\t\tclickable: true,\n\t\t},\n\t});\n\n\tlet home5Slide = new Swiper('.home-5 .swiper', {\n\t\tspeed: 500,\n\t\tspaceBetween: 30,\n\t\tobserver: true,\n\t\tobserveParents: true,\n\t\tnavigation: {\n\t\t\tnextEl: \".home-5 .button-next\",\n\t\t\tprevEl: \".home-5 .button-prev\",\n\t\t},\n\t\tpagination: {\n\t\t\tel: '.home-5 .swiper-pagination',\n\t\t\tclickable: true,\n\t\t},\n\t\tbreakpoints: {\n\t\t\t576: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t},\n\t\t},\n\t});\n\n\tlet home6Slide = new Swiper('.home-6 .swiper', {\n\t\tspeed: 500,\n\t\tspaceBetween: 30,\n\t\tobserver: true,\n\t\tobserveParents: true,\n\t\tnavigation: {\n\t\t\tnextEl: \".home-6 .button-next\",\n\t\t\tprevEl: \".home-6 .button-prev\",\n\t\t},\n\t\tpagination: {\n\t\t\tel: '.home-6 .swiper-pagination',\n\t\t\tclickable: true,\n\t\t},\n\t\tbreakpoints: {\n\t\t\t768: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t},\n\t\t},\n\t});\n\n\tlet home7Slide = new Swiper('.home-7 .swiper', {\n\t\tspeed: 500,\n\t\tspaceBetween: 30,\n\t\tobserver: true,\n\t\tobserveParents: true,\n\t\tnavigation: {\n\t\t\tnextEl: \".home-7 .button-next\",\n\t\t\tprevEl: \".home-7 .button-prev\",\n\t\t},\n\t\tpagination: {\n\t\t\tel: '.home-7 .swiper-pagination',\n\t\t\tclickable: true,\n\t\t},\n\t\tbreakpoints: {\n\t\t\t576: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t},\n\t\t},\n\t});\n\n\tlet home8Slide = new Swiper('.home-8 .swiper', {\n\t\tloop: true,\n\t\tautoplay: {\n\t\t\tdelay: 500,\n\t\t},\n\t\tspeed: 500,\n\t\tspaceBetween: 30,\n\t\tobserver: true,\n\t\tobserveParents: true,\n\t\tslidesPerView: 2,\n\t\tnavigation: {\n\t\t\tnextEl: \".home-8 .button-next\",\n\t\t\tprevEl: \".home-8 .button-prev\",\n\t\t},\n\t\tpagination: {\n\t\t\tel: '.home-8 .swiper-pagination',\n\t\t\tclickable: true,\n\t\t},\n\t\tbreakpoints: {\n\t\t\t576: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tslidesPerView: 4,\n\t\t\t},\n\t\t},\n\t});\n\n\tlet footerSlide = new Swiper('footer .footer-top .swiper', {\n\t\tspeed: 500,\n\t\tspaceBetween: 30,\n\t\tobserver: true,\n\t\tobserveParents: true,\n\t\tslidesPerView: 2,\n\t\tnavigation: {\n\t\t\tnextEl: \"footer .footer-top .button-next\",\n\t\t\tprevEl: \"footer .footer-top .button-prev\",\n\t\t},\n\t\tpagination: {\n\t\t\tel: 'footer .footer-top .swiper-pagination',\n\t\t\tclickable: true,\n\t\t},\n\t\tbreakpoints: {\n\t\t\t576: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tslidesPerView: 4,\n\t\t\t},\n\t\t},\n\t});\n\n\tlet educateSlide = new Swiper('.educate-section .swiper', {\n\t\tloop: true,\n\t\tautoplay: {\n\t\t\tdelay: 5000,\n\t\t},\n\t\tspeed: 500,\n\t\tspaceBetween: 20,\n\t\tobserver: true,\n\t\tobserveParents: true,\n\t\tnavigation: {\n\t\t\tnextEl: \".educate-section .button-next\",\n\t\t\tprevEl: \".educate-section .button-prev\",\n\t\t},\n\t\tpagination: {\n\t\t\tel: '.educate-section .swiper-pagination',\n\t\t\tclickable: true,\n\t\t},\n\t\tbreakpoints: {\n\t\t\t576: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t},\n\t\t\t768: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tslidesPerView: 4,\n\t\t\t},\n\t\t},\n\t});\n\n\tlet educateDetailSlide = new Swiper('.educate-detail-section .swiper', {\n\t\tloop: true,\n\t\tautoplay: {\n\t\t\tdelay: 5000,\n\t\t},\n\t\tspeed: 500,\n\t\tspaceBetween: 20,\n\t\tobserver: true,\n\t\tobserveParents: true,\n\t\tnavigation: {\n\t\t\tnextEl: \".educate-detail-section .button-next\",\n\t\t\tprevEl: \".educate-detail-section .button-prev\",\n\t\t},\n\t\tpagination: {\n\t\t\tel: '.educate-detail-section .swiper-pagination',\n\t\t\tclickable: true,\n\t\t},\n\t});\n\n\tif ($('.material-facilities .main-slide').length > 0) {\n\t\t$('.material-facilities .main-slide').each(function (index) {\n\t\t\t$(this).addClass('mySwiper-' + index).find('.button-prev').addClass('button-prev-' + index).next().addClass('button-next-' + index);\n\t\t\tlet facilitiesSlide = new Swiper('.material-facilities .mySwiper-' + index + ' .swiper', {\n\t\t\t\tspeed: 500,\n\t\t\t\tspaceBetween: 10,\n\t\t\t\tobserver: true,\n\t\t\t\tobserveParents: true,\n\t\t\t\tnavigation: {\n\t\t\t\t\tnextEl: \".material-facilities .button-next-\" + index,\n\t\t\t\t\tprevEl: \".material-facilities .button-prev-\" + index,\n\t\t\t\t},\n\t\t\t\tpagination: {\n\t\t\t\t\tel: '.material-facilities .swiper-pagination-' + index,\n\t\t\t\t\tclickable: true,\n\t\t\t\t},\n\t\t\t});\n\t\t})\n\t}\n\n\tlet extracurricularSlide = new Swiper('.extracurricular-activity .swiper', {\n\t\tspeed: 500,\n\t\tslidesPerView: 1,\n\t\tspaceBetween: 20,\n\t\tgrid: {\n\t\t\trows: 2,\n\t\t},\n\t\tobserver: true,\n\t\tobserveParents: true,\n\t\tnavigation: {\n\t\t\tnextEl: \".extracurricular-activity .button-next\",\n\t\t\tprevEl: \".extracurricular-activity .button-prev\",\n\t\t},\n\t\tpagination: {\n\t\t\tel: '.extracurricular-activity .swiper-pagination',\n\t\t\tclickable: true,\n\t\t},\n\t\tbreakpoints: {\n\t\t\t576: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t\tspaceBetween: 20,\n\t\t\t\tgrid: {\n\t\t\t\t\trows: 2,\n\t\t\t\t},\n\t\t\t},\n\t\t\t768: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t\tspaceBetween: 20,\n\t\t\t\tgrid: {\n\t\t\t\t\trows: 2,\n\t\t\t\t},\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t\tspaceBetween: 30,\n\t\t\t\tgrid: {\n\t\t\t\t\trows: 2,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t});\n\n\tlet staffSlide = new Swiper('.staff-section .swiper', {\n\t\tspeed: 500,\n\t\tspaceBetween: 30,\n\t\tobserver: true,\n\t\tobserveParents: true,\n\t\teffect: \"coverflow\",\n\t\tgrabCursor: true,\n\t\tcenteredSlides: true,\n\t\tslidesPerView: 1,\n\t\tnavigation: {\n\t\t\tnextEl: \".staff-section .button-next\",\n\t\t\tprevEl: \".staff-section .button-prev\",\n\t\t},\n\t\tpagination: {\n\t\t\tel: '.staff-section .swiper-pagination',\n\t\t\tclickable: true,\n\t\t},\n\t\tbreakpoints: {\n\t\t\t1280: {\n\t\t\t\tloop: true,\n\t\t\t\tspaceBetween: 0,\n\t\t\t\tslidesPerView: 'auto',\n\t\t\t\tcoverflowEffect: {\n\t\t\t\t\trotate: 0,\n\t\t\t\t\tstretch: 777,\n\t\t\t\t\tdepth: 270,\n\t\t\t\t\tmodifier: 1,\n\t\t\t\t\tslideShadows: true,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t});\n\n\tlet school2Slide = new Swiper('.school-2 .swiper', {\n\t\tspeed: 500,\n\t\tspaceBetween: 30,\n\t\tobserver: true,\n\t\tobserveParents: true,\n\t\tnavigation: {\n\t\t\tnextEl: \".school-2 .button-next\",\n\t\t\tprevEl: \".school-2 .button-prev\",\n\t\t},\n\t\tpagination: {\n\t\t\tel: '.school-2 .swiper-pagination',\n\t\t\tclickable: true,\n\t\t},\n\t});\n\n\tlet newsOtherSlide = new Swiper('.news-detail-section .swiper', {\n\t\tspeed: 500,\n\t\tspaceBetween: 30,\n\t\tobserver: true,\n\t\tobserveParents: true,\n\t\tnavigation: {\n\t\t\tnextEl: \".news-detail-section .button-next\",\n\t\t\tprevEl: \".news-detail-section .button-prev\",\n\t\t},\n\t\tpagination: {\n\t\t\tel: '.news-detail-section .swiper-pagination',\n\t\t\tclickable: true,\n\t\t},\n\t\tbreakpoints: {\n\t\t\t576: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t},\n\t\t},\n\t});\n\n\tif ($('.step-section .box-choose-product .main-slide').length > 0) {\n\t\t$('.step-section .box-choose-product .main-slide').each(function (index) {\n\t\t\t$(this).addClass('mySwiper-' + index).find('.button-prev').addClass('button-prev-' + index).next().next().addClass('button-next-' + index);\n\t\t\tlet step2ProductSlide = new Swiper('.step-section .mySwiper-' + index + ' .swiper', {\n\t\t\t\tspeed: 500,\n\t\t\t\tspaceBetween: 10,\n\t\t\t\tslidesPerView: 'auto',\n\t\t\t\tobserver: true,\n\t\t\t\tobserveParents: true,\n\t\t\t\tnavigation: {\n\t\t\t\t\tnextEl: \".step-section .button-next-\" + index,\n\t\t\t\t\tprevEl: \".step-section .button-prev-\" + index,\n\t\t\t\t},\n\t\t\t\tpagination: {\n\t\t\t\t\tel: '.step-section .swiper-pagination-' + index,\n\t\t\t\t\tclickable: true,\n\t\t\t\t},\n\t\t\t});\n\t\t})\n\t}\n}\n\nfunction backToTop() {\n\tlet btnToTop = $('.back-to-top');\n\tbtnToTop.on('click', function (e) {\n\t\te.preventDefault();\n\t\t$('html, body').animate({\n\t\t\tscrollTop: 0,\n\t\t}, 0)\n\t});\n};\n\nfunction backToLink() {\n\tif ($('.back-to-link') > 0) {\n\t\tlet btnBackLink = $('.back-to-link');\n\t\tbtnBackLink.on('click', function (e) {\n\t\t\te.preventDefault();\n\t\t\tvar noHashURL = window.location.href.replace(/#.*$/, '');\n\t\t\tconsole.log(noHashURL);\n\t\t\twindow.history.replaceState('', document.title, noHashURL);\n\t\t});\n\t}\n};\n\nfunction LoadMoreProductAjax(pageurl) {\n\t$.ajax({\n\t\turl: pageurl,\n\t\ttype: \"POST\",\n\t\tdata: {\n\t\t\tisajax: true\n\t\t},\n\t\tsuccess: function (data) {\n\t\t\t$('.product-list').append($(data).find('.ajaxresponseloadmore').html());\n\t\t\treturn false;\n\t\t}\n\t});\n}\n\nfunction lazyloadFun() {\n\tvar pictureObserver = lozad(\".lozad-picture\", {\n\t\tthreshold: 0.1,\n\t});\n\n\tvar observer = lozad(\".lozad\", {\n\t\tthreshold: 0.1,\n\t\tenableAutoReload: true,\n\t\tload: function (el) {\n\t\t\tel.src = el.getAttribute(\"data-src\");\n\t\t},\n\t});\n\n\tvar backgroundObserver = lozad(\".lozad-background\", {\n\t\tthreshold: 0.1,\n\t});\n\n\tpictureObserver.observe();\n\tobserver.observe();\n\tbackgroundObserver.observe();\n}\n\nfunction toggleFaqs() {\n\tif ($('.accordion-item').length > 0) {\n\t\tlet btnToggle = $(\".accordion-item .title\");\n\t\tbtnToggle.on('click', function () {\n\t\t\t$(this).next().slideToggle().parent().toggleClass('active').siblings().removeClass('active').find('.caption').slideUp();\n\t\t})\n\t}\n}\n\nfunction toggleNavCategory() {\n\tif ($('.nav-link-section .nav-category').length > 0) {\n\t\tlet btnNavCate = $('.nav-link-section .nav-category');\n\t\tbtnNavCate.on('click', function () {\n\t\t\t$(this).toggleClass('active').next().slideToggle();\n\t\t})\n\t}\n}\n\nfunction fbs_click(width, height) {\n\tlet leftPosition, topPosition;\n\tleftPosition = (window.screen.width / 2) - ((width / 2) + 10);\n\ttopPosition = (window.screen.height / 2) - ((height / 2) + 50);\n\tlet windowFeatures = \"status=no,height=\" + height + \",width=\" + width + \",resizable=no,left=\" + leftPosition + \",top=\" + topPosition + \",screenX=\" + leftPosition + \",screenY=\" + topPosition + \",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no\";\n\tlet u = location.href;\n\tlet t = document.title;\n\twindow.open('http://www.facebook.com/sharer.php?u=' + encodeURIComponent(u) + '&t=' + encodeURIComponent(t), 'sharer', windowFeatures);\n\treturn false;\n}\n\nfunction animationJS() {\n\tif ($('.animate').length > 0 && $(window).width() >= 1280) {\n\t\t// Add animation \n\t\tconst callback = (entries) => {\n\t\t\tentries.forEach(\n\t\t\t\t(entry) => {\n\t\t\t\t\tif (entry.isIntersecting) {\n\t\t\t\t\t\tentry.target.style.animation = entry.target.dataset.animate;\n\t\t\t\t\t\t// console.log(entry.target.style.animation);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t);\n\t\t}\n\n\t\tlet observer = new IntersectionObserver(callback);\n\t\tconst animationItems = document.querySelectorAll('.animate');\n\t\tanimationItems.forEach(item => {\n\t\t\tobserver.observe(item)\n\t\t});\n\n\t\t$('section').each(function (index) {\n\t\t\t// let $this = index;\n\t\t\tlet hasAnimation = $(this).find('.animate').length\n\t\t\tif (hasAnimation > 0) {\n\t\t\t\t$(this).removeClass('overflow-hidden')\n\t\t\t} else {\n\t\t\t\t$(this).addClass('overflow-hidden')\n\t\t\t}\n\t\t\t// console.log($(this));\n\t\t})\n\t}\n}\n\nfunction fancyboxInit() {\n\tFancybox.bind(\"[data-fancybox]\", {\n\t\tshowLoading: true,\n\t\tpreload: true,\n\t\tinfinite: false,\n\t\tparentEl: document.forms[0], // Element containing main structure\n\t\tmainClass: 'fancybox-wrapper', // Custom class name or multiple space-separated class names for the container\n\t});\n\t// Fancybox.bind(\"a.popup-link\", {\n\t// \tshowLoading: true,\n\t// \ttype: \"iframe\",\n\t// \tpreload: true,\n\t// });\n\tFancybox.bind('[data-fancybox=\"single\"]', {\n\t\tgroupAttr: false,\n\t});\n}\n\nfunction loadMore() {\n\tif ($('.list-load-more').length > 0) {\n\t\t$('.list-load-more').each(function (index) {\n\t\t\tlet dataShow = $(this).data('show'),\n\t\t\t\tdataLoadMore = $(this).data('load');\n\n\t\t\t$(this).addClass('list-load-more-' + index);\n\n\t\t\t$('.list-load-more-' + index + ' > * ').slice(0, dataShow).show();\n\n\t\t\t$(this).next().find('a.btn-load-more').on('click', function (e) {\n\t\t\t\te.preventDefault();\n\t\t\t\t$('.list-load-more-' + index + ' > *:hidden').slice(0, dataLoadMore).slideDown();\n\t\t\t\tif ($('.list-load-more-' + index + ' > *:hidden').length == 0) {\n\t\t\t\t\t$(this).hide();\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t}\n}\n\nfunction uploadImageForm() {\n\tif ($('.form-upload'.length > 0)) {\n\t\t$('.form-upload').each(function (index) {\n\t\t\tlet indexNew = index + 1;\n\t\t\t// Select Upload-Area\n\t\t\tconst uploadArea = document.querySelector('#uploadArea' + indexNew)\n\t\t\tconsole.log(uploadArea);\n\n\t\t\t// Select Drop-Zoon Area\n\t\t\tconst dropZoon = document.querySelector('#dropZoon' + indexNew);\n\n\t\t\t// Slect File Input \n\t\t\tconst fileInput = document.querySelector('#upload' + indexNew);\n\n\t\t\t// Select Preview Image\n\t\t\tconst previewImage = document.querySelector('#previewImage' + indexNew);\n\n\t\t\t// Images Types\n\t\t\tconst imagesTypes = [\n\t\t\t\t\"jpeg\",\n\t\t\t\t\"png\",\n\t\t\t\t\"svg\",\n\t\t\t\t\"gif\"\n\t\t\t];\n\n\t\t\t// When (drop-zoon) has (dragover) Event \n\t\t\tdropZoon.addEventListener('dragover', function (event) {\n\t\t\t\t// Prevent Default Behavior \n\t\t\t\tevent.preventDefault();\n\n\t\t\t\t// Add Class (drop-zoon--over) On (drop-zoon)\n\t\t\t\tdropZoon.classList.add('drop-zoon-over');\n\t\t\t});\n\n\t\t\t// When (drop-zoon) has (dragleave) Event \n\t\t\tdropZoon.addEventListener('dragleave', function (event) {\n\t\t\t\t// Remove Class (drop-zoon--over) from (drop-zoon)\n\t\t\t\tdropZoon.classList.remove('drop-zoon-over');\n\t\t\t});\n\n\t\t\t// When (drop-zoon) has (drop) Event \n\t\t\tdropZoon.addEventListener('drop', function (event) {\n\t\t\t\t// Prevent Default Behavior \n\t\t\t\tevent.preventDefault();\n\n\t\t\t\t// Remove Class (drop-zoon--over) from (drop-zoon)\n\t\t\t\tdropZoon.classList.remove('drop-zoon-over');\n\n\t\t\t\t// Select The Dropped File\n\t\t\t\tconst file = event.dataTransfer.files[0];\n\n\t\t\t\t// Call Function uploadFile(), And Send To Her The Dropped File :)\n\t\t\t\tuploadFile(file);\n\t\t\t});\n\n\t\t\t// When (drop-zoon) has (click) Event \n\t\t\tdropZoon.addEventListener('click', function (event) {\n\t\t\t\t// Click The (fileInput)\n\t\t\t\tfileInput.click();\n\t\t\t});\n\n\t\t\t// When (fileInput) has (change) Event \n\t\t\tfileInput.addEventListener('change', function (event) {\n\t\t\t\t// Select The Chosen File\n\t\t\t\tconst file = event.target.files[0];\n\n\t\t\t\t// Call Function uploadFile(), And Send To Her The Chosen File :)\n\t\t\t\tuploadFile(file);\n\t\t\t});\n\n\t\t\t// Upload File Function\n\t\t\tfunction uploadFile(file) {\n\t\t\t\t// FileReader()\n\t\t\t\tconst fileReader = new FileReader();\n\t\t\t\t// File Type \n\t\t\t\tconst fileType = file.type;\n\t\t\t\t// File Size \n\t\t\t\tconst fileSize = file.size;\n\n\t\t\t\t// If File Is Passed from the (File Validation) Function\n\t\t\t\tif (fileValidate(fileType, fileSize)) {\n\t\t\t\t\t// Add Class (drop-zoon--Uploaded) on (drop-zoon)\n\t\t\t\t\tdropZoon.classList.add('drop-zoon--Uploaded');\n\n\t\t\t\t\t// Hide Preview Image\n\t\t\t\t\tpreviewImage.style.display = 'none';\n\n\t\t\t\t\t// After File Reader Loaded \n\t\t\t\t\tfileReader.addEventListener('load', function () {\n\t\t\t\t\t\t// After Half Second \n\t\t\t\t\t\tsetTimeout(function () {\n\t\t\t\t\t\t\t// Add Class (upload-area--open) On (uploadArea)\n\t\t\t\t\t\t\tuploadArea.classList.add('upload-area-open');\n\n\t\t\t\t\t\t\t// Show Preview Image\n\t\t\t\t\t\t\tpreviewImage.style.display = 'block';\n\n\t\t\t\t\t\t}, 500); // 0.5s\n\n\t\t\t\t\t\t// Add The (fileReader) Result Inside (previewImage) Source\n\t\t\t\t\t\tpreviewImage.setAttribute('src', fileReader.result);\n\t\t\t\t\t});\n\n\t\t\t\t\t// Read (file) As Data Url \n\t\t\t\t\tfileReader.readAsDataURL(file);\n\t\t\t\t} else { // Else\n\n\t\t\t\t\tthis;\n\n\t\t\t\t};\n\t\t\t};\n\n\t\t\t// Simple File Validate Function\n\t\t\tfunction fileValidate(fileType, fileSize) {\n\t\t\t\t// File Type Validation\n\t\t\t\tlet isImage = imagesTypes.filter((type) => fileType.indexOf(`image/${type}`) !== -1);\n\n\t\t\t\t// If The Uploaded File Is An Image\n\t\t\t\tif (isImage.length !== 0) {\n\t\t\t\t\t// Check, If File Size Is 2MB or Less\n\t\t\t\t\tif (fileSize <= 2000000) { // 2MB :)\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t} else { // Else File Size\n\t\t\t\t\t\treturn alert('Vui lòng chọn hình có dụng lượng nhỏ hơn 2MB');\n\t\t\t\t\t};\n\t\t\t\t} else { // Else File Type \n\t\t\t\t\treturn alert('Vui lòng tải lên là tệp hình');\n\t\t\t\t};\n\t\t\t};\n\t\t})\n\t}\n}\n\n// left: 37, up: 38, right: 39, down: 40,\n// spacebar: 32, pageup: 33, pagedown: 34, end: 35, home: 36\nvar keys = {\n\t37: 1,\n\t38: 1,\n\t39: 1,\n\t40: 1\n};\n\nfunction preventDefault(e) {\n\te.preventDefault();\n}\n\nfunction preventDefaultForScrollKeys(e) {\n\tif (keys[e.keyCode]) {\n\t\tpreventDefault(e);\n\t\treturn false;\n\t}\n}\n\n// modern Chrome requires { passive: false } when adding event\nvar supportsPassive = false;\ntry {\n\twindow.addEventListener(\"test\", null, Object.defineProperty({}, 'passive', {\n\t\tget: function () {\n\t\t\tsupportsPassive = true;\n\t\t}\n\t}));\n} catch (e) {}\n\nvar wheelOpt = supportsPassive ? {\n\tpassive: false\n} : false;\nvar wheelEvent = 'onwheel' in document.createElement('div') ? 'wheel' : 'mousewheel';\n\n// call this to Disable\nfunction disableScroll() {\n\twindow.addEventListener('DOMMouseScroll', preventDefault, false); // older FF\n\twindow.addEventListener(wheelEvent, preventDefault, wheelOpt); // modern desktop\n\twindow.addEventListener('touchmove', preventDefault, wheelOpt); // mobile\n\twindow.addEventListener('keydown', preventDefaultForScrollKeys, false);\n}\n\n// call this to Enable\nfunction enableScroll() {\n\twindow.removeEventListener('DOMMouseScroll', preventDefault, false);\n\twindow.removeEventListener(wheelEvent, preventDefault, wheelOpt);\n\twindow.removeEventListener('touchmove', preventDefault, wheelOpt);\n\twindow.removeEventListener('keydown', preventDefaultForScrollKeys, false);\n}\n\nfunction loadAjaxLink() {\n\t$(\"a.ajaxlink\").on(\"click\", function (e) {\n\t\te.preventDefault();\n\t\t$(this).parent().addClass('active').siblings().removeClass('active');\n\n\t\tajaxLink($(this).attr('href'));\n\n\t\treturn false;\n\t});\n}\n\nfunction ajaxLink(pageurl) {\n\t$.ajax({\n\t\turl: pageurl,\n\t\ttype: \"POST\",\n\t\tdata: {\n\t\t\tisajax: true\n\t\t},\n\t\tsuccess: function (data) {\n\t\t\t$('.ajaxnewsdetail').html($(data).find('.ajaxnewsdetail').html());\n\t\t\tswiperInit();\n\n\t\t\treturn false;\n\t\t}\n\t});\n}\n\nfunction moveHtml() {\n\tif ($('.register-page').length > 0) {\n\t\t$('.register-page .form-register-advise').appendTo('.register-page .append-form');\n\t}\n}\n\nfunction changeQuantilyProduct() {\n\t// Giảm\n\t$(\".btn-dec\").on('click', function (e) {\n\t\te.preventDefault();\n\t\tvar t = $(this).next(),\n\t\t\tr = parseInt(t.val());\n\t\tr <= 0 ? r = 0 : r--, t.val(r),\n\t\t\tt.trigger(\"change\")\n\t});\n\t// Tăng\n\t$(\".btn-inc\").on('click', function (e) {\n\t\te.preventDefault();\n\t\tvar t = $(this).prev(),\n\t\t\tr = parseInt(t.val());\n\t\tr++, t.val(r),\n\t\t\tt.trigger(\"change\")\n\t});\n}\n\n// function snowInit() {\n// \tlet colorType = {\n// \t\ttype: \"multi\"\n// \t};\n\t\n// \tlet colors = {\n// \t\tcolor1: \"rgba(255,255,255,1)\",\n// \t\tcolor2: \"rgba(233,239,250,1)\",\n// \t\tcolor3: \"rgba(222,241,250,1)\",\n// \t\tcolor4: \"rgba(178,209,219,1)\",\n// \t\tcolor5: \"rgba(135,143,145,1)\"\n// \t};\n\t\n// \tlet options = {\n// \t\talphaSpeed: 2,\n// \t\talphaVariance: 1,\n// \t\tcolor: [colors.color1, colors.color2, colors.color3, colors.color4],\n// \t\tcomposition: \"source-over\",\n// \t\tcount: 120,\n// \t\tdirection: 160,\n// \t\tdrift: 2,\n// \t\tglow: 50,\n// \t\timageUrl: [\n// \t\t\t\"https://assets.codepen.io/13471/snowflake.png\",\n// \t\t\t\"https://assets.codepen.io/13471/snowflake(1).png\",\n// \t\t\t\"https://assets.codepen.io/13471/snowflake(2).png\",\n// \t\t\t\"https://assets.codepen.io/13471/snowflake(3).png\",\n// \t\t\t\"https://assets.codepen.io/13471/snowflake(4).png\",\n// \t\t\t\"https://assets.codepen.io/13471/snowflake(5).png\",\n// \t\t\t\"https://assets.codepen.io/13471/snowflake(6).png\",\n// \t\t\t\"https://assets.codepen.io/13471/snowflake(7).png\",\n// \t\t\t\"https://assets.codepen.io/13471/snowflake(8).png\",\n// \t\t],\n// \t\tmaxAlpha: 2,\n// \t\tmaxSize: 24,\n// \t\tminAlpha: -0.2,\n// \t\tminSize: 3,\n// \t\tparallax: 6,\n// \t\trotation: 0.5,\n// \t\tshape: [\"image\"],\n// \t\tspeed: 2.5,\n// \t\tstyle: \"fill\",\n// \t\ttwinkle: false,\n// \t\txVariance: 20,\n// \t\tyVariance: 20,\n// \t};\n\t\n// \twindow.onload = function () {\n// \t\t// initStats();\n// \t\tinitSparticles();\n// \t\t// initGui();\n// \t}\n\t\n// \twindow.initSparticles = function () {\n// \t\tvar $main = document.querySelector(\"main\");\n// \t\twindow.mySparticles = new Sparticles($main, options);\n// \t};\n// }\n"]}