{"version":3,"sources":["main.js"],"names":["ticking","isFirefox","test","navigator","userAgent","isIe","scrollSensitivitySetting","slideDurationSetting","currentSlideNumber","pageSlide","$","totalSlideNumber","length","parallaxScroll","evt","delta","detail","deltaY","wheelDelta","nextItem","slideDurationTimeout","previousItem","slideDuration","setTimeout","mousewheelEvent","removeClass","$previousSlide","eq","$currentSlide","addClass","window","width","is","setBackgroundElement","each","background","this","attr","css","background-image","background-size","background-position","background-repeat","EqualHeightElement","el","height","thisHeight","scrollToTop","addEventListener","bannerheight","outerHeight","heightHeader","pageYOffset","on","e","preventDefault","animate","scrollTop","createPagination","append","lstSection","i","undefined","toggleSearchWrapper","find","toggleClass","fixItem","sticky","zIndex","topSpacing","listBanerSlide","Swiper","slidesPerView","spaceBetween","loop","navigation","nextEl","prevEl","breakpoints","575","768","1024","speed","effect","grabCursor","autoplay","delay","disableOnInteraction","pagination","fadeEffect","crossFade","clickable","observer","observeParents","375","menuFake","clone","appendTo","click","tabs","$panel","closest","panelToShow","fadeOut","fadeIn","siblings","slideToggle","headerActive","document","querySelector","offsetHeight","classList","add","remove","crollToDiv","event","parents","hash","offset","top","location","not","parent","crollTop","_","throttle","checkLayoutBanner","pagesBanner","checkFullpage","toggleMenuMobile","phantrang","hide","tool","clickMenu","clickSearch","scorllActive","header","activescroll","scroll","active","checkScorll","checkScroll","clickScrollTo","trigger","dropDownMenu","hasClass","slideUp","next","slideDown","checkFooter","checkMargin","container","sec_4","sec_2","SlideHover","checkOutBanner","padding-top","scrollHeader","heightTop","show","moveSubNav","prependTo","changeInput","changeMapsContact","iframeMaps","data","ready","resize","fancybox","margin","thumbs","autoStart"],"mappings":"AAAA,aAAA,IAAIA,SAAU,EACVC,UAAY,WAAWC,KAAKC,UAAUC,WACtCC,KACH,QAAQH,KAAKC,UAAUC,YACvB,qBAAqBF,KAAKC,UAAUC,WACjCE,yBAA2B,GAC3BC,qBAAuB,IACvBC,mBAAqB,EACrBC,UAAYC,EAAE,sBACdC,iBAAmBF,UA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G,GAClBC,OAAQ,CACPC,WAAW","file":"main.min.js","sourcesContent":["var ticking = false;\nvar isFirefox = /Firefox/i.test(navigator.userAgent);\nvar isIe =\n\t/MSIE/i.test(navigator.userAgent) ||\n\t/Trident.*rv\\:11\\./i.test(navigator.userAgent);\nvar scrollSensitivitySetting = 30;\nvar slideDurationSetting = 600;\nvar currentSlideNumber = 0;\nvar pageSlide = $(\".full-page section\");\nvar totalSlideNumber = pageSlide.length;\n\nfunction parallaxScroll(evt) {\n\tlet delta = 0;\n\tif (isFirefox) {\n\t\tdelta = evt.detail * -120;\n\t} else if (isIe) {\n\t\tdelta = -evt.deltaY;\n\t} else {\n\t\tdelta = evt.wheelDelta;\n\t}\n\n\tif (ticking != true) {\n\t\tif (delta <= -scrollSensitivitySetting) {\n\t\t\tticking = true;\n\t\t\tif (currentSlideNumber !== totalSlideNumber - 1) {\n\t\t\t\tcurrentSlideNumber++;\n\t\t\t\tnextItem();\n\t\t\t}\n\t\t\tslideDurationTimeout(slideDurationSetting);\n\t\t}\n\t\tif (delta >= scrollSensitivitySetting) {\n\t\t\tticking = true;\n\t\t\tif (currentSlideNumber !== 0) {\n\t\t\t\tcurrentSlideNumber--;\n\t\t\t\tpreviousItem();\n\t\t\t}\n\t\t\tslideDurationTimeout(slideDurationSetting);\n\t\t}\n\t}\n}\n\nfunction slideDurationTimeout(slideDuration) {\n\tsetTimeout(function () {\n\t\tticking = false;\n\t}, slideDuration);\n}\n\nvar mousewheelEvent = isFirefox ? \"DOMMouseScroll\" : \"wheel\";\nwindow.addEventListener(mousewheelEvent, _.throttle(parallaxScroll, 60), false);\n\nfunction nextItem() {\n\t$(\"section\").removeClass(\"current-page\");\n\tvar $previousSlide = pageSlide.eq(currentSlideNumber - 1);\n\tvar $currentSlide = pageSlide.eq(currentSlideNumber);\n\t$currentSlide.addClass(\"current-page\");\n\t$previousSlide.removeClass(\"up-scroll\").addClass(\"down-scroll\");\n\tif ($(window).width() > 1200 && $(\".full-page\").length >= 1) {\n\t\t$(\"header\").addClass(\"active\");\n\t\t$(\"#fake-header-open\").addClass(\"active\");\n\t\t$(\"#nav-pagination\").addClass(\"active\");\n\t}\n\t$(\"header .search-wrapper\").removeClass(\"active\");\n\tif ($currentSlide.is(\":first-child\")) {\n\t\t$(\"#to-top\").removeClass(\"active\");\n\t\t$(\"#mail\").removeClass(\"active\");\n\t\t$(\"#phone\").removeClass(\"active\");\n\t\t$(\"#facebook\").removeClass(\"active\");\n\t}\n\tif (currentSlideNumber == 1 && $(\".full-page\").length >= 1) {\n\t\t$(\"#to-top\").addClass(\"active\");\n\t\t$(\"#mail\").addClass(\"active\");\n\t\t$(\"#phone\").addClass(\"active\");\n\t\t$(\"#facebook\").addClass(\"active\");\n\t}\n\t$(\"#nav-pagination ul li\").removeClass(\"active\");\n\t$(\n\t\t\"#nav-pagination ul li:nth-child(\" + (currentSlideNumber + 1) + \")\"\n\t).addClass(\"active\");\n}\n\nfunction previousItem() {\n\t$(\"section\").removeClass(\"current-page\");\n\t$(\"footer\").removeClass(\"active\");\n\tvar $currentSlide = pageSlide.eq(currentSlideNumber);\n\t$currentSlide.addClass(\"current-page\");\n\tif ($(\".full-page\").length >= 1) {\n\t\t$(\"#to-top\").addClass(\"active\");\n\t\t$(\"#mail\").addClass(\"active\");\n\t\t$(\"#phone\").addClass(\"active\");\n\t\t$(\"#facebook\").addClass(\"active\");\n\t}\n\t$(\"#fake-header-open\").removeClass(\"last\");\n\tif ($currentSlide.is(\":first-child\") && $(\".full-page\").length >= 1) {\n\t\t$(\"#to-top\").removeClass(\"active\");\n\t\t$(\"#mail\").removeClass(\"active\");\n\t\t$(\"#phone\").removeClass(\"active\");\n\t\t$(\"#facebook\").removeClass(\"active\");\n\t\t$(\"header\").removeClass(\"active\");\n\t\t$(\"#fake-header-open\").removeClass(\"active\");\n\t}\n\n\t$currentSlide.removeClass(\"down-scroll\").addClass(\"up-scroll\");\n\t$(\"#nav-pagination ul li\").removeClass(\"active\");\n\t$(\n\t\t\"#nav-pagination ul li:nth-child(\" + (currentSlideNumber + 1) + \")\"\n\t).addClass(\"active\");\n}\n\nfunction setBackgroundElement() {\n\t$(\"[setBackground]\").each(function () {\n\t\tvar 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\t$(\"[setBackgroundRepeat]\").each(function () {\n\t\tvar background = $(this).attr(\"setBackgroundRepeat\");\n\t\t$(this).css({\n\t\t\t\"background-image\": \"url(\" + background + \")\",\n\t\t\t\"background-repeat\": \"repeat\",\n\t\t});\n\t});\n}\n\nfunction EqualHeightElement(el) {\n\tlet height = 0;\n\tlet thisHeight = 0;\n\t$(el).each(function () {\n\t\tthisHeight = $(this).height();\n\t\tif (thisHeight > height) {\n\t\t\theight = thisHeight;\n\t\t}\n\t});\n\t$(el).height(height);\n}\n\nfunction scrollToTop() {\n\twindow.addEventListener(\"scroll\", function () {\n\t\tvar bannerheight = $(\"#pagebanner\").outerHeight();\n\t\tvar heightHeader = $(\"header\").outerHeight();\n\t\tif (\n\t\t\twindow.pageYOffset > bannerheight + heightHeader &&\n\t\t\t$(\".full-page\").length == 0\n\t\t) {\n\t\t\t$(\"#to-top\").addClass(\"active\");\n\t\t\t$(\"#mail\").addClass(\"active\");\n\t\t\t$(\"#phone\").addClass(\"active\");\n\t\t\t$(\"#facebook\").addClass(\"active\");\n\t\t} else {\n\t\t\t$(\"#to-top\").removeClass(\"active\");\n\t\t\t$(\"#mail\").removeClass(\"active\");\n\t\t\t$(\"#phone\").removeClass(\"active\");\n\t\t\t$(\"#facebook\").removeClass(\"active\");\n\t\t}\n\t});\n\tif ($(\".full-page\").length >= 1) {\n\t\t$(\"#to-top\").on(\"click\", function () {\n\t\t\tcurrentSlideNumber = 0;\n\t\t\t$(\"section\").removeClass(\"down-scroll\");\n\t\t\t$(\".home-page-banner\").addClass(\"current-page\");\n\t\t\t$(\"header\").removeClass(\"active\");\n\t\t\t$(\"#fake-header-open\").removeClass(\"active\");\n\t\t});\n\t} else {\n\t\t$(\"#to-top\").on(\"click\", function (e) {\n\t\t\te.preventDefault();\n\t\t\t$(\"html,body\").animate({\n\t\t\t\tscrollTop: 0,\n\t\t\t});\n\t\t\t$(\"#back-to-top\").removeClass(\"active\");\n\t\t\t$(\"#mail\").removeClass(\"active\");\n\t\t\t$(\"#phone\").removeClass(\"active\");\n\t\t\t$(\"#facebook\").removeClass(\"active\");\n\t\t});\n\t}\n}\n\nfunction createPagination() {\n\t$(\"main\").append(\"\");\n\tvar lstSection = $(\".full-page section, footer\");\n\tfor (let i = 0; i < totalSlideNumber; i++) {\n\t\tvar spanHtml = \"\";\n\t\tif ($(lstSection[i]).attr(\"data-title\") != undefined) {\n\t\t\tspanHtml =\n\t\t\t\t\" \" + $(lstSection[i]).attr(\"data-title\") + \"\";\n\t\t}\n\t\tif (i == 0) {\n\t\t\t$(\"#nav-pagination ul\").append(\n\t\t\t\t\"
  • \" +\n\t\t\t\t\"0\" +\n\t\t\t\t(i + 1) +\n\t\t\t\t\"
  • \"\n\t\t\t);\n\t\t} else {\n\t\t\t$(\"#nav-pagination ul\").append(\n\t\t\t\t\"
  • \" + \"0\" + (i + 1) + \"
  • \"\n\t\t\t);\n\t\t}\n\t}\n\t$(\"#nav-pagination ul li\").on(\"click\", function () {\n\t\t$(\"#nav-pagination ul li\").removeClass(\"active\");\n\t\t$(this).addClass(\"active\");\n\t\tlet e = $(this).attr(\"data-section\") - 1;\n\t\t$(\".full-page section\").removeClass(\"down-scroll up-scroll\");\n\t\tif (e < currentSlideNumber) {\n\t\t\tcurrentSlideNumber = e;\n\t\t\t$(\n\t\t\t\t\".full-page section:nth-child(\" + (currentSlideNumber + 1) + \")\"\n\t\t\t).addClass(\"up-scroll current-page\");\n\t\t\t$(\".full-page section\").removeClass(\"down-scroll\");\n\t\t\tfor (let i = currentSlideNumber; i < totalSlideNumber; i++) {\n\t\t\t\t$(\n\t\t\t\t\t\".full-page section:nth-child(\" +\n\t\t\t\t\t(currentSlideNumber + 1) +\n\t\t\t\t\t\")\"\n\t\t\t\t).addClass(\"up-scroll\");\n\t\t\t}\n\t\t} else {\n\t\t\tcurrentSlideNumber = e;\n\t\t\t$(\".full-page section\").removeClass(\"current-page\");\n\t\t\t$(\n\t\t\t\t\".full-page section:nth-child(\" + (currentSlideNumber + 1) + \")\"\n\t\t\t).addClass(\"current-page\");\n\t\t\tfor (let i = 0; i < currentSlideNumber; i++) {\n\t\t\t\t$(\".full-page section:nth-child(\" + (i + 1) + \")\").addClass(\n\t\t\t\t\t\"down-scroll\"\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\tcurrentSlideNumber + 1 == totalSlideNumber ?\n\t\t\t$(\"footer\").addClass(\"active\") :\n\t\t\t$(\"footer\").removeClass(\"active\"),\n\t\t\t0 != currentSlideNumber ?\n\t\t\t($(\"header\").addClass(\"active\"),\n\t\t\t\t$(\"#fake-header-open\").addClass(\"active\")) :\n\t\t\t($(\"header\").removeClass(\"active\"),\n\t\t\t\t$(\"#fake-header-open\").removeClass(\"active\")),\n\t\t\t5 == currentSlideNumber ?\n\t\t\t$(\"#fake-header-open\").addClass(\"last\") :\n\t\t\t$(\"#fake-header-open\").removeClass(\"last\");\n\t});\n}\n\nfunction toggleSearchWrapper() {\n\t$(\".header-icon .btn-search\").on(\"click\", function () {\n\t\t$(\"header\").find(\".search-wrapper\").toggleClass(\"active\");\n\t});\n\t$(\"header .search-wrapper .close-button\").on(\"click\", function () {\n\t\t$(\"header .search-wrapper\").toggleClass(\"active\");\n\t});\n\t$(\"section\").on(\"click\", function () {\n\t\t$(\"header .search-wrapper\").removeClass(\"active\");\n\t});\n}\n\nfunction fixItem() {\n\t$(\".primary-nav\").sticky({\n\t\tzIndex: 9,\n\t\ttopSpacing: $(\"header .header-bottom\").outerHeight() + 5,\n\t});\n}\n\nfunction listBanerSlide() {\n\t//slider trong trang tin tuc chi tiet\n\tvar sliderpostorther = new Swiper('.wrap-post-detail .swiper-container', {\n\t\tslidesPerView: 1,\n\t\tspaceBetween: 20,\n\t\tloop: true,\n\t\tnavigation: {\n\t\t\tnextEl: '.wrap-post-detail .slider .button-slider .button-next',\n\t\t\tprevEl: '.wrap-post-detail .slider .button-slider .button-prev',\n\t\t},\n\t\tbreakpoints: {\n\t\t\t575: {\n\t\t\t\tslidesPerView: 1,\n\n\t\t\t},\n\t\t\t768: {\n\t\t\t\tslidesPerView: 2,\n\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tslidesPerView: 3,\n\n\t\t\t},\n\t\t},\n\t});\n\n\tvar myswiper = new Swiper(\"#home-banner .swiper-container\", {\n\t\tloop: false,\n\t\tslidesPerView: 1,\n\t\tspeed: 1000,\n\t\teffect: \"fade\",\n\t\tgrabCursor: true,\n\t\tautoplay: {\n\t\t\tdelay: 5000,\n\t\t\tdisableOnInteraction: false,\n\t\t},\n\t\tpagination: {\n\t\t\tel: \".swiper-pagination\",\n\t\t},\n\t\tfadeEffect: {\n\t\t\tcrossFade: true,\n\t\t},\n\t});\n\n\tvar home4 = new Swiper(\".index-3-slide .swiper-container\", {\n\t\t// slidesPerView: \"auto\",\n\t\t// slidesPerView: 2,\n\t\t// touchEventsTarget: 'wrapper',\n\t\t// freeMode: true,\n\t\tclickable: true,\n\t\tobserver: true,\n\t\twidth: 190,\n\t\tobserveParents: true,\n\t\tspaceBetween: 5,\n\t\t// autoplay: true,\n\t\tspeed: 500,\n\t\tloop: true,\n\t\t// 116slideActiveClass: \"active\",\n\t\tnavigation: {\n\t\t\tnextEl: \".home-4 .button-next\",\n\t\t\tprevEl: \".home-4 .button-prev\",\n\t\t},\n\t});\n\tvar newsSwiper = new Swiper(\".home-5 .swiper-news .swiper-container\", {\n\t\tslidesPerView: 1,\n\t\tspaceBetween: 5,\n\t\tloop: true,\n\t\tautoplay: {\n\t\t\tdelay: 3500,\n\t\t\tdisableOnInteraction: false,\n\t\t},\n\t\tnavigation: {\n\t\t\tnextEl: \".home-5 .swiper-news .button-next\",\n\t\t\tprevEl: \".home-5 .swiper-news .button-prev\",\n\t\t},\n\t\tbreakpoints: {\n\t\t\t375: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t\tspaceBetween: 5,\n\t\t\t},\n\t\t\t768: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t\tspaceBetween: 20,\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t\tspaceBetween: 30,\n\t\t\t},\n\t\t},\n\t});\n\tvar wrapPartner = new Swiper(\".wrap-partner .swiper-container\", {\n\t\tslidesPerView: 1,\n\t\tspaceBetween: 5,\n\t\tloop: 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\tbreakpoints: {\n\t\t\t375: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t\tspaceBetween: 5,\n\t\t\t},\n\t\t\t768: {\n\t\t\t\tslidesPerView: 4,\n\t\t\t\tspaceBetween: 20,\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tslidesPerView: 6,\n\t\t\t\tspaceBetween: 30,\n\t\t\t},\n\t\t},\n\t});\n\tvar tongQuan = new Swiper(\".swiper-tong-quan .swiper-container\", {\n\t\tslidesPerView: 1,\n\t\tspaceBetween: 5,\n\t\tloop: true,\n\t\tnavigation: {\n\t\t\tnextEl: \".swiper-tong-quan .button-next\",\n\t\t\tprevEl: \".swiper-tong-quan .button-prev\",\n\t\t},\n\t});\n\tvar nangLuc = new Swiper(\".swiper-nang-luc .swiper-container\", {\n\t\tslidesPerView: 1,\n\t\tspaceBetween: 5,\n\t\tloop: true,\n\t\tnavigation: {\n\t\t\tnextEl: \".swiper-nang-luc .button-next\",\n\t\t\tprevEl: \".swiper-nang-luc .button-prev\",\n\t\t},\n\t});\n}\n\nfunction menuFake() {\n\tlet menu = $(\"header .primary-menu\");\n\tmenu.clone().appendTo(\".menu-fullscreen\");\n\t$(\"#fake-header-open\").on(\"click\", function () {\n\t\t$(\".menu-fullscreen\").addClass(\"active\");\n\t});\n\t$(\".icon-close\").click(function () {\n\t\t$(\".menu-fullscreen\").removeClass(\"active\");\n\t});\n}\n\nfunction tabs() {\n\t$(\".tabs > li\").on(\"click\", function () {\n\t\tvar $panel = $(this).closest(\".tab-panels\");\n\t\t$panel.find(\"li.active\").removeClass(\"active\");\n\t\t$(this).addClass(\"active\");\n\t\tvar panelToShow = $(this).attr(\"rel\");\n\t\t$panel.find(\".panel.active\").fadeOut(300, showNextPanel);\n\n\t\tfunction showNextPanel() {\n\t\t\t$(this).removeClass(\"active\");\n\t\t\t$(\"#\" + panelToShow).fadeIn(300, function () {\n\t\t\t\t$(this).addClass(\"active\").fadeIn(300);\n\t\t\t});\n\t\t}\n\t});\n\tif ($(window).width() < 992 && \".category-nav\".length >= 1) {\n\t\t$(\".category-nav\").on(\"click\", function () {\n\t\t\t$(this).find(\".material-icons\").toggleClass(\"active\");\n\t\t\t$(this).siblings(\".tabs, .filter-content\").slideToggle(\"slow\");\n\t\t});\n\t}\n}\n\nfunction headerActive() {\n\tconst heightHeader = document.querySelector(\"header\").offsetHeight;\n\tif ($(\".full-page\").length == 0) {\n\t\twindow.addEventListener(\"scroll\", function () {\n\t\t\tif (window.pageYOffset >= heightHeader) {\n\t\t\t\tdocument.querySelector(\"header\").classList.add(\"active-scroll\");\n\t\t\t} else {\n\t\t\t\tdocument\n\t\t\t\t\t.querySelector(\"header\")\n\t\t\t\t\t.classList.remove(\"active-scroll\");\n\t\t\t}\n\t\t});\n\t}\n}\n\n// function category() {\n// if ($(window).width() <= 991 && \".zone-nav\".length >= 1) {\n// $(\".zone-nav .categroly .box-category\").on(\"click\", function(x) {\n// x.stopPropagation();\n// $(\".zone-nav .categroly\").toggleClass(\"active\");\n// $(\".zone-nav .box-category .material-icons\").toggleClass(\"active\");\n// });\n// window.addEventListener(\"scroll\", function() {\n// $(\".zone-nav .categroly\").removeClass(\"active\");\n// $(\".zone-nav .categroly\")\n// .find(\".material-icons\")\n// .removeClass(\"active\");\n// });\n// }\n// }\n\nfunction crollToDiv() {\n\t$(\".zone-nav .categroly ul li .nav-link\").on(\"click\", function (event) {\n\t\t$(this).parents(\"li\").addClass(\"active\");\n\t\tvar heightHeader = $(\"header\").outerHeight();\n\t\tif (this.hash !== \"\") {\n\t\t\tevent.preventDefault();\n\t\t\tvar hash = this.hash;\n\t\t\t$(\"html, body\").animate({\n\t\t\t\t\tscrollTop: $(hash).offset().top - 160,\n\t\t\t\t},\n\t\t\t\t900,\n\t\t\t\tfunction () {\n\t\t\t\t\twindow.location.hash = hash;\n\t\t\t\t}\n\t\t\t);\n\t\t}\n\t\t$(\".zone-nav .categroly ul li .nav-link\")\n\t\t\t.not(this)\n\t\t\t.parent(\"li\")\n\t\t\t.removeClass(\"active\");\n\t\twindow.addEventListener(\"scroll\", function () {\n\t\t\tvar bannerheight = $(\"#pagebanner\").outerHeight();\n\t\t\tif (window.pageYOffset > bannerheight) {\n\t\t\t\tdocument.querySelector(\".zone-nav\").classList.add(\"scolled\");\n\t\t\t} else {\n\t\t\t\tdocument.querySelector(\".zone-nav\").classList.remove(\"scolled\");\n\t\t\t}\n\t\t});\n\t});\n}\n\nfunction crollTop() {\n\tif ($(\".zone-nav\").length >= 1) {\n\t\twindow.addEventListener(\"scroll\", function () {\n\t\t\tvar bannerheight = $(\"#pagebanner\").outerHeight();\n\t\t\tvar heightHeader = $(\"header\").outerHeight();\n\t\t\tif (window.pageYOffset > bannerheight) {\n\t\t\t\tdocument.querySelector(\".zone-nav\").classList.add(\"scolled\");\n\t\t\t\t$(\".scolled\").css(\"top\", heightHeader);\n\t\t\t} else {\n\t\t\t\tdocument.querySelector(\".zone-nav\").classList.remove(\"scolled\");\n\t\t\t\t$(\".zone-nav\").css(\"top\", 0);\n\t\t\t}\n\t\t});\n\t}\n}\nconst checkLayoutBanner = () => {\n\tconst pagesBanner = $(\"#pagebanner\");\n\tconst heightHeader = $(\"header\").outerHeight();\n\tconst mainBanner = $(\"#home-banner\");\n\tif (mainBanner.length >= 1) {\n\t\t$(\"main\").css(\"padding-top\", 0);\n\t} else if (pagesBanner.length >= 1) {\n\t\t$(\"main\").css(\"padding-top\", heightHeader);\n\t} else {\n\t\t$(\"main\").css(\"padding-top\", heightHeader);\n\t}\n};\n\nfunction checkFullpage() {\n\tif ($(\".full-page\").length >= 1) {\n\t\t$(\"body\").toggleClass(\"overflow-hidden\");\n\t}\n\tif ($(window).width() < 1200) {\n\t\t$(\"body\").removeClass(\"overflow-hidden\");\n\t\t$(\".full-page .home-page-6\").toggleClass(\"active\");\n\t}\n}\n\nconst toggleMenuMobile = () => {\n\n\t$(\".toggle-menu\").on(\"click\", function () {\n\t\t$(\".menu-fullscreen\").addClass(\"active\");\n\t\t$(\".icon-close\").click(function () {\n\t\t\t$(\".menu-fullscreen\").removeClass(\"active\");\n\t\t});\n\t});\n};\n// const InsertBd = () => {\n// $(\".breadcrumb-wrapper\").appendTo(\"#pagebanner .box-text\");\n// };\n\nfunction phantrang() {\n\t$(\".modulepager\")\n\t\t.find(\".pagination\")\n\t\t.find(\"li>a.NextPage, li>a.LastPage, li>a.BackPage, li>a.FirstPage\")\n\t\t.parent()\n\t\t.hide();\n}\n\nfunction tool() {\n\twindow.addEventListener(\"scroll\", function () {\n\t\tif (window.pageYOffset > 5500) {\n\t\t\tdocument.querySelector(\"#tool-wrapper\").classList.add(\"active\");\n\t\t} else {\n\t\t\tdocument.querySelector(\"#tool-wrapper\").classList.remove(\"active\");\n\t\t}\n\t});\n\t$(\"#go-to-top\").on(\"click\", function (e) {\n\t\te.preventDefault();\n\t\t$(\"html,body\").animate({\n\t\t\tscrollTop: 0,\n\t\t});\n\t});\n}\n\n// function Showmap() {\n// $(\".list-select .list-item .item\").click(function() {\n// $(this).addClass(\"active\");\n// var datahref = $(this).attr(\"data-href\");\n// $(\".show-map\")\n// .find(\"iframe\")\n// .attr(\"src\", function() {\n// return datahref;\n// });\n// $(\".list-select .list-item .item\").not(this).removeClass(\"active\");\n// });\n// }\n\n// function changePlaceholder() {\n// $(\".wrap-form .frm-captcha .frm-captcha-input input \").attr(\n// \"placeholder\",\n// \"Nhập mã captcha\"\n// );\n// if ($(\".wrap-form .frm-captcha\").length >= 1) {\n// $(\".form-contact .wrap-form .frm-btnwrap\").appendTo(\n// \".wrap-form .frm-captcha\"\n// );\n// }\n// $(\".footer-subscribed .wrap-form .frm-btnwrap input\").attr(\"value\", \"\");\n// }\nconst clickMenu = () => {\n\t$(\".hambuger\").click(function () {\n\t\t$(\".menu-fullscreen\").addClass(\"active\");\n\t});\n};\nconst clickSearch = () => {\n\t$(\".icon-search\").click(function () {\n\t\t$(\".search-wrap\").addClass(\"active\");\n\t});\n\t$(\".close-btn\").click(function () {\n\t\t$(\".search-wrap\").removeClass(\"active\");\n\t});\n};\n// const selectQh = () => {\n// $(\".select-qh\").selectize({\n// create: true,\n// sortField: \"text\",\n// });\n// };\n\n// function serviceSlide() {\n// var galleryThumbsSer = new Swiper(\n// \".block-service .gallery-thumbs-product\", {\n// slidesPerView: 1,\n// breakpoints: {\n// 575: {\n// slidesPerView: 2,\n// },\n// 1200: {\n// slidesPerView: 4,\n// },\n// },\n// }\n// );\n// var galleryTop = new Swiper(\".block-service .gallery-top\", {\n// thumbs: {\n// swiper: galleryThumbsSer,\n// },\n// navigation: {\n// nextEl: \".nav-next\",\n// prevEl: \".nav-prev\",\n// },\n// });\n// }\n\n// Slide product-detail\n// function productSlide() {\n// var galleryThumbs123 = new Swiper(\n// \".block-product-news .gallery-thumbs-product\", {\n// // freeMode: true,\n// // watchSlidesVisibility: true,\n// // watchSlidesProgress: true,\n// slidesPerView: 1,\n// breakpoints: {\n// 575: {\n// slidesPerView: 2,\n// },\n// 1200: {\n// slidesPerView: 3,\n// },\n// },\n// }\n// );\n// var galleryTop = new Swiper(\".block-product-news .gallery-top-product\", {\n// thumbs: {\n// swiper: galleryThumbs123,\n// },\n// navigation: {\n// nextEl: \".nav-next\",\n// prevEl: \".nav-prev\",\n// },\n// });\n// }\n// const getWidthLab2 = () => {\n// alert($(\".lab-main-2 .swiper-slide-active\").outerWidth());\n// };\n// const clickChangLang = () => {\n// $(\".change-lang\").click(function() {\n// $(\".list-change\").toggleClass(\"active\");\n// });\n// };\n\n// function projectDetailSlide() {\n// var galleryThumbs = new Swiper(\".gallery-thumbs-project\", {\n// spaceBetween: 15,\n// slidesPerView: 3,\n// freeMode: true,\n// watchSlidesVisibility: true,\n// watchSlidesProgress: true,\n// breakpoints: {\n// 576: {\n// slidesPerView: 3,\n// },\n// 1000: {\n// slidesPerView: 5,\n// },\n// },\n// });\n// var galleryTop = new Swiper(\".gallery-top-project\", {\n// thumbs: {\n// swiper: galleryThumbs,\n// },\n// });\n// }\n// const openPopupCd = () => {\n// if ($(\".quan-he-co-dong\").length == 1) {\n// $(\"a[href='#tab-2']\").click(function() {\n// $(\"#tab-2\").addClass(\"active-fc\");\n// $(\"#tab-2\").fancybox().trigger(\"click\");\n// $(\".quan-he-co-dong ul li a\")\n// .not(\"a[href='#tab-2']\")\n// .click(function() {\n// $(\"#tab-2\").removeClass(\"active-fc\");\n// });\n// });\n// }\n// };\nconst scorllActive = () => {\n\tlet header = $(\"header\").outerHeight();\n\t// console.log(header);\n\t$(\".primary-nav\").activescroll({\n\t\tscroll: \"scroll\",\n\t\tactive: \"active\",\n\t\toffset: header,\n\t});\n};\n// const moveDetail = () => {\n// $(\".block-project\").insertAfter(\".project-detail\");\n// };\n// const wrapTable = () => {\n// if ($(\".product-detail\").length == 1) {\n// $(\"table\").wrap(\"
    \");\n// }\n// };\n// const clickFullImage = () => {\n// // $(\".home-4 .box-img\").click(function () {\n// // \t$(this).parent().toggleClass(\"sw-index\");\n// // });\n// // Jquery\n\n// // Vanila\n// var fsmActual = document.createElement(\"div\");\n// fsmActual.setAttribute(\"id\", \"fsm_actual\");\n// document.getElementById(\"home-4\").appendChild(fsmActual);\n// var $fsm = document.querySelectorAll(\".home-4 .box-img\");\n// var $fsmActual = document.querySelector(\"#fsm_actual\");\n// var $ImageF = document.querySelector(\"#test-img\");\n// $fsmActual.style.position = \"absolute\";\n// var position = {};\n// var size = {};\n// //modal action stuffs\n// var openFSM = function(event) {\n// // Delete\n// var $this = event.currentTarget;\n// $this.style.opacity = \"0\";\n// $this.style.transition = \"0s ease\";\n// position = $this.getBoundingClientRect();\n// size = {\n// width: window.getComputedStyle($this).width,\n// height: window.getComputedStyle($this).height,\n// };\n// console.log(position.top);\n// setTimeout(() => {\n// $fsmActual.innerHTML = $this.innerHTML;\n// var classes = $this.classList.value.split(\",\");\n// for (var i = 0; i < classes.length; i++) {\n// $fsmActual.classList.add(classes[i]);\n// }\n// }, 0);\n// $fsmActual.style.position = \"absolute\";\n// $fsmActual.style.top = \"420px\";\n// $fsmActual.style.left = position.left + \"px\";\n// $fsmActual.style.height = size.height;\n// $fsmActual.style.width = size.width;\n// $fsmActual.style.margin = $this.style.margin;\n// $fsmActual.style.transition = \"0s ease\";\n// // $fsmActual.style.zindex = \"99\";\n// setTimeout(function() {\n// $fsmActual.innerHTML = $this.innerHTML;\n// var classes = $this.classList.value.split(\",\");\n// for (var i = 0; i < classes.length; i++) {\n// $fsmActual.classList.add(classes[i]);\n// }\n// $fsmActual.classList.add(\"growing\");\n// $fsmActual.style.height = \"100%\";\n// $fsmActual.style.width = \"100%\";\n// $fsmActual.style.top = \"0\";\n// $fsmActual.style.left = \"0\";\n// $fsmActual.style.margin = \"0\";\n// $fsmActual.style.boxShadow = \"7px 13px 20px 20px #00000030\";\n// $fsmActual.style.transition =\n// \"all 0.7s cubic-bezier(0.83, 0, 0.17, 1)\";\n// }, 100);\n// setTimeout(function() {\n// $this.style.opacity = \"1\";\n// }, 1200);\n// setTimeout(function() {\n// $fsmActual.classList.remove(\"growing\");\n// $fsmActual.classList.add(\"full-screen\");\n// }, 1000);\n// };\n\n// var closeFSM = function(event) {\n// var $this = document.querySelector(\"#fsm_actual\");\n// $this.style.height = size.height;\n// $this.style.width = size.width;\n// $this.style.top = position.top + \"px\";\n// $this.style.left = position.left + \"px\";\n// $this.style.margin = \"0\";\n// $this.classList.remove(\"full-screen\");\n// $this.classList.add(\"shrinking\");\n// setTimeout(function() {\n// while ($this.firstChild) $this.removeChild($this.firstChild);\n// var classList = $this.classList;\n// while (classList.length > 0) {\n// classList.remove(classList.item(0));\n// }\n// $this.style = \"\";\n// }, 1000);\n// };\n\n// for (var i = 0; i < $fsm.length; i++) {\n// $fsm[i].addEventListener(\"click\", openFSM);\n// }\n// $fsmActual.addEventListener(\"click\", closeFSM);\n// $(\".home-4 .box-img\").click(function() {\n// console.log(11);\n// $(\".home-4\").addClass(\"overlay-background\");\n// setTimeout(() => {\n// $(\".home-4\").addClass(\"active\");\n// }, 100);\n// setTimeout(() => {\n// $(\".home-4\").removeClass(\"active\");\n// }, 600);\n// // setTimeout(() => {\n// // \t$(\".home-4 .button-next\").trigger(\"click\");\n// // }, 800);\n// setTimeout(() => {\n// let imageUrl = $(this).find(\"img\").attr(\"data-src\");\n// $(\".home-4\").css({\n// \"background-image\": \"url(\" + imageUrl + \")\",\n// transition: \"0s ease\",\n// });\n// }, 1200);\n// $(\n// \".home-4 .box-wrap .wrap-count-slide .wrap-button .button-next\"\n// ).trigger(\"click\");\n// });\n// $(\".home-4 .box-wrap .wrap-count-slide .wrap-button .button-next\").on(\n// \"click\",\n// function() {\n// $(\".box-wrap .swiper-slide-active\").each(function() {\n// // console.log(11111);\n// $(this).prev().trigger(\"click\");\n// });\n// }\n// );\n// };\nconst checkScorll = () => {\n\tvar lastScrollTop = 0;\n\t$(window).scroll(function (event) {\n\t\tvar checkScroll = $(this).scrollTop();\n\t\t// console.log(checkScroll);\n\t\tlastScrollTop = checkScroll;\n\t});\n};\n\n// function ajaxQHCD() {\n// $(\".select-ajax\").each(function(index) {\n// $(this).on(\"change\", function() {\n// let $url = this.value;\n// let $indexSelect = index;\n// $.ajax({\n// url: $url,\n// data: {\n// isajax: true,\n// },\n// success: function(data) {\n// $(\".ajaxresponse .ajaxresponsewrap\")\n// .eq($indexSelect)\n// .html($(data).find(\".ajaxresponsewrap\").html());\n// },\n// });\n// });\n// });\n// }\nconst clickScrollTo = () => {\n\t$(\".wrap-scroll\").click(function () {\n\t\t// $(\".home-page-banner\").addClass(\"down-scroll\");\n\t\t// $(\".home-2\").addClass(\"current-page\");\n\t\t$(\"li[data-section='2']\").trigger(\"click\");\n\t\t$(\"#nav-pagination\").addClass(\"active\");\n\t});\n};\n\nfunction dropDownMenu() {\n\t$(\".primary-menu .title em\").on(\"click\", function () {\n\t\t// $(this).parents(\"li\").addClass(\"open-sub\");\n\t\tif ($(\".primary-menu .dropdown-menu\").hasClass(\"open-sub\")) {\n\t\t\t$(\".open-sub .dropdown\").slideUp();\n\t\t\t$(\".dropdown-menu\").removeClass(\"open-sub\");\n\t\t} else {\n\t\t\t$(\".dropdown-menu\").removeClass(\"open-sub\");\n\t\t\t$(\".open-sub .dropdown\").slideUp();\n\t\t\t$(this).parent().next().slideDown();\n\t\t\t$(this).parents(\".dropdown-menu\").addClass(\"open-sub\");\n\t\t}\n\t});\n}\n\nfunction checkFooter() {\n\tif ($(\"body\").hasClass(\"homepage\")) {\n\t\t$(\"footer .bg-fake .footer\").appendTo($(\".homepage .home-6 .bg-fake\"));\n\t}\n}\n\n// function checkBigItem() {\n// let item = $(\".wrap-slide-s4 .swiper-slide .wrapper .item\");\n// // let item_2 = $(\".wrap-slide-s4 .swiper-slide .wrapper .item.active\");\n// item.on(\"click\", function() {\n// $(this).addClass(\"active\").siblings().removeClass(\"active\")\n// });\n// }\n\nfunction checkMargin() {\n\tlet container = $(\".container\").css(\"marginLeft\");\n\tlet sec_4 = $(\".home-4 .s4-left\");\n\tlet sec_2 = $(\".home-2 .js-ml .wrap-box\");\n\t// let sec_4_title = $(\".home-4 .wrap-slide-s4 .wrap-title\");\n\t// sec_4.css(`flex`, `0 0 ${container}`);\n\tsec_4.css(\"margin-left\", container);\n\tsec_2.css(\"padding-left\", container);\n\n}\n\nfunction SlideHover() {\n\tvar slide = $(\".index-3-slide .swiper-slide\");\n\tslide.on(\"click\", function () {\n\t\t$(this)\n\t\t\t.addClass(\"swiper-slide-active\")\n\t\t\t.siblings()\n\t\t\t.removeClass(\"swiper-slide-active\")\n\t});\n}\n\nfunction checkOutBanner() {\n\tlet header = $(\"header\").outerHeight();\n\tif ($(\"body\").hasClass(\"homepage\")) {\n\t\tif ($(window).width() < 1200) {\n\t\t\t$(\"main\").css({\n\t\t\t\t\"padding-top\": header\n\t\t\t});\n\t\t}\n\t} else {\n\t\t$(\"main\").css({\n\t\t\t\"padding-top\": header\n\t\t});\n\t}\n\n}\n\nfunction scrollHeader() {\n\tlet item = $(\"header .header-top\");\n\tlet heightTop = $(\"header .header-top\").outerHeight();\n\tif ($(\"body\").hasClass(\"homepage\")) {\n\t\tif ($(window).width() < 1200) {\n\t\t\t$(window).scroll(function () {\n\t\t\t\tif (\n\t\t\t\t\t$(this).scrollTop() > heightTop\n\t\t\t\t) {\n\t\t\t\t\t$(\"header .header-top\").slideUp().hide(500);\n\t\t\t\t} else {\n\t\t\t\t\t$(\"header .header-top\").slideDown().show();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t} else {\n\t\t$(window).scroll(function () {\n\t\t\tif (\n\t\t\t\t$(this).scrollTop() > heightTop\n\t\t\t) {\n\t\t\t\t$(\"header .header-top\").slideUp().hide(500);\n\t\t\t} else {\n\t\t\t\t$(\"header .header-top\").slideDown().show();\n\t\t\t}\n\t\t});\n\t}\n}\n\nfunction moveSubNav() {\n\t$(\".dao-tao-pages .section-title2\").prependTo($(\".dao-tao-pages .Module-216 .heading\"));\n}\n\nfunction changeInput() {\n\tvar input = $(\".apply-frm input[type='button']\");\n\tinput.attr(\"value\", \"Chọn Tệp\");\n}\n\nfunction changeMapsContact(){\n\tlet btn = $('.lien-he .wrap-left .wrap-text-lh');\n\tbtn.on('click', function(){\n\t\tlet iframeMaps = $(this).data('iframe');\n\t\t$('.lien-he .wrap-right iframe').attr('src', iframeMaps)\n\t})\n}\n\n$(document).ready(function () {\n\t// $(\".wrap-slide-s4 .swiper-slide .wrapper .item:first-child\").addClass(\"active\");\n\tlistBanerSlide();\n\tfixItem();\n\t// $(\".home-4\").attr(\"id\", \"home-4\");\n\tcheckScorll();\n\tsetBackgroundElement();\n\tscrollToTop();\n\tcreatePagination();\n\tsetTimeout(() => {\n\t\t$(\"section:first-child\").addClass(\"current-page\");\n\t}, 100);\n\t// ajaxQHCD();\n\ttoggleSearchWrapper();\n\tmenuFake();\n\ttabs();\n\tdropDownMenu();\n\tcrollToDiv();\n\tcrollTop();\n\tcheckFullpage();\n\ttoggleMenuMobile();\n\t// toggleMenuMobile;\n\tphantrang();\n\tclickMenu();\n\t//Nguyen\n\tclickSearch();\n\tscorllActive();\n\tcheckOutBanner();\n\t// New\n\tclickScrollTo();\n\tcheckFooter();\n\t// checkBigItem();\n\tcheckMargin();\n\tSlideHover();\n\tscrollHeader();\n\t$(window).resize(checkMargin);\n\t// formApply();\n\tmoveSubNav();\n\tchangeInput();\n\tchangeMapsContact();\n\t\n\t\n});\n$('.duan-ct-2 .wrap-box .item .img').fancybox({\n\tmargin : [44,0,22,0],\n\tthumbs: {\n\t\tautoStart: true\n\t}\n});\n"]}