{"version":3,"sources":["main.js"],"names":["_defineProperty","obj","key","value","Object","defineProperty","enumerable","configurable","writable","clampText","$clamp","clamp","animationInit","txt","$","text","attr","appendHtml","hasClass","length","insertBefore","fixHeader","window","width","document","body","scrollTop","documentElement","addClass","removeClass","backToTop","on","e","preventDefault","animate","swiperInit","Swiper","breakpointsInverse","breakpoints","_breakpoints","320","slidesPerView","400","576","1025","slidesPerColumn","spaceBetween","navigation","nextEl","prevEl","speed","autoplay","delay","lazy","pagination","el","type","clickable","_breakpoints2","_Swiper","_Swiper6","productThumbs","freeMode","watchSlidesVisibility","watchSlidesProgress","centeredSlides","effect","fadeEffect","crossFade","loop","thumbs","swiper","renderBullet","index","className","menu","each","i","push","loadPrevNext","200","768","1280","element","_Swiper2","$this","this","parent","find","769","1200","_Swiper3","_Swiper4","420","_Swiper5","1024","toggleMobileMenu","$hamburger","toggleClass","parents","slideUp","next","slideDown","stickyNav","scrollToFixed","zIndex","marginTop","outerHeight","scroll","scrollDistance","position","top","eq","event","hash","offset","searchToggle","css","focus","target","keyCode","tabActive","display","setBackground","background","background-image","background-size","background-position","background-repeat","ready","fadeIn","onscroll"],"mappings":"AAAA,aAEA,SAASA,gBAAgBC,EAAKC,EAAKC,GAAiK,OAApJD,KAAOD,EAAOG,OAAOC,eAAeJ,EAAKC,EAAK,CAAEC,MAAOA,EAAOG,YAAY,EAAMC,cAAc,EAAMC,UAAU,IAAkBP,EAAIC,GAAOC,EAAgBF,EAsC3M,SAASQ,YACRC,OAAO,UAAW,CACjBC,MAAO,IAERD,OAAO,UAAW,CACjBC,MAAO,IAERD,OAAO,UAAW,CACjBC,MAAO,IAERD,OAAO,UAAW,CACjBC,MAAO,IAIT,SAASC,gBACR,IAAIC,EAAMC,EAAE,cAAcC,OAC1BD,EAAE,cAAcE,KAAK,OAAQH,GAG9B,SAASI,aAEJH,EAAE,QAAQI,SAAS,wBAClBJ,EAAE,oBAAoBK,QACzBL,EAAE,oBAAoBM,aAAa,kBAOtC,SAASC,Y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AK,uBAC9BF,EAAEwE,MAAM+B,IAAI,CACXQ,mBAAoB,OAASD,EAAa,IAC1CI,oBAAqB,aArkBxBlH,EAAEU,UAAUyG,MAAM,WAEbnH,EAAEQ,QAAQC,QAAU,MACvBT,EAAE,kBAAkBoH,OAAO,WAC1BpH,EAAE,kBAAkBuG,IAAI,CACvBK,QAAS,WAKR5G,EAAEQ,QAAQC,QAAU,OACvBT,EAAE,mBAAmBoH,OAAO,WAC3BpH,EAAE,mBAAmBuG,IAAI,CACxBK,QAAS,WAGX1B,oBAKD2B,gBACAF,YACAtF,aACAoE,YACAa,eAEAxG,gBACAkB,YACAb,eAKDK,OAAO6G,SAAW,WACjB9G","file":"main.min.js","sourcesContent":["$(document).ready(function () {\r\n\t//Hide element when smaller than 1025\r\n\tif ($(window).width() < 1025) {\r\n\t\t$(\".header-bottom\").fadeIn(function () {\r\n\t\t\t$(\".header-bottom\").css({\r\n\t\t\t\tdisplay: \"flex\"\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n\r\n\tif ($(window).width() < 1025) {\r\n\t\t$(\".search-wrapper\").fadeIn(function () {\r\n\t\t\t$(\".search-wrapper\").css({\r\n\t\t\t\tdisplay: \"flex\"\r\n\t\t\t});\r\n\t\t});\r\n\t\ttoggleMobileMenu();\r\n\t}\r\n\r\n\t//Library Base function\r\n\r\n\tsetBackground();\r\n\ttabActive();\r\n\tswiperInit();\r\n\tstickyNav();\r\n\tsearchToggle();\r\n\t//Declare NEW function Javascript\r\n\tanimationInit();\r\n\tbackToTop();\r\n\tappendHtml();\r\n\t// clampText();\r\n\r\n});\r\n\r\nwindow.onscroll = function () {\r\n\tfixHeader();\r\n};;\r\n\r\n\r\n\r\nfunction clampText() {\r\n\t$clamp('clamp-1', {\r\n\t\tclamp: 1\r\n\t});\r\n\t$clamp('clamp-2', {\r\n\t\tclamp: 2\r\n\t});\r\n\t$clamp('clamp-3', {\r\n\t\tclamp: 3\r\n\t});\r\n\t$clamp('clamp-4', {\r\n\t\tclamp: 4\r\n\t});\r\n}\r\n\r\nfunction animationInit() {\r\n\tvar txt = $(\".btn-split\").text();\r\n\t$(\".btn-split\").attr(\"name\", txt);\r\n}\r\n\r\nfunction appendHtml() {\r\n\t//Append Product Detail Form\r\n\tif ($(\"body\").hasClass(\"product-detail-page\")) {\r\n\t\tif ($(\".subscrible-form\").length) {\r\n\t\t\t$('.subscrible-form').insertBefore('.other-product')\r\n\t\t}\r\n\t}\r\n\r\n\r\n}\r\n\r\nfunction fixHeader() {\r\n\tif ($(window).width() > 1025) {\r\n\r\n\t\tif (\r\n\t\t\tdocument.body.scrollTop > 100 ||\r\n\t\t\tdocument.documentElement.scrollTop > 100\r\n\t\t) {\r\n\t\t\t$(\"header\").addClass(\"minimize\");\r\n\t\t} else {\r\n\t\t\t$(\"header\").removeClass(\"minimize\");\r\n\t\t};\r\n\t}\r\n}\r\n\r\n\r\n\r\nfunction backToTop() {\r\n\tlet btn = $(\".back-to-top\");\r\n\tbtn.on(\"click\", function (e) {\r\n\t\te.preventDefault();\r\n\t\t$(\"html, body\").animate({\r\n\t\t\t\tscrollTop: 0\r\n\t\t\t},\r\n\t\t\t\"300\"\r\n\t\t);\r\n\t});\r\n}\r\n\r\n\r\n\r\nfunction swiperInit() {\r\n\tvar swiper = new Swiper(\".swiper-recruiment .swiper-container\", {\r\n\t\tbreakpointsInverse: true,\r\n\t\tbreakpoints: {\r\n\t\t\t320: {\r\n\t\t\t\tslidesPerView: 1,\r\n\t\t\t},\r\n\t\t\t400: {\r\n\t\t\t\tslidesPerView: 1,\r\n\t\t\t},\r\n\t\t\t576: {\r\n\t\t\t\tslidesPerView: 2,\r\n\r\n\t\t\t},\r\n\t\t\t1025: {\r\n\t\t\t\tslidesPerView: 2,\r\n\t\t\t\tslidesPerColumn: 2,\r\n\t\t\t},\r\n\t\t\t1025: {\r\n\t\t\t\tslidesPerView: 2,\r\n\t\t\t\tslidesPerColumn: 2,\r\n\t\t\t},\r\n\t\t\t1440: {\r\n\t\t\t\tslidesPerView: 2,\r\n\t\t\t\tslidesPerColumn: 3,\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tspaceBetween: 30,\r\n\t\tnavigation: {\r\n\t\t\tnextEl: \".swiper-recruiment .nav-arrow-next\",\r\n\t\t\tprevEl: \".swiper-recruiment .nav-arrow-prev \"\r\n\t\t},\r\n\r\n\t});\r\n\r\n\r\n\r\n\tvar homerSwiper = new Swiper(\".primary-banner .swiper-container\", {\r\n\t\t// Optional parameters\r\n\t\tslidesPerView: 1,\r\n\t\tspeed: 1205,\r\n\t\tautoplay: {\r\n\t\t\tdelay: 3000\r\n\t\t},\r\n\t\tlazy: true,\r\n\t\tpagination: {\r\n\t\t\tel: '.primary-banner .swiper-pagination',\r\n\t\t\ttype: 'bullets',\r\n\t\t\tclickable: true\r\n\t\t},\r\n\t});\r\n\tvar productThumbs = new Swiper(\".swiper-product-thumb .swiper-container\", {\r\n\t\tspaceBetween: 0,\r\n\t\tfreeMode: false,\r\n\t\tbreakpointsInverse: true,\r\n\t\tbreakpoints: {\r\n\t\t\t320: {\r\n\t\t\t\tslidesPerView: 2,\r\n\t\t\t},\r\n\t\t\t400: {\r\n\t\t\t\tslidesPerView: 3,\r\n\t\t\t},\r\n\t\t\t576: {\r\n\t\t\t\tslidesPerView: 4,\r\n\r\n\t\t\t},\r\n\t\t\t1025: {\r\n\t\t\t\tslidesPerView: 3,\r\n\t\t\t},\r\n\t\t\t1025: {\r\n\t\t\t\tslidesPerView: 5,\r\n\t\t\t},\r\n\t\t\t1440: {\r\n\t\t\t\tslidesPerView: 7,\r\n\t\t\t}\r\n\t\t},\r\n\t\twatchSlidesVisibility: true,\r\n\t\twatchSlidesProgress: true,\r\n\r\n\t});\r\n\r\n\r\n\tvar productDetailMain = new Swiper(\".swiper-product-top .swiper-container\", {\r\n\t\tslidesPerView: 1,\r\n\t\tcenteredSlides: true,\r\n\t\teffect: \"fade\",\r\n\r\n\t\tfadeEffect: {\r\n\t\t\tcrossFade: true\r\n\t\t},\r\n\t\tnavigation: {\r\n\t\t\tnextEl: \".inovation-4 .nav-arrow-next\",\r\n\t\t\tprevEl: \".inovation-4 .nav-arrow-prev \"\r\n\t\t},\r\n\t\tspeed: 1750,\r\n\t\tloop: false,\r\n\t\tthumbs: {\r\n\t\t\tswiper: productThumbs\r\n\t\t}\r\n\r\n\t});\r\n\r\n\r\n\r\n\tvar inovationSwiper = new Swiper(\".swiper-inovation-wrap .swiper-container\", {\r\n\t\t// Optional parameters\r\n\t\tslidesPerView: 1,\r\n\t\tspeed: 1205,\r\n\t\tspaceBetween: 0,\r\n\t\tautoplay: {\r\n\t\t\tdelay: 3000\r\n\t\t},\r\n\t\tpagination: {\r\n\t\t\tel: '.swiper-inovation-wrap .swiper-pagination',\r\n\t\t\ttype: 'bullets',\r\n\t\t\tclickable: true,\r\n\t\t\trenderBullet: function (index, className) {\r\n\t\t\t\tlet menu = [];\r\n\t\t\t\t$('.swiper-inovation-wrap .text').each(function (i, e) {\r\n\t\t\t\t\tmenu.push($(e).text());\r\n\t\t\t\t});\r\n\t\t\t\treturn '' + '' + (menu[index]) + '' + '';\r\n\t\t\t},\r\n\t\t},\r\n\t});\r\n\tvar topBanner = new Swiper(\".top-banner .swiper-container\", {\r\n\t\t// Optional parameters\r\n\t\tspeed: 1205,\r\n\t\tlazy: {\r\n\t\t\tloadPrevNext: true,\r\n\t\t},\r\n\t\tslidesPerView: 1,\r\n\t\tautoplay: {\r\n\t\t\tdelay: 3000\r\n\t\t}\r\n\t});\r\n\tvar swiperProductGallery = new Swiper(\".swiper-product-gallery .swiper-container\", {\r\n\t\t// Optional parameters\r\n\t\tspeed: 1205,\r\n\t\tlazy: {\r\n\t\t\tloadPrevNext: true,\r\n\t\t},\r\n\t\tautoplay: {\r\n\t\t\tdelay: 3000\r\n\t\t},\r\n\t\tcenteredSlides: true,\r\n\t\tspeed: 750,\r\n\t\tobserver: true,\r\n\t\tspaceBetween: 20,\r\n\t\tobserveParents: true,\r\n\t\tbreakpointsInverse: true,\r\n\t\tbreakpoints: {\r\n\t\t\t200: {\r\n\t\t\t\tslidesPerView: 2,\r\n\t\t\t},\r\n\r\n\t\t\t768: {\r\n\t\t\t\tslidesPerView: 3,\r\n\t\t\t},\r\n\t\t\t1280: {\r\n\t\t\t\tslidesPerView: 4,\r\n\t\t\t}\r\n\r\n\r\n\t\t},\r\n\t\tnavigation: {\r\n\t\t\tnextEl: \".swiper-product-gallery .nav-arrow-next\",\r\n\t\t\tprevEl: \".swiper-product-gallery .nav-arrow-prev\"\r\n\t\t}\r\n\t});\r\n\r\n\r\n\t$(\".trinity-swiper .swiper-container\").each(function (index, element) {\r\n\t\tvar $this = $(this);\r\n\t\t$this.addClass(\"tri-instance-\" + index);\r\n\t\t$this.parent().find(\".nav-arrow-prev\").addClass(\"btn-prev-\" + index);\r\n\t\t$this.parent().find(\".nav-arrow-next\").addClass(\"btn-next-\" + index);\r\n\r\n\t\tvar swiper = new Swiper(\".tri-instance-\" + index, {\r\n\t\t\tspeed: 1205,\r\n\t\t\tlazy: {\r\n\t\t\t\tloadPrevNext: true,\r\n\t\t\t},\r\n\t\t\tspeed: 750,\r\n\t\t\tobserver: true,\r\n\t\t\tspaceBetween: 10,\r\n\t\t\tobserveParents: true,\r\n\t\t\tbreakpointsInverse: true,\r\n\t\t\tbreakpoints: {\r\n\t\t\t\t200: {\r\n\t\t\t\t\tslidesPerView: 1,\r\n\t\t\t\t},\r\n\t\t\t\t576: {\r\n\t\t\t\t\tslidesPerView: 2,\r\n\t\t\t\t\tspaceBetween: 10,\r\n\t\t\t\t},\r\n\t\t\t\t769: {\r\n\t\t\t\t\tslidesPerView: 3,\r\n\t\t\t\t\tspaceBetween: 10,\r\n\t\t\t\t},\r\n\t\t\t\t1200: {\r\n\t\t\t\t\tslidesPerView: 3,\r\n\t\t\t\t},\r\n\t\t\t},\r\n\t\t\tnavigation: {\r\n\t\t\t\tnextEl: \".btn-next-\" + index,\r\n\t\t\t\tprevEl: \".btn-prev-\" + index\r\n\t\t\t}\r\n\r\n\t\t});\r\n\t});\r\n\t$(\".single-swiper .swiper-container\").each(function (index, element) {\r\n\t\tvar $this = $(this);\r\n\t\t$this.addClass(\"single-instance-\" + index);\r\n\t\t$this.parent().find(\".nav-arrow-prev\").addClass(\"btn-prev-\" + index);\r\n\t\t$this.parent().find(\".nav-arrow-next\").addClass(\"btn-next-\" + index);\r\n\t\t$this.parent().find(\".swiper-pagination\").addClass(\"pagination-instance-\" + index);\r\n\r\n\t\tvar swiper = new Swiper(\".single-instance-\" + index, {\r\n\t\t\tspeed: 1205,\r\n\t\t\tlazy: {\r\n\t\t\t\tloadPrevNext: true,\r\n\t\t\t},\r\n\t\t\tspeed: 750,\r\n\t\t\tobserver: true,\r\n\t\t\tspaceBetween: 30,\r\n\t\t\tobserveParents: true,\r\n\t\t\tslidesPerView: 1,\r\n\t\t\tnavigation: {\r\n\t\t\t\tnextEl: \".btn-next-\" + index,\r\n\t\t\t\tprevEl: \".btn-prev-\" + index\r\n\t\t\t},\r\n\t\t\tpagination: {\r\n\t\t\t\tel: '.pagination-instance-' + index,\r\n\t\t\t\ttype: 'bullets',\r\n\t\t\t\tclickable: true\r\n\t\t\t},\r\n\t\t});\r\n\t});\r\n\t$(\".four-swiper .swiper-container\").each(function (index, element) {\r\n\t\tvar $this = $(this);\r\n\t\t$this.addClass(\"instance-\" + index);\r\n\t\t$this.parent().find(\".nav-arrow-prev\").addClass(\"btn-prev-\" + index);\r\n\t\t$this.parent().find(\".nav-arrow-next\").addClass(\"btn-next-\" + index);\r\n\r\n\t\tvar swiper = new Swiper(\".instance-\" + index, {\r\n\t\t\tspeed: 1205,\r\n\t\t\tlazy: {\r\n\t\t\t\tloadPrevNext: true,\r\n\t\t\t},\r\n\t\t\tspeed: 750,\r\n\t\t\tobserver: true,\r\n\t\t\tspaceBetween: 10,\r\n\t\t\tobserveParents: true,\r\n\t\t\tbreakpointsInverse: true,\r\n\t\t\tbreakpoints: {\r\n\t\t\t\t200: {\r\n\t\t\t\t\tslidesPerView: 1,\r\n\t\t\t\t},\r\n\t\t\t\t420: {\r\n\t\t\t\t\tslidesPerView: 2,\r\n\t\t\t\t},\r\n\t\t\t\t576: {\r\n\t\t\t\t\tslidesPerView: 2,\r\n\t\t\t\t},\r\n\t\t\t\t769: {\r\n\t\t\t\t\tslidesPerView: 3,\r\n\t\t\t\t},\r\n\t\t\t\t1200: {\r\n\t\t\t\t\tspaceBetween: 30,\r\n\t\t\t\t\tslidesPerView: 4,\r\n\t\t\t\t},\r\n\t\t\t},\r\n\t\t\tnavigation: {\r\n\t\t\t\tnextEl: \".btn-next-\" + index,\r\n\t\t\t\tprevEl: \".btn-prev-\" + index\r\n\t\t\t}\r\n\r\n\t\t});\r\n\t});\r\n\t$(\".quad-swiper .swiper-container\").each(function (index, element) {\r\n\t\tvar $this = $(this);\r\n\t\t$this.addClass(\"instance-\" + index);\r\n\t\t$this.parent().find(\".nav-arrow-prev\").addClass(\"btn-prev-\" + index);\r\n\t\t$this.parent().find(\".nav-arrow-next\").addClass(\"btn-next-\" + index);\r\n\r\n\t\tvar swiper = new Swiper(\".instance-\" + index, {\r\n\t\t\tspeed: 1205,\r\n\t\t\tlazy: {\r\n\t\t\t\tloadPrevNext: true,\r\n\t\t\t},\r\n\t\t\tspeed: 750,\r\n\t\t\tobserver: true,\r\n\t\t\tspaceBetween: 10,\r\n\t\t\tobserveParents: true,\r\n\t\t\tbreakpointsInverse: true,\r\n\t\t\tbreakpoints: {\r\n\t\t\t\t200: {\r\n\t\t\t\t\tslidesPerView: 2,\r\n\t\t\t\t},\r\n\t\t\t\t576: {\r\n\t\t\t\t\tslidesPerView: 2,\r\n\t\t\t\t},\r\n\t\t\t\t769: {\r\n\t\t\t\t\tslidesPerView: 3,\r\n\t\t\t\t},\r\n\t\t\t\t1024: {\r\n\t\t\t\t\tslidesPerView: 4,\r\n\t\t\t\t},\r\n\t\t\t\t1280: {\r\n\t\t\t\t\tslidesPerView: 5,\r\n\t\t\t\t},\r\n\t\t\t},\r\n\t\t\tnavigation: {\r\n\t\t\t\tnextEl: \".btn-next-\" + index,\r\n\t\t\t\tprevEl: \".btn-prev-\" + index\r\n\t\t\t}\r\n\r\n\t\t});\r\n\t});\r\n\tvar partnerSwiper = new Swiper(\".about-partner .swiper-container\", {\r\n\t\tspeed: 1205,\r\n\t\tlazy: {\r\n\t\t\tloadPrevNext: true,\r\n\t\t},\r\n\t\tspeed: 750,\r\n\t\tobserver: true,\r\n\t\tspaceBetween: 30,\r\n\t\tobserveParents: true,\r\n\t\tbreakpointsInverse: true,\r\n\t\tbreakpoints: {\r\n\t\t\t200: {\r\n\t\t\t\tslidesPerView: 2,\r\n\t\t\t},\r\n\t\t\t576: {\r\n\t\t\t\tslidesPerView: 2,\r\n\t\t\t},\r\n\t\t\t769: {\r\n\t\t\t\tslidesPerView: 3,\r\n\t\t\t},\r\n\t\t\t1024: {\r\n\t\t\t\tslidesPerView: 4,\r\n\t\t\t},\r\n\t\t\t1280: {\r\n\t\t\t\tslidesPerView: 5,\r\n\t\t\t},\r\n\t\t},\r\n\t\tnavigation: {\r\n\t\t\tnextEl: \".nav-arrow-next\",\r\n\t\t\tprevEl: \".nav-arrow-prev\"\r\n\t\t}\r\n\r\n\t});\r\n\r\n}\r\n\r\n\r\n//Toggle mobile menu\r\n\r\nfunction toggleMobileMenu() {\r\n\tvar $hamburger = $(\".hamburger\");\r\n\t$(\".main-menu-toggle\").on(\"click\", function () {\r\n\t\t$('.navbar-primary-menu ').toggleClass('open-menu')\r\n\t\t$hamburger.toggleClass(\"is-active\");\r\n\t});\r\n\t//mobile filter\r\n\t$('.drop-down .title em').on('click', function () {\r\n\t\tif ($(this).parents('.drop-down').hasClass('open-dropdown')) {\r\n\t\t\t$('.drop-down .nav-sub').slideUp();\r\n\t\t\t$('.drop-down').removeClass('open-dropdown');\r\n\t\t} else {\r\n\t\t\t$('.drop-down .nav-sub').slideUp();\r\n\t\t\t$('.drop-down').removeClass('open-dropdown');\r\n\t\t\t$(this).parent().next().slideDown();\r\n\t\t\t$(this).parents('.drop-down').addClass('open-dropdown')\r\n\t\t}\r\n\t})\r\n\r\n}\r\n\r\nfunction stickyNav() {\r\n\tif ($(\".sticky-nav\").length) {\r\n\t\t$(\".sticky-nav\").scrollToFixed({\r\n\t\t\tzIndex: 99,\r\n\t\t\tmarginTop: $(\"header\").outerHeight() ,\r\n\t\t});\r\n\t}\r\n\r\n\t$(window)\r\n\t\t.scroll(function () {\r\n\t\t\tvar scrollDistance = $(window).scrollTop();\r\n\t\t\t// Assign active class to nav links while scolling\r\n\t\t\t$(\".about-section-wrapper .about-section-id\").each(function (i) {\r\n\t\t\t\tif (\r\n\t\t\t\t\t$(this).position().top -\r\n\t\t\t\t\t$(\".sticky-nav\").outerHeight() -\r\n\t\t\t\t\t$(\"header\").outerHeight() - 1 <= scrollDistance\r\n\t\t\t\t) {\r\n\t\t\t\t\t$(\".sticky-nav li.active\").removeClass(\"active\");\r\n\t\t\t\t\t$(\".sticky-nav li\").eq(i).addClass(\"active\");\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t})\r\n\t\t.scroll();\r\n\t$(\".sticky-nav a\").on(\"click\", function (event) {\r\n\t\tif (this.hash !== \"\") {\r\n\t\t\tlet offset =\r\n\t\t\t\t$(\"header\").outerHeight() + $(\".sticky-nav\").outerHeight();\r\n\t\t\tvar hash = this.hash;\r\n\t\t\t$(\"html, body\").animate({\r\n\t\t\t\t\tscrollTop: $(hash).offset().top - offset,\r\n\t\t\t\t},\r\n\t\t\t\t800,\r\n\t\t\t\tfunction () {\r\n\t\t\t\t\t// window.location.hash = hash;\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t} // End if\r\n\t});\r\n}\r\n\r\n\r\n\r\nfunction searchToggle() {\r\n\t$(\".search-toggle\").on(\"click\", function () {\r\n\t\t$(\".searchbox\").toggleClass(\"open\");\r\n\t\tif ($('.header-top-banner').hasClass('hidden')) {\r\n\t\t\t$('.searchbox.open').css({\r\n\t\t\t\t'top': '55px'\r\n\t\t\t})\r\n\r\n\t\t}\r\n\t\tevent.preventDefault();\r\n\t\t$('.searchbox > input[type=\"text\"]').focus();\r\n\t});\r\n\r\n\t$(\".searchbox, .searchbox .close\").on(\"click keyup\", function (event) {\r\n\t\tif (\r\n\t\t\tevent.target == this ||\r\n\t\t\tevent.target.className == \"close\" ||\r\n\t\t\tevent.keyCode == 27\r\n\t\t) {\r\n\t\t\t$(this).removeClass(\"open\");\r\n\t\t}\r\n\t});\r\n}\r\n\r\n\r\n//Tab active\r\n\r\nfunction tabActive() {\r\n\t$(\".tab-navigation li a\").on(\"click\", function () {\r\n\t\t$(this)\r\n\t\t\t.parents(\".tab-navigation\")\r\n\t\t\t.find(\"li\")\r\n\t\t\t.removeClass(\"active\");\r\n\t\t$(this)\r\n\t\t\t.parents(\"li\")\r\n\t\t\t.addClass(\"active\");\r\n\r\n\t\tvar display = $(this).attr(\"data-type\");\r\n\t\t$(\".tab-item\").removeClass(\"active\");\r\n\t\t$(\"#\" + display).addClass(\"active\");\r\n\t});\r\n}\r\n// Side \r\nfunction setBackground() {\r\n\t$(\"[setBackground]\").each(function () {\r\n\t\tvar background = $(this).attr(\"setBackground\");\r\n\t\t$(this).css({\r\n\t\t\t\"background-image\": \"url(\" + background + \")\",\r\n\t\t\t\"background-size\": \"cover\",\r\n\t\t\t\"background-position\": \"center center\",\r\n\t\t});\r\n\t});\r\n\t$(\"[setBackgroundRepeat]\").each(function () {\r\n\t\tvar background = $(this).attr(\"setBackgroundRepeat\");\r\n\t\t$(this).css({\r\n\t\t\t\"background-image\": \"url(\" + background + \")\",\r\n\t\t\t\"background-repeat\": \"repeat\",\r\n\t\t});\r\n\t});\r\n}\r\n"]}