{"version":3,"sources":["app.js"],"names":["CANHCAM_APP","ACTIVE_FIXED_HEADER","HEADER_TRANPARENT","ACTIVE_HEADER_POSITION","ACTIVE_PADDING_MAIN","ACTIVE_VALIDATOR","ACTIVE_SELECT","ACTIVE_FIXED_FOOTER","ACTIVE_LIST_TO_SELECT","DISPLAY_FOOTER","ACTIVE_RESPONSIVE","ACTIVE_BACKTOTOP","DISPLAY_BACKTOTOP","CHANGE_GRID","CHANGE_GRID_SM","DEV_MODE","DEV_MODE_GIRD_FULL","backToTop","length","window","scrollTop","$","removeClass","on","e","preventDefault","animate","CanhCamResponsive","bgimg","this","attr","css","mask-image","mask-repeat","-webkit-mask-image","-webkit-mask-position","-webkit-mask-repeat","each","pos","size","background-position","background-size","background-image","bgimgsm","bgimgxs","width","bgimg2","bgimg2sm","bgimg2xs","countUpCanhCam","offset","docH","top","docS","padingTop","parseInt","countId","run","dataset","result","countTo","$this","durationTo","textAfterCount","countNum","duration","easing","step","text","Math","floor","setHeader","elm","addClass","document","ready","headerHeight","outerHeight","setHeaderTranparent","b64EncodeUnicode","btoa","possible","fromCharCode","i","charAt","random","charCodeAt","encodeURIComponent","str","replace","match","p1","String","msViewportStyle","appendChild","createTextNode","c","slice","join","resize","console","scroll","hasClass","setMain","navigator","userAgent","head","canhCamStickyComtent","z-index","left","typeFix","changeFix","bottom","toFix","elementOffset","currentElementOffset","position","openMenuHeader","openBtn","closeBtn","menuHeader","overlayHeader","clone","getMapto","scrollNav","hide","getTo","html","removeAttr","show","slideUp","checkMenuScroll","n","l","slideDown","m","u","find","s","height","scrollNav2","is","mousewheelControl","keyboardControl","delay","disableOnInteraction","getHeightHeader","nua","indexOf","log","warn","onkeyup","a","event","altKey","ctrlKey","shiftKey","which","alert","b64DecodeUnicode","setTimeout","interleaveOffset","getHeightBannerHome","loop","speed","swiperOptions","slideProgress","grabCursor","innerOffset","watchSlidesProgress","innerTranslate","swiper","autoplay","touchStart","progress","slides","querySelector","style","transform","dispatchEvent","Swiper","transition","setTransition","init","Event","mouseDrag","success","owlCarousel","obj","pageurl","callbacks","ajax","url","animateIn","items","data","before","center","first","remove","padding","last","margin","navText","nav","animateOut","dots","autoplayTimeout","autoplayHoverPause","sync1","slidesPerPage","slideSpeed","992","sync2","smartSpeed","responsiveRefreshRate","responsive","el","count","syncPosition2","current","syncedSecondary","item","index","eq","end","to","start","onscreen","syncPosition","1200","number","slidesPerView","slidesPerColumn","spaceBetween","breakpoints","navigation","1024","changeIMGtoDiv1","320","paddingBottom","scrollingSpeed","URL","scrollOverflow","newsFullPath","navigationPosition","newsFullPathEncode","anchors","loadedSection","afterRender","append","onLeave","tmp","createNewsSocial1","fullpage","anchorLink","nextIndex","direction","anchor","appendTo"],"mappings":"aAAA,IAAMA,YAAc,CAACC,qBAAuB,EAAKC,mBAAqB,EAAMC,uBAA0B,EAAEC,qBAAuB,EAAKC,kBAAoB,EAAKC,eAAiB,EAAKC,qBAAuB,EAAKC,uBAAyB,EAAKC,eAAkB,IAAIC,mBAAqB,EAAKC,kBAAoB,EAAKC,kBAAqB,IAAIC,YAAe,IAAIC,eAAkB,IAAIC,UAAY,EAAMC,oBAAsB,GACha,SAASC,YADHjB,GAAAA,EAAAA,gBAAekB,OAAA,CACrB,IAASD,EAAY,WACKC,EAAtBC,QAA8BC,YACtBH,YAAuBL,kBACnBQ,EAAAA,gBAAsBA,SAA1B,QAEMC,EAAA,gBAAyBC,YAA3B,SAGHL,IANLI,EAAAF,QAAAI,GAAA,SAAA,WAQAN,MAEIA,EAAAA,gBAAAA,GAAAA,QAAAA,SAAAA,GADJO,EAAAC,iBAGEJ,EAAA,aAAmBK,QAAS,CACxBD,UAAF,GACE,QAUT,SAAAE,oBAELN,EAAA,aAASM,KAAAA,WACR,IAAAC,EAAAP,EAAAQ,MAAAC,KAAA,WACAT,EAAEQ,MAAAE,IAAF,CACCC,aAAc,OAAFJ,EAAa,IACzBP,gBAAY,gBACXY,cAAc,YACdC,qBAAiB,OAAAN,EAFN,IAGXO,wBAA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B,WAAW,EACX0B,WAAY,CACXJ,IAAI,CACHlB,MAAO,EACPQ,OAAQ","file":"app.js","sourcesContent":["const CANHCAM_APP = {\"ACTIVE_FIXED_HEADER\": true,\"HEADER_TRANPARENT\": false,\"ACTIVE_HEADER_POSITION\": 1,\"ACTIVE_PADDING_MAIN\": true,\"ACTIVE_VALIDATOR\": true,\"ACTIVE_SELECT\": true,\"ACTIVE_FIXED_FOOTER\": true,\"ACTIVE_LIST_TO_SELECT\": true,\"DISPLAY_FOOTER\": 600,\"ACTIVE_RESPONSIVE\": true,\"ACTIVE_BACKTOTOP\": true,\"DISPLAY_BACKTOTOP\": 100,\"CHANGE_GRID\": 991,\"CHANGE_GRID_SM\": 767,\"DEV_MODE\": false,\"DEV_MODE_GIRD_FULL\": false}\nfunction backToTop() {\n if ($('#back-to-top').length) {\n var backToTop = function() {\n var scrollTop = $(window).scrollTop();\n if (scrollTop > CANHCAM_APP.DISPLAY_BACKTOTOP) {\n $('#back-to-top').addClass('show');\n } else {\n $('#back-to-top').removeClass('show');\n }\n };\n backToTop();\n $(window).on('scroll', function() {\n backToTop();\n });\n $('#back-to-top').on('click', function(e) {\n e.preventDefault();\n $('html,body').animate({\n scrollTop: 0\n }, 700);\n });\n }\n}\n\n$(document).ready(function() {\n if (CANHCAM_APP.ACTIVE_BACKTOTOP) {\n backToTop()\n }\n});\nfunction CanhCamResponsive() {\n\t// Set BG Mask\n\t$('[bg-mask]').each(function () {\n\t\tvar bgimg = $(this).attr('bg-mask');\n\t\t$(this).css({\n\t\t\t\"mask-image\": \"url(\" + bgimg + \")\",\n\t\t\t\"mask-position\": \"center center\",\n\t\t\t\"mask-repeat\": \"no-repeat\",\n\t\t\t\"-webkit-mask-image\": \"url(\" + bgimg + \")\",\n\t\t\t\"-webkit-mask-position\": \"center center\",\n\t\t\t\"-webkit-mask-repeat\": \"no-repeat\"\n\t\t});\n\t})\n\t// Set BG Resposive\n\t$('[bg-img]').each(function () {\n\t\tvar bgimg = $(this).attr('bg-img');\n\t\tvar pos = $(this).attr('bg-pos');\n\t\tvar size = $(this).attr('bg-size');\n\t\tif (pos && pos.length > 0) {\n\t\t\t$(this).css({\n\t\t\t\t\"background-position\": pos\n\t\t\t});\n\t\t} else {\n\t\t\t$(this).css({\n\t\t\t\t\"background-position\": \"center center\"\n\t\t\t});\n\t\t}\n\t\tif (size && size.length > 0) {\n\t\t\t$(this).css({\n\t\t\t\t\"background-size\": size\n\t\t\t});\n\t\t} else {\n\t\t\t$(this).css({\n\t\t\t\t\"background-size\": \"cover\"\n\t\t\t});\n\t\t}\n\t\t$(this).css({\n\t\t\t\"background-image\": \"url(\" + bgimg + \")\"\n\t\t});\n\t});\n\n\t$('[bg-img-responsive]').each(function () {\n\t\tvar bgimg = $(this).attr('bg-img-responsive');\n\t\tvar bgimgsm = $(this).attr('bg-img-responsive-sm');\n\t\tvar bgimgxs = $(this).attr('bg-img-responsive-xs');\n\t\tif ($(window).width() >= CANHCAM_APP.CHANGE_GRID) {\n\t\t\t$(this).css({\n\t\t\t\t\"background-image\": \"url(\" + bgimg + \")\",\n\t\t\t\t\"background-position\": \"center center\",\n\t\t\t\t\"background-size\": \"cover\"\n\t\t\t});\n\t\t} else if ($(window).width() < CANHCAM_APP.CHANGE_GRID && $(window).width() > CANHCAM_APP.CHANGE_GRID_SM) {\n\t\t\t$(this).css({\n\t\t\t\t\"background-image\": \"url(\" + bgimgsm + \")\",\n\t\t\t\t\"background-position\": \"center center\",\n\t\t\t\t\"background-size\": \"cover\"\n\t\t\t});\n\t\t} else {\n\t\t\t$(this).css({\n\t\t\t\t\"background-image\": \"url(\" + bgimgxs + \")\",\n\t\t\t\t\"background-position\": \"center center\",\n\t\t\t\t\"background-size\": \"cover\"\n\t\t\t});\n\t\t}\n\t});\n\n\t$('[img-src-responsive]').each(function () {\n\t\tvar bgimg2 = $(this).attr('img-src-responsive');\n\t\tvar bgimg2sm = $(this).attr('img-src-responsive-sm');\n\t\tvar bgimg2xs = $(this).attr('img-src-responsive-xs');\n\t\tif ($(window).width() >= CANHCAM_APP.CHANGE_GRID) {\n\t\t\t$(this).attr(\"src\", \"\" + bgimg2 + \"\");\n\t\t} else if ($(window).width() < CANHCAM_APP.CHANGE_GRID && $(window).width() > CANHCAM_APP.CHANGE_GRID_SM) {\n\t\t\t$(this).attr(\"src\", \"\" + bgimg2sm + \"\");\n\t\t} else {\n\t\t\t$(this).attr(\"src\", \"\" + bgimg2xs + \"\");\n\t\t}\n\t});\n\n};\n\n$(function () {\n\tif (CANHCAM_APP.ACTIVE_RESPONSIVE) {\n\t\tCanhCamResponsive();\n\t}\n})\n\n$(window).resize(function () {\n\tif (CANHCAM_APP.ACTIVE_RESPONSIVE) {\n\t\tCanhCamResponsive();\n\t}\n})\n\n\n// Thêm [dropdown-type=\"hover\"] vào thẻ a để bật tính năng hover open dropdown \n// if ($(window).width() > CANHCAM_APP.CHANGE_GRID) {\n// \t$('.dropdown').on('mouseenter mouseleave', function () {\n// \t\tvar ___d = $(this).find('[dropdown-type=\"hover\"]').parents('.dropdown')\n// \t\tif (___d && ___d.length > 0) {\n// \t\t\t$(this).find('[dropdown-type=\"hover\"]').removeAttr('data-toggle')\n// \t\t\tsetTimeout(function () {\n// \t\t\t\t___d[___d.is(':hover') ? 'addClass' : 'removeClass']('show');\n// \t\t\t\t___d.is(':hover') ? ___d.find('.dropdown-menu').show() : ___d.find('.dropdown-menu').hide()\n// \t\t\t}, 10);\n// \t\t}\n// \t})\n// } else {\n// \t$('.dropdown').each(function () {\n// \t\t$(this).addClass('show')\n// \t\t$(this).find('.dropdown-menu').show()\n// \t})\n// }\n\n\n\n$('[data-count-id]').each(function() {\n\tconsole.log($(this)[0].dataset.countId)\n\twindow[$(this)[0].dataset.countId] = false\n})\n\nfunction countUpCanhCam() {\n\n\t$('[data-count]').each(function () {\n\t\tlet elm = $(this).offset().top\n\t\tlet docH = $(window).height()\n\t\tlet docS = $(window).scrollTop()\n\t\tlet padingTop = 0\n\t\tif ($(this).attr('data-top') && $(this).attr('data-top').length) {\n\t\t\tpadingTop = parseInt($(this).attr('data-top'));\n\t\t}\n\t\tlet result = (elm + padingTop) - (docH + docS)\n\t\tlet countId = $(this)[0].dataset.countId\n\t\tlet run = window[countId]\n\n\t\tif (result <= 0 && !run) {\n\t\t\tlet $this = $(this),\n\t\t\t\tcountTo = $this.attr('data-count'),\n\t\t\t\tdurationTo = parseInt($this.attr('data-duration')),\n\t\t\t\ttextAfterCount = $this.attr('data-text-after-count')\n\t\t\t$({ countNum: $this.text() }).animate({\n\t\t\t\tcountNum: countTo\n\t\t\t}, {\n\t\t\t\t\tduration: durationTo,\n\t\t\t\t\teasing: 'linear',\n\t\t\t\t\tstep: function () {\n\t\t\t\t\t\t$this.text(Math.floor(this.countNum));\n\t\t\t\t\t},\n\t\t\t\t\tcomplete: function () {\n\t\t\t\t\t\t$this.text(this.countNum);\n\t\t\t\t\t\tif (textAfterCount) {\n\t\t\t\t\t\t\t$this.text(textAfterCount)\n\t\t\t\t\t\t}\n\t\t\t\t\t\twindow[countId] = true\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t}\n\t});\n}\n\n$(document).ready(function () {\n\tcountUpCanhCam()\n\n});\n\n$(window).scroll(function () {\n\tcountUpCanhCam()\n\n});\n\n$(window).resize(function () {\n\tcountUpCanhCam()\n})\n\n// function setFooter() {\n// \tvar bodyHeight = $(\"body\").outerHeight(),\n// \t\theaderHeight = $(\"header\").outerHeight(),\n// \t\tfooterHeight = $(\"footer\").outerHeight(),\n// \t\tmainHeight = $(\"main\").outerHeight(),\n// \t\tcurentHeight = mainHeight + headerHeight + footerHeight,\n// \t\tcurentfixedHeight = mainHeight + footerHeight,\n// \t\tnewHeight = bodyHeight - (headerHeight + footerHeight),\n// \t\tnewfixedHeight = bodyHeight - footerHeight;\n// \tif ($(window).width() > CANHCAM_APP.DISPLAY_FOOTER) {\n// \t\tif ($(window).width() <= CANHCAM_APP.CHANGE_GRID) {\n// \t\t\t$(\"main\").css('min-height', newfixedHeight + 'px')\n// \t\t} else {\n// \t\t\tif (!CANHCAM_APP.ACTIVE_FIXED_HEADER) {\n// \t\t\t\t$(\"main\").css('min-height', newHeight + 'px')\n// \t\t\t} else {\n// \t\t\t\t$(\"main\").css('min-height', newfixedHeight + 'px')\n// \t\t\t}\n// \t\t}\n// \t} else {\n// \t\t$(\"main\").css('min-height', 'initial')\n// \t}\n// }\n\n// $(document).ready(function () {\n// \tif (CANHCAM_APP.ACTIVE_FIXED_FOOTER) {\n// \t\tsetFooter()\n// \t}\n// });\n\n// $(window).resize(function () {\n// \tif (CANHCAM_APP.ACTIVE_FIXED_FOOTER) {\n// \t\tsetFooter()\n// \t}\n// })\n\n\n\n/*!\n * sticky-footer v4.2.0: Responsive sticky footers\n * (c) 2016 Chris Ferdinandi\n * MIT License\n * http://github.com/cferdinandi/sticky-footer\n */\n\n// (function (root, factory) {\n// \tif ( typeof define === 'function' && define.amd ) {\n// \t\tdefine([], factory(root));\n// \t} else if ( typeof exports === 'object' ) {\n// \t\tmodule.exports = factory(root);\n// \t} else {\n// \t\troot.stickyFooter = factory(root);\n// \t}\n// })(typeof global !== 'undefined' ? global : this.window || this.global, (function (root) {\n\n// \t'use strict';\n\n// \t//\n// \t// Variables\n// \t//\n\n// \tvar stickyFooter = {}; // Object for public APIs\n// \tvar supports = 'querySelector' in document && 'addEventListener' in root; // Feature test\n// \tvar settings, wrap, footer, eventTimeout;\n\n// \t// Default settings\n// \tvar defaults = {\n// \t\tselectorWrap: '[data-sticky-wrap]',\n// \t\tselectorFooter: '[data-sticky-footer]',\n// \t\tcallback: function () {}\n// \t};\n\n\n// \t//\n// \t// Methods\n// \t//\n\n// \t/**\n// \t * Merge two or more objects. Returns a new object.\n// \t * @private\n// \t * @param {Boolean} deep If true, do a deep (or recursive) merge [optional]\n// \t * @param {Object} objects The objects to merge together\n// \t * @returns {Object} Merged values of defaults and options\n// \t */\n// \tvar extend = function () {\n\n// \t\t// Variables\n// \t\tvar extended = {};\n// \t\tvar deep = false;\n// \t\tvar i = 0;\n// \t\tvar length = arguments.length;\n\n// \t\t// Check if a deep merge\n// \t\tif ( Object.prototype.toString.call( arguments[0] ) === '[object Boolean]' ) {\n// \t\t\tdeep = arguments[0];\n// \t\t\ti++;\n// \t\t}\n\n// \t\t// Merge the object into the extended object\n// \t\tvar merge = function (obj) {\n// \t\t\tfor ( var prop in obj ) {\n// \t\t\t\tif ( Object.prototype.hasOwnProperty.call( obj, prop ) ) {\n// \t\t\t\t\t// If deep merge and property is an object, merge properties\n// \t\t\t\t\tif ( deep && Object.prototype.toString.call(obj[prop]) === '[object Object]' ) {\n// \t\t\t\t\t\textended[prop] = extend( true, extended[prop], obj[prop] );\n// \t\t\t\t\t} else {\n// \t\t\t\t\t\textended[prop] = obj[prop];\n// \t\t\t\t\t}\n// \t\t\t\t}\n// \t\t\t}\n// \t\t};\n\n// \t\t// Loop through each object and conduct a merge\n// \t\tfor ( ; i < length; i++ ) {\n// \t\t\tvar obj = arguments[i];\n// \t\t\tmerge(obj);\n// \t\t}\n\n// \t\treturn extended;\n\n// \t};\n\n// \t/**\n// \t * Get height of the viewport\n// \t * @private\n// \t * @return {Number} Height of the viewport in pixels\n// \t */\n// \tvar getViewportHeight = function () {\n// \t\treturn Math.max( document.documentElement.clientHeight, window.innerHeight || 0 );\n// \t};\n\n// \t/**\n// \t * Set page wrapper height to fill viewport (minus footer height)\n// \t * @private\n// \t * @param {Element} wrap Page wrapper\n// \t * @param {Element} footer Page footer\n// \t * @param {Object} settings\n// \t */\n// \tvar setWrapHeight = function ( wrap, footer, settings ) {\n// \t\twrap.style.minHeight = ( getViewportHeight() - footer.offsetHeight ) + 'px';\n// \t\tsettings.callback(); // Run callback\n// \t};\n\n// \t/**\n// \t * Destroy the current initialization.\n// \t * @public\n// \t */\n// \tstickyFooter.destroy = function () {\n\n// \t\tif ( !settings ) return;\n\n// \t\t// Unset styles\n// \t\tdocument.documentElement.style.minHeight = '';\n// \t\tdocument.body.style.minHeight = '';\n// \t\twrap.style.minHeight = '';\n// \t\twindow.removeEventListener( 'resize', eventThrottler, false );\n\n// \t\t// Reset variables\n// \t\tsettings = null;\n// \t\twrap = null;\n// \t\tfooter = null;\n// \t\teventTimeout = null;\n\n// \t};\n\n// \t/**\n// \t * On window scroll and resize, only run events at a rate of 15fps for better performance\n// \t * @private\n// \t * @param {Function} eventTimeout Timeout function\n// \t * @param {NodeList} wrap The content wrapper for the page\n// \t * @param {NodeList} footer The footer for the page\n// \t * @param {Object} settings\n// \t */\n// \tvar eventThrottler = function () {\n// \t\tif ( !eventTimeout ) {\n// \t\t\teventTimeout = setTimeout((function() {\n// \t\t\t\teventTimeout = null;\n// \t\t\t\tsetWrapHeight( wrap, footer, settings );\n// \t\t\t}), 66);\n// \t\t}\n// \t};\n\n// \t/**\n// \t * Initialize Plugin\n// \t * @public\n// \t * @param {Object} options User settings\n// \t */\n// \tstickyFooter.init = function ( options ) {\n\n// \t\t// feature test\n// \t\tif ( !supports ) return;\n\n// \t\t// Destroy any existing initializations\n// \t\tstickyFooter.destroy();\n\n// \t\t// Selectors and variables\n// \t\tsettings = extend( defaults, options || {} ); // Merge user options with defaults\n// \t\twrap = document.querySelector( settings.selectorWrap );\n// \t\tfooter = document.querySelector( settings.selectorFooter );\n\n// \t\t// Sanity check\n// \t\tif ( !wrap || !footer ) return;\n\n// \t\t// Stick footer\n// \t\tdocument.documentElement.style.minHeight = '100%';\n// \t\tdocument.body.style.minHeight = '100%';\n// \t\tsetWrapHeight( wrap, footer, settings );\n// \t\twindow.addEventListener( 'resize', eventThrottler, false); // Run Sticky Footer on window resize\n\n// \t};\n\n\n// \t//\n// \t// Public APIs\n// \t//\n\n// \treturn stickyFooter;\n\n// }));\n\nfunction setHeader(elm) {\n\tif (elm >= CANHCAM_APP.ACTIVE_HEADER_POSITION) {\n\t\t$(\"header\").addClass('active');\n\t} else {\n\t\t$(\"header\").removeClass('active');\n\t}\n}\n\n$(document).ready(function () {\n\tif (CANHCAM_APP.ACTIVE_FIXED_HEADER) {\n\t\t$(\"header\").addClass('fixedheader');\n\t\tif ($(window).scrollTop() >= CANHCAM_APP.ACTIVE_HEADER_POSITION) {\n\t\t\tsetHeader($(window).scrollTop());\n\t\t}\n\t} else {\n\t\tif ($(window).width() <= CANHCAM_APP.CHANGE_GRID) {\n\t\t\t$(\"header\").addClass('fixedheader');\n\t\t} else {\n\t\t\t$(\"header\").removeClass('fixedheader');\n\t\t}\n\t}\n\tif ($(\"header\").hasClass(\"fixedheader\")) {\n\t\t$(\"main\").addClass('main-fixedheader');\n\t}\n});\n\n// Fixed Header\n$(window).scroll(function () {\n\tsetHeader($(document).scrollTop());\n});\n// Fixed Header\n$(window).resize(function () {\n\tif (!CANHCAM_APP.ACTIVE_FIXED_HEADER) {\n\t\tif ($(window).width() <= CANHCAM_APP.CHANGE_GRID) {\n\t\t\t$(\"header\").addClass('fixedheader');\n\t\t} else {\n\t\t\t$(\"header\").removeClass('fixedheader');\n\t\t}\n\t}\n});\n\n\nfunction setMain() {\n var\n\t\theaderHeight = $(\"header\").outerHeight();\n\t\tif ($(window).width() <= CANHCAM_APP.CHANGE_GRID) {\n\t\t\t\t$(\"main\").css('padding-top', headerHeight + 'px')\n\t\t} else {\n\t\t\tif (!CANHCAM_APP.ACTIVE_PADDING_MAIN) {\n\t\t\t\t$(\"main\").css('padding-top', '0px')\n\t\t\t} else {\n\t\t\t\tif (!CANHCAM_APP.ACTIVE_FIXED_HEADER) {\n\t\t\t\t\t$(\"main\").css('padding-top', 'initial')\n\t\t\t\t} else {\n\t\t\t\t\t$(\"main\").css('padding-top', headerHeight + 'px')\n\t\t\t\t}\n\t\t\t}\n\t\t}\n}\n\n$(document).ready(function() {\n setMain()\n});\n\n$(window).resize(function() {\n setMain()\n})\n\nfunction setHeaderTranparent(elm) {\n\tif (elm >= CANHCAM_APP.ACTIVE_HEADER_POSITION) {\n\t\t$(\"header\").removeClass('has-tranparent');\n\t} else {\n\t\t$(\"header\").addClass('has-tranparent');\n\t}\n}\n\n$(document).ready(function () {\n\tif (CANHCAM_APP.HEADER_TRANPARENT) {\n\t\t$(\"header\").addClass('has-tranparent');\n\t\tif ($(window).scrollTop() >= CANHCAM_APP.ACTIVE_HEADER_POSITION) {\n\t\t\tsetHeaderTranparent($(window).scrollTop());\n\t\t}\n\t}\n\n});\n\n// Tranparent Header\n$(window).scroll(function () {\n\tif (CANHCAM_APP.HEADER_TRANPARENT) {\n\t\tsetHeaderTranparent($(document).scrollTop());\n\t}\n});\n\n\nfunction canhcamID(e) {\n\tvar text = \"\";\n\tvar possible = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\";\n\tfor (var i = 0; i < e; i++)\n\t\ttext += possible.charAt(Math.floor(Math.random() * possible.length));\n\treturn text;\n}\n\nfunction b64EncodeUnicode(str) {\n\treturn btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g,\n\t\tfunction toSolidBytes(match, p1) {\n\t\t\treturn String.fromCharCode('0x' + p1);\n\t\t}));\n}\n\nfunction b64DecodeUnicode(str) {\n\treturn decodeURIComponent(atob(str).split('').map(function (c) {\n\t\treturn '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);\n\t}).join(''));\n}\n\n// Copyright 2014-2017 The Bootstrap Authors\n// Copyright 2014-2017 Twitter, Inc.\nif (navigator.userAgent.match(/IEMobile\\/10\\.0/)) {\n var msViewportStyle = document.createElement('style')\n msViewportStyle.appendChild(\n document.createTextNode(\n '@-ms-viewport{width:auto!important}'\n )\n )\n document.head.appendChild(msViewportStyle)\n}\n\n$(function() {\n var nua = navigator.userAgent\n var isAndroid = (nua.indexOf('Mozilla/5.0') > -1 && nua.indexOf('Android ') > -1 && nua.indexOf('AppleWebKit') > -1 && nua.indexOf('Chrome') === -1)\n if (isAndroid) {\n $('select.form-control').removeClass('form-control').css('width', '100%')\n }\n})\n\nconsole.log('%cCANHCAM', 'font-size:100px;color:#ff451a;text-shadow:0 1px 0 #f73936,0 2px 0 #f73936 ,0 3px 0 #f73936 ,0 4px 0 #f73936 ,0 5px 0 #f73936 ,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);')\nconsole.log('%c CANHCAM ' + '%c - The best Web Solutions Provider', 'border-radius: 2px; padding: 3px; background: #ff451a; color: #FFF', 'color: #ff451a');\nconsole.warn(\"CANHCAM warning: This is a browser feature intended for developers. If someone told you to copy and paste something here to enable a CANHCAM feature or 'hack' someone's account, it is a scam and will give them access to your CANHCAM account.\");\ndocument.onkeyup = function (a) { if ((a = a || window.event).altKey && a.ctrlKey && a.shiftKey && 13 == a.which) return $(\"body\"), alert(b64DecodeUnicode(\"QkFPIE5HVVlFTiAtIDA5Njk2ODk4OTMKRW1haWw6IGJhb25ndXllbnlhbUBnbWFpbC5jb20KV2ViOiBiYW9uZ3V5ZW55YW0uZ2l0aHViLmlv\")), !1 };\n\n\n// $(document).ready(function () {\n// \tif (CANHCAM_APP.ACTIVE_SELECT) {\n// \t\t$(\".select2\").select2({\n// \t\t\tplaceholder: \"Chọn một\"\n// \t\t});\n\n// \t\t$('.select2').on(\"select2:select\", function (e) {\n// \t\t\tvar valSelect = $(e.currentTarget).val()\n// \t\t});\n// \t\t$('.select2').on(\"select2:unselect\", function (e) {\n// \t\t\tvar valUnselect = $(e.currentTarget).val()\n// \t\t});\n// \t}\n// });\n\n// function selectResset(e) {\n// \t$(e).val(null).trigger(\"change\", 0);\n// }\n\nfunction canhCamStickyComtent() {\n\n\t$('[data-fix]').each(function () {\n\t\t$(this).css({\n\t\t\t\"z-index\": '500'\n\t\t})\n\t\tif ($(this).attr('data-top') && $(this).attr('data-top').length) {\n\t\t\t$(this).css({\n\t\t\t\t\"top\": $(this).attr('data-top')\n\t\t\t})\n\t\t}\n\t\tif ($(this).attr('data-left') && $(this).attr('data-left').length) {\n\t\t\t$(this).css({\n\t\t\t\t\"left\": $(this).attr('data-left')\n\t\t\t})\n\t\t}\n\t\tif ($(this).attr('data-bottom') && $(this).attr('data-bottom').length) {\n\t\t\t$(this).css({\n\t\t\t\t\"bottom\": $(this).attr('data-bottom')\n\t\t\t})\n\t\t}\n\t\tif ($(this).attr('data-right') && $(this).attr('data-right').length) {\n\t\t\t$(this).css({\n\t\t\t\t\"right\": $(this).attr('data-right')\n\t\t\t})\n\t\t}\n\n\t\tvar toFix = 0\n\t\tvar typeFix = 'fixed'\n\t\tvar changeFix = 'static'\n\n\t\tif ($(this).attr('data-fix') && $(this).attr('data-fix').length) {\n\t\t\ttoFix = parseInt($(this).attr('data-fix'))\n\t\t}\n\t\tif ($(this).attr('data-fix-type') && $(this).attr('data-fix-type').length) {\n\t\t\ttypeFix = $(this).attr('data-fix-type')\n\t\t}\n\t\tif ($(this).attr('data-fix-change') && $(this).attr('data-fix-change').length) {\n\t\t\tchangeFix = $(this).attr('data-fix-change')\n\t\t}\n\n\t\t$(this).css({\n\t\t\t\"position\": typeFix\n\t\t})\n\n\t\tvar scrollTop = $(window).scrollTop();\n\t\tvar elementOffset = $(this).offset().top;\n\t\tvar currentElementOffset = (elementOffset - scrollTop);\n\t\tif (currentElementOffset <= toFix) {\n\t\t\t$(this).css({\n\t\t\t\t\"position\": changeFix,\n\t\t\t\t\"top\": toFix + 'px'\n\t\t\t})\n\t\t}\n\n\t});\n}\n\n\n$(document).ready(function () {\n\tcanhCamStickyComtent()\n});\n\n$(window).scroll(function () {\n\tcanhCamStickyComtent()\n});\n\n$(window).resize(function () {\n\tcanhCamStickyComtent()\n})\n\n// $(document).ready(function () {\n// \tif (CANHCAM_APP.ACTIVE_VALIDATOR) {\n// \t\t$('[data-toggle=\"validator\"]').validator({\n// \t\t\tfeedback: {\n// \t\t\t\tsuccess: 'fa fa-check',\n// \t\t\t\terror: 'fa fa-close'\n// \t\t\t}\n// \t\t}).on('submit', function (e) {\n// \t\t\tif (e.isDefaultPrevented()) {\n// \t\t\t\t$('[data-toggle=\"validator\"]').find('select').parent('.form-group').addClass('has-danger')\n// \t\t\t}\n// \t\t})\n// \t\tif ($('[data-toggle=\"validator\"]').find('select').hasClass('has-success')) {\n// \t\t\tthis.removeClass('has-danger')\n// \t\t}\n// \t}\n// });\n\n// function CCHeader12() {\n// \t$('.canhcam-header-12 #demoResAllInOneMenu').kResponsiveMenu({\n// \t\tanimationSpeed: 'fast', // slow, fast, 200\n// \t\tresizeWidth: 'lg', // 'xs', 'sm', 'md', 'lg', 'xl', 480,\n// \t\tmenuType: 'horizontal', // horizontal, vertical\n// \t\tmenuPush: 'right', // right, left\n// \t\tmenuPushPosition: 'fixed', // absolute\n// \t\tmenuPushWidth: '300px', // px, %, rem\n// \t\tmenuBackDrop: true, // px, %, rem\n// \t})\n// };\n\n\n// $(document).ready(function () {\n// \tCCHeader12()\n// });\n// // Fixed Header\n// $(window).scroll(function () {\n// });\n\n// $(window).resize(function () {\n// })\n\n$(document).ready(function(){\n\topenMenuHeader();\n\tgetMapto();\n})\n\n$(window).resize(function(){\n\tgetMapto();\n})\n\nfunction openMenuHeader() {\n\tlet openBtn = $('.canhcam-header-1 .header__wrap .header__toggle--open')\n\tlet closeBtn = $('.canhcam-header-1 .header__wrap .header__toggle--close , .canhcam-header-1 .header__wrap .header__overlay')\n\tlet menuHeader = $('.canhcam-header-1 .header__wrap .header__menu')\n\tlet overlayHeader = $('.canhcam-header-1 .header__wrap .header__overlay')\n\n\t$(openBtn).on('click touchstart' , function () {\n\t\t$(menuHeader).addClass('header__menu--expand');\n\t\t$(overlayHeader).addClass('header__overlay--show');\n\t\t$('.canhcam-header-1 .header__wrap .header__toggle--close').addClass('active');\n\t})\n\t$(closeBtn).on('click touchstart' , function () {\n\t\t$(menuHeader).removeClass('header__menu--expand')\n\t\t$(overlayHeader).removeClass('header__overlay--show');\n\t\t$('.canhcam-header-1 .header__wrap .header__toggle--close').removeClass('active');\n\t})\n}\n\nfunction getMapto() {\n\tif ($(window).width() <= 992) {\n\t\t$('[k-menu-map-to]').each(function () {\n\t\t\tvar getTo = $(this).attr('k-menu-map-to')\n\t\t\t$(getTo).html($(this).clone().removeAttr('k-menu-map-to').show())\n\t\t\t$(this).hide()\n\t\t})\n\t} else {\n\t\t$('[k-menu-map-to]').each(function () {\n\t\t\tvar getTo = $(this).attr('k-menu-map-to')\n\t\t\t$(getTo).html('')\n\t\t\t$(this).show()\n\t\t})\n\t}\n}\nfunction scrollNav(){\n\t$('.canhcam-nav-1 ul.nav').hide();\n\t$('.canhcam-nav-1 .trigger-btn').on('click', function() {\n\t\tif ($('.canhcam-nav-1 nav').is(':hidden') === true) {\n\t\t\t$('.canhcam-nav-1 nav ').slideDown('slow')\n\t\t\t$(this).addClass('active')\n\t\t} else {\n\t\t\t$('.canhcam-nav-1 nav').slideUp('slow')\n\t\t\t$(this).removeClass('active')\n\t\t}\n\n\t})\n\t$('.canhcam-nav-1 ul.nav').removeAttr( \"style\" )\n}\n\nfunction checkMenuScroll() {\n\tvar e = $(window).scrollTop(),\n\t\tm = $('header').outerHeight(),\n\t\tn = $('.canhcam-nav-1').offset().top,\n\t\tl = $(window).height()\n\tif (((n - m) - e) <= 0) {\n\t\tif ($('header').hasClass(\"active\") == true) {\n\t\t\t$('.canhcam-nav-1').addClass('active').css({\n\t\t\t\t\"top\": (m - 1) + \"px\"\n\t\t\t})\n\t\t}\n\t} else {\n\t\t$('.canhcam-nav-1').removeClass('active').removeAttr('style')\n\t}\n\n\t$('.canhcam-nav-1 nav li').each(function() {\n\t\tvar u = $(this).find('a').attr('data-link')\n\t\tvar s = $('#' + u).offset().top\n\t\tif (((l + e) - 400) >= s) {\n\t\t\t$('.canhcam-nav-1 nav li a').removeClass('active')\n\t\t\t$(this).find('a').addClass('active')\n\t\t}\n\t})\n}\n\n$(document).ready(function(){\n\tif($(window).width() < CANHCAM_APP.CHANGE_GRID){\n\t\tscrollNav();\n\t}\n\n\n\t$('.canhcam-nav-1 nav li a').removeClass('active')\n\t$('.canhcam-nav-1 nav li:first-child a').addClass('active')\n\t$('.canhcam-nav-1 nav li a').on('click', function() {\n\t\t$('.canhcam-nav-1 nav li a').removeClass('active')\n\t\t$(this).addClass('active')\n\t\t$('html, body').animate({\n\t\t\tscrollTop: $('#' + $(this).attr('data-link')).offset().top - $('.canhcam-nav-1').outerHeight() - 80\n\t\t}, 500);\n\n\t\treturn false;\n\t})\n\n\tsetTimeout(() => {\n\t\tif ($('header').hasClass(\"active\") == true) {\n\t\t\tvar m = $('header').outerHeight()\n\t\t\t$('.canhcam-nav-1').addClass('active').css({\n\t\t\t\t\"top\": (m - 1) + \"px\"\n\t\t\t})\n\t\t}\n\t}, 500);\n});\n\n$(window).on('scroll', function() {\n\tif ($('.canhcam-nav-1').length > 0) {\n\t\tcheckMenuScroll()\n\t}\n})\nfunction scrollNav2(){\n\t$('.canhcam-nav-2 ul.nav').hide();\n\t$('.canhcam-nav-2 .trigger-btn').on('click', function() {\n\t\tif ($('.canhcam-nav-2 nav').is(':hidden') === true) {\n\t\t\t$('.canhcam-nav-2 nav').slideDown('slow')\n\t\t\t$(this).addClass('active')\n\t\t} else {\n\t\t\t$('.canhcam-nav-2 nav').slideUp('slow')\n\t\t\t$(this).removeClass('active')\n\t\t}\n\n\t})\n\t$('.canhcam-nav-2 ul.nav').removeAttr( \"style\" )\n}\n\n$(document).ready(function(){\n\tscrollNav2();\n})\n// $(function () {\n// \tif ($('.canhcam-banner-1 .owl-carousel').length) {\n// \t\t$('.canhcam-banner-1 .owl-carousel').owlCarousel({\n// \t\t\tanimateIn: 'slideInLeft',\n// \t\t\tanimateOut: 'slideOutRight',\n// \t\t\titems: 1,\n// \t\t\tloop: false,\n// \t\t\tcenter: false,\n// \t\t\t// padding: 10,\n// \t\t\t// navText: ['', ''],\n// \t\t\t// nav: true,\n// \t\t\tdots: false,\n// \t\t\t// autoplay: true,\n// \t\t\tautoplayTimeout: 3000,\n// \t\t\tautoplayHoverPause: true,\n// \t\t\tcallbacks: true,\n// \t\t\t// margin: 30,\n// \t\t\t// responsive: {\n// \t\t\t// \t768: {\n// \t\t\t// \t\titems: 3,\n// \t\t\t// \t} ,\n// \t\t\t// \t992: {\n// \t\t\t// \t\titems: 4\n// \t\t\t// \t}\n// \t\t\t// }\n// \t\t});\n// \t}\n\n// });\n\n$(document).ready(function () {\n\tgetHeightBannerHome();\n});\n$(window).resize(function () {\n\tgetHeightBannerHome();\n})\n\nfunction getHeightBannerHome() {\n\tlet getHeightHeader = $('header').outerHeight()\n\tlet setHeightBannerHome = $(\".canhcam-banner-1 .banners-list .swiper-container .swiper-slide\");\n\t$(\".canhcam-banner-1 .banners-list .swiper-container .swiper-slide\").each((i, e) => {\n\t\t$(e).css({\n\t\t\t'height': 'calc(100vh - ' + getHeightHeader + 'px)'\n\t\t})\n\t})\n}\n\nvar interleaveOffset = 0.5;\n\nvar swiperOptions = {\n\tloop: true,\n\tspeed: 1000,\n\tgrabCursor: true,\n\twatchSlidesProgress: true,\n\tmousewheelControl: true,\n\tkeyboardControl: true,\n\tautoplay: {\n\t\tdelay: 3000,\n\t\tdisableOnInteraction: false,\n\t},\n\t// navigation: {\n\t// \tnextEl: \".swiper-button-next\",\n\t// \tprevEl: \".swiper-button-prev\"\n\t// },\n\ton: {\n\t\tprogress: function () {\n\t\t\tvar swiper = this;\n\t\t\tfor (var i = 0; i < swiper.slides.length; i++) {\n\t\t\t\tvar slideProgress = swiper.slides[i].progress;\n\t\t\t\tvar innerOffset = swiper.width * interleaveOffset;\n\t\t\t\tvar innerTranslate = slideProgress * innerOffset;\n\t\t\t\tswiper.slides[i].querySelector(\".canhcam-banner-1 .slide-inner\").style.transform =\n\t\t\t\t\t\"translate3d(\" + innerTranslate + \"px, 0, 0)\";\n\t\t\t}\n\t\t},\n\t\ttouchStart: function () {\n\t\t\tvar swiper = this;\n\t\t\tfor (var i = 0; i < swiper.slides.length; i++) {\n\t\t\t\tswiper.slides[i].style.transition = \"\";\n\t\t\t}\n\t\t},\n\t\tsetTransition: function (speed) {\n\t\t\tvar swiper = this;\n\t\t\tfor (var i = 0; i < swiper.slides.length; i++) {\n\t\t\t\tswiper.slides[i].style.transition = speed + \"ms\";\n\t\t\t\tswiper.slides[i].querySelector(\".canhcam-banner-1 .slide-inner\").style.transition =\n\t\t\t\t\tspeed + \"ms\";\n\t\t\t}\n\t\t},\n\t\tinit() {\n\t\t\tsetTimeout(() => {\n\t\t\t\twindow.dispatchEvent(new Event(\"resize\"))\n\t\t\t}, 200)\n\t\t}\n\t}\n};\n\nvar swiper = new Swiper(\".canhcam-banner-1 .swiper-container\", swiperOptions);\n\n// document.querySelector('[data-toggle]').addEventListener('click', function(){\n// if (swiper.realIndex == 0) {\n// swiper.slideTo(swiper.slides.length - 1);\n// } else {\n// swiper.slideTo(0);\n// }\n// });\n\n// function logIndex () {\n// requestAnimationFrame(logIndex);\n// console.log(swiper.realIndex);\n// }\n// logIndex();\n\n$(document).ready(function(){\n\t$('.canhcam-banner-2 .banners-list').owlCarousel({\n\t\titems: 1,\n\t\tmouseDrag: false,\n\t\tnav: false,\n\t\tdots: false\n\t})\n})\n$(\"body\").on(\"click\", \".canhcam-project-1 .tt__btn a\", function (e) {\n\te.preventDefault();\n\n\tlet obj = $(this);\n\tlet pageurl = $(this).attr('href');\n\tif (!pageurl.length) return;\n\t\n\t$.ajax({\n\t\turl: pageurl,\n\t\tdata: {\n\t\t\tisajax: true\n\t\t},\n\t\tsuccess: function success(data) {\n\t\t\t$('.ajaxprojectresponse').before($(data).find('.tn__wrap__item .row').html());\n\t\t\t$('.ajaxprojectresponse').first().remove();\n\t\t\t$('.btnItem').last().html($('.btnItem').first().html());\n\t\t\t$('.btnItem').first().remove();\n\t\t\tif($('.btnItem a').attr('href') == ''){\n\t\t\t\t$('.btnItem').remove()\n\t\t\t}\n\t\t\tobj.remove();\n\t\t}\n\t});\n\treturn false;\n});\n\n$(function() {\n\tif ($('.canhcam-project-detail-1 .project_img').length) {\n\t\t$('.canhcam-project-detail-1 .project_img').owlCarousel({\n\t\t\tanimateIn: 'slideInLeft',\n\t\t\tanimateOut: 'slideOutRight',\n\t\t\titems: 1,\n\t\t\tloop: false,\n\t\t\tcenter: false,\n\t\t\tpadding: 10,\n\t\t\tmargin: 0,\n\t\t\tnavText: ['', ''],\n\t\t\tnav: true,\n\t\t\tdots: false,\n\t\t\tautoplay: true,\n\t\t\tautoplayTimeout: 3000,\n\t\t\tautoplayHoverPause: true,\n\t\t\tcallbacks: true,\n\t\t});\n\t}\n\n});\n\n$(function() {\n\tif ($('.canhcam-project-detail-2 .owl-carousel').length) {\n\t\t$('.canhcam-project-detail-2 .owl-carousel').owlCarousel({\n\t\t\tanimateIn: 'slideInLeft',\n\t\t\tanimateOut: 'slideOutRight',\n\t\t\titems: 1,\n\t\t\tloop: false,\n\t\t\tcenter: false,\n\t\t\tpadding: 10,\n\t\t\tnavText: ['', ''],\n\t\t\tnav: true,\n\t\t\tdots: false,\n\t\t\tautoplay: true,\n\t\t\tautoplayTimeout: 3000,\n\t\t\tautoplayHoverPause: true,\n\t\t\tcallbacks: true,\n\t\t\tmargin: 30,\n\t\t\tresponsive: {\n\t\t\t\t768: {\n\t\t\t\t\titems: 3,\n\t\t\t\t} ,\n\t\t\t\t992: {\n\t\t\t\t\titems: 4\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n});\n\n$(document).ready(function() {\n\n\tvar sync1 = $(\"#sync1\");\n\tvar sync2 = $(\"#sync2\");\n\tvar slidesPerPage = 2; //globaly define number of elements per page\n\tvar syncedSecondary = true;\n\n\tsync1.owlCarousel({\n\titems : 1,\n\tslideSpeed : 2000,\n\tnavText: ['', ''],\n\tnav: false,\n\t// autoplay: true,\n\tdots: false,\n\tloop: true,\n\tresponsiveRefreshRate : 200,\n\tresponsive: {\n\t\t992: {\n\t\t\tmargin: 100,\n\t\t}\n\t},\n\t}).on('changed.owl.carousel', syncPosition);\n\n\tsync2\n\t.on('initialized.owl.carousel', function () {\n\t\tsync2.find(\".owl-item\").eq(0).addClass(\"current\");\n\t})\n\t.owlCarousel({\n\titems : slidesPerPage,\n\tdots: false,\n\t// autoWidth:true,\n\tnavText: ['', ''],\n\tnav: true,\n\tsmartSpeed: 200,\n\tslideSpeed : 500,\n\tresponsive: {\n\t\t\t768: {\n\t\t\t\titems: 3\n\t\t\t},\n\t\t\t979: {\n\t\t\t\titems: 4\n\t\t\t},\n\t\t\t992: {\n\t\t\t\t\n\t\t\t},\n\t\t\t1200: {\n\t\t\t\titems: 9,\n\t\t\t}\n\t\t},//alternatively you can slide by 1, this way the active slide will stick to the first item in the second carousel\n\tresponsiveRefreshRate : 100\n\t}).on('changed.owl.carousel', syncPosition2);\n\n\tfunction syncPosition(el) {\n\t//if you set loop to false, you have to restore this next line\n\t//var current = el.item.index;\n\n\t//if you disable loop you have to comment this block\n\tvar count = el.item.count-1;\n\tvar current = Math.round(el.item.index - (el.item.count/2) - .5);\n\n\tif(current < 0) {\n\t\tcurrent = count;\n\t}\n\tif(current > count) {\n\t\tcurrent = 0;\n\t}\n\n\t//end block\n\n\tsync2\n\t\t.find(\".owl-item\")\n\t\t.removeClass(\"current\")\n\t\t.eq(current)\n\t\t.addClass(\"current\");\n\tvar onscreen = sync2.find('.owl-item.active').length - 1;\n\tvar start = sync2.find('.owl-item.active').first().index();\n\tvar end = sync2.find('.owl-item.active').last().index();\n\n\tif (current > end) {\n\t\tsync2.data('owl.carousel').to(current, 100, true);\n\t}\n\tif (current < start) {\n\t\tsync2.data('owl.carousel').to(current - onscreen, 100, true);\n\t}\n\t}\n\n\tfunction syncPosition2(el) {\n\tif(syncedSecondary) {\n\t\tvar number = el.item.index;\n\t\tsync1.data('owl.carousel').to(number, 100, true);\n\t}\n\t}\n\n\tsync2.on(\"click\", \".owl-item\", function(e){\n\te.preventDefault();\n\tvar number = $(this).index();\n\tsync1.data('owl.carousel').to(number, 300, true);\n\t});\n});\n\n$(function() {\n\tif ($('.canhcam-about-4 .owl-carousel').length) {\n\t\t$('.canhcam-about-4 .owl-carousel').owlCarousel({\n\t\t\tanimateIn: 'slideInLeft',\n\t\t\tanimateOut: 'slideOutRight',\n\t\t\titems: 1,\n\t\t\tloop: false,\n\t\t\tcenter: false,\n\t\t\tpadding: 10,\n\t\t\tnavText: ['', ''],\n\t\t\tnav: true,\n\t\t\tdots: false,\n\t\t\tautoplay: true,\n\t\t\tautoplayTimeout: 3000,\n\t\t\tautoplayHoverPause: true,\n\t\t\tcallbacks: true,\n\t\t\tmargin: 30,\n\t\t\t// responsive: {\n\t\t\t// \t768: {\n\t\t\t// \t\titems: 3,\n\t\t\t// \t} ,\n\t\t\t// \t992: {\n\t\t\t// \t\titems: 4\n\t\t\t// \t}\n\t\t\t// }\n\t\t});\n\t}\n\n});\nvar swiper = new Swiper('.canhcam-about-5 .swiper-container', {\n\tslidesPerView: 4,\n\tslidesPerColumn: 2,\n\tspaceBetween: 30,\n\t// pagination: {\n\t// \t// el: '.swiper-pagination',\n\t// \tclickable: true,\n\t// },\n\tbreakpoints: {\n\t\t1024: {\n\t\t\tslidesPerView: 4,\n\t\t},\n\t\t992: {\n\t\t\tnavigation: false\n\t\t},\n\t\t768: {\n\t\t\tslidesPerView: 3,\n\t\t\t// navigation: {\n\t\t\t// \tnextEl: '.swiper-button-next',\n\t\t\t// \tprevEl: '.swiper-button-prev',\n\t\t\t// }\n\t\t},\n\t\t640: {\n\t\t\tslidesPerView: 2,\n\t\t},\n\t\t320: {\n\t\t\tslidesPerView: 1\n\t\t}\n\t}\n});\n\n// const container = document.querySelector('#location-container');\n// const ps = new PerfectScrollbar('#location-container', {\n// \twheelSpeed: 2,\n// \twheelPropagation: true,\n// \tminScrollbarLength: 20\n// });\n// ps.update();\n\n\n\n\n\n\n$(document).ready(function(){\n\tcreateNewsSocial1();\n\tchangeIMGtoDiv1();\n})\n$(window).resize(function () {\n\tchangeIMGtoDiv1()\n})\n\nfunction createNewsSocial1() {\n\tvar newsFullPath = document.URL\n\tvar newsFullPathEncode = encodeURIComponent(document.URL)\n\t$('.fb-share-button').attr('data-href', newsFullPath)\n\t$('.fb-share-button .fb-xfbml-parse-ignore').attr('href', 'https://www.facebook.com/sharer/sharer.php?u=' + newsFullPathEncode + '&src=sdkpreparse')\n\t$('.twitter-share-button').attr('data-url', newsFullPath)\n}\n\nfunction changeIMGtoDiv1(){\n\tif ($(window).width() > 992) {\n\t\t$('.canhcam-new-detail-1 .othernews .item figure').each(function () {\n\t\t\tvar tmp = $(this).find('img').attr('src')\n\t\t\t$(this).append('
')\n\t\t\t$(this).find('.thumb').css({\n\t\t\t\t\"background-image\": \"url(\" + tmp + \")\",\n\t\t\t\t\"background-position\": \"center center\",\n\t\t\t\t\"background-size\": \"cover\"\n\t\t\t})\n\t\t})\n\t}\n}\nstickyFooter.init();\n\n\n\n\n$(document).ready(function () {\n\t// $('#fullpage').fullpage({\n\t// \tpadding: 0,\n\t// \tverticalCentered: true,\n\t// \tafterRender: () => {\n\t// \t\t// getHeightBannerHome();\n\t// \t}\n\t// });\n\tif ($(window).width() > 992) {\n\t\tlet headerHeight = $(\"header\").outerHeight();\n\t\t$('#fullpage').fullpage({\n\t\t\tpaddingBottom: '0',\n\t\t\tscrollingSpeed: 1000,\n\t\t\tnavigation: true,\n\t\t\tscrollOverflow: true,\n\t\t\tnavigationPosition: 'right',\n\t\t\tanchors: ['firstPage', '2Page', '3Page', '4Page', '5Page', 'lastPage'],\n\t\t\tafterLoad: function (anchorLink, index) {\n\t\t\t\tcountUpCanhCam();\n\t\t\t\tvar loadedSection = $(this);\n\t\t\t},\n\t\t\tafterRender: function(){\n\t\t\t\tcountUpCanhCam();\n\t\t\t},\n\t\t\tonLeave: function (index, nextIndex, direction) {\n\t\t\t\t\n\t\t\t\tvar leavingSection = $(this);\n\t\t\t\t// after leaving section 2\n\t\t\t\tif (nextIndex.anchor !== 'firstPage') {\n\t\t\t\t\t$('header').slideUp();\n\t\t\t\t\t$(\"main\").css('padding-top', 'initial');\n\t\t\t\t} else {\n\t\t\t\t\t$('header').slideDown();\n\t\t\t\t\t$(\"main\").css('padding-top', headerHeight + 'px');\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\t$('.homepage footer').appendTo('#homeFooter')\n})\n\n\n\n$(function() {\n\tif ($('.canhcam-home-4 .owl-carousel').length) {\n\t\t$('.canhcam-home-4 .owl-carousel').owlCarousel({\n\t\t\tanimateIn: 'slideInLeft',\n\t\t\tanimateOut: 'slideOutRight',\n\t\t\titems: 1,\n\t\t\tloop: false,\n\t\t\tcenter: false,\n\t\t\tpadding: 10,\n\t\t\tmargin: 0,\n\t\t\tnavText: ['', ''],\n\t\t\tnav: true,\n\t\t\tdots: false,\n\t\t\tautoplay: true,\n\t\t\tautoplayTimeout: 3000,\n\t\t\tautoplayHoverPause: true,\n\t\t\tcallbacks: true,\n\t\t\tresponsive: {\n\t\t\t\t992:{\n\t\t\t\t\titems: 2,\n\t\t\t\t\tmargin: 30\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n});\n\n\n\n// $(function () {\n// \t$('.canhcam-map-1 .owl-carousel').owlCarousel({\n// \t\titems: 1.2,\n// \t\tmargin: 15,\n// \t\tdots: false,\n// \t\tresponsive: {\n// \t\t\t400: {\n// \t\t\t\titems: 1.5,\n// \t\t\t\tmargin: 29\n// \t\t\t},\n// \t\t\t768: {\n// \t\t\t\titems: 2\n// \t\t\t},\n// \t\t\t992: {\n// \t\t\t\titems: 3,\n// \t\t\t\tnav: true,\n// \t\t\t\tnavText: [\"\",\"\"]\n// \t\t\t}\n// \t\t}\n// \t})\n// });"]}