{"version":3,"sources":["main.js"],"names":["$","fn","hasAttr","name","undefined","this","attr","ww","window","width","body","header","height_header","outerHeight","menu_nav","find","burger","overlay","nav_mobile","close_NB","pagesBanner","mainBanner","removeClass","mainSection","footer","btn_BackToTop","headerFunction","onScroll","length","on","scrollTop","addClass","navMobileSlide","toggleClass","cancelActiveAllThis","searchActive","setTimeout","trigger","parent","document","event","$trigger","$trigger_2","target","has","keyup","val","keyCode","keypress","n","console","log","escBtn","init","swiperInit","Swiper","spaceBetween","autoplay","delay","effect","creativeEffect","prev","shadow","translate","next","speed","observer","observeParents","pagination","el","navigation","prevEl","nextEl","each","e","breakpoints","slidesPerView","introduce_2_slide_thumb","allowTouchMove","project_detail_1_thumb","thumbs","swiper","slideChange","autoSlideNextOnThumbSlide","centeredSlides","loop","slideToClickedSlide","initSwiper","element","thumb","activeIndex","nextSlide","querySelector","prevSlide","classList","contains","slideNext","slidePrev","expandItem","hasLoadBtn","count","$this","expandBtn","list","countMobile","Number","initValue","thisFunction","expand","slice","slideDown","complete","hide","preventDefault","initCount","closest","slideUp","expandBtnInit","cmsFunc","toggleAdminCms","Set_Cookie","value","expires","path","domain","secure","today","Date","setTime","getTime","expires_date","cookie","escape","toGMTString","cmsAdminPanel","addEventListener","ShowToolbar","HideToolbar","openState","check_name","a_all_cookies","split","a_temp_cookie","cookie_value","b_cookie_found","i","replace","unescape","Get_Cookie","add","remove","mappingPagination","append","checkEditMode","is","addClassCustomPage","setHeightEqualToWidth","css","height","outerWidth","globalJS","autoFillNoImage","autoAppend","id","appendTo","get","scrollHeight","autoClone","clone","setBackground","jQuery","index","item","background","setViewPortBody","margin","scrollToTop","animate","spaceWindow","spaceLeft","padding","offset","left","parseFloat","breadcrumbStyle","wrap","counterUpNumber","counterUp","time","handleFormWebSite","changeInputToParent","prepend","text","accordion","title","content","eq","pageIntroduce","stickyNav","sticky","topSpacing","zIndex","center","scrollActive","activescroll","scroll","active","checkClickInside","pageProject","toggleFilter","pageNews","customTabslet","tabWrapper","tabLi","tabContent","tabIndex","stop","changeInputText","ready","Fancybox","bind","parentEl","forms","resize","onreadystatechange","readyState"],"mappings":"AAAAA,EAAEC,GAAGC,QAAU,SAAUC,GACxB,YAA2BC,IAApBC,KAAKC,KAAKH,EACjB,EAKD,IAAII,GAAKP,EAAEQ,QAAQC,QACfC,KAAOV,EAAE,QAETW,OAASX,EAAE,UACXY,cAAgBD,OAAOE,cACvBC,SAAWH,OAAOI,KAAK,OACvBC,OAASL,OAAOI,KAAK,WACrBE,QAAUjB,EAAE,YAEZkB,WAAalB,EAAE,eACfmB,SAAWD,WAAWH,KAAK,iBAE3BK,YAAcpB,EAAE,gBAChBqB,WAAarB,EAAE,gBAEnBA,EAAE,mBAAmBsB,YAAY,UACjC,IAAIC,YAAcvB,EAAE,QAChBwB,OAASxB,EAAE,UAGXyB,cAAgBzB,EAAE,gBAEtB,MAAM0B,eAAiB,CACtBC,SAAU,KACT,GAA0B,GAAtBP,YAAYQ,QAAoC,GAArBP,WAAWO,OAAa,CAEtD5B,EAAEQ,QAAQqB,GAAG,UAAU,WACb7B,EAAEK,MAAMyB,YACQ,IAAhBlB,eACRD,OAAOoB,SAAS,iBAChB/B,EAAE,mBAAmB+B,SAAS,mBAE9BpB,OAAOW,YAAY,iBACnBtB,EAAE,mBAAmBsB,YAAY,iBAGlC,IAEGtB,EAAEQ,QAAQsB,YAA8B,IAAhBlB,eAC3BD,OAAOoB,SAAS,gBACjB,MACApB,OAAOoB,SAAS,gBAChB,EAEFC,eAAgB,KACfhB,OAAOa,GAAG,SAAS,WAClBb,OAAOiB,YAAY,UACnBf,WAAWe,YAAY,UACvBhB,QAAQgB,YAAY,UACpBvB,KAAKuB,YAAY,OACjBtB,OAAOsB,YAAY,gBACnB,IACDd,SAASU,GAAG,SAAS,WACpBH,eAAeQ,qBACf,IACDjB,QAAQY,GAAG,SAAS,WACnBH,eAAeQ,qBACf,GAFD,EAIDA,oBAAqB,KACpBlB,OAAOM,YAAY,UACnBJ,WAAWI,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AGAQ,SAASC,KAAK,kBAAmB,CAAA,GACjCD,SAASC,KAAK,4BAA6B,CAC1CC,SAAUtL,SAASuL,MAAM,KAI1BjC,kBAAkBxI,OAElBoK,iBACA,IAEDrL,YAAW,KACVc,QAAQC,IAAIxC,OAAOE,cAAnB,GACE,KACHb,EAAEQ,QAAQuN,QAAO,WAChBnE,wBACAI,SAASc,kBACTd,SAASkB,aACT,IACDlL,EAAEQ,QAAQ6B,QAAQ,UAGlBE,SAASyL,mBAAqB,KACD,aAAxBzL,SAAS0L,aAIZtN,OAAOoB,SAAS,kBAChBR,YAAYQ,SAAS,kBACrBP,OAAOO,SAAS,kBAChB","file":"main.min.js","sourcesContent":["$.fn.hasAttr = function (name) {\n\treturn this.attr(name) !== undefined;\n};\n\n// ******* Global Variable s*******\n\n// *** Window\nvar ww = $(window).width();\nvar body = $(\"body\");\n// *** Header *** //\nvar header = $(\"header\");\nvar height_header = header.outerHeight();\nvar menu_nav = header.find(\"nav\");\nvar burger = header.find(\"#burger\");\nvar overlay = $(\"#overlay\");\n// *** Nav Moble *** //\nvar nav_mobile = $(\".nav-mobile\");\nvar close_NB = nav_mobile.find(\"#close-button\");\n// *** Banner *** //\nvar pagesBanner = $(\"#page-banner\");\nvar mainBanner = $(\"#main-banner\");\n// *** Footer *** //\n$(\".search-overlay\").removeClass(\"active\");\nvar mainSection = $(\"main\");\nvar footer = $(\"footer\");\n// *** Component *** //\n// Search\nvar btn_BackToTop = $(\"#back-to-top\");\n\nconst headerFunction = {\n\tonScroll: () => {\n\t\tif (pagesBanner.length == 1 || mainBanner.length == 1) {\n\t\t\tvar lastScrollTop = 0;\n\t\t\t$(window).on(\"scroll\", function () {\n\t\t\t\tvar st = $(this).scrollTop();\n\t\t\t\tif (st > height_header * 1.3) {\n\t\t\t\t\theader.addClass(\"header-scroll\");\n\t\t\t\t\t$(\".search-overlay\").addClass(\"header-scroll\");\n\t\t\t\t} else {\n\t\t\t\t\theader.removeClass(\"header-scroll\");\n\t\t\t\t\t$(\".search-overlay\").removeClass(\"header-scroll\");\n\t\t\t\t}\n\t\t\t\t// removeSearch();\n\t\t\t});\n\t\t\t// On load\n\t\t\tif ($(window).scrollTop() > height_header * 1.3)\n\t\t\t\theader.addClass(\"header-scroll\");\n\t\t} else {\n\t\t\theader.addClass(\"header-scroll\");\n\t\t}\n\t},\n\tnavMobileSlide: () => {\n\t\tburger.on(\"click\", function () {\n\t\t\tburger.toggleClass(\"active\");\n\t\t\tnav_mobile.toggleClass(\"active\");\n\t\t\toverlay.toggleClass(\"active\");\n\t\t\tbody.toggleClass(\"ovh\");\n\t\t\theader.toggleClass(\"navMobileOpen\");\n\t\t});\n\t\tclose_NB.on(\"click\", function () {\n\t\t\theaderFunction.cancelActiveAllThis();\n\t\t});\n\t\toverlay.on(\"click\", function () {\n\t\t\theaderFunction.cancelActiveAllThis();\n\t\t});\n\t},\n\tcancelActiveAllThis: () => {\n\t\tburger.removeClass(\"active\");\n\t\tnav_mobile.removeClass(\"active\");\n\t\toverlay.removeClass(\"active\");\n\t\tbody.removeClass(\"ovh\");\n\t\theader.removeClass(\"navMobileOpen\");\n\t},\n\tsearchActive: () => {\n\t\t//\n\t\t$(\".search-icon\").on(\"click\", function () {\n\t\t\t$(\".search-overlay\").addClass(\"active\");\n\t\t\theader.addClass(\"search-overlay-active\");\n\t\t\tsetTimeout(() => {\n\t\t\t\t$(\".search-overlay .searchbox input\").trigger(\"focus\");\n\t\t\t}, 500);\n\t\t\tbody.addClass(\"ovh\");\n\t\t});\n\t\t$(\".search-overlay .searchbox input\").on(\"focus\", function () {\n\t\t\t$(this).parent().addClass(\"active\");\n\t\t});\n\t\t$(\".search-overlay .searchbox input\").on(\"focusout\", function () {\n\t\t\t$(this).parent().removeClass(\"active\");\n\t\t});\n\t\t$(document).on(\"click\", function (event) {\n\t\t\tvar $trigger = $(\"header\");\n\t\t\tvar $trigger_2 = $(\".search-overlay .searchbox\");\n\t\t\tif (\n\t\t\t\t$trigger !== event.target &&\n\t\t\t\t!$trigger.has(event.target).length &&\n\t\t\t\t$trigger_2 !== event.target &&\n\t\t\t\t!$trigger_2.has(event.target).length\n\t\t\t) {\n\t\t\t\t$(\".search-overlay\").removeClass(\"active\");\n\t\t\t\theader.removeClass(\"search-overlay-active\");\n\t\t\t\tbody.removeClass(\"ovh\");\n\t\t\t}\n\t\t});\n\t\t$(\".search-overlay input\").keyup(function () {\n\t\t\t$(\".search-overlay\").addClass(\"input-change\");\n\t\t\tif ($(this).val() == \"\") {\n\t\t\t\t$(\".search-overlay\").removeClass(\"input-change\");\n\t\t\t}\n\t\t});\n\t\t// Press ESC to close Search\n\t\tsetTimeout(() => {\n\t\t\t$(window).on(\"keyup\", function (event) {\n\t\t\t\tvar e = event.keyCode;\n\t\t\t\tif (e == 27) {\n\t\t\t\t\t$(\".search-overlay\").removeClass(\"active\");\n\t\t\t\t\theader.removeClass(\"search-overlay-active\");\n\t\t\t\t\tbody.removeClass(\"ovh\");\n\t\t\t\t}\n\t\t\t});\n\t\t}, 500);\n\n\t\t// Trigger click with 2 button\n\t\t$(\".search-overlay .searchbox input[type='text']\").keypress(function (\n\t\t\tn\n\t\t) {\n\t\t\tif (n.keyCode == 13)\n\t\t\t\t$(\".searchbox button\").trigger(\"click\"), console.log(\"click\");\n\t\t});\n\t},\n\tescBtn: () => {\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\tnav_mobile.removeClass(\"active\");\n\t\t\t\theader.removeClass(\"blur-content\");\n\t\t\t\tburger.removeClass(\"active\");\n\t\t\t\toverlay.removeClass(\"active\");\n\t\t\t\tbody.removeClass(\"ovh\");\n\t\t\t\theader.removeClass(\"navMobileOpen\");\n\t\t\t}\n\t\t});\n\t},\n\tinit: () => {\n\t\theaderFunction.onScroll();\n\t\theaderFunction.navMobileSlide();\n\t\theaderFunction.searchActive();\n\t\theaderFunction.escBtn();\n\t},\n};\n\n// *** Video Variable\nfunction swiperInit() {\n\tvar main_banner = new Swiper(\"#main-banner .swiper\", {\n\t\tspaceBetween: 0,\n\t\tautoplay: {\n\t\t\tdelay: 4500,\n\t\t},\n\t\teffect: \"creative\",\n\t\tcreativeEffect: {\n\t\t\tprev: {\n\t\t\t\tshadow: true,\n\t\t\t\ttranslate: [\"-20%\", 0, -1],\n\t\t\t},\n\t\t\tnext: {\n\t\t\t\ttranslate: [\"100%\", 0, 0],\n\t\t\t},\n\t\t},\n\t\tspeed: 500,\n\t\tobserver: true,\n\t\tobserveParents: true,\n\t\tpagination: {\n\t\t\tel: \"#main-banner .swiper-pagination\",\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\t// **** Index **** //\n\t$(\".index-2-slide\").each(function (e) {\n\t\t$(this).addClass(`index-2-slide-id-${e}`);\n\t\tvar index_2 = new Swiper(`.index-2-slide-id-${e} .swiper`, {\n\t\t\tbreakpoints: {\n\t\t\t\t1280: {\n\t\t\t\t\tslidesPerView: 3,\n\t\t\t\t\tspaceBetween: 30,\n\t\t\t\t},\n\t\t\t\t1024: {\n\t\t\t\t\tslidesPerView: 3,\n\t\t\t\t\tspaceBetween: 20,\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: 1,\n\t\t\t\t\tspaceBetween: 15,\n\t\t\t\t},\n\t\t\t},\n\t\t\tspeed: 500,\n\t\t\tobserver: true,\n\t\t\tobserveParents: true,\n\t\t\tnavigation: {\n\t\t\t\tprevEl: `.index-2-slide-id-${e} .swiper-button-prev`,\n\t\t\t\tnextEl: `.index-2-slide-id-${e} .swiper-button-next`,\n\t\t\t},\n\t\t});\n\t});\n\t$(\".index-3-slide\").each(function (e) {\n\t\t$(this).addClass(`index-3-slide-id-${e}`);\n\t\tvar index_2 = new Swiper(`.index-3-slide-id-${e} .swiper`, {\n\t\t\tbreakpoints: {\n\t\t\t\t1280: {\n\t\t\t\t\tslidesPerView: 4,\n\t\t\t\t\tspaceBetween: 30,\n\t\t\t\t},\n\t\t\t\t1024: {\n\t\t\t\t\tslidesPerView: 3,\n\t\t\t\t\tspaceBetween: 20,\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: 1,\n\t\t\t\t\tspaceBetween: 15,\n\t\t\t\t},\n\t\t\t},\n\t\t\tspeed: 500,\n\t\t\tobserver: true,\n\t\t\tobserveParents: true,\n\t\t\tnavigation: {\n\t\t\t\tprevEl: `.index-3-slide-id-${e} .swiper-button-prev`,\n\t\t\t\tnextEl: `.index-3-slide-id-${e} .swiper-button-next`,\n\t\t\t},\n\t\t});\n\t});\n\n\t// **** Introduce **** //\n\tvar introduce_2_slide_thumb = new Swiper(\n\t\t\".introduce-2-slide .thumb .swiper\",\n\t\t{\n\t\t\tspeed: 500,\n\t\t\tobserver: true,\n\t\t\tobserveParents: true,\n\t\t\tallowTouchMove: false,\n\t\t\tbreakpoints: {\n\t\t\t\t1280: {\n\t\t\t\t\tspaceBetween: 0,\n\t\t\t\t\tslidesPerView: 6,\n\t\t\t\t},\n\t\t\t\t1024: {\n\t\t\t\t\tspaceBetween: 30,\n\t\t\t\t\tslidesPerView: 5,\n\t\t\t\t},\n\t\t\t\t576: {\n\t\t\t\t\tspaceBetween: 15,\n\t\t\t\t\tslidesPerView: 5,\n\t\t\t\t},\n\t\t\t\t320: {\n\t\t\t\t\tslidesPerView: 4,\n\t\t\t\t\tspaceBetween: 10,\n\t\t\t\t},\n\t\t\t},\n\t\t}\n\t);\n\tvar introduce_2_slide_main = new Swiper(\n\t\t\".introduce-2-slide .main .swiper\",\n\t\t{\n\t\t\tspeed: 500,\n\t\t\tobserver: true,\n\t\t\tobserveParents: true,\n\t\t\tspaceBetween: 0,\n\t\t\tthumbs: {\n\t\t\t\tswiper: introduce_2_slide_thumb,\n\t\t\t},\n\t\t\tnavigation: {\n\t\t\t\tprevEl: \".introduce-2-slide .swiper-button-prev\",\n\t\t\t\tnextEl: \".introduce-2-slide .swiper-button-next\",\n\t\t\t},\n\t\t\ton: {\n\t\t\t\tslideChange: function () {\n\t\t\t\t\t//\n\t\t\t\t\tautoSlideNextOnThumbSlide(\n\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\".introduce-2-slide\",\n\t\t\t\t\t\t\".thumb\"\n\t\t\t\t\t);\n\t\t\t\t},\n\t\t\t},\n\t\t}\n\t);\n\n\t// **** Product **** //\n\tvar linhvuc_detail = new Swiper(\".linhvuc-detail .swiper\", {\n\t\tspaceBetween: 0,\n\t\tautoplay: {\n\t\t\tdelay: 4500,\n\t\t},\n\t\teffect: \"creative\",\n\t\tcreativeEffect: {\n\t\t\tprev: {\n\t\t\t\tshadow: true,\n\t\t\t\ttranslate: [\"-20%\", 0, -1],\n\t\t\t},\n\t\t\tnext: {\n\t\t\t\ttranslate: [\"100%\", 0, 0],\n\t\t\t},\n\t\t},\n\t\tspeed: 500,\n\t\tobserver: true,\n\t\tobserveParents: true,\n\t\tpagination: {\n\t\t\tel: \".linhvuc-detail .swiper-pagination\",\n\t\t},\n\t\tnavigation: {\n\t\t\tprevEl: \".linhvuc-detail .swiper-button-prev\",\n\t\t\tnextEl: \".linhvuc-detail .swiper-button-next\",\n\t\t},\n\t});\n\tvar product_other = new Swiper(\".linhvuc-other-relative .swiper\", {\n\t\tspeed: 500,\n\t\tnavigation: {\n\t\t\tprevEl: \".linhvuc-other-relative .swiper-button-prev\",\n\t\t\tnextEl: \".linhvuc-other-relative .swiper-button-next\",\n\t\t},\n\t\tbreakpoints: {\n\t\t\t1280: {\n\t\t\t\tslidesPerView: 3,\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: 20,\n\t\t\t},\n\t\t\t576: {\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: 15,\n\t\t\t},\n\t\t},\n\t});\n\n\t// **** Project **** //\n\tvar project_detail_1_thumb = new Swiper(\n\t\t\".project-detail-1 .thumb .swiper\",\n\t\t{\n\t\t\tspeed: 500,\n\t\t\tobserver: true,\n\t\t\tobserveParents: true,\n\t\t\tallowTouchMove: false,\n\t\t\tbreakpoints: {\n\t\t\t\t1280: {\n\t\t\t\t\tspaceBetween: 30,\n\t\t\t\t\tslidesPerView: 4,\n\t\t\t\t},\n\t\t\t\t1024: {\n\t\t\t\t\tspaceBetween: 20,\n\t\t\t\t\tslidesPerView: 4,\n\t\t\t\t},\n\t\t\t\t576: {\n\t\t\t\t\tspaceBetween: 10,\n\t\t\t\t\tslidesPerView: 4,\n\t\t\t\t},\n\t\t\t\t320: {\n\t\t\t\t\tslidesPerView: 3,\n\t\t\t\t\tspaceBetween: 10,\n\t\t\t\t},\n\t\t\t},\n\t\t}\n\t);\n\tvar project_detail_1_main = new Swiper(\".project-detail-1 .main .swiper\", {\n\t\tspeed: 500,\n\t\tobserver: true,\n\t\tobserveParents: true,\n\t\tspaceBetween: 0,\n\t\tthumbs: {\n\t\t\tswiper: project_detail_1_thumb,\n\t\t},\n\t\tnavigation: {\n\t\t\tprevEl: \".project-detail-1 .swiper-button-prev\",\n\t\t\tnextEl: \".project-detail-1 .swiper-button-next\",\n\t\t},\n\t\ton: {\n\t\t\tslideChange: function () {\n\t\t\t\t//\n\t\t\t\tautoSlideNextOnThumbSlide(this, \".project-detail-1\", \".thumb\");\n\t\t\t},\n\t\t},\n\t});\n\tvar project_detail_place = new Swiper(\".project-place .swiper\", {\n\t\tspeed: 500,\n\t\tobserver: true,\n\t\tobserveParents: true,\n\t\tcenteredSlides: true,\n\t\t// initialSlide: 1,\n\t\tloop: true,\n\t\tallowTouchMove: false,\n\t\tslideToClickedSlide: true,\n\t\tbreakpoints: {\n\t\t\t1280: {\n\t\t\t\tspaceBetween: 50,\n\t\t\t\tslidesPerView: 3,\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tspaceBetween: 30,\n\t\t\t\tslidesPerView: 3,\n\t\t\t},\n\t\t\t576: {\n\t\t\t\tspaceBetween: 15,\n\t\t\t\tslidesPerView: 3,\n\t\t\t},\n\t\t\t320: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t\tspaceBetween: 10,\n\t\t\t},\n\t\t},\n\t\tnavigation: {\n\t\t\tprevEl: \".project-place .swiper-button-prev\",\n\t\t\tnextEl: \".project-place .swiper-button-next\",\n\t\t},\n\t});\n\tvar project_detail_2_1 = new Swiper(\".pjd-2-slide-1 .swiper\", {\n\t\tspeed: 500,\n\t\tobserver: true,\n\t\tobserveParents: true,\n\t\tnavigation: {\n\t\t\tprevEl: \".pjd-2-slide-1 .swiper-button-prev\",\n\t\t\tnextEl: \".pjd-2-slide-1 .swiper-button-next\",\n\t\t},\n\t\tbreakpoints: {\n\t\t\t1280: { spaceBetween: 110 },\n\n\t\t\t320: {\n\t\t\t\tspaceBetween: 30,\n\t\t\t},\n\t\t},\n\t});\n\tvar project_detail_2_2 = new Swiper(\".pjd-2-slide-2 .swiper\", {\n\t\tspaceBetween: 110,\n\t\tspeed: 500,\n\t\tobserver: true,\n\t\tobserveParents: true,\n\n\t\tnavigation: {\n\t\t\tprevEl: \".pjd-2-slide-2 .swiper-button-prev\",\n\t\t\tnextEl: \".pjd-2-slide-2 .swiper-button-next\",\n\t\t},\n\t\tbreakpoints: {\n\t\t\t1280: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t\tspaceBetween: 30,\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t\tspaceBetween: 20,\n\t\t\t},\n\t\t\t576: {\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.2,\n\t\t\t\tspaceBetween: 10,\n\t\t\t},\n\t\t},\n\t});\n\t$(\".pjd-3-slide\").each(function (e) {\n\t\t$(this).addClass(`pjd-3-slide-id-${e}`);\n\t\tvar project_detail_3 = new Swiper(`.pjd-3-slide-id-${e} .swiper`, {\n\t\t\tspaceBetween: 0,\n\t\t\tautoplay: {\n\t\t\t\tdelay: 4500,\n\t\t\t},\n\t\t\teffect: \"creative\",\n\t\t\tcreativeEffect: {\n\t\t\t\tprev: {\n\t\t\t\t\tshadow: true,\n\t\t\t\t\ttranslate: [\"-20%\", 0, -1],\n\t\t\t\t},\n\t\t\t\tnext: {\n\t\t\t\t\ttranslate: [\"100%\", 0, 0],\n\t\t\t\t},\n\t\t\t},\n\t\t\tspeed: 500,\n\t\t\tobserver: true,\n\t\t\tobserveParents: true,\n\t\t\tpagination: {\n\t\t\t\tel: `.pjd-3-slide-id-${e} .swiper-pagination`,\n\t\t\t},\n\t\t\tnavigation: {\n\t\t\t\tprevEl: `.pjd-3-slide-id-${e} .swiper-button-prev`,\n\t\t\t\tnextEl: `.pjd-3-slide-id-${e} .swiper-button-next`,\n\t\t\t},\n\t\t});\n\t});\n\tvar project_detail_4 = new Swiper(\".pjd-4-slide .swiper\", {\n\t\tspeed: 500,\n\t\tobserver: true,\n\t\tobserveParents: true,\n\t\tbreakpoints: {\n\t\t\t1280: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t\tspaceBetween: 30,\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t\tspaceBetween: 20,\n\t\t\t},\n\t\t\t576: {\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.2,\n\t\t\t\tspaceBetween: 10,\n\t\t\t},\n\t\t},\n\t\tnavigation: {\n\t\t\tprevEl: \".pjd-4-slide .swiper-button-prev\",\n\t\t\tnextEl: \".pjd-4-slide .swiper-button-next\",\n\t\t},\n\t});\n}\n\nfunction autoSlideNextOnThumbSlide(initSwiper, element, thumb) {\n\tlet activeIndex = initSwiper.activeIndex + 1;\n\tlet activeSlide = document.querySelector(\n\t\t`${element} ${thumb} .swiper-slide:nth-child(${activeIndex})`\n\t);\n\tlet nextSlide = document.querySelector(\n\t\t`${element} ${thumb} .swiper-slide:nth-child(${activeIndex + 1})`\n\t);\n\tlet prevSlide = document.querySelector(\n\t\t`${element} ${thumb} .swiper-slide:nth-child(${activeIndex - 1})`\n\t);\n\n\tif (nextSlide && !nextSlide.classList.contains(\"swiper-slide-visible\")) {\n\t\tinitSwiper.thumbs.swiper.slideNext();\n\t} else if (\n\t\tprevSlide &&\n\t\t!prevSlide.classList.contains(\"swiper-slide-visible\")\n\t) {\n\t\tinitSwiper.thumbs.swiper.slidePrev();\n\t}\n}\n\nfunction expandItem() {\n\t// Filter Load\n\tvar hasLoadBtn = $(\"[has-expand-btn]\");\n\thasLoadBtn.each(function () {\n\t\tvar $this = $(this);\n\t\tvar expandBtn = $(this).find(\".expand-btn\");\n\t\tvar list = $(this).find(\".expand-item\").length;\n\t\tvar count;\n\t\tvar countMobile = $(this).attr(\"item-count-mobile\");\n\t\tcountMobile != undefined && countMobile != 0 && ww < 576\n\t\t\t? (count = Number($(this).attr(\"item-count-mobile\")))\n\t\t\t: (count = Number($(this).attr(\"item-count\")));\n\t\tvar expand = Number($(this).attr(\"item-expand\"));\n\n\t\t//=// Init\n\t\tfunction init(initValue, thisFunction) {\n\t\t\tif (list >= initValue) {\n\t\t\t\tthisFunction\n\t\t\t\t\t.find(\".expand-item\")\n\t\t\t\t\t.slice(0, initValue)\n\t\t\t\t\t.slideDown({\n\t\t\t\t\t\tcomplete: function () {\n\t\t\t\t\t\t\t$(this).addClass(\"done-animated\");\n\t\t\t\t\t\t},\n\t\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tthisFunction.find(\".expand-item\").slideDown();\n\t\t\t\tthisFunction.find(\".expand-item\").addClass(\"done-animated\");\n\t\t\t}\n\t\t\tif (list == 0 || list <= initValue) {\n\t\t\t\texpandBtn.hide();\n\t\t\t}\n\t\t}\n\t\tinit(count, $this);\n\n\t\t// Click\n\t\tfunction expandBtnInit(initCount, thisFunction) {\n\t\t\tcount = initCount + expand <= list ? initCount + expand : list;\n\t\t\tthisFunction\n\t\t\t\t.closest(hasLoadBtn)\n\t\t\t\t.find(\".expand-item\")\n\t\t\t\t.slice(0, count)\n\t\t\t\t.slideDown({\n\t\t\t\t\tcomplete: function () {\n\t\t\t\t\t\t$(this).addClass(\"done-animated\");\n\t\t\t\t\t},\n\t\t\t\t});\n\t\t\t// console.log(count);\n\t\t\tif (count == list) {\n\t\t\t\tthisFunction.slideUp();\n\t\t\t}\n\t\t}\n\t\texpandBtn.on(\"click\", function (e) {\n\t\t\te.preventDefault();\n\t\t\texpandBtnInit(count, $(this));\n\t\t});\n\t});\n}\n\nconst cmsFunc = {\n\ttoggleAdminCms: () => {\n\t\tfunction Get_Cookie(check_name) {\n\t\t\tvar a_all_cookies = document.cookie.split(\";\");\n\t\t\tvar a_temp_cookie = \"\";\n\t\t\tvar cookie_name = \"\";\n\t\t\tvar cookie_value = \"\";\n\t\t\tvar b_cookie_found = false;\n\t\t\tvar i = \"\";\n\t\t\tfor (i = 0; i < a_all_cookies.length; i++) {\n\t\t\t\ta_temp_cookie = a_all_cookies[i].split(\"=\");\n\t\t\t\tcookie_name = a_temp_cookie[0].replace(/^\\s+|\\s+$/g, \"\");\n\t\t\t\tif (cookie_name == check_name) {\n\t\t\t\t\tb_cookie_found = true;\n\t\t\t\t\tif (a_temp_cookie.length > 1) {\n\t\t\t\t\t\tcookie_value = unescape(\n\t\t\t\t\t\t\ta_temp_cookie[1].replace(/^\\s+|\\s+$/g, \"\")\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\treturn cookie_value;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\ta_temp_cookie = null;\n\t\t\t\tcookie_name = \"\";\n\t\t\t}\n\t\t\tif (!b_cookie_found) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\tfunction Set_Cookie(name, value, expires, path, domain, secure) {\n\t\t\tvar today = new Date();\n\t\t\ttoday.setTime(today.getTime());\n\t\t\tif (expires) {\n\t\t\t\texpires = expires * 1000 * 60 * 60 * 24;\n\t\t\t}\n\t\t\tvar expires_date = new Date(today.getTime() + expires);\n\t\t\tdocument.cookie =\n\t\t\t\tname +\n\t\t\t\t\"=\" +\n\t\t\t\tescape(value) +\n\t\t\t\t(expires ? \";expires=\" + expires_date.toGMTString() : \"\") +\n\t\t\t\t(path ? \";path=\" + path : \"\") +\n\t\t\t\t(domain ? \";domain=\" + domain : \"\") +\n\t\t\t\t(secure ? \";secure\" : \"\");\n\t\t}\n\t\tvar cmsAdminPanel = document.querySelector(\".cmsadminpanel\");\n\t\tvar cmsAdminPanelBtn = document.querySelector(\n\t\t\t\".cmsadminpanel .btn-toggle\"\n\t\t);\n\t\tcmsAdminPanelBtn.addEventListener(\"click\", function (e) {\n\t\t\te.preventDefault();\n\t\t\tif (\n\t\t\t\te.target.closest(\".cmsadminpanel\").classList.contains(\"active\")\n\t\t\t) {\n\t\t\t\tShowToolbar();\n\t\t\t\tSet_Cookie(\"toolbarOpenState\", \"open\");\n\t\t\t} else {\n\t\t\t\tHideToolbar();\n\t\t\t\tSet_Cookie(\"toolbarOpenState\", \"closed\");\n\t\t\t}\n\t\t});\n\t\tvar openState = Get_Cookie(\"toolbarOpenState\");\n\t\tif (openState != null) {\n\t\t\tif (openState == \"closed\") {\n\t\t\t\tHideToolbar();\n\t\t\t}\n\t\t\tif (openState == \"open\") {\n\t\t\t\tShowToolbar();\n\t\t\t}\n\t\t}\n\n\t\tfunction HideToolbar() {\n\t\t\tcmsAdminPanel.classList.add(\"active\");\n\t\t}\n\n\t\tfunction ShowToolbar() {\n\t\t\tcmsAdminPanel.classList.remove(\"active\");\n\t\t}\n\t},\n\tpagination: () => {\n\t\t$(\".modulepager .pagination\")\n\t\t\t.find(\"a.NextPage, a.LastPage, a.BackPage, a.FirstPage\")\n\t\t\t.parent()\n\t\t\t.hide();\n\t},\n\tmappingPagination: () => {\n\t\t$(\".pages.newspager,.pages.productpager\").each(function () {\n\t\t\t$(this).prev(\".section\").append(this);\n\t\t});\n\t\tif ($(\".homepage\").length == 1) {\n\t\t\t$(\".pages.newspager\").remove();\n\t\t}\n\t},\n\tcheckEditMode: () => {\n\t\tif ($(\".cmsadminpanel\").length == 1) {\n\t\t\tif (\n\t\t\t\t$(\".cmsadminpanel .ddviewmode option[value='Edit']\").is(\n\t\t\t\t\t\":selected\"\n\t\t\t\t)\n\t\t\t) {\n\t\t\t\t$(\"body\").addClass(\"editmode\");\n\t\t\t}\n\t\t}\n\t},\n\taddClassCustomPage: () => {\n\t\tif ($(\".news-article\").length == 1)\n\t\t\t$(\"body\").addClass(\"news-detail__page\");\n\t},\n\tinit: () => {\n\t\t// cmsFunc.toggleAdminCms();\n\t\tcmsFunc.pagination();\n\t\tcmsFunc.mappingPagination();\n\t\tcmsFunc.checkEditMode();\n\t\tcmsFunc.addClassCustomPage();\n\t},\n};\n\nfunction setHeightEqualToWidth() {\n\tvar widthItem = $(\"[widthEqualHeight]\");\n\twidthItem.each(function () {\n\t\t$(this).css({\n\t\t\theight: $(this).outerWidth(),\n\t\t});\n\t});\n}\n\nconst globalJS = {\n\tautoFillNoImage: () => {\n\t\tsetTimeout(() => {\n\t\t\t$(\"img\").each(function () {\n\t\t\t\tif ($(this).hasAttr(\"data-src\")) {\n\t\t\t\t\tif ($(this).attr(\"data-src\") === \"\") {\n\t\t\t\t\t\t$(this).attr(\"data-src\", \"/no-image.png\");\n\t\t\t\t\t\t$(this).attr(\"src\", \"/no-image.png\");\n\t\t\t\t\t\t$(this).addClass(\"noImage\");\n\t\t\t\t\t}\n\t\t\t\t} else if ($(this).hasAttr(\"src\")) {\n\t\t\t\t\tif ($(this).attr(\"src\") === \"\") {\n\t\t\t\t\t\t$(this).attr(\"src\", \"/no-image.png\");\n\t\t\t\t\t\t$(this).addClass(\"noImage\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}, 150);\n\t},\n\tautoAppend: () => {\n\t\tvar appendId = $(\"[id*='autoAppend-']\");\n\t\tappendId.each(function (e) {\n\t\t\tvar id = $(this).attr(\"id\").slice(11);\n\t\t\t// console.log(id);\n\t\t\t$(this).appendTo(\"[id*='autoAppendHere-\" + id + \"']\");\n\t\t\tvar curHeight = $(this).get(0).scrollHeight;\n\t\t});\n\t},\n\tautoClone: () => {\n\t\tvar cloneId = $(\"[id*='autoClone-']\");\n\t\tcloneId.each(function (e) {\n\t\t\tvar id = $(this).attr(\"id\").slice(10);\n\t\t\t// console.log(id);\n\t\t\t$(this)\n\t\t\t\t.clone()\n\t\t\t\t.appendTo(\"[id*='autoCloneHere-\" + id + \"']\");\n\t\t});\n\t},\n\tsetBackground: () => {\n\t\tvar position = [\"\", \"top\", \"left\", \"right\", \"bottom\"];\n\t\tjQuery.each(position, function (index, item) {\n\t\t\t//\n\t\t\t//\n\t\t\t$(`[setBackground${item}]`).each(function () {\n\t\t\t\tvar background = $(this).attr(\"setBackground\" + item);\n\t\t\t\t$(this).css({\n\t\t\t\t\t\"background-size\": \"cover\",\n\t\t\t\t\t\"background-position\": `${item} center`,\n\t\t\t\t\t\"background-image\": `url(${background})`,\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\t},\n\tsetViewPortBody: () => {\n\t\tbody.css({\n\t\t\t\"max-width\": \"100vw\",\n\t\t\tmargin: \"0 auto\",\n\t\t\t\"overflow-x\": \"hidden\",\n\t\t});\n\t},\n\tscrollToTop: () => {\n\t\t$(window).on(\"scroll\", function () {\n\t\t\tif (mainBanner.length == 1 || pagesBanner.length == 1) {\n\t\t\t\tif (\n\t\t\t\t\t$(this).scrollTop() >= mainBanner.outerHeight() ||\n\t\t\t\t\t$(this).scrollTop() >= pagesBanner.outerHeight()\n\t\t\t\t) {\n\t\t\t\t\t$(\"#fixed-tool\").addClass(\"active\");\n\t\t\t\t} else {\n\t\t\t\t\t$(\"#fixed-tool\").removeClass(\"active\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($(this).scrollTop() >= height_header * 1.3) {\n\t\t\t\t\t$(\"#fixed-tool\").addClass(\"active\");\n\t\t\t\t} else {\n\t\t\t\t\t$(\"#fixed-tool\").removeClass(\"active\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t$(\"#scroll-to-top\").on(\"click\", function () {\n\t\t\t$(\"html,body\").animate({\n\t\t\t\tscrollTop: 0,\n\t\t\t});\n\t\t});\n\t},\n\tspaceWindow: () => {\n\t\tvar spaceLeft = $(\"[space-left]\");\n\t\tvar padding = $(\".container.max-w-screen-2xl\").css(\"padding-left\");\n\t\tif (ww >= 1280)\n\t\t\tspaceLeft.each(function (e) {\n\t\t\t\t$(this).css({\n\t\t\t\t\t\"margin-left\":\n\t\t\t\t\t\t$(\".container.max-w-screen-2xl\").offset().left +\n\t\t\t\t\t\tparseFloat(padding),\n\t\t\t\t});\n\t\t\t});\n\t},\n\tbreadcrumbStyle: () => {\n\t\tif (pagesBanner.length == 1) {\n\t\t\t$(\".global-breadcrumb\").appendTo(pagesBanner.find(\".page-banner\"));\n\t\t} else {\n\t\t\t$(\".global-breadcrumb\").wrap(\"
\");\n\t\t}\n\t},\n\tinit: () => {\n\t\tglobalJS.autoFillNoImage();\n\t\tglobalJS.autoAppend();\n\t\tglobalJS.autoClone();\n\t\tglobalJS.setBackground();\n\t\tglobalJS.setViewPortBody();\n\t\tglobalJS.scrollToTop();\n\t\tglobalJS.spaceWindow();\n\t\tglobalJS.breadcrumbStyle();\n\t},\n};\n\nfunction counterUpNumber() {\n\t$(\".counter\").counterUp({\n\t\tdelay: 10,\n\t\ttime: 1000,\n\t});\n}\n\nconst handleFormWebSite = {\n\tchangeInputToParent: () => {\n\t\t$(\".btn.btn-1 input[type='submit'\").each(function () {\n\t\t\t$(this).parent().prepend($(this).val());\n\t\t\t$(this).closest(\".box-form\").attr(\"form-text\", $(this).val());\n\t\t});\n\t\t$(document).on(\"click\", \".rcRefreshImage\", function () {\n\t\t\tsetTimeout(() => {\n\t\t\t\t$(\".wrap-form .frm-btn\").text($(\".box-form\").attr(\"form-text\"));\n\t\t\t\tconsole.log($(this));\n\t\t\t}, 150);\n\t\t});\n\t},\n\tinit: () => {\n\t\t// handleFormWebSite.changeInputToParent();\n\t},\n};\n\nfunction accordion() {\n\tvar item = $(\".accordion-item\");\n\tvar title = $(\".accordion-title\");\n\tvar content = $(\".accordion-content\");\n\tvar active = $(\"accordion-item.active\");\n\ttitle.on(\"click\", function () {\n\t\tif ($(this).closest(item).is(\".active\")) {\n\t\t\t$(this).closest(item).removeClass(\"active\");\n\t\t\t$(this).closest(item).find(content).slideUp();\n\t\t} else {\n\t\t\ttitle.closest(item).removeClass(\"active\");\n\t\t\ttitle.closest(item).find(content).slideUp();\n\t\t\t$(this).closest(item).addClass(\"active\");\n\t\t\t$(this).closest(item).find(content).slideDown();\n\t\t}\n\t});\n\t// Onload\n\titem.eq(0).addClass(\"active\");\n\titem.eq(0).find(content).slideDown();\n}\n\nconst pageIntroduce = {\n\tstickyNav: () => {\n\t\t$(\".introduce-nav nav\").sticky({\n\t\t\ttopSpacing: header.outerHeight(),\n\t\t\tzIndex: 100,\n\t\t\tcenter: true,\n\t\t});\n\t},\n\tscrollActive: () => {\n\t\tif ($(\".introduce-nav\").length == 1) {\n\t\t\t$(\".introduce-nav nav\").activescroll({\n\t\t\t\tscroll: \"scroll\",\n\t\t\t\tactive: \"active\",\n\t\t\t\toffset: height_header + 30,\n\t\t\t\tanimate: 500,\n\t\t\t});\n\t\t}\n\t},\n\tinit: () => {\n\t\tpageIntroduce.stickyNav();\n\t\tpageIntroduce.scrollActive();\n\t},\n};\n\nconst checkClickInside = (element) => {\n\t$(document).on(\"click\", function (e) {\n\t\tif (!$(element).is(e.target) && $(element).has(e.target).length === 0) {\n\t\t\t$(element).removeClass(\"clickInside\");\n\t\t\t$(element).find(\"ul\").slideUp();\n\t\t} else {\n\t\t\t$(element).addClass(\"clickInside\");\n\t\t\t$(element).find(\"ul\").slideDown();\n\t\t}\n\t});\n};\n\nconst pageProject = {\n\ttoggleFilter: () => {\n\t\tcheckClickInside(\".project-type\");\n\t},\n\tinit: () => {\n\t\tpageProject.toggleFilter();\n\t},\n};\n\nconst pageNews = {\n\ttoggleFilter: () => {\n\t\tvar item = $(\".news-list-nav .nav-mobile\");\n\t\t$(\".news-list-nav .nav-mobile .closeNavNews\").on(\"click\", function () {\n\t\t\t$(this).toggleClass(\"active\");\n\t\t\t$(this).closest(\".nav-mobile\").toggleClass(\"active\");\n\t\t});\n\n\t\t$(document).on(\"click\", function (e) {\n\t\t\tif (!item.is(e.target) && item.has(e.target).length === 0) {\n\t\t\t\t$(\".news-list-nav .nav-mobile\").removeClass(\"active\");\n\t\t\t\t$(\".news-list-nav .nav-mobile .closeNavNews\").removeClass(\n\t\t\t\t\t\"active\"\n\t\t\t\t);\n\t\t\t}\n\t\t});\n\t},\n\tinit: () => {\n\t\tpageNews.toggleFilter();\n\t},\n};\n\nconst customTabslet = () => {\n\tvar tabWrapper = $(\"[custom-tab]\");\n\tvar tabLi = tabWrapper.find(\".custom-tab li\");\n\tvar tabContent = tabWrapper.find(\".custom-tabcontent\");\n\ttabWrapper.each(function () {\n\t\t$(this)\n\t\t\t.find(\".custom-tab li\")\n\t\t\t.each(function (e) {\n\t\t\t\t$(this).attr(\"tab-index\", e + 1);\n\t\t\t});\n\t});\n\ttabContent.each(function (e) {\n\t\t$(this)\n\t\t\t.find(\".tab-content\")\n\t\t\t.each(function (n) {\n\t\t\t\t$(this).attr(\"tab-content-index\", n + 1);\n\t\t\t});\n\t});\n\ttabLi.on(\"click\", function () {\n\t\tif ($(this).is(\".active\")) {\n\t\t\t$(this)\n\t\t\t\t.closest(\"[custom-tab]\")\n\t\t\t\t.find(\".custom-tabcontent\")\n\t\t\t\t.each(function () {\n\t\t\t\t\t$(this)\n\t\t\t\t\t\t.find(\".tab-content\")\n\t\t\t\t\t\t.eq(tabIndex - 1)\n\t\t\t\t\t\t.addClass(\"active\");\n\t\t\t\t\t$(this)\n\t\t\t\t\t\t.find(\".tab-content\")\n\t\t\t\t\t\t.eq(tabIndex - 1)\n\t\t\t\t\t\t.stop();\n\t\t\t\t});\n\t\t} else {\n\t\t\t$(this)\n\t\t\t\t.closest(\"[custom-tab]\")\n\t\t\t\t.find(\".custom-tab li\")\n\t\t\t\t.removeClass(\"active\");\n\t\t\t$(this).addClass(\"active\");\n\t\t\tvar tabIndex = $(this).attr(\"tab-index\");\n\t\t\t$(this)\n\t\t\t\t.closest(\"[custom-tab]\")\n\t\t\t\t.find(\".tab-content\")\n\t\t\t\t.removeClass(\"active\");\n\t\t\t$(this).closest(\"[custom-tab]\").find(\".tab-content\").slideUp();\n\t\t\t$(this)\n\t\t\t\t.closest(\"[custom-tab]\")\n\t\t\t\t.find(\".custom-tabcontent\")\n\t\t\t\t.each(function () {\n\t\t\t\t\t$(this)\n\t\t\t\t\t\t.find(\".tab-content\")\n\t\t\t\t\t\t.eq(tabIndex - 1)\n\t\t\t\t\t\t.addClass(\"active\");\n\t\t\t\t\t$(this)\n\t\t\t\t\t\t.find(\".tab-content\")\n\t\t\t\t\t\t.eq(tabIndex - 1)\n\t\t\t\t\t\t.slideDown();\n\t\t\t\t});\n\t\t}\n\t});\n\t// On load\n\ttabLi.eq(0).addClass(\"active\");\n\ttabWrapper.find(\".custom-tabcontent\").each(function () {\n\t\t$(this).find(\".tab-content\").addClass(\"hidden\");\n\t\t$(this).find(\".tab-content\").eq(0).removeClass(\"hidden\");\n\t\t$(this).find(\".tab-content\").eq(0).addClass(\"active\");\n\t});\n};\n\nfunction changeInputText() {\n\t$(\".dialogpage .form-group.attachfile1 .ruButton.ruBrowse\").val(\n\t\t\"Upload CV\"\n\t);\n}\n\n$(document).ready(function () {\n\t// ---***--- Global JS ---***---\n\tglobalJS.init();\n\tcmsFunc.init();\n\n\t// ---***--- Header ---***---\n\theaderFunction.init();\n\n\t// ---***--- Body ---***---\n\tswiperInit();\n\tcounterUpNumber();\n\texpandItem();\n\taccordion();\n\tpageIntroduce.init();\n\tpageProject.init();\n\tpageNews.init();\n\n\t// ---***--- Custom Tabslet ---***---\n\tcustomTabslet();\n\n\t// ---***--- Fancybox ---***---\n\tFancybox.bind(\"[data-fancybox]\", {});\n\tFancybox.bind(\"a.has-form[data-fancybox]\", {\n\t\tparentEl: document.forms[0],\n\t});\n\n\t// ---***--- Form ---***---\n\thandleFormWebSite.init();\n\t// ---***--- Recruit Form ---***---\n\tchangeInputText();\n});\n\nsetTimeout(() => {\n\tconsole.log(header.outerHeight());\n}, 300);\n$(window).resize(function () {\n\tsetHeightEqualToWidth();\n\tglobalJS.setViewPortBody();\n\tglobalJS.spaceWindow();\n});\n$(window).trigger(\"resize\");\n\n// ***** Preload ***** //\ndocument.onreadystatechange = () => {\n\tif (document.readyState === \"complete\") {\n\t\t/**\n\t\t * Turn on when Deploy\n\t\t */\n\t\theader.addClass(\"remove-loading\");\n\t\tmainSection.addClass(\"remove-loading\");\n\t\tfooter.addClass(\"remove-loading\");\n\t}\n};\n"]}