{"version":3,"sources":["main.js"],"names":["heightHeader","ww","$","window","width","headerScroll","header","height_main_banner","outerHeight","height_page_banner","scroll","event","st","this","scrollTop","addClass","removeClass","lastScrollTop","document","defaultView","addEventListener","pageYOffset","documentElement","hasClass","on","animate","clone","appendTo","find","length","attr","navSlide","close","burger","mobile","header_main_menu","overlay","toggleClass","is","closest","slideUp","setTimeout","keyCode","fancybox","destroy","search_Active","e","focus","parent","$trigger","$trigger_2","$trigger_3","$trigger_4","target","has","n","which","trigger","console","log","swiperInit","main_banner","Swiper","spaceBetween","centeredSlides","loop","speed","observer","observeParents","simulateTouch","pagination","el","clickable","navigation","prevEl","nextEl","timer","slideNext","time","clearTimeout","each","playVideoOnSlide","setActive","autoplay","start","stop","durationVideo","querySelector","duration","toFixed","currentTime","get","pause","play","delay","index_1","lazy","preloadImages","initialSlide","breakpoints","1366","slidesPerView","1024","768","576","320","fakeLoopSwiper","setLastSlideActiveIndex2","scrollbar","hide","1440","1280","400","index_4_thumb","direction","introduce_6","thumbs","swiper","renderBullet","index","className","slidesPerGroup","fullScreenIcon","PDSslide","eq","picture_detail","slideChange","realIndex","children","href","activeIndex","dfbox","dscap","slideTo","offset","top","promise","done","setBackgroundElement","background","css","background-size","background-position","background-image","mainPadding","mainBanner","pagesBanner","mappingPagination","append","remove","counter","countUp","cssIntroducePage","left","pageIntroduce","path","destination","height_header","button_filter","sticky_pnav","filterButtonOffset","insertAfter","sticky","topSpacing","zIndex","location","indexOf","substr","preventDefault","scrollDistance","i","position","scrollLeft","frmServices","pageServices","thumb","_this","slideDown","targetBox","number","numberToEq","Number","element","changedPrev","changedNext","slides","isBeginning","isEnd","triggerDealer","change","activeFirstAddress","translateFrm","highlighttGrowTree","transition-delay","last","hover","dropdownMenu","off","slideToggle","click","next","checkBrowser","mozInnerScreenX","editIconMenuMb","select","stickyPageProduct","cloneAppendBtnFilter","orgLink","FullUrl","substring","lastIndexOf","prependTo","pageProduct","btnTpl","smallBtn","parentEl","autoStart","buttons","item","t","title","text","val","productComment","cmt_cont","cmt_btn","cmt_item","og_height","height","balanceProductDetailBox","pd_img","pd_info","pd_info_title","pd_info_des","pd_info_table","pd_info_btn","opacity","expandItem","hasLoadBtn","epndBtn","list","count","expand","_this2","pageNewsDetail","cssPictureMainArrow","x_pa_offset","customSelectHtml","customLinkPictureList","link","selectZoneList","productDetailArticleImg","question_ctn","wrap","key","touch","vertical","backFocus","resize","AOS","init","ready","once","disable","isMobile","Android","navigator","userAgent","match","BlackBerry","iOS","Opera","Windows","any"],"mappings":"AAAA,aAAA,IACIA,aADAC,GAAKC,EAAEC,QAAQC,QAUnB,SAASC,eACR,IAAIC,EAASN,aACTO,EAAqBL,EAAE,gBAAgBM,cACvCC,EAAqBP,EAAE,gBAAgBM,cAC3CN,EAAEC,QAAQO,OAAO,SAAUC,GAC1B,IAAIC,EAAKV,EAAEW,MAAMC,YAEhBF,EAAKL,EAAqBD,GAC1BM,EAAKH,GACLG,EAAKN,EAGLJ,EAAE,iBAAiBa,SAAS,UAG5Bb,EAAE,iBAAiBc,YAAY,YAGjC,IAAIC,EAAgB,EACpBC,SAASC,YAAYC,iBACpB,SACA,WACC,IAAIR,EAAKT,OAAOkB,aAAeH,SAASI,gBAAgBR,UAEpDF,EAAKK,EACRf,EAAE,UAAUa,SAAS,iBAErBb,EAAE,UAAUc,YAAY,iBAErBd,EAAE,QAAQqB,SAAS,QACtBrB,EAAE,UAAUc,YAAY,iBAEzBC,EAAgBL,GAAM,EAAI,EAAIA,IAE/B,GAIDV,EAAE,cAAcsB,GAAG,QAAS,WAC3BtB,EAAE,cAAcuB,QAAQ,CACvBX,UAAW,MAIbZ,EAAE,kCAAkCwB,OAAM,GAAMC,SAAS,gBACzDzB,EAAE,4CACAwB,OAAM,GACNC,SAAS,gBACTZ,SAAS,gBACTa,KAAK,kBACLb,SAAS,mBACe,GAA1Bb,EAAE,cAAc2B,QACb3B,EAAE,oBAAoB4B,KAAK,cAAe,UAI9C,SAASC,WACR,IAAIzB,EAASJ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C,QAAQ+P,OAAO,WAChBC,IAAIC,OACJ5G,mBACA6F,sBACAhB,4BAGDnO,EAAEgB,UAAUmP,MAAM,WACkB,GAA/BnQ,EAAE,mBAAmB2B,OACxBsO,IAAIC,KAAK,CACRE,MAAM,EACNC,SAAS,IAGVJ,IAAIC,KAAK,CAER5K,SAAU,IACVM,MAAO,IACPwK,MAAM,IAMRjQ,eACA0B,WACAqK,eAKAxI,aAGAoF,cACAN,uBACAc,mBACAE,gBACAmB,cACAC,eACAkB,qBACA2D,0BACA7C,uBACAM,cACAW,iBACAc,aACAO,iBACAG,mBACAC,wBACA3C,oBAGAd,eAGAH,gBACAE,qBAGAxH,aACA6E,oBAEAsD,eAGAvM,EAAEC,QAAQsD,QAAQ,UAGlBZ,gBACA8J,iBACArD,YAID,IAAIkH,SAAW,CACdC,QAAS,WACR,OAAOC,UAAUC,UAAUC,MAAM,aAElCC,WAAY,WACX,OAAOH,UAAUC,UAAUC,MAAM,gBAElCE,IAAK,WACJ,OAAOJ,UAAUC,UAAUC,MAAM,sBAElCG,MAAO,WACN,OAAOL,UAAUC,UAAUC,MAAM,gBAElCI,QAAS,WACR,OACCN,UAAUC,UAAUC,MAAM,cAC1BF,UAAUC,UAAUC,MAAM,eAG5BK,IAAK,WACJ,OACCT,SAASC,WACTD,SAASK,cACTL,SAASM,OACTN,SAASO,SACTP,SAASQ,YAIRR,SAASS,OAAO/Q,EAAE,KAAKa,SAAS,iBAC/ByP,SAASS,OAAO/Q,EAAE,KAAKc,YAAY","file":"main.min.js","sourcesContent":["var ww = $(window).width();\nvar heightHeader;\nif (ww >= 1280) {\n\theightHeader = 125;\n} else if (ww >= 576) {\n\theightHeader = 100;\n} else {\n\theightHeader = 80;\n}\nconsole.log(heightHeader);\nfunction headerScroll() {\n\tvar header = heightHeader;\n\tvar height_main_banner = $(\"#main-banner\").outerHeight();\n\tvar height_page_banner = $(\"#page-banner\").outerHeight();\n\t$(window).scroll(function (event) {\n\t\tvar st = $(this).scrollTop();\n\t\tif (\n\t\t\tst > height_main_banner + header ||\n\t\t\tst > height_page_banner ||\n\t\t\tst > header\n\t\t) {\n\t\t\t// $(\"header\").addClass(\"scroll-active\");\n\t\t\t$(\"#fixed-button\").addClass(\"active\");\n\t\t} else {\n\t\t\t// $(\"header\").removeClass(\"scroll-active\");\n\t\t\t$(\"#fixed-button\").removeClass(\"active\");\n\t\t}\n\t});\n\tvar lastScrollTop = 0;\n\tdocument.defaultView.addEventListener(\n\t\t\"scroll\",\n\t\tfunction () {\n\t\t\tvar st = window.pageYOffset || document.documentElement.scrollTop;\n\n\t\t\tif (st > lastScrollTop) {\n\t\t\t\t$(\"header\").addClass(\"scroll-active\");\n\t\t\t} else {\n\t\t\t\t$(\"header\").removeClass(\"scroll-active\");\n\t\t\t}\n\t\t\tif ($(\"body\").hasClass(\"ovh\")) {\n\t\t\t\t$(\"header\").removeClass(\"scroll-active\");\n\t\t\t}\n\t\t\tlastScrollTop = st <= 0 ? 0 : st;\n\t\t},\n\t\tfalse\n\t);\n\t// }\n\n\t$(\"#backtotop\").on(\"click\", function () {\n\t\t$(\"html, body\").animate({\n\t\t\tscrollTop: 0,\n\t\t});\n\t});\n\t// Clone to Page Introduce\n\t$(\"header .main-menu .btn-wrapper\").clone(true).appendTo(\"#show_header\");\n\t$(\"header .main-menu .hidden-nav-and-search\")\n\t\t.clone(true)\n\t\t.appendTo(\"#show_header\")\n\t\t.addClass(\"search-nav-2\")\n\t\t.find(\".search-button\")\n\t\t.addClass(\"search-button-2\");\n\t$(\"body.en-us\").length == 1\n\t\t? $(\".searchbox input\").attr(\"placeholder\", \"Search\")\n\t\t: false;\n}\n\nfunction navSlide() {\n\tvar header = $(\"header\");\n\tvar close = $(\".nav-mobile .close-button em\");\n\tvar burger = $(\".burger\");\n\tvar mobile = $(\".nav-mobile\");\n\tvar header_main_menu = $(\"header .main-menu\");\n\tvar body = $(\"body\");\n\tvar overlay = $(\"#overlay\");\n\tburger.on(\"click\", function () {\n\t\tmobile.toggleClass(\"active\");\n\t\t$(this).toggleClass(\"active\");\n\t\tclose.toggleClass(\"active\");\n\t\tif (ww > 575) {\n\t\t\toverlay.toggleClass(\"active\");\n\t\t}\n\t\theader_main_menu.toggleClass(\"active\");\n\t\theader.toggleClass(\"active\");\n\t\t$(\".hidden-nav-and-search\").toggleClass(\"active\");\n\t\t$(\"body\").toggleClass(\"ovh\");\n\t\t$(\"#show_header\").toggleClass(\"active\");\n\t\tif ($(\".introduce__page\").length == 1) {\n\t\t\tif ($(\".sticky-wrapper\").is(\".is-sticky\")) {\n\t\t\t\theader_main_menu.removeClass(\"active\");\n\t\t\t\theader.removeClass(\"active\");\n\t\t\t}\n\t\t} else {\n\t\t\tif ($(\".sticky-wrapper\").is(\".is-sticky\")) {\n\t\t\t\t$(\".sticky-wrapper\").toggleClass(\"hide\");\n\t\t\t}\n\t\t}\n\t\t$(\"li.has-dropdown .icon\")\n\t\t\t.closest(\".has-dropdown\")\n\t\t\t.removeClass(\"dropdown-active\");\n\t\t$(\"li.has-dropdown .icon\")\n\t\t\t.closest(\".has-dropdown\")\n\t\t\t.find(\".child\")\n\t\t\t.slideUp();\n\t});\n\tclose.on(\"click\", function () {\n\t\tmobile.removeClass(\"active\");\n\t\tburger.removeClass(\"active\");\n\t\tclose.removeClass(\"active\");\n\t\toverlay.removeClass(\"active\");\n\t\theader_main_menu.removeClass(\"active\");\n\t\theader.removeClass(\"active\");\n\t\t$(\"#show_header\").removeClass(\"active\");\n\t\t$(\".hidden-nav-and-search\").removeClass(\"active\");\n\t\t$(\"li.has-dropdown .icon\")\n\t\t\t.closest(\".has-dropdown\")\n\t\t\t.removeClass(\"dropdown-active\");\n\t\t$(\"li.has-dropdown .icon\")\n\t\t\t.closest(\".has-dropdown\")\n\t\t\t.find(\".child\")\n\t\t\t.slideUp();\n\t\t$(\".sticky-wrapper\").removeClass(\"hide\");\n\t});\n\toverlay.on(\"click\", function () {\n\t\tmobile.removeClass(\"active\");\n\t\tburger.removeClass(\"active\");\n\t\tclose.removeClass(\"active\");\n\t\toverlay.removeClass(\"active\");\n\t\theader_main_menu.removeClass(\"active\");\n\t\theader.removeClass(\"active\");\n\t\t$(\"#show_header\").removeClass(\"active\");\n\t\t$(\".hidden-nav-and-search\").removeClass(\"active\");\n\t\t$(\"body\").removeClass(\"ovh\");\n\t\t$(\"li.has-dropdown .icon\")\n\t\t\t.closest(\".has-dropdown\")\n\t\t\t.removeClass(\"dropdown-active\");\n\t\t$(\"li.has-dropdown .icon\")\n\t\t\t.closest(\".has-dropdown\")\n\t\t\t.find(\".child\")\n\t\t\t.slideUp();\n\t\t$(\".sticky-wrapper\").removeClass(\"hide\");\n\t});\n\tsetTimeout(() => {\n\t\t$(window).on(\"keyup\", function (event) {\n\t\t\tvar e = event.keyCode;\n\t\t\tif (e == 27) {\n\t\t\t\tmobile.removeClass(\"active\");\n\t\t\t\tburger.removeClass(\"active\");\n\t\t\t\tclose.removeClass(\"active\");\n\t\t\t\toverlay.removeClass(\"active\");\n\t\t\t\theader_main_menu.removeClass(\"active\");\n\t\t\t\theader.removeClass(\"active\");\n\t\t\t\t$(\"#show_header\").removeClass(\"active\");\n\t\t\t\t$(\".hidden-nav-and-search\").removeClass(\"active\");\n\t\t\t\t$(\"body\").removeClass(\"ovh\");\n\t\t\t\t$(\"li.has-dropdown .icon\")\n\t\t\t\t\t.closest(\".has-dropdown\")\n\t\t\t\t\t.removeClass(\"dropdown-active\");\n\t\t\t\t$(\"li.has-dropdown .icon\")\n\t\t\t\t\t.closest(\".has-dropdown\")\n\t\t\t\t\t.find(\".child\")\n\t\t\t\t\t.slideUp();\n\t\t\t\t$(\".sticky-wrapper\").removeClass(\"hide\");\n\t\t\t\t$.fancybox.destroy();\n\t\t\t}\n\t\t});\n\t}, 500);\n}\n\nfunction search_Active() {\n\t$(document).on(\"click\", \".search-nav-2 .search-button-2\", function (e) {\n\t\t$(\".search-overlay\").addClass(\"active\");\n\t\t$(this).addClass(\"active\");\n\t});\n\t$(\".search-button\").on(\"click\", function () {\n\t\t$(\".search-overlay\").addClass(\"active\");\n\t\t$(this).addClass(\"active\");\n\t\t// Add Focus After Active\n\t\tsetTimeout(() => {\n\t\t\t$(\".searchbox input\").focus();\n\t\t}, 500);\n\t});\n\t$(\".search-overlay .searchbox input\").on(\"focus\", function () {\n\t\t$(this).parent().addClass(\"active\");\n\t});\n\t$(\".search-overlay .searchbox input\").on(\"focusout\", function () {\n\t\t$(this).parent().removeClass(\"active\");\n\t});\n\t$(document).on(\"click\", function (event) {\n\t\tvar $trigger = $(\"header\");\n\t\tvar $trigger_2 = $(\".searchbox\");\n\t\tvar $trigger_3 = $(\".fullpage-header\");\n\t\tvar $trigger_4 = $(\".search-nav-2\");\n\t\tif (\n\t\t\t$trigger !== event.target &&\n\t\t\t!$trigger.has(event.target).length &&\n\t\t\t$trigger_2 !== event.target &&\n\t\t\t!$trigger_2.has(event.target).length &&\n\t\t\t$trigger_3 !== event.target &&\n\t\t\t!$trigger_3.has(event.target).length &&\n\t\t\t$trigger_4 !== event.target &&\n\t\t\t!$trigger_4.has(event.target).length\n\t\t) {\n\t\t\t$(\".search-overlay\").removeClass(\"active\");\n\t\t\t$(\".search-button\").removeClass(\"active\");\n\t\t}\n\t});\n\n\t// Press ESC to close Search\n\tsetTimeout(() => {\n\t\t$(window).on(\"keyup\", function (event) {\n\t\t\tvar e = event.keyCode;\n\t\t\tif (e == 27) {\n\t\t\t\t$(\".search-overlay\").removeClass(\"active\");\n\t\t\t\t$(\".search-button\").removeClass(\"active\");\n\t\t\t}\n\t\t});\n\t}, 500);\n\n\t// Trigger click with 2 button\n\t$(\".search-overlay .searchbox input[type='text']\").on(\n\t\t\"keyup\",\n\t\tfunction (n) {\n\t\t\tif (n.which == 13) {\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t$(\".search-overlay .searchbox button\").trigger(\"click\");\n\t\t\t\t\tconsole.log(\"Enter\");\n\t\t\t\t}, 300);\n\t\t\t}\n\t\t}\n\t);\n}\n\nfunction swiperInit() {\n\tvar main_banner = new Swiper(\"#main-banner .swiper-container\", {\n\t\tspaceBetween: 0,\n\t\tcenteredSlides: true,\n\t\tloop: true,\n\t\tspeed: 500,\n\t\tobserver: true,\n\t\tobserveParents: true,\n\t\tsimulateTouch: true,\n\t\tpagination: {\n\t\t\tel: \"#main-banner .swiper-pagination\",\n\t\t\tclickable: true,\n\t\t},\n\t\tnavigation: {\n\t\t\tprevEl: \"#main-banner .swiper-button-prev\",\n\t\t\tnextEl: \"#main-banner .swiper-button-next\",\n\t\t},\n\t});\n\n\tif ($(\"#main-banner\").length == 1) {\n\t\t$(\".link-full-screen\").each(function () {\n\t\t\t$(this).appendTo($(this).closest(\".swiper-slide\"));\n\t\t});\n\t\tlet timer;\n\t\t// Clear Timeout Cache\n\t\tfunction slideNext(time) {\n\t\t\twindow.clearTimeout(timer);\n\t\t\ttimer = setTimeout(() => {\n\t\t\t\tmain_banner.slideNext();\n\t\t\t}, time);\n\t\t}\n\t\tvar playVideoOnSlide = function () {\n\t\t\tlet setActive = $(\"#main-banner .swiper-container\").find(\n\t\t\t\t\".swiper-slide-active\"\n\t\t\t);\n\t\t\t$(\"#main-banner\").addClass(\"active\");\n\t\t\tmain_banner.autoplay.start();\n\t\t\tif (setActive.find(\".video\").length !== 0) {\n\t\t\t\tmain_banner.autoplay.stop();\n\t\t\t\tvar durationVideo =\n\t\t\t\t\tdocument\n\t\t\t\t\t\t.querySelector(\n\t\t\t\t\t\t\t\"#main-banner .swiper-container .swiper-slide-active video\"\n\t\t\t\t\t\t)\n\t\t\t\t\t\t.duration.toFixed(0) * 1000;\n\t\t\t\tvar currentTime =\n\t\t\t\t\tdocument\n\t\t\t\t\t\t.querySelector(\n\t\t\t\t\t\t\t\"#main-banner .swiper-container .swiper-slide-active video\"\n\t\t\t\t\t\t)\n\t\t\t\t\t\t.currentTime.toFixed(0) * 1000;\n\t\t\t\t$(\"#main-banner .swiper-container .swiper-slide video\").each(\n\t\t\t\t\tfunction () {\n\t\t\t\t\t\t$(this).get(0).pause();\n\t\t\t\t\t\t$(this).get(0).currentTime = 0;\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t\t$(\"#main-banner .swiper-container\")\n\t\t\t\t\t.find(\".swiper-slide-active video\")\n\t\t\t\t\t.get(0)\n\t\t\t\t\t.play();\n\t\t\t\tslideNext(durationVideo - currentTime);\n\t\t\t} else {\n\t\t\t\tslideNext(4500);\n\t\t\t}\n\t\t};\n\t\t// Init\n\t\tsetTimeout(() => {\n\t\t\tplayVideoOnSlide();\n\t\t\tmain_banner.on(\"transitionEnd\", function () {\n\t\t\t\tplayVideoOnSlide();\n\t\t\t});\n\t\t}, 800);\n\t}\n\n\tvar page_banner = new Swiper(\"#page-banner .swiper-container\", {\n\t\tspaceBetween: 0,\n\t\tcenteredSlides: true,\n\t\tloop: true,\n\t\tspeed: 500,\n\t\tobserver: true,\n\t\tsimulateTouch: true,\n\t\tautoplay: {\n\t\t\tdelay: 4500,\n\t\t},\n\t\tobserveParents: true,\n\t\tpagination: {\n\t\t\tel: \"#page-banner .swiper-pagination\",\n\t\t\tclickable: true,\n\t\t},\n\t\tnavigation: {\n\t\t\tprevEl: \"#page-banner .swiper-button-prev\",\n\t\t\tnextEl: \"#page-banner .swiper-button-next\",\n\t\t},\n\t});\n\t// **** Index **** //\n\n\tvar index_1 = new Swiper(\".index-1-slide .swiper-container\", {\n\t\tspeed: 500,\n\t\tspaceBetween: 10,\n\t\tlazy: true,\n\t\tpreloadImages: false,\n\t\tnavigation: {\n\t\t\tprevEl: \".index-1-slide .swiper-button-prev\",\n\t\t\tnextEl: \".index-1-slide .swiper-button-next\",\n\t\t},\n\t\tinitialSlide: 3,\n\t\tbreakpoints: {\n\t\t\t1366: {\n\t\t\t\tslidesPerView: 6,\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tslidesPerView: 5,\n\t\t\t},\n\t\t\t768: {\n\t\t\t\tslidesPerView: 4,\n\t\t\t},\n\t\t\t576: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t},\n\t\t\t320: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t},\n\t\t},\n\t});\n\tfakeLoopSwiper($(\".index-1-slide\"), index_1);\n\n\tvar setLastSlideActiveIndex2 = $(\".index-2-slide .swiper-slide\").length - 1;\n\tconsole.log(setLastSlideActiveIndex2);\n\n\tvar index_2 = new Swiper(\".index-2-slide .swiper-container\", {\n\t\tspeed: 500,\n\t\t// simulateTouch: true,\n\t\tinitialSlide: setLastSlideActiveIndex2,\n\t\tlazy: true,\n\t\tpreloadImages: false,\n\t\tscrollbar: {\n\t\t\tel: \".swiper-scrollbar\",\n\t\t\thide: true,\n\t\t},\n\t\tbreakpoints: {\n\t\t\t1440: {\n\t\t\t\tslidesPerView: 5,\n\t\t\t\tspaceBetween: 60,\n\t\t\t},\n\t\t\t1280: {\n\t\t\t\tslidesPerView: 5,\n\t\t\t\tspaceBetween: 30,\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tslidesPerView: 4,\n\t\t\t\tspaceBetween: 30,\n\t\t\t},\n\t\t\t768: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t\tspaceBetween: 30,\n\t\t\t},\n\t\t\t400: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t\tspaceBetween: 30,\n\t\t\t},\n\t\t\t320: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t\tspaceBetween: 30,\n\t\t\t},\n\t\t},\n\t});\n\tvar index_4_thumb = new Swiper(\".index-4-thumb .swiper-container\", {\n\t\tlazy: true,\n\t\tpreloadImages: false,\n\t\tnavigation: {\n\t\t\tprevEl: \".index-4-thumb .swiper-button-prev\",\n\t\t\tnextEl: \".index-4-thumb .swiper-button-next\",\n\t\t},\n\n\t\tbreakpoints: {\n\t\t\t1024: {\n\t\t\t\tspaceBetween: 5,\n\t\t\t\tdirection: \"vertical\",\n\t\t\t\tslidesPerView: \"auto\",\n\t\t\t},\n\t\t\t768: {\n\t\t\t\tspaceBetween: 20,\n\t\t\t\tslidesPerView: 5,\n\t\t\t},\n\t\t\t576: {\n\t\t\t\tslidesPerView: 5,\n\t\t\t\tspaceBetween: 20,\n\t\t\t},\n\t\t\t320: {\n\t\t\t\tslidesPerView: 5,\n\t\t\t\tspaceBetween: 5,\n\t\t\t},\n\t\t},\n\t});\n\tvar index_4_top = new Swiper(\".index-4-top .swiper-container \", {\n\t\tspaceBetween: 0,\n\t\tthumbs: {\n\t\t\tswiper: index_4_thumb,\n\t\t},\n\t});\n\tvar index_5 = new Swiper(\".index-5-slide .swiper-container\", {\n\t\tspeed: 500,\n\t\tspaceBetween: 30,\n\t\tloop: true,\n\t\tlazy: true,\n\t\tpreloadImages: false,\n\t\tbreakpoints: {\n\t\t\t1024: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t},\n\t\t\t320: {\n\t\t\t\tslidesPerView: 1,\n\t\t\t},\n\t\t},\n\t\tnavigation: {\n\t\t\tprevEl: \".index-5-slide .swiper-button-prev\",\n\t\t\tnextEl: \".index-5-slide .swiper-button-next\",\n\t\t},\n\t});\n\tvar index_6 = new Swiper(\".index-6-slide .swiper-container\", {\n\t\tspeed: 500,\n\t\tspaceBetween: 15,\n\t\tlazy: true,\n\t\tpreloadImages: false,\n\t\tloop: true,\n\t\tautoplay: {\n\t\t\tdelay: 5000,\n\t\t},\n\t\tnavigation: {\n\t\t\tprevEl: \".index-6-slide .swiper-button-prev\",\n\t\t\tnextEl: \".index-6-slide .swiper-button-next\",\n\t\t},\n\t\tbreakpoints: {\n\t\t\t1280: {\n\t\t\t\tslidesPerView: 7,\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tslidesPerView: 6,\n\t\t\t},\n\t\t\t768: {\n\t\t\t\tslidesPerView: 4,\n\t\t\t},\n\t\t\t576: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t},\n\t\t\t320: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t},\n\t\t},\n\t});\n\tvar introduce_5 = new Swiper(\".introduce-5-slide .swiper-container\", {\n\t\tspeed: 500,\n\t\tspaceBetween: 10,\n\t\tlazy: true,\n\t\tpreloadImages: false,\n\t\tslidesPerView: 1,\n\t\tnavigation: {\n\t\t\tprevEl: \".introduce-5-slide .swiper-button-prev\",\n\t\t\tnextEl: \".introduce-5-slide .swiper-button-next\",\n\t\t},\n\t});\n\tvar introduce_6 = new Swiper(\".introduce-6-slide .swiper-container\", {\n\t\tspeed: 500,\n\t\tlazy: true,\n\t\tpreloadImages: false,\n\t\tspaceBetween: 5,\n\t\tnavigation: {\n\t\t\tprevEl: \".introduce-6-slide .swiper-button-prev\",\n\t\t\tnextEl: \".introduce-6-slide .swiper-button-next\",\n\t\t},\n\t\tinitialSlide: 3,\n\t\tbreakpoints: {\n\t\t\t1024: {\n\t\t\t\tslidesPerView: 5,\n\t\t\t},\n\t\t\t768: {\n\t\t\t\tslidesPerView: 4,\n\t\t\t},\n\t\t\t576: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t},\n\t\t\t320: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t},\n\t\t},\n\t});\n\tfakeLoopSwiper($(\".introduce-6-slide\"), introduce_6);\n\t$(\".page-picture-main .picture-slide\").each(function (e) {\n\t\tvar t = $(this);\n\t\t$(this).addClass(\"picture-main-slide-\" + e);\n\t\tvar picture_main = new Swiper(\n\t\t\t\".page-picture-main .picture-main-slide-\" +\n\t\t\t\te +\n\t\t\t\t\" .swiper-container\",\n\t\t\t{\n\t\t\t\tspeed: 500,\n\t\t\t\tobserver: true,\n\t\t\t\tobserveParents: true,\n\t\t\t\tpagination: {\n\t\t\t\t\tel:\n\t\t\t\t\t\t\".page-picture-main .picture-main-slide-\" +\n\t\t\t\t\t\te +\n\t\t\t\t\t\t\" .swiper-pagination\",\n\t\t\t\t\tclickable: true,\n\t\t\t\t\trenderBullet: function (index, className) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t'' +\n\t\t\t\t\t\t\t(index + 1) +\n\t\t\t\t\t\t\t\"\"\n\t\t\t\t\t\t);\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tbreakpoints: {\n\t\t\t\t\t1280: {\n\t\t\t\t\t\tslidesPerView: 2,\n\t\t\t\t\t\tspaceBetween: 30,\n\t\t\t\t\t\tslidesPerGroup: 2,\n\t\t\t\t\t},\n\t\t\t\t\t1024: {\n\t\t\t\t\t\tslidesPerView: 2,\n\t\t\t\t\t\tspaceBetween: 15,\n\t\t\t\t\t\tslidesPerGroup: 2,\n\t\t\t\t\t},\n\t\t\t\t\t768: {\n\t\t\t\t\t\tslidesPerView: 1.3,\n\t\t\t\t\t\tspaceBetween: 15,\n\t\t\t\t\t},\n\t\t\t\t\t320: {\n\t\t\t\t\t\tslidesPerView: 1,\n\t\t\t\t\t\tspaceBetween: 15,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tnavigation: {\n\t\t\t\t\tprevEl: \".picture-main-slide-\" + e + \" .slide-to-first\",\n\t\t\t\t\tnextEl: \".picture-main-slide-\" + e + \" .slide-to-last\",\n\t\t\t\t},\n\t\t\t}\n\t\t);\n\t});\n\tvar fullScreenIcon = $(\"#full-screen-item a\");\n\tvar PDSslide = $(\".picture-detail-slide .swiper-slide\");\n\tfullScreenIcon.attr(\"href\", PDSslide.eq(0).find(\".img a\").attr(\"href\"));\n\tfullScreenIcon.attr(\n\t\t\"data-fancybox\",\n\t\tPDSslide.eq(0).find(\".img a\").attr(\"data-fancybox\")\n\t);\n\tfullScreenIcon.attr(\n\t\t\"data-caption\",\n\t\tPDSslide.eq(0).find(\".img a\").attr(\"data-caption\")\n\t);\n\tvar picture_detail = new Swiper(\".picture-detail-slide .swiper-container\", {\n\t\tspeed: 700,\n\t\tspaceBetween: 10,\n\t\tslidesPerView: 1,\n\t\tnavigation: {\n\t\t\tprevEl: \".picture-detail-slide .swiper-button-prev\",\n\t\t\tnextEl: \".picture-detail-slide .swiper-button-next\",\n\t\t},\n\t\ton: {\n\t\t\tslideChange: function () {\n\t\t\t\t$(\".page-picture-detail .item-eq\").removeClass(\"active\");\n\t\t\t\t$(\".page-picture-detail .item-eq .box-img\").removeClass(\n\t\t\t\t\t\"active\"\n\t\t\t\t);\n\t\t\t\t$(\".page-picture-detail .item-eq\")\n\t\t\t\t\t.eq(picture_detail.realIndex)\n\t\t\t\t\t.addClass(\"active\");\n\t\t\t\t$(\".page-picture-detail .item-eq\")\n\t\t\t\t\t.eq(picture_detail.realIndex)\n\t\t\t\t\t.children()\n\t\t\t\t\t.addClass(\"active\");\n\t\t\t\tvar href = PDSslide.eq(picture_detail.activeIndex)\n\t\t\t\t\t.find(\".img a\")\n\t\t\t\t\t.attr(\"href\");\n\t\t\t\tvar dfbox = PDSslide.eq(picture_detail.activeIndex)\n\t\t\t\t\t.find(\".img a\")\n\t\t\t\t\t.attr(\"data-fancybox\");\n\t\t\t\tconsole.log(dfbox);\n\t\t\t\tvar dscap = PDSslide.eq(picture_detail.activeIndex)\n\t\t\t\t\t.find(\".img a\")\n\t\t\t\t\t.attr(\"data-caption\");\n\t\t\t\tfullScreenIcon.attr(\"href\", href);\n\t\t\t\tfullScreenIcon.attr(\"data-fancybox\", dfbox);\n\t\t\t\tfullScreenIcon.attr(\"data-caption\", dscap);\n\t\t\t},\n\t\t\t// reachEnd: function () {\n\t\t\t// \tconsole.log(\"End\");\n\t\t\t// },\n\t\t},\n\t});\n\t$(\".page-picture-detail .item-eq\").each(function (e) {\n\t\t$(this).attr(\"data-eq\", e);\n\t\t$(this).on(\"click\", function () {\n\t\t\tpicture_detail.slideTo($(this).attr(\"data-eq\"));\n\t\t\t$(\".page-picture-detail .item-eq\").removeClass(\"active\");\n\t\t\t$(\".page-picture-detail .item-eq .box-img\").removeClass(\"active\");\n\t\t\t$(this).addClass(\"active\");\n\t\t\t$(this).children().addClass(\"active\");\n\t\t\tvar spaceTop = 0;\n\t\t\tww >= 1015 ? (spaceTop = 60) : (spaceTop = 30);\n\t\t\t$(\"html,body\")\n\t\t\t\t.animate(\n\t\t\t\t\t{\n\t\t\t\t\t\tscrollTop: $(\".page-picture-detail\").offset().top,\n\t\t\t\t\t},\n\t\t\t\t\t\"slow\"\n\t\t\t\t)\n\t\t\t\t.promise()\n\t\t\t\t.done(function () {\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t$(\"header\").addClass(\"scroll-active\");\n\t\t\t\t\t}, 50);\n\t\t\t\t});\n\t\t});\n\t});\n\tvar picture_detail_other = new Swiper(\n\t\t\".picture-other-slide .swiper-container\",\n\t\t{\n\t\t\tspeed: 500,\n\t\t\tobserver: true,\n\t\t\tobserveParents: true,\n\t\t\tloop: true,\n\t\t\tnavigation: {\n\t\t\t\tprevEl: \".picture-other-slide .swiper-button-prev\",\n\t\t\t\tnextEl: \".picture-other-slide .swiper-button-next\",\n\t\t\t},\n\t\t\tbreakpoints: {\n\t\t\t\t1024: {\n\t\t\t\t\tslidesPerView: 4,\n\t\t\t\t\tspaceBetween: 30,\n\t\t\t\t},\n\t\t\t\t768: {\n\t\t\t\t\tslidesPerView: 3,\n\t\t\t\t\tspaceBetween: 15,\n\t\t\t\t},\n\t\t\t\t576: {\n\t\t\t\t\tslidesPerView: 2,\n\t\t\t\t\tspaceBetween: 15,\n\t\t\t\t},\n\t\t\t\t320: {\n\t\t\t\t\tslidesPerView: 2,\n\t\t\t\t\tspaceBetween: 5,\n\t\t\t\t},\n\t\t\t},\n\t\t}\n\t);\n\n\t// *** Product *** //\n\tvar product_pd_1 = new Swiper(\".pd-1 .product-wrapper .swiper-container\", {\n\t\tspeed: 500,\n\t\tlazy: true,\n\t\tpreloadImages: false,\n\t\tslidesPerView: 1,\n\t\tnavigation: {\n\t\t\tprevEl: \".pd-1 .product-wrapper .swiper-button-prev\",\n\t\t\tnextEl: \".pd-1 .product-wrapper .swiper-button-next\",\n\t\t},\n\t});\n\tvar product_other = new Swiper(\".product-other-slide .swiper-container\", {\n\t\tspeed: 500,\n\t\tlazy: true,\n\t\tloop: true,\n\t\tpreloadImages: false,\n\t\tobserver: true,\n\t\tobserveParents: true,\n\t\tnavigation: {\n\t\t\tprevEl: \".product-other-slide .swiper-button-prev\",\n\t\t\tnextEl: \".product-other-slide .swiper-button-next\",\n\t\t},\n\t\tbreakpoints: {\n\t\t\t1024: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t\tspaceBetween: 30,\n\t\t\t},\n\t\t\t768: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t\tspaceBetween: 15,\n\t\t\t},\n\t\t\t320: {\n\t\t\t\tslidesPerView: 1,\n\t\t\t\tspaceBetween: 10,\n\t\t\t},\n\t\t},\n\t});\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-size\": \"cover\",\n\t\t\t\"background-position\": \"center center\",\n\t\t\t\"background-image\": \"url(\" + background + \")\",\n\t\t});\n\t});\n\t$(\"[setBackgroundBottom]\").each(function () {\n\t\tvar background = $(this).attr(\"setBackgroundBottom\");\n\t\t$(this).css({\n\t\t\t\"background-size\": \"cover\",\n\t\t\t\"background-position\": \"bottom center\",\n\t\t\t\"background-image\": \"url(\" + background + \")\",\n\t\t});\n\t});\n}\n\nfunction mainPadding() {\n\tsetTimeout(() => {\n\t\tvar mainBanner = $(\"#main-banner\");\n\t\tvar pagesBanner = $(\"#page-banner\");\n\t\tvar header = heightHeader;\n\t\tvar footer = $(\"footer\").outerHeight();\n\n\t\tif (mainBanner.length >= 1) {\n\t\t\t$(\"main\").css(\"padding-top\", 0);\n\t\t} else if (pagesBanner.length >= 1) {\n\t\t\t$(\"main\").css(\"padding-top\", 0);\n\t\t} else {\n\t\t\t$(\"main\").css(\"padding-top\", 0);\n\t\t}\n\t\tww >= 1024\n\t\t\t? $(\"html\").css(\n\t\t\t\t\t\"scroll-padding-top\",\n\t\t\t\t\t$(\".sticky-nav-panel\").outerHeight() - 10\n\t\t\t )\n\t\t\t: $(\"html\").css(\"scroll-padding-top\", 10);\n\t}, 300);\n}\n\nfunction pagination() {\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 mappingPagination() {\n\t$(\".pages.newspager\").each(function () {\n\t\t$(this).closest(\".section\").append(this);\n\t});\n\tif ($(\".homepage\").length == 1) {\n\t\t$(\".pages.newspager\").remove();\n\t}\n}\n\nfunction counter() {\n\t$(\".counter\").countUp({\n\t\tdelay: 10,\n\t\ttime: 800,\n\t});\n}\n\nfunction cssIntroducePage() {\n\t// *** CSS *** //\n\tif ($(\".introduce__page\").length == 1) {\n\t\t// Introduce 2 box-content\n\t\t$(\".introduce-2 .box-content\").css(\n\t\t\t\"padding-left\",\n\t\t\t$(\".sec-4-4-2 .container >\").offset().left\n\t\t);\n\t\t// Sec 4-4-2 Box Img\n\t\t$(\".sec-4-4-2 .box-img\").css(\n\t\t\t\"margin-left\",\n\t\t\t$(\".sec-4-4-2 .container >\").offset().left\n\t\t);\n\t\t// Sec 4-6 Box Left && Box Right\n\t\t$(\".sec-4-6 .box-left\").css(\n\t\t\t\"padding-left\",\n\t\t\t$(\".sec-4-4-2 .container >\").offset().left\n\t\t);\n\t\tww >= 1280\n\t\t\t? $(\".sec-4-6 .box-right .br-wrapper\").css(\n\t\t\t\t\t\"margin-right\",\n\t\t\t\t\t$(\".sec-4-4-2 .container >\").offset().left\n\t\t\t )\n\t\t\t: $(\".sec-4-6 .box-right .br-wrapper\").css(\"margin-right\", \"unset\");\n\t}\n\t// *** End CSS *** //\n}\n\nfunction pageIntroduce() {\n\tvar height_header = heightHeader;\n\tvar button_filter = $(\".show-filter-button\");\n\tvar sticky_pnav = $(\".sticky-nav-panel\");\n\t// On Mobile Scroll\n\tif ($(\"[data-offset]\").length == 1) {\n\t\tvar filterButtonOffset =\n\t\t\t$(\"[data-offset]\").offset().top - height_header - 15;\n\t}\n\n\t$(window).on(\"scroll\", function () {\n\t\tvar pos = $(this).scrollTop();\n\t\tif (pos >= filterButtonOffset) {\n\t\t\tbutton_filter.addClass(\"active\");\n\t\t} else {\n\t\t\tbutton_filter.removeClass(\"active\");\n\t\t\tsticky_pnav.removeClass(\"active\");\n\t\t}\n\t});\n\n\t$(document).on(\"click\", function (event) {\n\t\tvar $trigger = sticky_pnav;\n\t\tvar $trigger_2 = button_filter;\n\t\tif (\n\t\t\t$trigger !== event.target &&\n\t\t\t!$trigger.has(event.target).length &&\n\t\t\t$trigger_2 !== event.target &&\n\t\t\t!$trigger_2.has(event.target).length\n\t\t) {\n\t\t\tsticky_pnav.removeClass(\"active\");\n\t\t}\n\t});\n\tbutton_filter.on(\"click\", function () {\n\t\tsticky_pnav.toggleClass(\"active\");\n\t});\n\tif ($(\".introduce__page\").length == 1) {\n\t\tww >= 1024 ? $(\"header\").addClass(\"stay-top\") : false;\n\n\t\t// Onload\n\t\t$(\".child-nav-list nav\").eq(0).addClass(\"active\");\n\t\tsticky_pnav.insertAfter(\"#page-banner\");\n\t\tww >= 1015\n\t\t\t? sticky_pnav.sticky({\n\t\t\t\t\ttopSpacing: 0,\n\t\t\t\t\tzIndex: 9,\n\t\t\t })\n\t\t\t: false;\n\n\t\t$(\".parent-nav li\").each(function (e) {\n\t\t\t$(this).attr(\"data-eq\", e);\n\t\t});\n\n\t\t$(window).on(\"scroll\", function () {\n\t\t\tvar eq = $(\".parent-nav li.active\").attr(\"data-eq\");\n\t\t\t$(\".child-nav-list nav\").removeClass(\"active\");\n\t\t\t$(\".child-nav-list nav\").eq(eq).addClass(\"active\");\n\t\t\tif ($(\"header .main-menu\").is(\".active\")) {\n\t\t\t\t$(\"#show_header\").addClass(\"hide\");\n\t\t\t} else {\n\t\t\t\t$(\"#show_header\").removeClass(\"hide\");\n\t\t\t}\n\t\t});\n\n\t\t// \t// Custom\n\t\t$(\".Module-191\t\").appendTo($(\".sec-4-6 .ctn-wrapper\"));\n\n\t\tfunction OnLoadToSection() {\n\t\t\tvar path = window.location.href;\n\t\t\tlet destination = \"#\" + path.substr(path.indexOf(\"#\") + 1);\n\t\t\t// console.log(destination);\n\t\t\tif (ww >= 1024) {\n\t\t\t\t$(\"html, body\").animate(\n\t\t\t\t\t{\n\t\t\t\t\t\tscrollTop:\n\t\t\t\t\t\t\t$(destination).offset().top -\n\t\t\t\t\t\t\tsticky_pnav.outerHeight() +\n\t\t\t\t\t\t\t10,\n\t\t\t\t\t},\n\t\t\t\t\t\"slow\"\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\t$(\"html, body\").animate(\n\t\t\t\t\t{\n\t\t\t\t\t\tscrollTop: $(destination).offset().top + 10,\n\t\t\t\t\t},\n\t\t\t\t\t\"slow\"\n\t\t\t\t);\n\t\t\t\tsticky_pnav.removeClass(\"active\");\n\t\t\t}\n\t\t}\n\t\t// Check if Destination have #sec-\n\t\tif (window.location.href.indexOf(\"sec\") != -1) {\n\t\t\tOnLoadToSection();\n\t\t}\n\t\tvar header = $(\"header\");\n\t\tvar close = $(\".nav-mobile .close-button em\");\n\t\tvar burger = $(\".burger\");\n\t\tvar mobile = $(\".nav-mobile\");\n\t\tvar header_main_menu = $(\"header .main-menu\");\n\t\tvar body = $(\"body\");\n\t\tvar overlay = $(\"#overlay\");\n\t\t$(\".hidden-nav-and-search .has-dropdown .child li a\").on(\n\t\t\t\"click\",\n\t\t\tfunction () {\n\t\t\t\theader_main_menu.removeClass(\"active\");\n\t\t\t\toverlay.removeClass(\"active\");\n\t\t\t\t$(\"body\").removeClass(\"ovh\");\n\t\t\t\t$(\".hidden-nav-and-search\").removeClass(\"active\");\n\t\t\t\theader.removeClass(\"active\");\n\t\t\t\tburger.removeClass(\"active\");\n\t\t\t\t$(\".search-nav-2\").removeClass(\"active\");\n\t\t\t\t$(\"#show_header\").removeClass(\"active\");\n\t\t\t}\n\t\t);\n\n\t\t$(\".nav-panel li\").on(\"click\", function () {\n\t\t\t$(\".nav-panel li\").removeClass(\"active\");\n\t\t\t$(this).addClass(\"active\");\n\t\t});\n\t\t// Parent Nav Click\n\t\t$(\".sticky-nav-panel .parent-nav li a\").on(\"click\", function (e) {\n\t\t\te.preventDefault();\n\t\t\tvar target = $(this).attr(\"href\");\n\t\t\tif ($(this).parent(\".parent-link\").is(\".has-child\")) {\n\t\t\t\tif (ww >= 1024) {\n\t\t\t\t\t$(\"html, body\").animate(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tscrollTop:\n\t\t\t\t\t\t\t\t$(target).offset().top -\n\t\t\t\t\t\t\t\tsticky_pnav.outerHeight() +\n\t\t\t\t\t\t\t\t10,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"slow\"\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\t$(\"html, body\").animate(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tscrollTop: $(target).offset().top + 10,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"slow\"\n\t\t\t\t\t);\n\t\t\t\t\tsticky_pnav.removeClass(\"active\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (ww >= 1024) {\n\t\t\t\t\t$(\"html, body\").animate(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tscrollTop:\n\t\t\t\t\t\t\t\t$(target).offset().top -\n\t\t\t\t\t\t\t\tsticky_pnav.outerHeight() / 2 +\n\t\t\t\t\t\t\t\t10,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"slow\"\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\t$(\"html, body\").animate(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tscrollTop: $(target).offset().top + 10,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"slow\"\n\t\t\t\t\t);\n\t\t\t\t\tsticky_pnav.removeClass(\"active\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t// Child Nav Click\n\t\t$(\".sticky-nav-panel .child-nav li a\").on(\"click\", function (e) {\n\t\t\te.preventDefault();\n\t\t\tvar target = $(this).attr(\"href\");\n\t\t\tif (ww >= 1024) {\n\t\t\t\t$(\"html, body\").animate(\n\t\t\t\t\t{\n\t\t\t\t\t\tscrollTop:\n\t\t\t\t\t\t\t$(target).offset().top -\n\t\t\t\t\t\t\tsticky_pnav.outerHeight() +\n\t\t\t\t\t\t\t10,\n\t\t\t\t\t},\n\t\t\t\t\t\"slow\"\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\t$(\"html, body\").animate(\n\t\t\t\t\t{\n\t\t\t\t\t\tscrollTop: $(target).offset().top + 10,\n\t\t\t\t\t},\n\t\t\t\t\t\"slow\"\n\t\t\t\t);\n\t\t\t\tsticky_pnav.removeClass(\"active\");\n\t\t\t}\n\t\t});\n\n\t\t// Scroll Active\n\t\t$(window).on(\"scroll\", function () {\n\t\t\tvar scrollDistance = $(window).scrollTop();\n\t\t\tif (scrollDistance <= $(\"#page-banner\").outerHeight()) {\n\t\t\t\t$(\".child-nav\").eq(0).addClass(\"active\");\n\t\t\t}\n\t\t\t$(\".Zone\").each(function (i) {\n\t\t\t\tif (\n\t\t\t\t\t$(this).position().top - sticky_pnav.outerHeight() <=\n\t\t\t\t\tscrollDistance\n\t\t\t\t) {\n\t\t\t\t\t$(\".sticky-nav-panel .parent-nav li.active\").removeClass(\n\t\t\t\t\t\t\"active\"\n\t\t\t\t\t);\n\t\t\t\t\t$(\".sticky-nav-panel .parent-nav li\")\n\t\t\t\t\t\t.eq(i)\n\t\t\t\t\t\t.addClass(\"active\");\n\t\t\t\t}\n\t\t\t});\n\t\t\t$(\"[data-child\").each(function (i) {\n\t\t\t\tvar extra = 0;\n\t\t\t\tif (\n\t\t\t\t\t$(this).position().top - sticky_pnav.outerHeight() - 50 <=\n\t\t\t\t\tscrollDistance\n\t\t\t\t) {\n\t\t\t\t\t$(\".child-nav li.active\").removeClass(\"active\");\n\t\t\t\t\t$(\".child-nav li\").eq(i).addClass(\"active\");\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\t// Show Header Btn\n\t\t$(\"#show_header .btn\").on(\"click\", function () {\n\t\t\t// $(\"body\").toggleClass(\"ovh\");\n\t\t});\n\n\t\t// tabslet tab\n\t\t$(\".tabslet-tab li\").on(\"click\", function () {\n\t\t\t$(this)\n\t\t\t\t.closest(\"ul\")\n\t\t\t\t.animate(\n\t\t\t\t\t{\n\t\t\t\t\t\tscrollLeft: $(this).offset().left - 15,\n\t\t\t\t\t},\n\t\t\t\t\t\"slow\"\n\t\t\t\t);\n\t\t});\n\t}\n}\n\nfunction frmServices() {\n\t$(\".services-3 .wrap-form .frm-btnwrap\").appendTo(\n\t\t\".services-3 .wrap-form .right-frm\"\n\t);\n\t$(\".hidden-frm .wrap-form .frm-btnwrap\").appendTo(\n\t\t\".hidden-frm .wrap-form .right-frm\"\n\t);\n}\n\nfunction pageServices() {\n\tvar thumb = $(\".services-thumb .box-content\");\n\tvar main = $(\".services-main .box-main\");\n\n\tthumb.each(function (e) {\n\t\t$(this).attr(\"data-thumb-eq\", e);\n\t\te = e + 1;\n\t\t$(this).css(\"transition-delay\", 0.2 * e + \"s\");\n\t});\n\tthumb.on(\"click\", function (event) {\n\t\tvar eq = $(this).attr(\"data-thumb-eq\");\n\t\tif (ww >= 768) {\n\t\t\t$(\"html,body\").animate({\n\t\t\t\tscrollTop: $(\".services-main\").offset().top - heightHeader,\n\t\t\t});\n\t\t\tif (\n\t\t\t\t$(this)\n\t\t\t\t\t.closest(\".services-wrapper\")\n\t\t\t\t\t.find(\".services-main .box-main\")\n\t\t\t\t\t.eq(eq)\n\t\t\t\t\t.is(\":visible\")\n\t\t\t) {\n\t\t\t\tthumb.removeClass(\"active\");\n\t\t\t\t$(this).addClass(\"active\");\n\t\t\t\t$(this)\n\t\t\t\t\t.closest(\".services-wrapper\")\n\t\t\t\t\t.find(\".services-main .box-main\")\n\t\t\t\t\t.eq(eq)\n\t\t\t\t\t.stop();\n\t\t\t} else {\n\t\t\t\tthumb.removeClass(\"active\");\n\t\t\t\tthumb\n\t\t\t\t\t.closest(\".services-wrapper\")\n\t\t\t\t\t.find(\".services-main .box-main\")\n\t\t\t\t\t.slideUp();\n\t\t\t\t$(this).addClass(\"active\");\n\n\t\t\t\t$(this)\n\t\t\t\t\t.closest(\".services-wrapper\")\n\t\t\t\t\t.find(\".services-main .box-main\")\n\t\t\t\t\t.eq(eq)\n\t\t\t\t\t.slideDown();\n\t\t\t}\n\t\t} else {\n\t\t\tif ($(this).find(\".bottom\").is(\":visible\")) {\n\t\t\t\tthumb.removeClass(\"active\");\n\t\t\t\t$(this).addClass(\"active\");\n\t\t\t\tthumb.find(\".bottom\").slideUp();\n\t\t\t\t$(this).find(\".bottom\").stop();\n\t\t\t} else {\n\t\t\t\tthumb.removeClass(\"active\");\n\t\t\t\t$(this).addClass(\"active\");\n\t\t\t\tthumb.find(\".bottom\").slideUp();\n\t\t\t\t$(this).find(\".bottom\").slideDown();\n\t\t\t}\n\t\t\tsetTimeout(() => {\n\t\t\t\tlet targetBox = $(this).attr(\"id\");\n\t\t\t\tconsole.log(targetBox);\n\t\t\t\t$(\"html,body\").animate({\n\t\t\t\t\tscrollTop: $(\"#\" + targetBox).offset().top - 100,\n\t\t\t\t});\n\t\t\t}, 510);\n\t\t}\n\t});\n\tif ($(\".services__page\").length == 1) {\n\t\tvar path = window.location.href;\n\t\tlet url = \"#\" + path.substr(path.indexOf(\"#\") + 1);\n\t\tlet number = path.substr(path.length - 1);\n\t\tlet numberToEq = Number(number - 1);\n\t\t// console.log(numberToEq);\n\t\tif (window.location.href.indexOf(\"news\") == -1) {\n\t\t\tconsole.log(\"No Select\");\n\t\t\tsetTimeout(() => {\n\t\t\t\tif (ww >= 768) {\n\t\t\t\t\tthumb.eq(0).addClass(\"active\");\n\t\t\t\t\t$(\".services-main .box-main\").eq(0).slideDown();\n\t\t\t\t\t$(\"html,body\").animate({\n\t\t\t\t\t\tscrollTop:\n\t\t\t\t\t\t\t$(\".services-1 .block-title\").offset().top - 40,\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\tthumb.eq(0).addClass(\"active\");\n\t\t\t\t\tthumb.eq(0).find(\".bottom\").slideDown();\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t$(\"html,body\").animate({\n\t\t\t\t\t\t\t// scrollTop:\n\t\t\t\t\t\t\t// \t$(\".services-1 .block-title\").offset().top - 40,\n\t\t\t\t\t\t\tscrollTop:\n\t\t\t\t\t\t\t\t$(\".services-1 .block-title\").offset().top - 40,\n\t\t\t\t\t\t});\n\t\t\t\t\t}, 510);\n\t\t\t\t}\n\t\t\t}, 500);\n\t\t}\n\n\t\tif (window.location.href.indexOf(\"news\") != -1) {\n\t\t\t// Check link có #news\n\t\t\tconsole.log(\"Select Id-\" + Number(numberToEq + 1));\n\t\t\t// On load\n\t\t\tsetTimeout(() => {\n\t\t\t\tif (ww >= 768) {\n\t\t\t\t\tthumb.eq(numberToEq).addClass(\"active\");\n\t\t\t\t\t$(\".services-main .box-main\").eq(numberToEq).slideDown();\n\t\t\t\t\t$(\"html,body\").animate({\n\t\t\t\t\t\tscrollTop:\n\t\t\t\t\t\t\t$(\".services-1 .block-title\").offset().top - 40,\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\tlet targetBox = thumb.eq(numberToEq).attr(\"id\");\n\t\t\t\t\tthumb.eq(numberToEq).addClass(\"active\");\n\t\t\t\t\tthumb.eq(numberToEq).find(\".bottom\").slideDown();\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t$(\"html,body\").animate({\n\t\t\t\t\t\t\tscrollTop: $(\"#\" + targetBox).offset().top - 100,\n\t\t\t\t\t\t\t// thumb.eq(numberToEq).offset().top - 30,\n\t\t\t\t\t\t});\n\t\t\t\t\t}, 510);\n\t\t\t\t}\n\t\t\t}, 500);\n\t\t}\n\t}\n}\n\nfunction fakeLoopSwiper(element, swiper) {\n\tvar changedPrev = false;\n\tvar changedNext = false;\n\telement.find(\".swiper-button-prev\").on(\"click\", function () {\n\t\tif (changedPrev === true) {\n\t\t\tchangedPrev = false;\n\t\t\tswiper.slideTo(swiper.slides.length - 1);\n\t\t}\n\t\tif (swiper.isBeginning) changedPrev = true;\n\t});\n\n\telement.find(\".swiper-button-next\").on(\"click\", function () {\n\t\tif (changedNext === true) {\n\t\t\tchangedNext = false;\n\t\t\tswiper.slideTo(0);\n\t\t}\n\t\tif (swiper.isEnd) changedNext = true;\n\t});\n}\n\nfunction triggerDealer() {\n\t$(\".contact-2 #ddlProvince\").change(function () {\n\t\t$(\"#edit-submit\").trigger(\"click\");\n\t});\n}\n\nfunction activeFirstAddress() {\n\t// On Load\n\tvar firstItem = $(\".contact-2 ul lli:first-child\");\n\tfirstItem.trigger(\"click\");\n}\n\nfunction translateFrm() {\n\tif ($(\"body\").hasClass(\"en-us\")) {\n\t\t$(\"body.en-us footer .subscribefrm input\").attr(\n\t\t\t\"placeholder\",\n\t\t\t\"Enter your Email, subscribe to our newsletter\"\n\t\t);\n\t} else {\n\t\t$(\"body footer .subscribefrm input\").attr(\n\t\t\t\"placeholder\",\n\t\t\t\"Nhập email để nhận bản tin\"\n\t\t);\n\t}\n}\n\nfunction highlighttGrowTree() {\n\t$(\".grow-list .swiper-slide\").each(function (e) {\n\t\t$(this).css({\n\t\t\t\"transition-delay\": 0.15 + 0.15 * e + \"s\",\n\t\t});\n\t});\n\t$(\".grow-list .swiper-slide\")\n\t\t.last()\n\t\t.find(\".grow-item\")\n\t\t.addClass(\"highlight\");\n\t$(\".grow-list .swiper-slide .grow-item\").hover(\n\t\tfunction () {\n\t\t\t$(\".grow-list .swiper-slide .grow-item\").removeClass(\"highlight\");\n\t\t\t$(this).addClass(\"highlight\");\n\t\t}\n\t\t// ,\n\t\t// function () {\n\t\t// \t$(\".index-2-slide .swiper-slide .grow-item\").removeClass(\n\t\t// \t\t\"highlight\"\n\t\t// \t);\n\t\t// }\n\t);\n}\n\nfunction dropdownMenu() {\n\tif (ww > 1025) {\n\t\t$(\"li.has-dropdown .icon\")\n\t\t\t.off()\n\t\t\t.on(\"click\", function () {\n\t\t\t\tif (\n\t\t\t\t\t$(this).closest(\".has-dropdown\").hasClass(\"dropdown-active\")\n\t\t\t\t) {\n\t\t\t\t\t$(this)\n\t\t\t\t\t\t.closest(\".has-dropdown\")\n\t\t\t\t\t\t.removeClass(\"dropdown-active\");\n\t\t\t\t\t$(this).closest(\".has-dropdown\").find(\".child\").slideUp();\n\t\t\t\t} else {\n\t\t\t\t\t$(\"nav li\").removeClass(\"dropdown-active\");\n\t\t\t\t\t$(\"nav li .child\").slideUp();\n\t\t\t\t\t$(this)\n\t\t\t\t\t\t.closest(\".has-dropdown\")\n\t\t\t\t\t\t.toggleClass(\"dropdown-active\");\n\t\t\t\t\t$(this)\n\t\t\t\t\t\t.closest(\".has-dropdown\")\n\t\t\t\t\t\t.find(\".child\")\n\t\t\t\t\t\t.slideToggle();\n\t\t\t\t}\n\t\t\t});\n\t} else {\n\t\t$(\"header .has-dropdown .parent .icon\").click(function (e) {\n\t\t\t$(\"header .has-dropdown\").removeClass(\"dropdown-active\");\n\t\t\t$(\"header .has-dropdown\").find(\".parent\").next().slideUp();\n\t\t\t$(this).closest(\".has-dropdown\").toggleClass(\"dropdown-active\");\n\t\t\t$(this).closest(\".parent\").next().slideToggle();\n\t\t});\n\t}\n}\n\nfunction checkBrowser() {\n\tvar FF = !(window.mozInnerScreenX == null);\n\tif (FF) {\n\t\t$(\"body *\").addClass(\"firefox\");\n\t}\n\tif ($(\"body\").hasClass(\"en-us\")) {\n\t\t$(\"body *\").addClass(\"us-ele\");\n\t}\n}\nfunction editIconMenuMb() {\n\tif (ww < 575) {\n\t\tlet select = $(\".hidden-nav-and-search .has-dropdown .icon\");\n\t\tselect.find(\"em\").remove();\n\t\tselect.append('expand_more');\n\t}\n}\n\nfunction stickyPageProduct() {\n\tif (\n\t\t$(\".product-list__page\").length == 1 ||\n\t\t$(\".product-detail\").length == 1\n\t) {\n\t\tvar sticky_pnav = $(\".sticky-nav-panel\");\n\t\tsticky_pnav.insertAfter(\"#page-banner\");\n\t\tww >= 1015\n\t\t\t? sticky_pnav.sticky({\n\t\t\t\t\ttopSpacing: 0,\n\t\t\t\t\tzIndex: 9,\n\t\t\t })\n\t\t\t: false;\n\t}\n}\n\nfunction cloneAppendBtnFilter() {\n\tvar orgLink = window.location.href;\n\tvar FullUrl = orgLink.substring(0, orgLink.lastIndexOf(\"?\"));\n\t// console.log(FullUrl);\n\t$(\".Module-202 #btn_filter select option\").eq(0).attr(\"value\", FullUrl);\n\t$(\".Module-202 #btn_filter\").clone().prependTo($(\"#filter_Wrapper\"));\n}\n\nfunction pageProduct() {\n\t// Fancybox Form\n\t$(\".product-list__page [data-fancybox]\").fancybox({\n\t\tbtnTpl: {\n\t\t\tsmallBtn:\n\t\t\t\t'\",\n\t\t},\n\t});\n\t$(\n\t\t'[data-fancybox=\"image\"],.index-1-slide [data-fancybox],.introduce-4-slide [data-fancybox],.introduce-5-slide [data-fancybox],.introduce-6-slide [data-fancybox],.product-detail [data-fancybox]'\n\t).fancybox({\n\t\tparentEl: \"body\",\n\t\tthumbs: {\n\t\t\tautoStart: true,\n\t\t},\n\t\tbuttons: [\n\t\t\t\"fullScreen\",\n\t\t\t\"share\",\n\t\t\t\"slideShow\",\n\t\t\t\"download\",\n\t\t\t\"thumbs\",\n\t\t\t\"close\",\n\t\t],\n\t});\n\t$(\"button .btn-3[data-src]\").fancybox({\n\t\tparentEl: \"form\",\n\t});\n\t``;\n\n\t// *** Product Slide *** //\n\tif ($(\".pd-1 .swiper-slide\").length == 1)\n\t\t$(\".pd-1 .arrow-button\").addClass(\"hidden\");\n\t// *** Detail *** //\n\tvar item = $(\".expand-product-title .item .header\");\n\titem.on(\"click\", function () {\n\t\tvar t = $(this).closest(\".item\");\n\t\tif (t.is(\".active\")) {\n\t\t\tt.removeClass(\"active\");\n\t\t\tt.find(\".bottom\").slideUp();\n\t\t} else {\n\t\t\titem.closest(\".item\").removeClass(\"active\");\n\t\t\titem.closest(\".item\").find(\".bottom\").slideUp();\n\t\t\tt.addClass(\"active\");\n\t\t\tt.find(\".bottom\").slideDown();\n\t\t}\n\t});\n\n\t// Fancybox Form\n\t$(\".product-list__page .product-item [data-fancybox]\").on(\n\t\t\"click\",\n\t\tfunction () {\n\t\t\tvar title = $(this).closest(\".product-item\").find(\".title\").text();\n\t\t\t$(\".hidden-frm .product-title\").text(title);\n\t\t\t$(\".hidden-frm .product-title-val input[type='text']\").val(title);\n\t\t}\n\t);\n\t$(\"#page-banner [data-fancybox]\").on(\"click\", function () {\n\t\tvar title = $(this).closest(\".box-content\").find(\".title\").text();\n\t\t$(\".hidden-frm .product-title\").text(title);\n\t\t$(\".hidden-frm .product-title-val input[type='text']\").val(title);\n\t});\n}\n\nfunction productComment() {\n\t// Comment\n\tvar cmt_cont = $(\".question-wrapper .question-list\");\n\tvar cmt_btn = $(\".question-wrapper .expand-question-list .btn\");\n\tvar cmt_item = $(\".question-wrapper .question-list .item\");\n\tvar og_height = Number(cmt_cont.attr(\"og-height\", cmt_cont.height()));\n\tvar og_height_val = cmt_cont.attr(\"og-height\");\n\tcmt_item.each(function () {\n\t\t$(this).attr(\"og-height\", $(this).outerHeight());\n\t});\n\tsetTimeout(() => {\n\t\tif (cmt_item.length >= 5) {\n\t\t\tif (ww >= 1024) {\n\t\t\t\tcmt_cont.css(\n\t\t\t\t\t\"height\",\n\t\t\t\t\tNumber(cmt_item.eq(0).attr(\"og-height\")) +\n\t\t\t\t\t\tNumber(cmt_item.eq(1).attr(\"og-height\")) +\n\t\t\t\t\t\tNumber(cmt_item.eq(2).attr(\"og-height\")) +\n\t\t\t\t\t\tNumber(cmt_item.eq(3).attr(\"og-height\"))\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tcmt_cont.css(\"height\", cmt_cont.height() / 2.25);\n\t\t\t}\n\t\t} else if (cmt_item.length > 3) {\n\t\t\tif (ww >= 1024) {\n\t\t\t\tcmt_cont.css(\"height\", cmt_cont.height() / 2);\n\t\t\t} else {\n\t\t\t\tcmt_cont.css(\"height\", cmt_cont.height() / 2.25);\n\t\t\t}\n\t\t}\n\t}, 100);\n\n\tcmt_btn.on(\"click\", function () {\n\t\t$(\".expand-question-list\").remove();\n\t\tconsole.log(og_height);\n\t\tcmt_cont.css(\"height\", \"auto\");\n\t});\n}\n\nfunction balanceProductDetailBox() {\n\t// Balance Box Product PD-1\n\tvar pd_img = $(\".pd-1 .product-image .image-slide-wrapper\");\n\tvar pd_info = $(\".pd-1 .product-info\");\n\tvar pd_info_title = pd_info.find(\".block-title\");\n\tvar pd_info_des = pd_info.find(\".des\");\n\tvar pd_info_table = pd_info.find(\".table\");\n\tvar pd_info_btn = pd_info.find(\".button-wrapper\");\n\t// Set Attributes\n\tpd_img.attr(\"pd-img-height\", pd_img.outerHeight());\n\tpd_info.attr(\"pd-info-height\", pd_info.outerHeight());\n\tif (ww >= 1024) {\n\t\tpd_info\n\t\t\t.animate({\n\t\t\t\theight: pd_img.outerHeight() + pd_info_btn.outerHeight(),\n\t\t\t\topacity: 1,\n\t\t\t})\n\t\t\t.promise()\n\t\t\t.done(function () {\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tpd_info_table\n\t\t\t\t\t\t.animate({\n\t\t\t\t\t\t\theight:\n\t\t\t\t\t\t\t\tpd_img.attr(\"pd-img-height\") -\n\t\t\t\t\t\t\t\tpd_info_title.outerHeight(true) -\n\t\t\t\t\t\t\t\tpd_info_des.outerHeight(true) -\n\t\t\t\t\t\t\t\tpd_info_btn.outerHeight(true) +\n\t\t\t\t\t\t\t\tpd_info_btn.outerHeight(),\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.promise()\n\t\t\t\t\t\t.done(function () {\n\t\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\t\tpd_info_table.css(\"overflow\", \"auto\");\n\t\t\t\t\t\t\t}, 10);\n\t\t\t\t\t\t});\n\t\t\t\t}, 10);\n\t\t\t});\n\t}\n}\n\nfunction expandItem() {\n\t// Filter Load\n\tvar hasLoadBtn = $(\"[has-expand-btn]\");\n\tvar epndBtn = hasLoadBtn.find(\".expand-btn\");\n\tif (hasLoadBtn.length == 1) {\n\t\tvar list = hasLoadBtn.find(\".expand-item\").length;\n\t\t// console.log(list);\n\t\tvar count = Number(hasLoadBtn.attr(\"item-count\"));\n\t\tvar expand = Number(hasLoadBtn.attr(\"item-expand\"));\n\t\t// if ($(\".picture-list__page\").length == 1) {\n\t\t// \tif ((list = count)) {\n\t\t// \t\tepndBtn.remove();\n\t\t// \t}\n\t\t// }\n\t\tif (list >= count) {\n\t\t\t$(\"[has-expand-btn] .expand-item:lt(\" + count + \")\").slideDown();\n\t\t} else {\n\t\t\t$(\"[has-expand-btn] .expand-item\").slideDown();\n\t\t\tepndBtn.slideDown();\n\t\t\tsetTimeout(() => {\n\t\t\t\tepndBtn.remove();\n\t\t\t}, 510);\n\t\t}\n\t\t// Click\n\t\tepndBtn.on(\"click\", function (e) {\n\t\t\tcount = count + expand <= list ? count + expand : list;\n\t\t\t$(\"[has-expand-btn] .expand-item:lt(\" + count + \")\").slideDown();\n\t\t\t// console.log(count);\n\t\t\tif (count >= list) {\n\t\t\t\t$(this).slideUp();\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t$(this).remove();\n\t\t\t\t}, 510);\n\t\t\t}\n\t\t\te.preventDefault();\n\t\t});\n\t}\n}\n\nfunction pageNewsDetail() {\n\tif ($(\".news-detail-page\").length == 1) {\n\t\t$(\".sticky-nav-panel ul li\").clone().appendTo(\"#NewsDetail_Zone_Clone\");\n\t\t$(\".page-news-detail .full-content p img\").each(function () {\n\t\t\t$(this).closest(\"p\").addClass(\"has-image\");\n\t\t});\n\t\t$(\".page-news-detail .full-content p em\").each(function () {\n\t\t\t$(this).parent().find(\"img\").length == 1\n\t\t\t\t? $(this).closest(\"p\").addClass(\"has-image-description\")\n\t\t\t\t: false;\n\t\t});\n\t\t$(\".page-news-detail .full-content\")\n\t\t\t.children()\n\t\t\t.each(function (e) {\n\t\t\t\te++;\n\t\t\t\t$(this).addClass(\"content-line-\" + e);\n\t\t\t});\n\t}\n}\n\nfunction cssPictureMainArrow() {\n\t$(\".page-picture-main .picture-slide\").each(function (e) {\n\t\tvar x_pa_offset = $(this).find(\".swiper-pagination\").position().left;\n\t\tvar y_pa_offset = $(this).find(\".swiper-pagination\").position().top;\n\t\t// console.log(x_pa_offset, y_pa_offset);\n\t\tif (ww >= 768) {\n\t\t\t$(this)\n\t\t\t\t.find(\".slide-to-first\")\n\t\t\t\t.css(\"left\", x_pa_offset - 20);\n\t\t\t$(this)\n\t\t\t\t.find(\".slide-to-last\")\n\t\t\t\t.css(\n\t\t\t\t\t\"left\",\n\t\t\t\t\tx_pa_offset +\n\t\t\t\t\t\t$(this).find(\".swiper-pagination\").width() +\n\t\t\t\t\t\t10\n\t\t\t\t);\n\t\t} else {\n\t\t\t$(this)\n\t\t\t\t.find(\".slide-to-first\")\n\t\t\t\t.css(\"left\", x_pa_offset - 15);\n\t\t\t$(this)\n\t\t\t\t.find(\".slide-to-last\")\n\t\t\t\t.css(\n\t\t\t\t\t\"left\",\n\t\t\t\t\tx_pa_offset + $(this).find(\".swiper-pagination\").width() + 5\n\t\t\t\t);\n\t\t}\n\t});\n}\n\nfunction customSelectHtml() {\n\tvar select = $(\".select-custom\");\n\tselect.on(\"click\", function () {\n\t\t$(this).toggleClass(\"active\");\n\t\t$(this).find(\".option-list\").slideToggle();\n\t});\n\t$(document).on(\"click\", function (event) {\n\t\tvar $trigger = $(\".year-filter\");\n\t\tif ($trigger !== event.target && !$trigger.has(event.target).length) {\n\t\t\tselect.removeClass(\"active\");\n\t\t\tselect.find(\".option-list\").slideUp();\n\t\t}\n\t});\n\tif (select.find(\".value\").text() == \"\") {\n\t\tvar text = select.find(\".option-list .option\").eq(0).text();\n\t\tselect.find(\".value\").text(text);\n\t}\n}\n\nfunction customLinkPictureList() {\n\tif ($(\".picture-list__page\").length == 1) {\n\t\tvar link = $(\".sticky-nav-panel ul li\").eq(1).find(\"a\").attr(\"href\");\n\t\t$(\".back-to-page a\").attr(\"href\", link);\n\t}\n}\n\nfunction selectZoneList() {\n\tvar option = $(\".select-zone-list select\");\n\toption.change(function () {\n\t\tvar href = $(this).val();\n\t\twindow.location.href = href;\n\t\tconsole.log(href);\n\t});\n}\n\nfunction productDetailArticleImg() {\n\tif ($(\".product-detail\").length == 1) {\n\t\t$(\".product-detail .question-list .item\").each(function (e) {\n\t\t\tvar question_ctn = [];\n\t\t\tquestion_ctn[e] = \"ques_ctn\" + e;\n\t\t\t// console.log(question_ctn);\n\t\t\t$(this).closest(\".item\").attr(\"data-key\", e);\n\n\t\t\t$(this).find(\".ctn\").append(\"
\");\n\n\t\t\t$(this)\n\t\t\t\t.find(\".ctn\")\n\t\t\t\t.append(\n\t\t\t\t\t\"