{"version":3,"sources":["main.js"],"names":["App","SetBackground","$","each","background","this","attr","css","background-image","background-size","background-position","background-repeat","EqualHeightElement","el","height","thisHeight","GetUrl","window","location","href","AddUrlToShareButton","length","Header","LanguageWrapper","on","e","parents","toggleClass","removeClass","one","stopPropagation","ToggleMenuMobile","ToggleUserWrapper","SearchBoxMobile","parent","find","MobileMapping","ListPageLeft","MappingListener","selector","mobileWrapper","mobileMethod","desktopWrapper","desktopMethod","breakpoint","watch","ListPageRight","SearchBox","Init","navigator","userAgent","indexOf","Slider","HomeBanner","Swiper","autoplay","delay","speed","pagination","clickable","renderBullet","index","className","MainBanner","HomeProductSlider","slidesPerView","observer","watchSlidesProgress","watchSlidesVisibility","observeParents","navigation","nextEl","prevEl","breakpoints","1024","768","576","HomeProductSlider2","HomeWhyUs","spaceBetween","1200","460","HomeNewsSlider","Page","ToggleCategoryListMobile","siblings","slideToggle","ToggleProductChildZoneMega","next","slideUp","ToggleProductChildZone","HomeProductTab","active","addClass","FilterCourse","val","scrollFixHeight","logo","document","body","scrollTop","documentElement","hideAccountIcon","width","hasClass","display","CustomSelect","x","i","j","selElmnt","a","b","c","getElementsByClassName","getElementsByTagName","createElement","setAttribute","innerHTML","options","selectedIndex","appendChild","addEventListener","y","k","s","h","parentNode","previousSibling","removeAttribute","click","closeAllSelect","nextSibling","classList","toggle","elmnt","arrNo","push","remove","add","breadcrumbTitle","breadcrumbValue","text","html","toggleMegaSanPham","toggleMegaPhuTung","swiperInit","loop","breakpointsInverse","320","400","1441","disableOnInteraction","1025","galleryThumbs","freeMode","effect","fadeEffect","crossFade","thumbs","swiper","tabActiveHomeProduct","tabActiveProduct","tabActiveAccessory","tabActive","toggleApplyForm","ready","fadeIn","lightGallery","thumbnail","mediumZoom","querySelectorAll","animate","offset","top","append","resize","onscroll","video","get","paused","pause","play","fadeOut"],"mappings":"AAAA,aAAA,IAAMA,IAAM,CACXC,cAAe,WACdC,EAAE,mBAAmBC,KAAK,WACzB,IAAIC,EAAaF,EA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,SACRmE,SAAS,UAEX,IAAIY,EAAUvG,EAAEG,MAAMC,KAAK,aAC3BJ,EAAE,aAAa0B,YAAY,UAC3B1B,EAAE,IAAMuG,GAASZ,SAAS,YAU5BwE,kBACArB,oBACAC,oBACAnD,eACAQ,kBACAoE,WAAWxE,SAASyE,iBAAiB,iBACrC3E,kBAEI9F,EAAE,QAAQsG,SAAS,YAAa,CAEbtG,EAAE,oCACRsB,GAAG,QAAS,SAASC,GACpCvB,EAAE,cAAc0K,QACf,CACCxE,UAAWlG,EAAEA,EAAEG,MAAMC,KAAK,SAASuK,SAASC,IALlC,IAOX,IACA,YAIH5K,EAAE,kBAAkB6K,OAAO7K,EAAE,2BAK9BA,EAAEe,QAAQ+J,OAAO,WAChB1E,oBA4QDrF,OAAOgK,SAAW,WACjBjF,mBAuED9F,EAAEgG,UAAU1E,GAAG,QAAS,iCAAkC,SAASC,GAClE,IAAIyJ,EAAQhL,EAAEG,MAAM8K,IAAI,GAcxB,OAbqB,IAAjBD,EAAME,QACTF,EAAMG,QACNnL,EAAEG,MACA6B,SACAC,KAAK,eACLoI,WAEFW,EAAMI,OACNpL,EAAEG,MACA6B,SACAC,KAAK,eACLoJ,YAEI","file":"main.min.js","sourcesContent":["const App = {\n\tSetBackground: () => {\n\t\t$(\"[setBackground]\").each(function() {\n\t\t\tvar background = $(this).attr(\"setBackground\");\n\t\t\t$(this).css({\n\t\t\t\t\"background-image\": \"url(\" + background + \")\",\n\t\t\t\t\"background-size\": \"cover\",\n\t\t\t\t\"background-position\": \"center center\"\n\t\t\t});\n\t\t});\n\t\t$(\"[setBackgroundRepeat]\").each(function() {\n\t\t\tvar background = $(this).attr(\"setBackgroundRepeat\");\n\t\t\t$(this).css({\n\t\t\t\t\"background-image\": \"url(\" + background + \")\",\n\t\t\t\t\"background-repeat\": \"repeat\"\n\t\t\t});\n\t\t});\n\t},\n\tEqualHeightElement: el => {\n\t\tlet height = 0;\n\t\tlet thisHeight = 0;\n\t\t$(el).each(function() {\n\t\t\tthisHeight = $(this).height();\n\t\t\tif (thisHeight > height) {\n\t\t\t\theight = thisHeight;\n\t\t\t}\n\t\t});\n\t\t$(el).height(height);\n\t},\n\tGetUrl: () => {\n\t\treturn window.location.href;\n\t},\n\tAddUrlToShareButton: () => {\n\t\tif ($(\".product-social .fb\").length) {\n\t\t\t$(\".product-social .fb\").attr(\n\t\t\t\t\"href\",\n\t\t\t\t\"https://www.facebook.com/sharer/sharer.php?u=\" + App.GetUrl()\n\t\t\t);\n\t\t}\n\t\tif ($(\".product-social .zalo\").length) {\n\t\t\t$(\".product-social .zalo\").attr(\"data-href\", App.GetUrl());\n\t\t}\n\t}\n};\nconst Header = {\n\tLanguageWrapper: () => {\n\t\t$(\".language-wrapper .language-active\").on(\"click\", function(e) {\n\t\t\t$(this)\n\t\t\t\t.parents(\".language-wrapper\")\n\t\t\t\t.toggleClass(\"active\");\n\t\t\t$(\"header .searchbox\").removeClass(\"active\");\n\t\t\t$(\".vt-header .user-wrapper\").removeClass(\"active\");\n\t\t\t$(\"html\").one(\"click\", function() {\n\t\t\t\t$(\".language-wrapper\").removeClass(\"active\");\n\t\t\t});\n\t\t\te.stopPropagation();\n\t\t});\n\t},\n\tToggleMenuMobile: () => {\n\t\t$(\"header .toggle-button\").on(\"click\", function() {\n\t\t\t$(this).toggleClass(\"active\");\n\t\t\t// $('header .list-page-top').toggleClass('active')\n\t\t\t$(\"header .mobile-wrapper\").toggleClass(\"active\");\n\t\t\t$(\".nav-mega-menu-wrapper\").removeClass(\"active\");\n\t\t\t$(\"body\").removeClass(\"is-hidden\");\n\n\t\t\t// $('header .navigation-zone-child-wrapper').removeClass('active')\n\t\t\t// $('header .backdrop-wrapper').fadeToggle(400)\n\t\t});\n\t},\n\tToggleUserWrapper: () => {\n\t\t$(\".vt-header .user-wrapper\").on(\"click\", function(e) {\n\t\t\t$(this).toggleClass(\"active\");\n\t\t\t$(\"header .searchbox\").removeClass(\"active\");\n\t\t\t$(\"header .language-wrapper\").removeClass(\"active\");\n\t\t\t$(\"html\").one(\"click\", function() {\n\t\t\t\t$(\".vt-header .user-wrapper\").removeClass(\"active\");\n\t\t\t});\n\t\t\te.stopPropagation();\n\t\t});\n\t},\n\tSearchBoxMobile: () => {\n\t\t$(\".vt-header .search-icon\").on(\"click\", function(e) {\n\t\t\t$(this)\n\t\t\t\t.parent()\n\t\t\t\t.find(\".searchbox\")\n\t\t\t\t.toggleClass(\"active\");\n\t\t\t$(\"header .language-wrapper\").removeClass(\"active\");\n\t\t\t$(\".vt-header .user-wrapper\").removeClass(\"active\");\n\t\t\te.stopPropagation();\n\t\t});\n\t},\n\tMobileMapping: () => {\n\t\treturn {\n\t\t\tListPageLeft: new MappingListener({\n\t\t\t\tselector: \".vt-header .list-page-left\",\n\t\t\t\tmobileWrapper: \".vt-header .mobile-wrapper\",\n\t\t\t\tmobileMethod: \"appendTo\",\n\t\t\t\tdesktopWrapper: \".vt-header .left-wrapper\",\n\t\t\t\tdesktopMethod: \"appendTo\",\n\t\t\t\tbreakpoint: 1025\n\t\t\t}).watch(),\n\t\t\tListPageRight: new MappingListener({\n\t\t\t\tselector: \".vt-header .list-page-right\",\n\t\t\t\tmobileWrapper: \".vt-header .mobile-wrapper\",\n\t\t\t\tmobileMethod: \"appendTo\",\n\t\t\t\tdesktopWrapper: \".vt-header .right-wrapper\",\n\t\t\t\tdesktopMethod: \"prependTo\",\n\t\t\t\tbreakpoint: 1025\n\t\t\t}).watch(),\n\t\t\tSearchBox: new MappingListener({\n\t\t\t\tselector: \".vt-header .searchbox\",\n\t\t\t\tmobileWrapper: \".vt-header .mobile-wrapper\",\n\t\t\t\tmobileMethod: \"appendTo\",\n\t\t\t\tdesktopWrapper: \".vt-header .search-wrapper\",\n\t\t\t\tdesktopMethod: \"appendTo\",\n\t\t\t\tbreakpoint: 1025\n\t\t\t}).watch()\n\t\t};\n\t},\n\tInit: () => {\n\t\tif (navigator.userAgent.indexOf(\"Trident\") == -1) {\n\t\t\tHeader.MobileMapping();\n\t\t}\n\t\tHeader.LanguageWrapper();\n\t\tHeader.ToggleMenuMobile();\n\t\tHeader.SearchBoxMobile();\n\t\tHeader.ToggleUserWrapper();\n\t}\n};\nconst Slider = {\n\tHomeBanner: () => {\n\t\treturn new Swiper(\".vt-banner .swiper-container\", {\n\t\t\tautoplay: {\n\t\t\t\tdelay: 4000\n\t\t\t},\n\t\t\tspeed: 1000,\n\t\t\tpagination: {\n\t\t\t\tel: \".vt-banner .swiper-pagination\",\n\t\t\t\tclickable: true,\n\t\t\t\trenderBullet: function(index, className) {\n\t\t\t\t\treturn ``;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t},\n\tMainBanner: () => {\n\t\treturn new Swiper(\".vt-main-banner .swiper-container\", {\n\t\t\tautoplay: {\n\t\t\t\tdelay: 4000\n\t\t\t},\n\t\t\tspeed: 1000\n\t\t});\n\t},\n\tHomeProductSlider: () => {\n\t\treturn new Swiper(\".swiper-home-product-1.swiper-container\", {\n\t\t\tslidesPerView: 5,\n\t\t\tobserver: true,\n\t\t\twatchSlidesProgress: true,\n\t\t\twatchSlidesVisibility: true,\n\t\t\tobserveParents: true,\n\t\t\tautoplay: {\n\t\t\t\tdelay: 4000\n\t\t\t},\n\t\t\tnavigation: {\n\t\t\t\tnextEl: \".zone-product-home-next-1\",\n\t\t\t\tprevEl: \".zone-product-home-prev-1\"\n\t\t\t},\n\n\t\t\tspeed: 1000,\n\t\t\tbreakpoints: {\n\t\t\t\t1024: {\n\t\t\t\t\tslidesPerView: 4\n\t\t\t\t},\n\t\t\t\t768: {\n\t\t\t\t\tslidesPerView: 3\n\t\t\t\t},\n\t\t\t\t576: {\n\t\t\t\t\tslidesPerView: 2\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t},\n\tHomeProductSlider2: () => {\n\t\treturn new Swiper(\".swiper-home-product-2.swiper-container\", {\n\t\t\tslidesPerView: 5,\n\t\t\tobserver: true,\n\t\t\twatchSlidesProgress: true,\n\t\t\twatchSlidesVisibility: true,\n\t\t\tobserveParents: true,\n\t\t\tautoplay: {\n\t\t\t\tdelay: 4000\n\t\t\t},\n\t\t\tnavigation: {\n\t\t\t\tnextEl: \".zone-product-home-next-2\",\n\t\t\t\tprevEl: \".zone-product-home-prev-2\"\n\t\t\t},\n\n\t\t\tspeed: 1000,\n\t\t\tbreakpoints: {\n\t\t\t\t1024: {\n\t\t\t\t\tslidesPerView: 4\n\t\t\t\t},\n\t\t\t\t768: {\n\t\t\t\t\tslidesPerView: 3\n\t\t\t\t},\n\t\t\t\t576: {\n\t\t\t\t\tslidesPerView: 2\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t},\n\tHomeWhyUs: () => {\n\t\treturn new Swiper(\".vt-home-3 .swiper-container\", {\n\t\t\tslidesPerView: 4,\n\t\t\tspaceBetween: 80,\n\t\t\tautoplay: {\n\t\t\t\tdelay: 4000\n\t\t\t},\n\t\t\tspeed: 1000,\n\t\t\tbreakpoints: {\n\t\t\t\t1200: {\n\t\t\t\t\tspaceBetween: 30,\n\t\t\t\t\tslidesPerView: 3\n\t\t\t\t},\n\t\t\t\t768: {\n\t\t\t\t\tspaceBetween: 30,\n\t\t\t\t\tslidesPerView: 2\n\t\t\t\t},\n\t\t\t\t460: {\n\t\t\t\t\tspaceBetween: 30,\n\t\t\t\t\tslidesPerView: 1\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t},\n\tHomeNewsSlider: () => {\n\t\treturn new Swiper(\".vt-home-4 .swiper-container\", {\n\t\t\tslidesPerView: 3,\n\t\t\tspaceBetween: 30,\n\t\t\tautoplay: {\n\t\t\t\tdelay: 4000\n\t\t\t},\n\t\t\tspeed: 1000,\n\t\t\tbreakpoints: {\n\t\t\t\t768: {\n\t\t\t\t\tslidesPerView: 2\n\t\t\t\t},\n\t\t\t\t460: {\n\t\t\t\t\tslidesPerView: 1\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t},\n\tInit: () => {\n\t\tSlider.HomeBanner();\n\t\tSlider.HomeProductSlider();\n\t\tSlider.HomeProductSlider2();\n\t\tSlider.HomeWhyUs();\n\t\tSlider.HomeNewsSlider();\n\t\tSlider.MainBanner();\n\t}\n};\nconst Page = {\n\tToggleCategoryListMobile: () => {\n\t\t$(\".vt-home-1 .category-heading\").on(\"click\", function() {\n\t\t\t$(this)\n\t\t\t\t.siblings()\n\t\t\t\t.slideToggle(1000);\n\t\t});\n\t},\n\tToggleProductChildZoneMega: () => {\n\t\t$(\n\t\t\t\".product-status-content-item-mega .product-child-mobile-toggle-mega\"\n\t\t).on(\"click\", function() {\n\t\t\t$(this)\n\t\t\t\t.next()\n\t\t\t\t.slideToggle(1000);\n\n\t\t\t$(\".product-child-tab-mega .product-child-tab-item-mega\").on(\n\t\t\t\t\"click\",\n\t\t\t\tfunction() {\n\t\t\t\t\t$(this)\n\t\t\t\t\t\t.parent()\n\t\t\t\t\t\t.slideUp();\n\t\t\t\t}\n\t\t\t);\n\t\t});\n\t},\n\tToggleProductChildZone: () => {\n\t\t$(\".product-child-mobile-toggle\").on(\"click\", function() {\n\t\t\t$(this)\n\t\t\t\t.siblings(\".product-child-tab\")\n\t\t\t\t.slideToggle(1000);\n\t\t\t$(\".vt-home-2 .product-child-tab .product-child-tab-item\").on(\n\t\t\t\t\"click\",\n\t\t\t\tfunction() {\n\t\t\t\t\t$(this)\n\t\t\t\t\t\t.parent()\n\t\t\t\t\t\t.slideUp();\n\t\t\t\t}\n\t\t\t);\n\t\t});\n\t\t$(\".vt-zone-navigation .toggle-mobile\").on(\"click\", function() {\n\t\t\t$(this)\n\t\t\t\t.siblings(\".list-item\")\n\t\t\t\t.slideToggle(1000);\n\t\t});\n\t},\n\tHomeProductTab: () => {\n\t\t$(\".product-status-tab .product-status-tab-item\").on(\n\t\t\t\"click\",\n\t\t\tfunction() {\n\t\t\t\tlet active = $(this).attr(\"data-status\");\n\t\t\t\t$(this)\n\t\t\t\t\t.parents(\"section\")\n\t\t\t\t\t.find(\".product-status-tab-item\")\n\t\t\t\t\t.removeClass(\"active\");\n\t\t\t\t$(this).addClass(\"active\");\n\t\t\t\t$(this)\n\t\t\t\t\t.parents(\"section\")\n\t\t\t\t\t.find(\".product-status-content-item\")\n\t\t\t\t\t.removeClass(\"active\");\n\t\t\t\t$(this)\n\t\t\t\t\t.parents(\"section\")\n\t\t\t\t\t.find(\n\t\t\t\t\t\t\".product-status-content-item[data-status=\" +\n\t\t\t\t\t\t\tactive +\n\t\t\t\t\t\t\t\"]\"\n\t\t\t\t\t)\n\t\t\t\t\t.addClass(\"active\");\n\t\t\t\tSlider.HomeProductSlider();\n\t\t\t}\n\t\t);\n\t\t$(\".product-child-tab .product-child-tab-item\").on(\"click\", function() {\n\t\t\tlet active = $(this).attr(\"data-child\");\n\t\t\t$(this)\n\t\t\t\t.parents(\"container\")\n\t\t\t\t.find(\".product-child-tab-item\")\n\t\t\t\t.removeClass(\"active\");\n\t\t\t$(this).addClass(\"active\");\n\t\t\t$(this)\n\t\t\t\t.parents(\"container\")\n\t\t\t\t.find(\".product-child-content-item\")\n\t\t\t\t.removeClass(\"active\");\n\t\t\t$(this)\n\t\t\t\t.parents(\"container\")\n\t\t\t\t.find(\".home-accessories-tab-item[data-child=\" + active + \"]\")\n\t\t\t\t.addClass(\"active\");\n\t\t\tSlider.HomeProductSlider2();\n\t\t});\n\n\t\t// $(\".product-status-tab .product-status-tab-item:first-child\").trigger(\n\t\t// \t\"click\"\n\t\t// );\n\t\t// $(\".product-child-tab .product-child-tab-item:first-child\").trigger(\n\t\t// \t\"click\"\n\t\t// );\n\t},\n\tInit: () => {\n\t\tPage.ToggleCategoryListMobile();\n\t\tPage.ToggleProductChildZoneMega();\n\t\tPage.ToggleProductChildZone();\n\t\tPage.HomeProductTab();\n\t}\n};\n$(document).ready(function() {\n\tApp.SetBackground();\n\tHeader.Init();\n\tPage.Init();\n\tSlider.Init();\n\tApp.EqualHeightElement(\".vt-home-1 .category-item h5\");\n\tApp.EqualHeightElement(\".vt-home-2 .product-child-content figure .image\");\n\tApp.EqualHeightElement(\n\t\t\".vt-home-2 .product-child-content figure figcaption\"\n\t);\n\tApp.EqualHeightElement(\".vt-home-3 figure figcaption\");\n\tApp.EqualHeightElement(\".vt-home-4 .item figure figcaption\");\n\t//Exit Mega menu mobile\n\t$(\".exit-mega-wrapper\").on(\"click\", function() {\n\t\t$(this)\n\t\t\t.parents(\".nav-mega-menu-wrapper\")\n\t\t\t.removeClass(\"active\");\n\t\t$(\"body\").removeClass(\"is-hidden\");\n\t\t// $(\".nav-mega-menu-wrapper\").removeClass(\"active\");\n\t});\n\tif ($(window).width() < 1025) {\n\t\t$(\".vt-header .list-page\").fadeIn(function() {\n\t\t\t$(\".list-page\").css({\n\t\t\t\tdisplay: \"flex\"\n\t\t\t});\n\t\t});\n\t}\n\t$(\".lightgallery\").lightGallery({\n\t\tthumbnail: true\n\t});\n\tfunction tabActiveMaps() {\n\t\t$(\".google-map-location article .item a\").on(\"click\", function() {\n\t\t\t$(this)\n\t\t\t\t.parents(\".google-map-location\")\n\t\t\t\t.find(\".item\")\n\t\t\t\t.removeClass(\"active\");\n\t\t\t$(this)\n\t\t\t\t.parents(\".item\")\n\t\t\t\t.addClass(\"active\");\n\n\t\t\tvar display = $(this).attr(\"data-type\");\n\t\t\t$(\".tab-item\").removeClass(\"active\");\n\t\t\t$(\"#\" + display).addClass(\"active\");\n\t\t});\n\t}\n\tbreadcrumbTitle();\n\tswiperInit();\n\ttabActive();\n\ttabActiveProduct();\n\ttabActiveAccessory();\n\ttabActiveHomeProduct();\n\ttabActiveMaps();\n\ttoggleApplyForm();\n\ttoggleMegaSanPham();\n\ttoggleMegaPhuTung();\n\tFilterCourse();\n\thideAccountIcon();\n\tmediumZoom(document.querySelectorAll(\".medium-zoom\"));\n\tscrollFixHeight();\n\n\tif ($(\"body\").hasClass(\"about-us\")) {\n\t\tlet offset = 80;\n\t\tlet scrollToSection = $('.about-us-nav ul li a[href*=\"#\"]');\n\t\tscrollToSection.on(\"click\", function(e) {\n\t\t\t$(\"html, body\").animate(\n\t\t\t\t{\n\t\t\t\t\tscrollTop: $($(this).attr(\"href\")).offset().top - offset\n\t\t\t\t},\n\t\t\t\t600,\n\t\t\t\t\"linear\"\n\t\t\t);\n\t\t});\n\t}\n\t$(\".product-order\").append($(\".Module-251 #sl-sort\"));\n});\n\n//My custom javascript BEgin here\n\n$(window).resize(function() {\n\thideAccountIcon();\n});\nfunction FilterCourse() {\n\t$(\".product-order .product-order-item select\").on(\"change\", function() {\n\t\twindow.location.href = $(this).val();\n\t});\n}\nfunction scrollFixHeight() {\n\tlet logo = $(\".main-wrapper .main-logo\");\n\tif (\n\t\tdocument.body.scrollTop > 60 ||\n\t\tdocument.documentElement.scrollTop > 60\n\t) {\n\t\tlogo.addClass(\"minize\");\n\t} else {\n\t\tlogo.removeClass(\"minize\");\n\t}\n}\n\nfunction hideAccountIcon() {\n\tif ($(window).width() > 1200) {\n\t\tif ($(\".user-wrapper .user-toggle-wrapper li\").hasClass(\"firstnav\")) {\n\t\t\t$(\".user-wrapper em\").css({\n\t\t\t\tdisplay: \"none\"\n\t\t\t});\n\t\t}\n\t} else {\n\t\t$(\".user-wrapper em\").css({\n\t\t\tdisplay: \"block\"\n\t\t});\n\t}\n}\n\n\n//custom select\nfunction CustomSelect() {\n\tvar x, i, j, selElmnt, a, b, c;\n\t/*look for any elements with the class \"custom-select\":*/\n\tx = document.getElementsByClassName(\"custom-select\");\n\tfor (i = 0; i < x.length; i++) {\n\t selElmnt = x[i].getElementsByTagName(\"select\")[0];\n\t /*for each element, create a new DIV that will act as the selected item:*/\n\t a = document.createElement(\"DIV\");\n\t a.setAttribute(\"class\", \"select-selected\");\n\t a.innerHTML = selElmnt.options[selElmnt.selectedIndex].innerHTML;\n\t x[i].appendChild(a);\n\t /*for each element, create a new DIV that will contain the option list:*/\n\t b = document.createElement(\"DIV\");\n\t b.setAttribute(\"class\", \"select-items select-hide\");\n\t for (j = 1; j < selElmnt.length; j++) {\n\t\t/*for each option in the original select element,\n\t\tcreate a new DIV that will act as an option item:*/\n\t\tc = document.createElement(\"DIV\");\n\t\tc.innerHTML = selElmnt.options[j].innerHTML;\n\t\tc.addEventListener(\"click\", function (e) {\n\t\t /*when an item is clicked, update the original select box,\n\t\t and the selected item:*/\n\t\t var y, i, k, s, h;\n\t\t s = this.parentNode.parentNode.getElementsByTagName(\"select\")[0];\n\t\t h = this.parentNode.previousSibling;\n\t\t for (i = 0; i < s.length; i++) {\n\t\t\tif (s.options[i].innerHTML == this.innerHTML) {\n\t\t\t s.selectedIndex = i;\n\t\t\t h.innerHTML = this.innerHTML;\n\t\t\t y = this.parentNode.getElementsByClassName(\"same-as-selected\");\n\t\t\t for (k = 0; k < y.length; k++) {\n\t\t\t\ty[k].removeAttribute(\"class\");\n\t\t\t }\n\t\t\t this.setAttribute(\"class\", \"same-as-selected\");\n\t\t\t break;\n\t\t\t}\n\t\t }\n\t\t h.click();\n\t\t});\n\t\tb.appendChild(c);\n\t }\n\t x[i].appendChild(b);\n\t a.addEventListener(\"click\", function (e) {\n\t\t/*when the select box is clicked, close any other select boxes,\n\t\tand open/close the current select box:*/\n\t\te.stopPropagation();\n\t\tcloseAllSelect(this);\n\t\tthis.nextSibling.classList.toggle(\"select-hide\");\n\t\tthis.classList.toggle(\"select-arrow-active\");\n\t });\n\t}\n \n\tfunction closeAllSelect(elmnt) {\n\t /*a function that will close all select boxes in the document,\n\t except the current select box:*/\n\t var x, y, i, arrNo = [];\n\t x = document.getElementsByClassName(\"select-items\");\n\t y = document.getElementsByClassName(\"select-selected\");\n\t for (i = 0; i < y.length; i++) {\n\t\tif (elmnt == y[i]) {\n\t\t arrNo.push(i)\n\t\t} else {\n\t\t y[i].classList.remove(\"select-arrow-active\");\n\t\t}\n\t }\n\t for (i = 0; i < x.length; i++) {\n\t\tif (arrNo.indexOf(i)) {\n\t\t x[i].classList.add(\"select-hide\");\n\t\t}\n\t }\n\t}\n\t/*if the user clicks anywhere outside the select box,\n\tthen close all select boxes:*/\n\tdocument.addEventListener(\"click\", closeAllSelect);\n }\n//BreadcrumbTitle\nfunction breadcrumbTitle() {\n\tlet child = $(\".global-breadcrumb ol li\").length;\n\tif (child > 2) {\n\t\tlet breadcrumbValue = $(\".global-breadcrumb ol li:nth-child(3)\").text();\n\t\t$(\".global-breadcrumb h1\").html(breadcrumbValue);\n\t} else {\n\t\tlet breadcrumbValue = $(\".global-breadcrumb ol li:nth-child(2)\").text();\n\t\t$(\".global-breadcrumb h1\").html(breadcrumbValue);\n\t}\n}\n\nfunction toggleMegaSanPham() {\n\t$(\".list-page-left ul li:nth-child(3) a\").on(\"click\", function() {\n\t\t$(\"#mega-173\").toggleClass(\"active\");\n\t\tif ($(\"#mega-173\").hasClass(\"active\")) {\n\t\t\t$(\"body\").toggleClass(\"is-hidden\");\n\t\t} else {\n\t\t\t$(\"body\").removeClass(\"is-hidden\");\n\t\t}\n\t});\n}\nfunction toggleMegaPhuTung() {\n\t$(\".list-page-left ul li:nth-child(4) a\").on(\"click\", function() {\n\t\t$(\"#mega-174\").toggleClass(\"active\");\n\t\tif ($(\"#mega-174\").hasClass(\"active\")) {\n\t\t\t$(\"body\").toggleClass(\"is-hidden\");\n\t\t} else {\n\t\t\t$(\"body\").removeClass(\"is-hidden\");\n\t\t}\n\t});\n}\n\nfunction swiperInit() {\n\tvar mySwiper = new Swiper(\".swiper-container.news-swiper\", {\n\t\t// Optional parameters\n\t\tloop: true,\n\t\tnavigation: {\n\t\t\tnextEl: \".news-button-next\",\n\t\t\tprevEl: \".news-button-prev\"\n\t\t}\n\t});\n\tvar brand = new Swiper(\".history-swiper-wrapper .swiper-container\", {\n\t\t// Optional parameters\n\t\tloop: false,\n\t\tspaceBetween: 90,\n\n\t\tnavigation: {\n\t\t\tnextEl: \".history-navigation-next\",\n\t\t\tprevEl: \".history-navigation-prev\"\n\t\t},\n\t\tbreakpointsInverse: true,\n\t\tbreakpoints: {\n\t\t\t// when window width is >= 320px\n\t\t\t320: {\n\t\t\t\tslidesPerView: 1\n\t\t\t},\n\t\t\t400: {\n\t\t\t\tslidesPerView: 1.2\n\t\t\t},\n\t\t\t576: {\n\t\t\t\tslidesPerView: 2\n\t\t\t},\n\n\t\t\t// when window width is >= 640px\n\t\t\t1200: {\n\t\t\t\tslidesPerView: 4\n\t\t\t},\n\t\t\t// when window width is >= 640px\n\t\t\t1441: {\n\t\t\t\tslidesPerView: 4.5\n\t\t\t}\n\t\t}\n\t});\n\tvar partner = new Swiper(\".about-us-partner-wrapper .swiper-container\", {\n\t\t// Optional parameters\n\t\tloop: false,\n\t\tspaceBetween: 60,\n\n\t\tnavigation: {\n\t\t\tnextEl: \".partner-navigation-next\",\n\t\t\tprevEl: \".partner-navigation-prev\"\n\t\t},\n\t\tautoplay: {\n\t\t\tdelay: 2000,\n\t\t\tdisableOnInteraction: false\n\t\t},\n\t\tbreakpointsInverse: true,\n\t\tbreakpoints: {\n\t\t\t// when window width is >= 320px\n\t\t\t320: {\n\t\t\t\tslidesPerView: 1,\n\t\t\t\tspaceBetween: 20\n\t\t\t},\n\t\t\t400: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t\tspaceBetween: 20\n\t\t\t},\n\t\t\t576: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t\tspaceBetween: 40\n\t\t\t},\n\n\t\t\t// when window width is >= 640px\n\t\t\t1200: {\n\t\t\t\tslidesPerView: 4\n\t\t\t},\n\t\t\t// when window width is >= 640px\n\t\t\t1441: {\n\t\t\t\tslidesPerView: 5\n\t\t\t}\n\t\t}\n\t});\n\tvar brand = new Swiper(\".product-brand-wrapper .swiper-container\", {\n\t\t// Optional parameters\n\t\tloop: false,\n\t\tspaceBetween: 20,\n\t\tbreakpointsInverse: true,\n\t\tbreakpoints: {\n\t\t\t// when window width is >= 320px\n\t\t\t320: {\n\t\t\t\tslidesPerView: 2\n\t\t\t},\n\t\t\t576: {\n\t\t\t\tslidesPerView: 3\n\t\t\t},\n\n\t\t\t// when window width is >= 640px\n\t\t\t1025: {\n\t\t\t\tslidesPerView: 4\n\t\t\t},\n\t\t\t// when window width is >= 640px\n\t\t\t1200: {\n\t\t\t\tslidesPerView: 5\n\t\t\t}\n\t\t}\n\t});\n\tvar galleryThumbs = new Swiper(\n\t\t\".product-thumbs-wrapper .swiper-container\",\n\t\t{\n\t\t\tspaceBetween: 20,\n\t\t\tslidesPerView: 5,\n\t\t\tfreeMode: true,\n\t\t\twatchSlidesVisibility: true,\n\t\t\twatchSlidesProgress: true\n\t\t}\n\t);\n\tvar galleryTop = new Swiper(\".product-top-wrapper .swiper-container\", {\n\t\tspaceBetween: 10,\n\t\teffect: \"fade\",\n\t\tfadeEffect: {\n\t\t\tcrossFade: true\n\t\t},\n\t\tthumbs: {\n\t\t\tswiper: galleryThumbs\n\t\t}\n\t});\n}\nwindow.onscroll = function() {\n\tscrollFixHeight();\n};\n\nfunction tabActiveHomeProduct() {\n\t$(\".vt-home-2 .product-status-tab .product-status-tab-item \").on(\n\t\t\"click\",\n\t\tfunction() {\n\t\t\tvar display = $(this).attr(\"data-status\");\n\t\t\t$(\n\t\t\t\t\".product-child-content-wrapper-swiper .product-child-content \"\n\t\t\t).removeClass(\"active\");\n\t\t\t$(\"#\" + display).addClass(\"active\");\n\t\t}\n\t);\n}\n\nfunction tabActiveProduct() {\n\t$(\".home-product-navigation .product-child-tab-item\").on(\n\t\t\"click\",\n\t\tfunction() {\n\t\t\t$(this)\n\t\t\t\t.parents(\".product-child-tab\")\n\t\t\t\t.find(\".product-child-tab-item\")\n\t\t\t\t.removeClass(\"active\");\n\t\t\t$(this).addClass(\"active\");\n\n\t\t\tvar display = $(this).attr(\"data-type\");\n\t\t\t$(\".home-product-tab-item\").removeClass(\"active\");\n\t\t\t$(\"#\" + display).addClass(\"active\");\n\t\t}\n\t);\n}\n\nfunction tabActiveAccessory() {\n\t$(\".home-accessories-navigation .product-child-tab-item\").on(\n\t\t\"click\",\n\t\tfunction() {\n\t\t\t$(this)\n\t\t\t\t.parents(\".product-child-tab\")\n\t\t\t\t.find(\".product-child-tab-item\")\n\t\t\t\t.removeClass(\"active\");\n\t\t\t$(this).addClass(\"active\");\n\n\t\t\tvar display = $(this).attr(\"data-type\");\n\t\t\t$(\".home-accessories-tab-item\").removeClass(\"active\");\n\t\t\t$(\"#\" + display).addClass(\"active\");\n\t\t}\n\t);\n}\n\nfunction tabActive() {\n\t$(\".tab-content-wrapper ul li a\").on(\"click\", function() {\n\t\t$(this)\n\t\t\t.parents(\".tab-content-wrapper\")\n\t\t\t.find(\"li\")\n\t\t\t.removeClass(\"active\");\n\t\t$(this)\n\t\t\t.parents(\"li\")\n\t\t\t.addClass(\"active\");\n\n\t\tvar display = $(this).attr(\"data-type\");\n\t\t$(\".tab-item\").removeClass(\"active\");\n\t\t$(\"#\" + display).addClass(\"active\");\n\t});\n}\n\nfunction toggleApplyForm() {\n\t$(\".job-apply-button-wrapper .apply-button a\").on(\"click\", function() {\n\t\t$(\".form-apply\").slideToggle();\n\t});\n}\n$(document).on(\"click\", \".product-technology-item video\", function(e) {\n\tvar video = $(this).get(0);\n\tif (video.paused === false) {\n\t\tvideo.pause();\n\t\t$(this)\n\t\t\t.parent()\n\t\t\t.find(\".play__icon\")\n\t\t\t.fadeIn();\n\t} else {\n\t\tvideo.play();\n\t\t$(this)\n\t\t\t.parent()\n\t\t\t.find(\".play__icon\")\n\t\t\t.fadeOut();\n\t}\n\treturn false;\n});\n"]}