{"version":3,"sources":["main.js"],"names":["checkLang","$","attr","langFE","buy","sell","buying","selling","change","unit","date","price","apply","cancel","custom","yesterday","today","last7Days","last30Days","thisMonth","lastMonth","APP","init","lozadInit","fancyboxInit","setBackground","filterInit","accordionInit","countUpInit","loadMoreInit","toggleNavSticky","toggleSiteMaps","moveHTML","each","this","wrap","on","selectText","text","addClass","parent","siblings","find","removeClass","parents","printPage","dealerInit","setHeightElm","window","fixed","header","backdrop","backToTop","heightHeader","height","heightWindow","widthWindow","width","outerHeightWindow","outerHeight","fn","extend","toggleText","a","b","scrollTop","animate","mapping","mobileWrapper","mobileMethod","desktopWrapper","desktopMethod","breakpoint","toggleMenu","toggleClass","next","slideToggle","slideUp","toggleSearch","sourceInfo","console","log","homeBannerSlider","Swiper","loop","autoplay","delay","disableOnInteraction","pauseOnMouseEnter","speed","pagination","el","type","clickable","length","stop","index","activeIndex","checkSlide","slides","slideChange","slider","currentSlide","currentSlideType","data","start","video","play","addEventListener","slideNext","Error","homeCategoriesSlider","slidesPerView","spaceBetween","observer","observeParents","lazy","loadPrevNext","navigation","nextEl","prevEl","breakpoints","homeProductsSlider","homeNewsSlider","homeAboutSlider","homeSupportSlider","historyThumbsSlider","centeredSlides","slideToClickedSlide","initialSlide","historyTopSlider","loopedSlides","allowTouchMove","historyControlSlider","controller","control","aaThumbsSlider","direction","aaTopSlider","productListSlider","productDetailThumbsSlider","rewind","productDetailTopSlider","thumbs","swiper","productDetailRelatedSlider","scrollbar","draggable","productDetailViewedSlider","productDetailNewsSlider","brandSlider","grid","rows","recruitmentListSlider","lozad","threshold","pictureObserver","backgroundObserver","observe","Fancybox","bind","showLoading","preload","infinite","mainClass","groupAttr","close","css","equalHeight","thisHeight","setTimeout","checkCookie","cookieName","mP","getCookie","dataMPC","setCookie","tabslet","active","Number","trigger","countStart","num","countUp","CountUp","separator","enableScrollSpy","scrollSpyDelay","scrollSpyOnce","error","elNumber","dataCount","button","contentItem","contentItemLength","contentItemShow","contentItemLoad","slice","e","preventDefault","$thisLoadMore","visibleItem","hiddenItem","slideDown","hide","activeText","appendTo","prependTo","insertBefore","print","dataIframe","hPriceToday","hInternational"],"mappings":"AAAA,IAAAA,UAAAC,EAAA,QAAAC,KAAA,QACAC,OAAA,CACAA,GAAA,CACAC,IAAA,MACAC,KAAA,MACAC,OAAA,UACAC,QAAA,SACAC,OAAA,WACAC,KAAA,MACAC,KAAA,gBACAC,MAAA,MACAC,MAAA,UACAC,OAAA,MACAC,OAAA,YACAC,UAAA,UACAC,MAAA,UACAC,UAAA,iBACAC,WAAA,kBACAC,UAAA,YACAC,UAAA,eAEAjB,GAAA,CACAC,IAAA,MACAC,KAAA,OACAC,OAAA,SACAC,QAAA,UACAC,OAAA,SACAC,KAAA,MACAC,KAAA,cACAC,MAAA,QACAC,MAAA,QACAC,OAAA,SACAC,OAAA,SACAC,UAAA,YACAC,MAAA,QACAC,UAAA,cACAC,WAAA,eACAC,UAAA,aACAC,UAAA,eAGAnB,GAAA,WACAoB,IAAAC,OAEAC,YACAC,eACAC,gBAEAC,aACAC,gBACAC,cACAC,eAEAC,kBACAC,iBACAC,WACA/B,EAAA,uBAAAgC,MAAA,WACAhC,EAAAiC,MAAAC,KAAA,uCACA,IAEAlC,EAAA,qBAAAmC,GAAA,SAAA,WACA,IAAAC,EAAApC,EAAAiC,MAAAI,OACArC,EAAAiC,MAAAK,SAAA,UAAAC,SAAAC,WAAAC,KAAA,KAAAC,YAAA,UACA1C,EAAAiC,MAAAU,QAAA,oBAAAF,KAAA,mBAAAJ,KAAAD,EACA,IAEAQ,YACAC,aACAC,cACA,IAEA9C,EAAA+C,QAAAZ,GAAA,UAAA,WACAf,IAAA4B,OACA,IAGA,IAAAC,OAAAjD,EAAA,UACAkD,SAAAlD,EAAA,aACAmD,UAAAnD,EAAA,gBACAoD,aAAApD,EAAA,UAAAqD,SACAC,aAAAtD,EAAA+C,QAAAM,SACAE,YAAAvD,EAAA+C,QAAAS,QACAC,kBAAAzD,EAAA+C,QAAAW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GACA5M,EAAAiC,MAAAK,SAAA,UAAAC,SAAAC,WAAAC,KAAA,KAAAC,YAAA,SACA,IACA1C,EAAA,iBAAAmC,GAAA,SAAA,SAAAkK,GACAA,EAAAC,iBACAtM,EAAA,gBAAA0C,YAAA,SACA,GACA,CAEA,SAAAb,kBACA7B,EAAA,oCAAAmC,GAAA,SAAA,WACAoB,YAAA,KACAvD,EAAAiC,MAAAyC,OAAAC,aAGA,GACA,CAEA,SAAA5C,WACA/B,EAAA,wBAAA6M,SAAA,8BACA7M,EAAA,uBAAA8M,UAAA,6BACA9M,EAAA,yBAAA+M,aAAA,wCACA/M,EAAA,yBAAA6M,SAAA,yDACA7M,EAAA,yBAAA6M,SAAA,6CACA,CAEA,SAAAjK,YACA5C,EAAA,cAAAmC,GAAA,SAAA,WACAY,OAAAiK,OACA,GACA,CAEA,SAAAnK,aACA7C,EAAA,sBAAAmC,GAAA,SAAA,WACAnC,EAAAiC,MAAAK,SAAA,UAAAE,WAAAE,YAAA,UACA,IAAAuK,EAAAjN,EAAAiC,MAAAhC,KAAA,eACAD,EAAA,gBAAAC,KAAA,MAAAgN,EACA,IAEAjN,EAAA,kCAAAmL,QAAA,QACA,CAEA,SAAArJ,iBACA9B,EAAA,6BAAAmC,GAAA,SAAA,SAAAkK,GACAA,EAAAC,gBACA,GACA,CAEA,SAAAxJ,eACA2H,YAAA,KACA,IAAAyC,EAAAlN,EAAA,uCAAA0D,cACAyJ,EAAAnN,EAAA,+CAAA0D,cACA1D,EAAA,4CAAAsK,IAAA,aAAA4C,GACA3J,YAAA,KACAvD,EAAA,2CAAAsK,IAAA,SAAA4C,EAAAC,EAAA,GAAA,GACA,IACA","file":"main.min.js","sourcesContent":["var checkLang = $('html').attr('lang');\r\nvar langFE = {}\r\nlangFE['vi'] = {\r\n\t\"buy\": \"Mua\",\r\n\t\"sell\": \"Bán\",\r\n\t\"buying\": \"Mua vào\",\r\n\t\"selling\": \"Bán ra\",\r\n\t\"change\": \"Thay đổi\",\r\n\t\"unit\": \"VNĐ\",\r\n\t\"date\": \"Ngày cập nhật\",\r\n\t\"price\": \"Giá\",\r\n\t\"apply\": \"Áp dụng\",\r\n\t\"cancel\": \"Huỷ\",\r\n\t\"custom\": \"Tùy chỉnh\",\r\n\t\"yesterday\": \"Hôm qua\",\r\n\t\"today\": \"Hôm nay\",\r\n\t\"last7Days\": \"7 ngày gần đây\",\r\n\t\"last30Days\": \"30 ngày gần đây\",\r\n\t\"thisMonth\": \"Tháng này\",\r\n\t\"lastMonth\": \"Tháng trước\",\r\n}\r\nlangFE['en'] = {\r\n\t\"buy\": \"Buy\",\r\n\t\"sell\": \"Sell\",\r\n\t\"buying\": \"Buying\",\r\n\t\"selling\": \"Selling\",\r\n\t\"change\": \"Change\",\r\n\t\"unit\": \"VND\",\r\n\t\"date\": \"Update date\",\r\n\t\"price\": \"Price\",\r\n\t\"apply\": \"Apply\",\r\n\t\"cancel\": \"Cancel\",\r\n\t\"custom\": \"Custom\",\r\n\t\"yesterday\": \"Yesterday\",\r\n\t\"today\": \"Today\",\r\n\t\"last7Days\": \"Last 7 days\",\r\n\t\"last30Days\": \"Last 30 days\",\r\n\t\"thisMonth\": \"This month\",\r\n\t\"lastMonth\": \"Last month\",\r\n}\r\n\r\n$(function () {\r\n\tAPP.init();\r\n\r\n\tlozadInit();\r\n\tfancyboxInit();\r\n\tsetBackground();\r\n\r\n\tfilterInit();\r\n\taccordionInit();\r\n\tcountUpInit();\r\n\tloadMoreInit();\r\n\r\n\ttoggleNavSticky();\r\n\ttoggleSiteMaps();\r\n\tmoveHTML();\r\n\t$('.full-content table').each(function () {\r\n\t\t$(this).wrap('
')\r\n\t});\r\n\r\n\t$('.select-list li a').on('click', function(){\r\n\t\tlet selectText = $(this).text();\r\n\t\t$(this).addClass('active').parent().siblings().find('a').removeClass('active');\r\n\t\t$(this).parents('.select-dropdown').find('.select-current').text(selectText);\r\n\t});\r\n\r\n\tprintPage();\r\n\tdealerInit();\r\n\tsetHeightElm();\r\n});\r\n\r\n$(window).on('scroll', function () {\r\n\tAPP.fixed();\r\n});\r\n\r\n// variable\r\nvar header = $(\"header\"),\r\n\tbackdrop = $(\".backdrop\"),\r\n\tbackToTop = $(\".back-to-top\"),\r\n\theightHeader = $(\"header\").height(),\r\n\theightWindow = $(window).height(),\r\n\twidthWindow = $(window).width(),\r\n\touterHeightWindow = $(window).outerHeight();\r\n\r\n// toggleText\r\n$.fn.extend({\r\n\ttoggleText: function (a, b) {\r\n\t\treturn this.text(this.text() == b ? a : b);\r\n\t},\r\n});\r\n\r\nvar APP = {\r\n\tfixed: () => {\r\n\t\t// header\r\n\t\t$(window).scrollTop() > heightHeader\r\n\t\t\t? header.addClass(\"active\")\r\n\t\t\t: header.removeClass(\"active\");\r\n\t\t$(window).scrollTop() > (outerHeightWindow - heightHeader)\r\n\t\t\t? backToTop.addClass(\"active\")\r\n\t\t\t: backToTop.removeClass(\"active\");\r\n\t},\r\n\tbackdrop: () => {\r\n\t\tbackdrop.on('click', function () {\r\n\t\t\t$(this).removeClass('show');\r\n\t\t\theader.removeClass(\"open\"); // remove header\r\n\t\t\t$(\"#buttonMenu\").removeClass('open'); // remove button menu header\r\n\t\t\t$(\"header .menu-wrap\").removeClass('open'); // remove menu header\r\n\t\t})\r\n\t},\r\n\tbackToTop: () => {\r\n\t\tbackToTop.on('click', function () {\r\n\t\t\t$('html, body').animate({ scrollTop: 0 }, 500);\r\n\t\t})\r\n\t},\r\n\tmapping: () => {\r\n\t\tconst mainMenuLeft = $(\"header .header-left .navbar-menu\").mapping({\r\n\t\t\tmobileWrapper: \"header .mobile-wrap .navbar-wrap\",\r\n\t\t\tmobileMethod: \"appendTo\",\r\n\t\t\tdesktopWrapper: \"header .header-left\",\r\n\t\t\tdesktopMethod: \"appendTo\",\r\n\t\t\tbreakpoint: 1279.98,\r\n\t\t});\r\n\t\tconst mainMenuRight = $(\"header .header-right .navbar-menu\").mapping({\r\n\t\t\tmobileWrapper: \"header .mobile-wrap .navbar-wrap\",\r\n\t\t\tmobileMethod: \"appendTo\",\r\n\t\t\tdesktopWrapper: \"header .header-right\",\r\n\t\t\tdesktopMethod: \"appendTo\",\r\n\t\t\tbreakpoint: 1279.98,\r\n\t\t});\r\n\t\tlet hotline = $(\"header .button-hotline\").mapping({\r\n\t\t\tmobileWrapper: \"main\",\r\n\t\t\tmobileMethod: \"appendTo\",\r\n\t\t\tdesktopWrapper: \"header .header-left .navbar-menu\",\r\n\t\t\tdesktopMethod: \"insertBefore\",\r\n\t\t\tbreakpoint: 1279.98,\r\n\t\t});\r\n\t},\r\n\ttoggleMenu: () => {\r\n\t\t$(\"#buttonMenu\").on(\"click\", function () {\r\n\t\t\t$(this).toggleClass(\"open\");\r\n\t\t\t$('.mobile-wrap').toggleClass(\"open\");\r\n\t\t});\r\n\r\n\t\t$(\".main-menu .has-mega-menu .mega-icon\").on(\"click\", function () {\r\n\t\t\t$(this).toggleClass(\"active\").next().slideToggle().parent().siblings().find('.mega-icon').removeClass('active').next().slideUp();\r\n\t\t});\r\n\r\n\t\t$(\".main-menu .has-dropdown-menu .dropdown-icon\").on(\"click\", function () {\r\n\t\t\t$(this).toggleClass(\"active\").next().slideToggle().parent().siblings().find('.mega-icon').removeClass('active').next().slideUp();\r\n\t\t});\r\n\t},\r\n\ttoggleSearch: () => {\r\n\t\t$('.button-search').on(\"click\", function () {\r\n\t\t\t$(this).toggleClass(\"active\");\r\n\t\t\t$('.searchbox').toggleClass(\"active\");\r\n\t\t});\r\n\t},\r\n\tsourceInfo: () => {\r\n\t\tconsole.log(\r\n\t\t\t\"%cSJC\",\r\n\t\t\t\"font-size:100px;color:#D0A448;text-shadow:0 1px 0 #005387,0 2px 0 #005387 ,0 3px 0 #005387 ,0 4px 0 #005387 ,0 5px 0 #005387 ,0 6px 1px rgba(0,0,0,.1),0 0 5px rgba(0,0,0,.1),0 1px 3px rgba(0,0,0,.3),0 3px 5px rgba(0,0,0,.2),0 5px 10px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.2),0 20px 20px rgba(0,0,0,.15);\"\r\n\t\t);\r\n\t\tconsole.log(\r\n\t\t\t\"%c SJC %c - SJC in Viet Nam\",\r\n\t\t\t\"border-radius: 2px; padding: 3px; background: #D0A448; color: #000\",\r\n\t\t\t\"color: #D0A448\"\r\n\t\t);\r\n\t},\r\n\tinit: () => {\r\n\t\tAPP.backdrop();\r\n\t\tAPP.backToTop();\r\n\t\tAPP.mapping();\r\n\t\tAPP.toggleMenu();\r\n\t\tAPP.toggleSearch();\r\n\t\tAPP.sourceInfo();\r\n\t}\r\n}\r\n\r\nconst homeBannerSlider = new Swiper(\".home-banner .swiper\", {\r\n\tloop: true,\r\n\tautoplay: {\r\n\t\tdelay: 5000,\r\n\t\tdisableOnInteraction: false,\r\n\t\tpauseOnMouseEnter: true,\r\n\t},\r\n\tspeed: 1000,\r\n\t// rewind: true,\r\n\tpagination: {\r\n\t\tel: \".home-banner .swiper-pagination\",\r\n\t\ttype: 'bullets',\r\n\t\tclickable: true,\r\n\t},\r\n\ton: {\r\n\t\tinit: function () {\r\n\t\t\tif ($('.home-banner video').length>0){\r\n\t\t\t\tthis.autoplay.stop()\r\n\t\t\t\tvar index = this.activeIndex;\r\n\t\t\t\tcheckSlide($(this.slides[index]), this)\r\n\t\t\t}\r\n\t\t},\r\n\t\tslideChange: function () {\r\n\t\t\tif ($('.home-banner video').length > 0) {\r\n\t\t\t\tthis.autoplay.stop()\r\n\t\t\t\tvar index = this.activeIndex;\r\n\t\t\t\tcheckSlide($(this.slides[index]), this)\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n});\r\n\r\nfunction checkSlide(type, slider){\r\n\tvar currentSlide = type;\r\n\tvar currentSlideType = currentSlide.data('slide-type');\r\n\tslider.autoplay.stop()\r\n\tswitch (currentSlideType) {\r\n\t\tcase 'image':\r\n\t\t\tslider.autoplay.start()\r\n\t\t\tbreak;\r\n\t\tcase 'video':\r\n\t\t\tvar video = currentSlide.find('video')[0];\r\n\t\t\tvideo.play()\r\n\t\t\tvideo.addEventListener(\"canplay\", function () {\r\n\t\t\t\t// console.log(\"canplay\");\r\n\t\t\t}, true);\r\n\t\t\tvideo.addEventListener(\"ended\", function () {\r\n\t\t\t\t// console.log(\"ended\");\r\n\t\t\t\tslider.slideNext();\r\n\t\t\t\tslider.autoplay.start()\r\n\t\t\t}, true);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tthrow new Error('invalid slide type');\r\n\t}\r\n\treturn\r\n}\r\n\r\nconst homeCategoriesSlider = new Swiper(\".home-categories .swiper\", {\r\n\tloop: true,\r\n\tautoplay: {\r\n\t\tdelay: 5000,\r\n\t\tdisableOnInteraction: false,\r\n\t\tpauseOnMouseEnter: true,\r\n\t},\r\n\tspeed: 1000,\r\n\tslidesPerView: 2,\r\n\tspaceBetween: 10,\r\n\tobserver: true,\r\n\tobserveParents: true,\r\n\tlazy: {\r\n\t\tloadPrevNext: true,\r\n\t},\r\n\tnavigation: {\r\n\t\tnextEl: \".home-categories .button-next\",\r\n\t\tprevEl: \".home-categories .button-prev\",\r\n\t},\r\n\tpagination: {\r\n\t\tel: \".home-categories .swiper-pagination\",\r\n\t\tclickable: true,\r\n\t},\r\n\tbreakpoints: {\r\n\t\t576: {\r\n\t\t\tslidesPerView: 3,\r\n\t\t\tspaceBetween: 15,\r\n\t\t},\r\n\t\t768: {\r\n\t\t\tslidesPerView: 4,\r\n\t\t\tspaceBetween: 15,\r\n\t\t},\r\n\t\t1024: {\r\n\t\t\tslidesPerView: 5,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t1280: {\r\n\t\t\tslidesPerView: 6,\r\n\t\t\tspaceBetween: 30,\r\n\t\t},\r\n\t},\r\n});\r\n\r\nconst homeProductsSlider = new Swiper(\".home-products .swiper\", {\r\n\tloop: true,\r\n\tautoplay: {\r\n\t\tdelay: 5000,\r\n\t\tdisableOnInteraction: false,\r\n\t\tpauseOnMouseEnter: true,\r\n\t},\r\n\tspeed: 1000,\r\n\tspaceBetween: 10,\r\n\tobserver: true,\r\n\tobserveParents: true,\r\n\tlazy: {\r\n\t\tloadPrevNext: true,\r\n\t},\r\n\tnavigation: {\r\n\t\tnextEl: \".home-products .button-next\",\r\n\t\tprevEl: \".home-products .button-prev\",\r\n\t},\r\n\tpagination: {\r\n\t\tel: \".home-products .swiper-pagination\",\r\n\t\tclickable: true,\r\n\t},\r\n\t// scrollbar: {\r\n\t// \tel: \".home-products .swiper-scrollbar\",\r\n\t// \t// hide: true,\r\n\t// \tdraggable: true,\r\n\t// },\r\n\tbreakpoints: {\r\n\t\t576: {\r\n\t\t\tslidesPerView: 2,\r\n\t\t\tspaceBetween: 10,\r\n\t\t},\r\n\t\t768: {\r\n\t\t\tslidesPerView: 3,\r\n\t\t\tspaceBetween: 15,\r\n\t\t},\r\n\t\t1024: {\r\n\t\t\tslidesPerView: 4,\r\n\t\t\tspaceBetween: 15,\r\n\t\t},\r\n\t\t1280: {\r\n\t\t\tslidesPerView: 4,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t},\r\n});\r\n\r\nconst homeNewsSlider = new Swiper(\".home-news .swiper\", {\r\n\tspeed: 1000,\r\n\tspaceBetween: 15,\r\n\tobserver: true,\r\n\tobserveParents: true,\r\n\tlazy: {\r\n\t\tloadPrevNext: true,\r\n\t},\r\n\tnavigation: {\r\n\t\tnextEl: \".home-news .button-next\",\r\n\t\tprevEl: \".home-news .button-prev\",\r\n\t},\r\n\tpagination: {\r\n\t\tel: \".home-news .swiper-pagination\",\r\n\t\tclickable: true,\r\n\t},\r\n\tbreakpoints: {\r\n\t\t576: {\r\n\t\t\tslidesPerView: 2,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t768: {\r\n\t\t\tslidesPerView: 2,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t1024: {\r\n\t\t\tslidesPerView: 3,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t1280: {\r\n\t\t\tslidesPerView: 3,\r\n\t\t\tspaceBetween: 30,\r\n\t\t},\r\n\t\t1440: {\r\n\t\t\tslidesPerView: 3,\r\n\t\t\tspaceBetween: 50,\r\n\t\t},\r\n\t\t1600: {\r\n\t\t\tslidesPerView: 3,\r\n\t\t\tspaceBetween: 75,\r\n\t\t},\r\n\t},\r\n});\r\n\r\nconst homeAboutSlider = new Swiper(\".home-abouts .swiper\", {\r\n\tspeed: 1000,\r\n\tspaceBetween: 15,\r\n\tobserver: true,\r\n\tobserveParents: true,\r\n\tlazy: {\r\n\t\tloadPrevNext: true,\r\n\t},\r\n\tnavigation: {\r\n\t\tnextEl: \".home-abouts .button-next\",\r\n\t\tprevEl: \".home-abouts .button-prev\",\r\n\t},\r\n\tpagination: {\r\n\t\tel: \".home-abouts .swiper-pagination\",\r\n\t\tclickable: true,\r\n\t},\r\n\tbreakpoints: {\r\n\t\t576: {\r\n\t\t\tslidesPerView: 2,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t768: {\r\n\t\t\tslidesPerView: 2,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t1024: {\r\n\t\t\tslidesPerView: 3,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t1280: {\r\n\t\t\tslidesPerView: 3,\r\n\t\t\tspaceBetween: 31,\r\n\t\t},\r\n\t},\r\n});\r\n\r\nconst homeSupportSlider = new Swiper(\".home-supports .swiper\", {\r\n\tspeed: 1000,\r\n\tspaceBetween: 15,\r\n\tobserver: true,\r\n\tobserveParents: true,\r\n\tlazy: {\r\n\t\tloadPrevNext: true,\r\n\t},\r\n\tnavigation: {\r\n\t\tnextEl: \".home-supports .button-next\",\r\n\t\tprevEl: \".home-supports .button-prev\",\r\n\t},\r\n\tpagination: {\r\n\t\tel: \".home-supports .swiper-pagination\",\r\n\t\tclickable: true,\r\n\t},\r\n\tbreakpoints: {\r\n\t\t576: {\r\n\t\t\tslidesPerView: 2,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t768: {\r\n\t\t\tslidesPerView: 2,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t1024: {\r\n\t\t\tslidesPerView: 3,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t1280: {\r\n\t\t\tslidesPerView: 4,\r\n\t\t\tspaceBetween: 30,\r\n\t\t},\r\n\t},\r\n});\r\n\r\nconst historyThumbsSlider = new Swiper(\".about-3 .swiper-thumbs\", {\r\n\t// loop: true,\r\n\tslidesPerView: 3,\r\n\tcenteredSlides: true,\r\n\tslideToClickedSlide: true,\r\n\tbreakpoints: {\r\n\t\t576: {\r\n\t\t\tslidesPerView: 4,\r\n\t\t},\r\n\t\t768: {\r\n\t\t\tslidesPerView: 5,\r\n\t\t},\r\n\t\t1024: {\r\n\t\t\tslidesPerView: 6,\r\n\t\t},\r\n\t\t1280: {\r\n\t\t\tslidesPerView: 7,\r\n\t\t\tinitialSlide: 3,\r\n\t\t},\r\n\t},\r\n\tnavigation: {\r\n\t\tnextEl: \".about-3 .button-next\",\r\n\t\tprevEl: \".about-3 .button-prev\",\r\n\t},\r\n});\r\n\r\nconst historyTopSlider = new Swiper(\".about-3 .swiper-top\", {\r\n\t// loop: true,\r\n\tspaceBetween: 30,\r\n\tcenteredSlides: true,\r\n\tloopedSlides: 3,\r\n\tallowTouchMove: false,\r\n\tbreakpoints: {\r\n\t\t576: {\r\n\t\t\tloopedSlides: 4,\r\n\t\t},\r\n\t\t768: {\r\n\t\t\tloopedSlides: 5,\r\n\t\t},\r\n\t\t1024: {\r\n\t\t\tloopedSlides: 6,\r\n\t\t},\r\n\t\t1280: {\r\n\t\t\tloopedSlides: 7,\r\n\t\t\tinitialSlide: 3,\r\n\t\t},\r\n\t},\r\n});\r\n\r\nconst historyControlSlider = new Swiper(\".about-3 .swiper-control\", {\r\n\t// loop: true,\r\n\tspaceBetween: 30,\r\n\tcenteredSlides: true,\r\n\tloopedSlides: 3,\r\n\tallowTouchMove: false,\r\n\tbreakpoints: {\r\n\t\t576: {\r\n\t\t\tloopedSlides: 4,\r\n\t\t},\r\n\t\t768: {\r\n\t\t\tloopedSlides: 5,\r\n\t\t},\r\n\t\t1024: {\r\n\t\t\tloopedSlides: 6,\r\n\t\t},\r\n\t\t1280: {\r\n\t\t\tloopedSlides: 7,\r\n\t\t\tinitialSlide: 3,\r\n\t\t},\r\n\t},\r\n});\r\n\r\nhistoryThumbsSlider.controller.control = historyTopSlider;\r\nhistoryThumbsSlider.controller.control = historyControlSlider;\r\nhistoryControlSlider.controller.control = historyTopSlider;\r\n\r\nconst aaThumbsSlider = new Swiper(\".about-4 .swiper-thumbs\", {\r\n\t// loop: true,\r\n\tslidesPerView: 3,\r\n\tcenteredSlides: true,\r\n\tslideToClickedSlide: true,\r\n\tbreakpoints: {\r\n\t\t768: {\r\n\t\t\tdirection: \"vertical\",\r\n\t\t},\r\n\t\t1024: {\r\n\t\t\tdirection: \"vertical\",\r\n\r\n\t\t},\r\n\t\t1280: {\r\n\t\t\tdirection: \"vertical\",\r\n\t\t},\r\n\t},\r\n\r\n});\r\n\r\nconst aaTopSlider = new Swiper(\".about-4 .swiper-top\", {\r\n\t// loop: true,\r\n\tspaceBetween: 30,\r\n\tallowTouchMove: false,\r\n\tbreakpoints: {\r\n\t\t768: {\r\n\t\t\tdirection: \"vertical\",\r\n\t\t\tspaceBetween: 30,\r\n\t\t},\r\n\t\t1024: {\r\n\t\t\tdirection: \"vertical\",\r\n\t\t\tspaceBetween: 30,\r\n\t\t},\r\n\t\t1280: {\r\n\t\t\tdirection: \"vertical\",\r\n\t\t\tspaceBetween: 30,\r\n\t\t},\r\n\t},\r\n});\r\n\r\n$('.about-4 .swiper-aa').each(function (index) {\r\n\t$(this).addClass(`swiper-aa-${index}`);\r\n\t// $(this).find('.button-prev').addClass(`button-prev-${index}`);\r\n\t// $(this).find('.button-next').addClass(`button-next-${index}`);\r\n\tconst aaControlSlider = new Swiper(`.about-4 .swiper-aa-${index} .swiper`, {\r\n\t\t// loop: true,\r\n\t\tspaceBetween: 30,\r\n\t\tslidesPerView: 2,\r\n\t\tbreakpoints: {\r\n\t\t\t576: {\r\n\t\t\t\tslidesPerView: 2,\r\n\t\t\t\tspaceBetween: 30,\r\n\t\t\t},\r\n\t\t\t768: {\r\n\t\t\t\tslidesPerView: 3,\r\n\t\t\t\tspaceBetween: 30,\r\n\t\t\t},\r\n\t\t\t1024: {\r\n\t\t\t\tslidesPerView: 4,\r\n\t\t\t\tspaceBetween: 30,\r\n\t\t\t},\r\n\t\t\t1280: {\r\n\t\t\t\tslidesPerView: 4,\r\n\t\t\t\tspaceBetween: 30,\r\n\t\t\t},\r\n\t\t\t1440: {\r\n\t\t\t\tslidesPerView: 4,\r\n\t\t\t\tspaceBetween: 55,\r\n\t\t\t},\r\n\t\t},\r\n\t\tnavigation: {\r\n\t\t\tnextEl: `.about-4 .swiper-aa-${index} .button-next`,\r\n\t\t\tprevEl: `.about-4 .swiper-aa-${index} .button-prev`,\r\n\t\t},\r\n\t});\r\n})\r\n\r\naaThumbsSlider.controller.control = aaTopSlider;\r\naaTopSlider.controller.control = aaThumbsSlider;\r\n\r\nconst productListSlider = new Swiper(\".product-list-section .swiper\", {\r\n\tspeed: 1000,\r\n\tslidesPerView: 1,\r\n\tspaceBetween: 15,\r\n\tobserver: true,\r\n\tobserveParents: true,\r\n\tlazy: {\r\n\t\tloadPrevNext: true,\r\n\t},\r\n\tnavigation: {\r\n\t\tnextEl: \".product-list-section .button-next\",\r\n\t\tprevEl: \".product-list-section .button-prev\",\r\n\t},\r\n\tpagination: {\r\n\t\tel: \".product-list-section .swiper-pagination\",\r\n\t\tclickable: true,\r\n\t},\r\n\tbreakpoints: {\r\n\t\t576: {\r\n\t\t\tslidesPerView: 2\r\n\t\t},\r\n\t\t768: {\r\n\t\t\tslidesPerView: 2\r\n\t\t},\r\n\t\t1024: {\r\n\t\t\tslidesPerView: 3\r\n\t\t},\r\n\t\t1280: {\r\n\t\t\tslidesPerView: 3\r\n\t\t},\r\n\t},\r\n});\r\n\r\nconst productDetailThumbsSlider = new Swiper(\".product-detail-slider .swiper-thumbs\", {\r\n\tloop: true,\r\n\tslidesPerView: 4,\r\n\tspaceBetween: 10,\r\n\tslideToClickedSlide: true,\r\n\trewind: true,\r\n\tbreakpoints: {\r\n\t\t768: {\r\n\t\t\tslidesPerView: 4,\r\n\t\t\tspaceBetween: 10,\r\n\t\t},\r\n\t\t1024: {\r\n\t\t\tslidesPerView: 5,\r\n\t\t\tspaceBetween: 15,\r\n\t\t},\r\n\t\t1280: {\r\n\t\t\tslidesPerView: 5,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t},\r\n});\r\n\r\nconst productDetailTopSlider = new Swiper(\".product-detail-slider .swiper-top\", {\r\n\t// rewind: true,\r\n\tloop: true,\r\n\tspaceBetween: 30,\r\n\tthumbs: {\r\n\t\tswiper: productDetailThumbsSlider,\r\n\t},\r\n\tnavigation: {\r\n\t\tnextEl: \".product-detail-slider .button-next\",\r\n\t\tprevEl: \".product-detail-slider .button-prev\",\r\n\t},\r\n\t// on: {\r\n\t// \tslideChange: function () {\r\n\t// \t\tlet activeIndex = this.activeIndex + 1;\r\n\t// \t\tlet activeSlide = document.querySelector(`.product-detail-slider .swiper-top .swiper-slide:nth-child(${activeIndex})`);\r\n\t// \t\tlet nextSlide = document.querySelector(`.product-detail-slider .swiper-top .swiper-slide:nth-child(${activeIndex + 1})`);\r\n\t// \t\tlet prevSlide = document.querySelector(`.product-detail-slider .swiper-top .swiper-slide:nth-child(${activeIndex - 1})`);\r\n\t// \t\tif (nextSlide && !nextSlide.classList.contains('swiper-slide-visible')) {\r\n\t// \t\t\tthis.thumbs.swiper.slideNext()\r\n\t// \t\t} else if (prevSlide && !prevSlide.classList.contains('swiper-slide-visible')) {\r\n\t// \t\t\tthis.thumbs.swiper.slidePrev()\r\n\t// \t\t}\r\n\t// \t}\r\n\t// }\r\n});\r\n\r\nconst productDetailRelatedSlider = new Swiper(`.product-related .swiper`, {\r\n\tspeed: 1000,\r\n\tspaceBetween: 10,\r\n\tslidesPerView: 2,\r\n\tobserver: true,\r\n\tobserveParents: true,\r\n\tlazy: {\r\n\t\tloadPrevNext: true,\r\n\t},\r\n\tscrollbar: {\r\n\t\tel: `.product-related .swiper-scrollbar`,\r\n\t\tdraggable: true,\r\n\t},\r\n\tbreakpoints: {\r\n\t\t576: {\r\n\t\t\tslidesPerView: 2,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t768: {\r\n\t\t\tslidesPerView: 2,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t1024: {\r\n\t\t\tslidesPerView: 3,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t1280: {\r\n\t\t\tslidesPerView: 4,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t},\r\n});\r\n\r\nconst productDetailViewedSlider = new Swiper(`.product-viewed .swiper`, {\r\n\tspeed: 1000,\r\n\tspaceBetween: 10,\r\n\tslidesPerView: 2,\r\n\tobserver: true,\r\n\tobserveParents: true,\r\n\tlazy: {\r\n\t\tloadPrevNext: true,\r\n\t},\r\n\tscrollbar: {\r\n\t\tel: `.product-viewed .swiper-scrollbar`,\r\n\t\tdraggable: true,\r\n\t},\r\n\tbreakpoints: {\r\n\t\t576: {\r\n\t\t\tslidesPerView: 2,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t768: {\r\n\t\t\tslidesPerView: 2,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t1024: {\r\n\t\t\tslidesPerView: 3,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t1280: {\r\n\t\t\tslidesPerView: 4,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t},\r\n});\r\n\r\nconst productDetailNewsSlider = new Swiper(`.product-detail .news-related .swiper`, {\r\n\tspeed: 1000,\r\n\tspaceBetween: 20,\r\n\tobserver: true,\r\n\tobserveParents: true,\r\n\tlazy: {\r\n\t\tloadPrevNext: true,\r\n\t},\r\n\tscrollbar: {\r\n\t\tel: `.product-detail .news-related .swiper-scrollbar`,\r\n\t\tdraggable: true,\r\n\t},\r\n\tbreakpoints: {\r\n\t\t576: {\r\n\t\t\tslidesPerView: 2,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t768: {\r\n\t\t\tslidesPerView: 2,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t1024: {\r\n\t\t\tslidesPerView: 3,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t1280: {\r\n\t\t\tslidesPerView: 3,\r\n\t\t\tspaceBetween: 30,\r\n\t\t},\r\n\t},\r\n});\r\n\r\nconst brandSlider = new Swiper(\".brand-section .swiper\", {\r\n\tslidesPerView: 2,\r\n\tgrid: {\r\n\t\trows: 2,\r\n\t},\r\n\tspaceBetween: 10,\r\n\tnavigation: {\r\n\t\tnextEl: \".brand-section .button-next\",\r\n\t\tprevEl: \".brand-section .button-prev\",\r\n\t},\r\n\tpagination: {\r\n\t\tel: \".brand-section .swiper-pagination\",\r\n\t\tclickable: true,\r\n\t},\r\n\tbreakpoints: {\r\n\t\t576: {\r\n\t\t\tslidesPerView: 3,\r\n\t\t},\r\n\t\t768: {\r\n\t\t\tslidesPerView: 4,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t1024: {\r\n\t\t\tslidesPerView: 5,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t1280: {\r\n\t\t\tslidesPerView: 6,\r\n\t\t\tspaceBetween: 30,\r\n\t\t},\r\n\t},\r\n});\r\n\r\nconst recruitmentListSlider = new Swiper(\".recruitment-list-section .swiper\", {\r\n\tspaceBetween: 10,\r\n\tpagination: {\r\n\t\tel: \".recruitment-list-section .swiper-pagination\",\r\n\t\tclickable: true,\r\n\t},\r\n\tbreakpoints: {\r\n\t\t576: {\r\n\t\t\tslidesPerView: 2,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t768: {\r\n\t\t\tslidesPerView: 2,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t1024: {\r\n\t\t\tslidesPerView: 3,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t1280: {\r\n\t\t\tslidesPerView: 3,\r\n\t\t\tspaceBetween: 30,\r\n\t\t},\r\n\t},\r\n});\r\n\r\nfunction lozadInit() {\r\n\t// Initialize library to lazy load images\r\n\tconst observer = lozad('.lozad', {\r\n\t\tthreshold: 0.1,\r\n\t\t// enableAutoReload: true,\r\n\t})\r\n\r\n\t// Picture observer\r\n\t// with default `load` method\r\n\tconst pictureObserver = lozad('.lozad-picture', {\r\n\t\tthreshold: 0.1\r\n\t})\r\n\r\n\t// Background observer\r\n\t// with default `load` method\r\n\tconst backgroundObserver = lozad('.lozad-background', {\r\n\t\tthreshold: 0.1\r\n\t})\r\n\r\n\tobserver.observe()\r\n\tpictureObserver.observe()\r\n\tbackgroundObserver.observe()\r\n}\r\n\r\nfunction fancyboxInit() {\r\n\tFancybox.bind(\"[data-fancybox]\", {\r\n\t\tshowLoading: true,\r\n\t\tpreload: true,\r\n\t\tinfinite: false,\r\n\t\t// parentEl: document.forms[0], // Element containing main structure\r\n\t\tmainClass: \"fancybox-wrapper\", // Custom class name or multiple space-separated class names for the container\r\n\t});\r\n\r\n\tFancybox.bind(\"a.popup-link\", {\r\n\t\tshowLoading: true,\r\n\t\ttype: \"iframe\",\r\n\t\tpreload: true,\r\n\t});\r\n\r\n\tFancybox.bind('[data-fancybox=\"single\"]', {\r\n\t\tgroupAttr: false,\r\n\t});\r\n\r\n\t$(\".btn-close-fancybox\").on(\"click\", function () {\r\n\t\tFancybox.close();\r\n\t});\r\n}\r\n\r\nfunction setBackground() {\r\n\t$('[data-background]').each(function () {\r\n\t\t$(this).css('background-image', 'url(' + $(this).data('background') + ')');\r\n\t});\r\n}\r\n\r\nfunction equalHeight(el) {\r\n\tvar height = 0;\r\n\t$(el).each(function () {\r\n\t\tvar thisHeight = $(this).height();\r\n\t\tif (thisHeight > height) {\r\n\t\t\theight = thisHeight;\r\n\t\t}\r\n\t\tsetTimeout(() => {\r\n\t\t\t$(el).height(height)\r\n\t\t}, 100)\r\n\t})\r\n}\r\n\r\nfunction checkCookie(cookieName) {\r\n\tlet mP = getCookie(cookieName);\r\n\t$('.home-product .product-item a').on('click', function () {\r\n\t\tvar dataMPC = $(this).data('master-plan');\r\n\t\tsetCookie(\"masterPlan\", dataMPC, 1);\r\n\t});\r\n\tif (mP != \"\") {\r\n\t\t$('.master-plan .main-tabslet').tabslet({\r\n\t\t\tactive: Number(mP)\r\n\t\t});\r\n\t\tsetTimeout(() => {\r\n\t\t\t$(`.site-plan .site-plan-tabs .plan-list li a[data-maphilight=\"maparea-${mP}\"]`).trigger('click');\r\n\t\t}, 500);\r\n\t} else {\r\n\t\t$('.master-plan .main-tabslet').tabslet();\r\n\t}\r\n}\r\n\r\nfunction countStart(el, num) {\r\n\tconst options = {\r\n\t\tseparator: '.',\r\n\t\tenableScrollSpy: true, // if true -> turn off countUp.start() after first scroll spy check\r\n\t\tscrollSpyDelay: 500, // delay for scroll spy check\r\n\t\tscrollSpyOnce: true,\r\n\t};\r\n\r\n\tlet countUp = new CountUp(el, num, options);\r\n\r\n\tif (!countUp.error) {\r\n\t\tcountUp.start(() => console.log('Complete!'));\r\n\t} else {\r\n\t\tconsole.error(countUp.error);\r\n\t}\r\n}\r\n\r\nfunction countUpInit() {\r\n\tconst elNumber = $(\".count-number-current\");\r\n\tif (elNumber)\r\n\t\telNumber.each(function (index) {\r\n\t\t\tlet dataCount = $(elNumber[index]).data('count');\r\n\t\t\tcountStart(elNumber[index], dataCount);\r\n\t\t})\r\n}\r\n\r\nfunction loadMoreInit() {\r\n\t$('.load-more-wrap').each(function () {\r\n\t\tvar button = $(this).find('.btn-load-more');\r\n\t\tvar contentItem = $(this).find('.load-more-item');\r\n\t\tvar contentItemLength = contentItem.length;\r\n\t\tvar contentItemShow = $(this).data('show');\r\n\t\tvar contentItemLoad = $(this).data('load');\r\n\t\tcontentItem.slice(contentItemShow, contentItemLength).addClass('hidden');\r\n\t\tbutton.on('click', function (e) {\r\n\t\t\te.preventDefault();\r\n\t\t\tvar $thisLoadMore = $(this).parents('.load-more-wrap');\r\n\t\t\tvar visibleItem = $thisLoadMore.find('.load-more-item:visible').length;\r\n\t\t\tvar hiddenItem = $thisLoadMore.find('.load-more-item:hidden').length;\r\n\t\t\tcontentItem.slice(0, (visibleItem + contentItemLoad)).slideDown();\r\n\t\t\tif (hiddenItem <= contentItemLoad) {\r\n\t\t\t\t$(this).hide();\r\n\t\t\t}\r\n\t\t})\r\n\t});\r\n}\r\n\r\nfunction accordionInit() {\r\n\t$('.accordion_item').on('click', function () {\r\n\t\t$(this)\r\n\t\t\t.toggleClass('active')\r\n\t\t\t.siblings().removeClass('active')\r\n\t\t$(this)\r\n\t\t\t.find('.accordion_header').toggleClass('active')\r\n\t\t\t.parents('.accordion_item')\r\n\t\t\t.siblings().find('.accordion_header').removeClass('active')\r\n\t\t$(this)\r\n\t\t\t.find('.accordion_content').slideToggle()\r\n\t\t\t.parents('.accordion_item')\r\n\t\t\t.siblings().find('.accordion_content').slideUp('active')\r\n\t});\r\n}\r\n\r\nfunction filterInit() {\r\n\t$('.filter-button').on('click', function () {\r\n\t\t$('.filter-wrap').addClass('active');\r\n\t});\r\n\t$('.filter-dropdown').each(function () {\r\n\t\t$(this).find('.filter-current').on('click', function () {\r\n\t\t\t$(this).next().slideToggle();\r\n\t\t\t$(this).parent().siblings().find('.filter-list').slideUp();\r\n\t\t\t$(this).parent().parent().siblings().find('.filter-list').slideUp();\r\n\t\t\t$(this).parent().parent().parent().siblings().find('.filter-list').slideUp();\r\n\t\t})\r\n\t\t$('.filter-wrap').on('mouseleave', function () {\r\n\t\t\tsetTimeout(() => {\r\n\t\t\t\t$('.filter-wrap').find('.filter-list').slideUp();\r\n\t\t\t}, 100);\r\n\t\t});\r\n\t});\r\n\t$('.filter-list > li > a').on('click', function (e) {\r\n\t\te.preventDefault();\r\n\t\tlet activeText = $(this).text();\r\n\t\t$(this).parents('.filter-dropdown').find('.filter-current').text(activeText);\r\n\t\t$(this).addClass('active').parent().siblings().find('a').removeClass('active');\r\n\t});\r\n\t$('.filter-close').on('click', function (e) {\r\n\t\te.preventDefault();\r\n\t\t$('.filter-wrap').removeClass('active');\r\n\t});\r\n}\r\n\r\nfunction toggleNavSticky() {\r\n\t$('.box-nav-sticky .secondary-title').on('click', function () {\r\n\t\tif (widthWindow < 768)\r\n\t\t\t$(this).next().slideToggle()\r\n\t\telse\r\n\t\t\treturn\r\n\t});\r\n}\r\n\r\nfunction moveHTML() {\r\n\t$('.product-filter-sort').appendTo('.filter-wrap .filter-right');\r\n\t$('.product-categories').prependTo('.filter-wrap .filter-left');\r\n\t$('.sjc-gold-tradingview').insertBefore('.sjc-international .sjc-price-global');\r\n\t$('.sjc-gold-tradingview').appendTo('.gold-price-flex .sjc-international span.text-primary');\r\n\t$('.sjc-gold-tradingview').appendTo('.chart-gold-global-wrap .chart-gold-global');\r\n}\r\n\r\nfunction printPage() {\r\n\t$('.btn-print').on('click', function () {\r\n\t\twindow.print();\r\n\t});\r\n}\r\n\r\nfunction dealerInit() {\r\n\t$('.result-list ul li').on('click', function () {\r\n\t\t$(this).addClass('active').siblings().removeClass('active');\r\n\t\tvar dataIframe = $(this).attr('data-iframe');\r\n\t\t$('.maps iframe').attr('src', dataIframe);\r\n\t});\r\n\r\n\t$('.result-list ul li:first-child').trigger('click');\r\n}\r\n\r\nfunction toggleSiteMaps() {\r\n\t$('.AspNet-TreeView-Collapse').on('click', function (e) {\r\n\t\te.preventDefault();\r\n\t});\r\n}\r\n\r\nfunction setHeightElm(){\r\n\tsetTimeout(()=>{\r\n\t\tvar hPriceToday = $('.box-sjc-price.sjc-gold-price-chart').outerHeight();\r\n\t\tvar hInternational = $('.box-sjc-price.sjc-international.is-sjc-new').outerHeight();\r\n\t\t$('.box-sjc-price.sjc-gold-price.is-sjc-new').css('max-height', hPriceToday)\r\n\t\tif(widthWindow>768)\r\n\t\t\t$('.box-sjc-price.exchange-rate.is-sjc-new').css('height', (hPriceToday - hInternational - 20))\r\n\t},1000)\r\n}\r\n\r\n// $(function () {\r\n// \tCallAPIGoldPrice(); // Giá vàng SJC\r\n// \tCallAPIInternationalGoldPrice(); // Giá vàng thế giới\r\n// \tCallAPIGoldPriceToday(); // Giá vàng hôm nay\r\n// });\r\n\r\n// var siteRootFE = 'http://www8.sjc.com.vn';\r\n\r\n// function CallAPIGoldPrice(){\r\n// \tvar dataAPI;\r\n// \tvar latestDate;\r\n// \tvar APIUrl = `${siteRootFE}/GoldPrice/Services/PriceService.ashx`;\r\n// \tvar configs = {\r\n// \t\t\"url\": APIUrl,\r\n// \t\t\"method\": \"POST\",\r\n// \t\t\"timeout\": 0,\r\n// \t};\r\n// \tvar checkGoldPrice = $('.sjc-gold-price');\r\n// \tvar checkGoldPriceChart = $('.sjc-gold-price-chart');\r\n// \tvar checkGoldPriceOnline = $('.sjc-table-show-price-online');\r\n// \tif(checkGoldPriceChart.length > 0){\r\n// \t\t// render chart\r\n// \t\tvar ctx = document.getElementById('gold-price-chart');\r\n// \t\tvar myChart = new Chart(ctx, {\r\n// \t\t\ttype: 'line',\r\n// \t\t\tdata: null,\r\n// \t\t\toptions: {\r\n// \t\t\t\tscales: {\r\n// \t\t\t\t\tx: {\r\n// \t\t\t\t\t\tdisplay: true,\r\n// \t\t\t\t\t\tticks: {\r\n// \t\t\t\t\t\t\tcallback: function (value, index, ticks) {\r\n// \t\t\t\t\t\t\t\tif (index === 0 || index + 1 === ticks.length || index === Math.round(ticks.length / 2)) {\r\n// \t\t\t\t\t\t\t\t\treturn this.getLabelForValue(value).substring(0, 10);\r\n// \t\t\t\t\t\t\t\t}\r\n// \t\t\t\t\t\t\t\treturn null;\r\n// \t\t\t\t\t\t\t}\r\n// \t\t\t\t\t\t}\r\n// \t\t\t\t\t}\r\n// \t\t\t\t},\r\n// \t\t\t\tinteraction: {\r\n// \t\t\t\t\tmode: 'index',\r\n// \t\t\t\t\tintersect: false\r\n// \t\t\t\t},\r\n// \t\t\t\tresponsive: true,\r\n// \t\t\t\tplugins: {\r\n// \t\t\t\t\tlegend: {\r\n// \t\t\t\t\t\tposition: 'bottom'\r\n// \t\t\t\t\t},\r\n// \t\t\t\t\t// tooltip: {\r\n// \t\t\t\t\t// \tcallbacks: {\r\n// \t\t\t\t\t// \t\tfooter(tooltipItems) {\r\n// \t\t\t\t\t// \t\t\tconst [buy, sell] = tooltipItems;\r\n// \t\t\t\t\t// \t\t\treturn `Chênh lệch: ${Math.abs(buy.parsed.y - sell.parsed.y)}`;\r\n// \t\t\t\t\t// \t\t}\r\n// \t\t\t\t\t// \t}\r\n// \t\t\t\t\t// }\r\n// \t\t\t\t}\r\n// \t\t\t}\r\n// \t\t});\r\n// \t}\r\n// \t$.ajax(configs).done(function (response) {\r\n// \t\tdataAPI = response.data;\r\n// \t\tlatestDate = response.latestDate;\r\n// \t\tif(checkGoldPrice.length > 0){\r\n// \t\t\tSJCTableGoldPrice(dataAPI, latestDate);\r\n// \t\t}\r\n// \t\tif(checkGoldPriceOnline.length > 0){\r\n// \t\t\tSJCTableGoldPriceOnline(dataAPI, latestDate); // Bảng giá vàng online\r\n// \t\t}\r\n// \t\tif(checkGoldPriceChart.length > 0){\r\n// \t\t\tSJCChartAPIInit(dataAPI, APIUrl, configs, myChart); // Tạo select tên vàng\r\n// \t\t}\r\n// \t}).fail(function (error) {\r\n// \t\tconsole.log(error)\r\n// \t});\r\n\r\n// \t// Cập nhật dữ liệu sau 30s\r\n// \tsetInterval(function () {\r\n// \t\t$.ajax(configs).done(function (response) {\r\n// \t\t\tdataAPI = response.data;\r\n// \t\t\tlatestDate = response.latestDate;\r\n// \t\t\tif(checkGoldPrice.length > 0){\r\n// \t\t\t\tSJCTableGoldPrice(dataAPI, latestDate);\r\n// \t\t\t}\r\n// \t\t\tif(checkGoldPriceOnline.length > 0){\r\n// \t\t\t\tSJCTableGoldPriceOnline(dataAPI, latestDate);\r\n// \t\t\t}\r\n// \t\t})\r\n// \t\tif(checkGoldPriceChart.length > 0){\r\n// \t\t\tCallSJCChartAPIRealTime(dataAPI, APIUrl, configs, myChart);\r\n// \t\t}\r\n// \t}, 30000);\r\n// }\r\n\r\n// function SJCTableGoldPrice(data, latestDate){\r\n// \tvar tableGoldPrice = $('.sjc-table-show-price tbody');\r\n// \tvar realTimeUpdateGoldPrice = $('.sjc-gold-price-real-time');\r\n// \tvar countData = data.length; // Tổng số dữ liệu\r\n// \ttableGoldPrice.empty(); // Xóa dữ liệu cũ\r\n// \trealTimeUpdateGoldPrice.empty(); // Xóa dữ liệu cũ\r\n// \trealTimeUpdateGoldPrice.html(latestDate); // Thêm dữ liệu mới\r\n// \tfor (let i = 0; i < data.length; i++) {\r\n// \t\tvar provinceName = data[i].provinceName; // Tên tỉnh\r\n// \t\tvar goldTypeName = data[i].goldType; // Loại vàng\r\n// \t\tvar totalCountUpdate = data[i].updateTime.length; // Tổng số lần cập nhật\r\n// \t\tvar buyingFormat = data[i].updateTime[totalCountUpdate - 1].buyingFormat; // Giá mua vào\r\n// \t\tvar sellingFormat = data[i].updateTime[totalCountUpdate - 1].sellingFormat; // Giá mua vào\r\n// \t\t// html\r\n// \t\tvar trProvince = `${provinceName}`;\r\n// \t\tvar trProvinceGold = `${goldTypeName}${buyingFormat}${sellingFormat}`;\r\n\r\n// \t\t// Check if the province coincides\r\n// \t\tvar provinceIDPrev = i > 0 ? data[i-1].provinceId : false;\r\n// \t\tvar checkProvinceID = provinceIDPrev ? data[i].provinceId == provinceIDPrev : false;\r\n// \t\tif(checkProvinceID){\r\n// \t\t\ttableGoldPrice.append(trProvinceGold);\r\n// \t\t}else{\r\n// \t\t\ttableGoldPrice.append(trProvince);\r\n// \t\t\ttableGoldPrice.append(trProvinceGold);\r\n// \t\t}\r\n// \t}\r\n// }\r\n\r\n// function SJCTableGoldPriceOnline(data, latestDate){\r\n// \tvar tableGoldPriceOnline = $('.sjc-table-show-price-online tbody');\r\n// \tvar realTimeUpdateGoldPrice = $('.sjc-gold-price-real-time');\r\n// \tvar provinceTitle = $('.province-name');\r\n// \tvar dataShared = [];\r\n// \ttableGoldPriceOnline.empty(); // Xóa dữ liệu cũ\r\n// \trealTimeUpdateGoldPrice.empty(); // Xóa dữ liệu cũ\r\n// \trealTimeUpdateGoldPrice.html(latestDate); // Thêm dữ liệu mới\r\n// \tvar urlID = window.location.href.split('?id=')[1];\r\n// \t// get data shared == true\r\n// \tfor (let i = 0; i < data.length; i++) {\r\n// \t\tif(data[i].shared){\r\n// \t\t\tdataShared.push(data[i]);\r\n// \t\t}\r\n// \t}\r\n// \t// get data shared == false\r\n// \tfor (let i = 0; i < data.length; i++) {\r\n// \t\tvar totalCountUpdate = data[i].updateTime.length; // Tổng số lần cập nhật\r\n// \t\tvar goldType = data[i].goldType;\r\n// \t\tvar buyingFormat = data[i].updateTime[totalCountUpdate-1].buyingFormat;\r\n// \t\tvar sellingFormat = data[i].updateTime[totalCountUpdate-1].sellingFormat;\r\n// \t\tvar trProvinceGoldOnline = `${goldType}${buyingFormat}${sellingFormat}`;\r\n// \t\tif(urlID != undefined && urlID != null){\r\n// \t\t\tif(data[i].provinceId == urlID && data[i].provinceId == 1 && data[i].shared == false){\r\n// \t\t\t\tprovinceTitle.text(data[i].provinceName);\r\n// \t\t\t\ttableGoldPriceOnline.append(trProvinceGoldOnline);\r\n// \t\t\t} else {\r\n// \t\t\t\tif(data[i].provinceId == urlID && data[i].provinceId > 1 && data[i].shared == false){\r\n// \t\t\t\t\tprovinceTitle.text(data[i].provinceName);\r\n// \t\t\t\t\ttableGoldPriceOnline.append(trProvinceGoldOnline);\r\n// \t\t\t\t}\r\n// \t\t\t}\r\n// \t\t}\r\n// \t\telse {\r\n// \t\t\tif(data[i].provinceId == 1 && data[i].shared == false){\r\n// \t\t\t\tprovinceTitle.text(data[i].provinceName);\r\n// \t\t\t\ttableGoldPriceOnline.append(trProvinceGoldOnline);\r\n// \t\t\t}\r\n// \t\t}\r\n// \t}\r\n// \t// get data shared == true\r\n// \tfor (let x = 0; x < dataShared.length; x++) {\r\n// \t\tvar totalCountUpdate = dataShared[x].updateTime.length; // Tổng số lần cập nhật\r\n// \t\tvar goldType = dataShared[x].goldType;\r\n// \t\tvar buyingFormat = dataShared[x].updateTime[totalCountUpdate-1].buyingFormat;\r\n// \t\tvar sellingFormat = dataShared[x].updateTime[totalCountUpdate-1].sellingFormat;\r\n// \t\ttableGoldPriceOnline.append(`${goldType}${buyingFormat}${sellingFormat}`);\r\n// \t}\r\n// }\r\n\r\n// function CallAPIInternationalGoldPrice(){\r\n// \tvar checkGoldPriceInternational = $('.sjc-international');\r\n// \tif(checkGoldPriceInternational.length > 0){\r\n// \t\tvar APIUrl = `${siteRootFE}/GoldPrice/Services/PriceService.ashx?method=GetGlobalPrice`;\r\n// \t\tvar configs = {\r\n// \t\t\t\"url\": APIUrl,\r\n// \t\t\t\"method\": \"POST\",\r\n// \t\t\t\"timeout\": 0,\r\n// \t\t};\r\n// \t\t$.ajax(configs).done(function (response) {\r\n// \t\t\t$('#global-buy').text(response.globalBuy);\r\n// \t\t\t$('#global-sell').text(response.globalSell);\r\n// \t\t}).fail(function (error) {\r\n// \t\t\tconsole.log(error)\r\n// \t\t});\r\n// \t\tsetInterval(function () {\r\n// \t\t\t$.ajax(configs).done(function (response) {\r\n// \t\t\t\t$('#global-buy').text(response.globalBuy);\r\n// \t\t\t\t$('#global-sell').text(response.globalSell);\r\n// \t\t\t})\r\n// \t\t}, 30000);\r\n// \t}\r\n// }\r\n\r\n// function SJCChartAPIInit(data, urlAPI, configsAPI, myChart){\r\n// \t// render report range\r\n// \tvar reportRange = $('#reportrange');\r\n// \tif(reportRange.length > 0){\r\n// \t\t// render date range\r\n// \t\tvar start = moment().subtract(0, 'days');\r\n// \t\tvar end = moment();\r\n// \t\tconst langYesterday = `${langFE[checkLang].yesterday}`;\r\n// \t\tconst langToday = `${langFE[checkLang].today}`;\r\n// \t\tconst lang7Days = `${langFE[checkLang].last7Days}`;\r\n// \t\tconst lang30Days = `${langFE[checkLang].last30Days}`;\r\n// \t\tconst langThisMonth = `${langFE[checkLang].thisMonth}`;\r\n// \t\tconst langLastMonth = `${langFE[checkLang].lastMonth}`;\r\n// \t\tfunction cb(start, end) {\r\n// \t\t\t$('#reportrange span').html(start.format('DD/MM/YYYY') + ' - ' + end.format('DD/MM/YYYY'));\r\n// \t\t}\r\n// \t\tvar periodRanges = {};\r\n// \t\tperiodRanges[langToday] = [moment(), moment()];\r\n// \t\tperiodRanges[langYesterday] = [moment().subtract(1, 'days'), moment().subtract(0, 'days')];\r\n// \t\tperiodRanges[lang7Days] = [moment().subtract(6, 'days'), moment()];\r\n// \t\tperiodRanges[lang30Days] = [moment().subtract(29, 'days'), moment()];\r\n// \t\tperiodRanges[langThisMonth] = [moment().startOf('month'), moment().endOf('month')];\r\n// \t\tperiodRanges[langLastMonth] = [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')];\r\n// \t\t// reportrange\r\n// \t\treportRange.daterangepicker({\r\n// \t\t\ttimePicker24Hour: true,\r\n// \t\t\tstartDate: start,\r\n// \t\t\tendDate: end,\r\n// \t\t\tranges: periodRanges,\r\n// \t\t\t// ranges: {\r\n// \t\t\t// \tlangToday: [moment(), moment()],\r\n// \t\t\t// \tlangYesterday: [moment().subtract(1, 'days'), moment().subtract(0, 'days')],\r\n// \t\t\t// \tlang7Days: [moment().subtract(6, 'days'), moment()],\r\n// \t\t\t// \tlang30Days: [moment().subtract(29, 'days'), moment()],\r\n// \t\t\t// \tlangThisMonth: [moment().startOf('month'), moment().endOf('month')],\r\n// \t\t\t// \tlangLastMonth: [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')],\r\n// \t\t\t// },\r\n// \t\t\tlocale: {\r\n// \t\t\t\t'customRangeLabel': `${langFE[checkLang].custom}`,\r\n// \t\t\t\t'format': 'DD/MM/YYYY HH:mm',\r\n// \t\t\t\t'applyLabel': `${langFE[checkLang].apply}`,\r\n// \t\t\t\t'cancelLabel': `${langFE[checkLang].cancel}`,\r\n// \t\t\t}\r\n// \t\t}, cb);\r\n// \t\tcb(start, end);\r\n// \t}\r\n// \t// render select province\r\n// \tvar selectProvince = $('#select-province');\r\n// \tselectProvince.empty();\r\n// \tfor (let i = 0; i < data.length; i++) {\r\n// \t\tvar fullName = data[i].fullName;\r\n// \t\tvar option = ``;\r\n// \t\tselectProvince.append(option);\r\n// \t}\r\n\r\n// \t// call api\r\n// \tCallSJCChartAPI(0, configsAPI, myChart); // Tạo biểu đồ\r\n\r\n// \t// change province\r\n// \tselectProvince.on('change', function () {\r\n// \t\tvar valueSelect = $(this).val();\r\n// \t\tvar dateStart = $('#reportrange').data('daterangepicker').startDate.format('YYYY-MM-DD');\r\n// \t\tvar dateEnd = $('#reportrange').data('daterangepicker').endDate.format('YYYY-MM-DD');\r\n// \t\tvar queryParamsAPI = `?fromdate=${dateStart}&todate=${dateEnd}`;\r\n// \t\tvar newConfigsAPI = configsAPI;\r\n// \t\tnewConfigsAPI.url = dateStart == dateEnd ? `${urlAPI}` : `${urlAPI}${queryParamsAPI}`;\r\n// \t\tCallSJCChartAPI(valueSelect, newConfigsAPI, myChart);\r\n// \t});\r\n\r\n// \t// change date range\r\n// \treportRange.on('apply.daterangepicker', function (ev, picker) {\r\n// \t\tvar valueSelect = selectProvince.val();\r\n// \t\tvar dateStart = picker.startDate.format('YYYY-MM-DD');\r\n// \t\tvar dateEnd = picker.endDate.format('YYYY-MM-DD');\r\n// \t\tvar queryParamsAPI = `?fromdate=${dateStart}&todate=${dateEnd}`;\r\n// \t\tvar newConfigsAPI = configsAPI;\r\n// \t\tnewConfigsAPI.url = dateStart == dateEnd ? `${urlAPI}` : `${urlAPI}${queryParamsAPI}`;\r\n// \t\tCallSJCChartAPI(valueSelect, newConfigsAPI, myChart);\r\n// \t});\r\n// }\r\n\r\n// function CallSJCChartAPI(valueSelect, configsAPI, myChart){\r\n// \t$.ajax(configsAPI).done(function (response) {\r\n// \t\tvar data = response.data;\r\n// \t\tvar provinceFullName = data[valueSelect];\r\n// \t\tvar labels = provinceFullName.updateTime.map(item => moment(item.date).format('DD/MM/YYYY HH:mm'));\r\n// \t\tvar selling = provinceFullName.updateTime.map(item => item.selling);\r\n// \t\tvar buying = provinceFullName.updateTime.map(item => item.buying);\r\n// \t\tmyChart.data = {\r\n// \t\t\tlabels: labels,\r\n// \t\t\tdatasets: [\r\n// \t\t\t\t{\r\n// \t\t\t\t\tlabel: `# ${langFE[checkLang].selling}`,\r\n// \t\t\t\t\tdata: selling,\r\n// \t\t\t\t\tbackgroundColor: '#008000',\r\n// \t\t\t\t\tborderColor: '#008000',\r\n// \t\t\t\t},\r\n// \t\t\t\t{\r\n// \t\t\t\t\tlabel: `# ${langFE[checkLang].buying}`,\r\n// \t\t\t\t\tdata: buying,\r\n// \t\t\t\t\tbackgroundColor: '#ff0000',\r\n// \t\t\t\t\tborderColor: '#ff0000',\r\n// \t\t\t\t}\r\n// \t\t\t]\r\n// \t\t};\r\n// \t\tmyChart.update();\r\n// \t});\r\n// }\r\n\r\n// function CallSJCChartAPIRealTime(dataAPIOld, urlAPI, configsAPI, myChart){\r\n// \tvar totalUpdateOld = dataAPIOld[0].updateTime.length;\r\n// \tvar dateStart = $('#reportrange').data('daterangepicker').startDate.format('YYYY-MM-DD');\r\n// \tvar dateEnd = $('#reportrange').data('daterangepicker').endDate.format('YYYY-MM-DD');\r\n// \tvar valueSelect = $('#select-province').val();\r\n// \tvar queryParamsAPI = `?fromdate=${dateStart}&todate=${dateEnd}`;\r\n// \tvar newConfigsAPI = configsAPI;\r\n// \tnewConfigsAPI.url = dateStart == dateEnd ? `${urlAPI}` : `${urlAPI}${queryParamsAPI}`;\r\n// \t$.ajax(newConfigsAPI).done(function (response) {\r\n// \t\tvar data = response.data;\r\n// \t\tvar totalUpdateNew = data[0].updateTime.length;\r\n// \t\tif(totalUpdateOld != totalUpdateNew){\r\n// \t\t\tvar provinceFullName = data[valueSelect];\r\n// \t\t\tvar labels = provinceFullName.updateTime.map(item => moment(item.date).format('DD/MM/YYYY HH:mm'));\r\n// \t\t\tvar selling = provinceFullName.updateTime.map(item => item.selling);\r\n// \t\t\tvar buying = provinceFullName.updateTime.map(item => item.buying);\r\n// \t\t\tmyChart.data = {\r\n// \t\t\t\tlabels: labels,\r\n// \t\t\t\tdatasets: [\r\n// \t\t\t\t\t{\r\n// \t\t\t\t\t\tlabel: `# ${langFE[checkLang].selling}`,\r\n// \t\t\t\t\t\tdata: selling,\r\n// \t\t\t\t\t\tbackgroundColor: '#008000',\r\n// \t\t\t\t\t\tborderColor: '#008000',\r\n// \t\t\t\t\t},\r\n// \t\t\t\t\t{\r\n// \t\t\t\t\t\tlabel: `# ${langFE[checkLang].buying}`,\r\n// \t\t\t\t\t\tdata: buying,\r\n// \t\t\t\t\t\tbackgroundColor: '#ff0000',\r\n// \t\t\t\t\t\tborderColor: '#ff0000',\r\n// \t\t\t\t\t}\r\n// \t\t\t\t]\r\n// \t\t\t};\r\n// \t\t\tmyChart.update();\r\n// \t\t}\r\n// \t});\r\n// }\r\n\r\n// function CallAPIGoldPriceToday(){\r\n// \tvar checkGoldPriceByDate = $('.sjc-price-today');\r\n// \tif(checkGoldPriceByDate.length > 0){\r\n// \t\tvar currentDate = moment();\r\n// \t\t$('input[name=\"datesearch\"]').val(currentDate.format('DD/MM/YYYY'));\r\n// \t\t// Search date\r\n// \t\t$('input[name=\"datesearch\"]').daterangepicker({\r\n// \t\t\tsingleDatePicker: true,\r\n// \t\t\tshowDropdowns: true,\r\n// \t\t\tautoApply: true,\r\n// \t\t\tmaxDate: currentDate,\r\n// \t\t\tminYear: 2000,\r\n// \t\t\tmaxYear: parseInt(moment().format('YYYY'), 10),\r\n// \t\t\tlocale: {\r\n// \t\t\t\t'format': 'DD/MM/YYYY',\r\n// \t\t\t\t'applyLabel': `${langFE[checkLang].apply}`,\r\n// \t\t\t\t'cancelLabel': `${langFE[checkLang].cancel}`,\r\n// \t\t\t}\r\n// \t\t});\r\n\r\n// \t\tvar dataAPI;\r\n// \t\tvar APIUrl = `${siteRootFE}/GoldPrice/Services/PriceService.ashx?method=GetPriceByDate`;\r\n// \t\tvar configs = {\r\n// \t\t\t\"url\": APIUrl,\r\n// \t\t\t\"method\": \"POST\",\r\n// \t\t\t\"timeout\": 0,\r\n// \t\t};\r\n// \t\t$.ajax(configs).done(function (response) {\r\n// \t\t\tdataAPI = response.data;\r\n// \t\t\t// date = response.date;\r\n// \t\t\tdate = currentDate.format('DD/MM/YYYY');\r\n// \t\t\tSJCTableGoldPriceToday(dataAPI, date);\r\n// \t\t}).fail(function (error) {\r\n// \t\t\tconsole.log(error)\r\n// \t\t});\r\n\r\n// \t\t// Search date\r\n// \t\t$('input[name=\"datesearch\"]').on('apply.daterangepicker', function (ev, picker) {\r\n// \t\t\tvar getDate = picker.startDate.format('DD/MM/YYYY');\r\n// \t\t\tvar queryParamsAPI = `&date=${picker.startDate.format('YYYY-MM-DD')}`;\r\n// \t\t\tvar newConfigsAPI = configs;\r\n// \t\t\tnewConfigsAPI.url = `${APIUrl}${queryParamsAPI}`;\r\n// \t\t\t$.ajax(newConfigsAPI).done(function (response) {\r\n// \t\t\t\tdataAPI = response.data;\r\n// \t\t\t\t// date = response.date;\r\n// \t\t\t\tdate = getDate;\r\n// \t\t\t\tSJCTableGoldPriceToday(dataAPI, date);\r\n// \t\t\t});\r\n// \t\t});\r\n\r\n// \t\t// button search date\r\n// \t\t$('.button-datesearch').on('click', function () {\r\n// \t\t\tvar getDate = moment($('input[name=\"datesearch\"]').val()).format('DD/MM/YYYY');\r\n// \t\t\tvar queryParamsAPI = `&date=${moment(getDate).format('YYYY-MM-DD')}`;\r\n// \t\t\tvar newConfigsAPI = configs;\r\n// \t\t\tnewConfigsAPI.url = `${APIUrl}${queryParamsAPI}`;\r\n// \t\t\t$.ajax(newConfigsAPI).done(function (response) {\r\n// \t\t\t\tdataAPI = response.data;\r\n// \t\t\t\t// date = response.date;\r\n// \t\t\t\tdate = getDate;\r\n// \t\t\t\tSJCTableGoldPriceToday(dataAPI, date);\r\n// \t\t\t});\r\n// \t\t});\r\n\r\n// \t\t// Cập nhật dữ liệu sau 30s\r\n// \t\tsetInterval(function () {\r\n// \t\t\tvar getDate = moment($('input[name=\"datesearch\"]').val()).format('DD/MM/YYYY');\r\n// \t\t\tvar queryParamsAPI = `&date=${moment(getDate).format('YYYY-MM-DD')}`;\r\n// \t\t\tvar newConfigsAPI = configs;\r\n// \t\t\tnewConfigsAPI.url = `${APIUrl}${queryParamsAPI}`;\r\n// \t\t\t$.ajax(configs).done(function (response) {\r\n// \t\t\t\tdataAPI = response.data;\r\n// \t\t\t\t// date = response.date;\r\n// \t\t\t\tdate = getDate;\r\n// \t\t\t\tSJCTableGoldPriceToday(dataAPI, date);\r\n// \t\t\t});\r\n// \t\t}, 30000);\r\n// \t}\r\n// }\r\n\r\n// function SJCTableGoldPriceToday(dataAPI, dataDate){\r\n// \tvar data = dataAPI;\r\n// \tvar table = $('.date-table tbody');\r\n// \t$('.current-date').text(dataDate);\r\n// \ttable.empty();\r\n// \tfor (let i = 0; i < data.length; i++) {\r\n// \t\tvar provinceName = data[i].name; // Tên tỉnh\r\n// \t\tvar buy = data[i].buy; // Giá mua vào\r\n// \t\tvar buyDiff = data[i].buyDiff; // Giá mua vào\r\n// \t\tvar buyingFormat = `${buy}${checkNumberMinus(buyDiff) ? buyDiff : \"+\" + buyDiff}`;\r\n// \t\tvar sell = data[i].sell; // Giá mua vào\r\n// \t\tvar sellDiff = data[i].sellDiff; // Giá mua vào\r\n// \t\tvar sellingFormat = `${sell}${checkNumberMinus(sellDiff) ? sellDiff : \"+\" + buyDiff}`;\r\n// \t\t// html\r\n// \t\tvar trToday = `${i+1}${provinceName}${buyingFormat}${sellingFormat}`;\r\n// \t\ttable.append(trToday);\r\n// \t}\r\n// }\r\n\r\n// function checkNumberMinus(number) {\r\n// \tconst fomatNumber = number.toString().replace(/(\\d)(?=(\\d{3})+(?!\\d))/g, '$1,').replaceAll(',', '');\r\n// \tif (fomatNumber < 0) {\r\n// \t\treturn true;\r\n// \t}\r\n// \treturn false;\r\n// }\r\n"]}