{"version":3,"sources":["main.js"],"names":["equalHeight","targetElement","tallestItem","tE","$","length","height","each","this","removeHeight","show","target","document","getElementById","style","display","hide","ready","d","Date","html","getFullYear","test","navigator","userAgent","vendor","window","opera","s","skrollr","init","forceHeight","smoothScrolling","mobileDeceleration","menu","animate","easing","duration","currentTop","targetTop","Math","abs","updateUrl","addEventListener","e","scrollTo","refresh","resize","load","slick","autoplay","autoplaySpeed","speed","arrows","prevArrow","nextArrow","backgroundVideo","$outerWrap","pauseVideoOnViewLoss","parallaxOptions","effect"],"mappings":"AAAA,QAASA,aAAYC,GAEb,GAAIC,GAAc,EACdC,EAAKC,EAAEH,EAERE,GAAGE,OAAS,IACXF,EAAGG,OAAO,QACVH,EAAGI,KAAK,WACDH,EAAEI,MAAMF,SAAWJ,IAAeA,EAAcE,EAAEI,MAAMF,YAE/DH,EAAGG,OAAOJ,IAItB,QAASO,cAAaR,GAEdG,EAAEH,GAAeK,OAAO,QAuGhC,QAASI,MAAKC,GACVC,SAASC,eAAeF,GAAQG,MAAMC,QAAU,QAGpD,QAASC,MAAKL,GACVC,SAASC,eAAeF,GAAQG,MAAMC,QAAU,OAxGpDX,EAAEQ,UAAUK,MAAM,WAGd,GAAIC,GAAI,GAAIC,KAWf,IAVGf,EAAE,aAAagB,KAAKF,EAAEG,gBAUrB,qDAAuDC,KAAKC,UAAUC,WAAaD,UAAUE,QAAUC,OAAOC,OAAO,CACrH,GAAIC,GAAIC,QAAQC,MACfC,aAAa,EACVC,iBAAiB,EACjBC,mBAAoB,MAGvBJ,SAAQK,KAAKJ,KAAKF,GACdO,SAAS,EACTC,OAAQ,WACRC,SAAU,SAASC,EAAYC,GAG3B,MAAOC,MAAKC,IAAIH,EAAaC,IAEjCG,WAAW,IAGf9B,SAAS+B,iBAAiB,oBAAqB,SAASC,GAEtDlB,OAAOmB,SAAS,EAAE,GAGlBjB,EAAEkB,YAIJ1C,EAAEsB,QAAQqB,OAAO,WACfnB,EAAEkB,YAMH1C,EAAE,iBAAiBC,SAEpBL,YAAY,iBAEZI,EAAEsB,QAAQqB,OAAO,WACd/C,YAAY,mBAEfI,EAAEsB,QAAQqB,OAAO,WACb/C,YAAY,uBAEhBI,EAAEsB,QAAQqB,OAAO,WACb/C,YAAY,yBAMdI,EAAE,qBAAqBC,QAEvBL,YAAY,wBAQpBI,EAAEsB,QAAQsB,KAAK,WAEb5C,EAAE,eAAe6C,OACfC,UAAU,EACVC,cAAe,IACfC,MAAO,IACPC,QAAQ,EACRC,UAAW,6FACXC,UAAW,kGAKfnD,EAAEQ,UAAUK,MAAM,WACdb,EAAE,aAAaoD,iBACXC,WAAYrD,EAAE,eACdsD,sBAAsB,EACtBC,iBACIC,OAAQ","file":"main.js","sourcesContent":["function equalHeight(targetElement) {\r\n\r\n var tallestItem = 0;\r\n var tE = $(targetElement);\r\n\r\n if(tE.length > 0) {\r\n tE.height('auto');\r\n tE.each(function() {\r\n if($(this).height() > tallestItem) { tallestItem = $(this).height(); }\r\n });\r\n tE.height(tallestItem);\r\n }\r\n }\r\n\r\nfunction removeHeight(targetElement) {\r\n\r\n $(targetElement).height('auto');\r\n\r\n }\r\n\r\n$(document).ready(function() {\r\n\r\n\t// generic year for copyright\r\n var d = new Date();\r\n $('.date-now').html(d.getFullYear());\r\n\r\n\r\n\r\n\tfunction toggleNav() {\r\n\r\n\t} \r\n\r\n\r\n\r\n\tif(!(/Android|iPhone|iPad|iPod|BlackBerry|Windows Phone/i).test(navigator.userAgent || navigator.vendor || window.opera)){\r\n \tvar s = skrollr.init({\r\n \t\tforceHeight: false,\r\n \tsmoothScrolling: false,\r\n \tmobileDeceleration: 0.004\r\n \t});\r\n\r\n skrollr.menu.init(s, {\r\n animate: true,\r\n easing: 'outCubic',\r\n duration: function(currentTop, targetTop) {\r\n //return 1000;\r\n //console.log(currentTop + ', ' + targetTop);\r\n return Math.abs(currentTop - targetTop); // * 10;\r\n },\r\n updateUrl: false\r\n });\r\n\r\n document.addEventListener('orientationchange', function(e) {\r\n //alert('switch');\r\n window.scrollTo(0,0);\r\n //$isotopecontainer.isotope('layout');\r\n //$isotopecontainercase.isotope('layout');\r\n s.refresh();\r\n });\r\n\r\n\r\n $(window).resize(function() {\r\n s.refresh();\r\n });\r\n }\r\n\r\n\r\n\r\n if($('.product-item').length) {\r\n\r\n equalHeight('.product-item');\r\n\r\n $(window).resize(function() { \r\n equalHeight('.product-item');\r\n });\r\n $(window).resize(function () {\r\n equalHeight('.product-cat-item');\r\n });\r\n $(window).resize(function () {\r\n equalHeight('.product-item-text');\r\n });\r\n\r\n } \r\n\r\n\r\n if ($('.product-cat-item').length) {\r\n\r\n equalHeight('.product-item-text');\r\n\r\n\r\n }\r\n\r\n\r\n});\r\n\r\n$(window).load(function() {\r\n\r\n $('.hero-items').slick({\r\n autoplay: true,\r\n autoplaySpeed: 5000,\r\n speed: 500,\r\n arrows: true,\r\n prevArrow: '',\r\n nextArrow: '',\r\n });\r\n\r\n});\r\n\r\n$(document).ready(function () {\r\n $('#my-video').backgroundVideo({\r\n $outerWrap: $('.outer-wrap'),\r\n pauseVideoOnViewLoss: false,\r\n parallaxOptions: {\r\n effect: 1.9\r\n }\r\n });\r\n\r\n});\r\n\r\nfunction show(target) {\r\n document.getElementById(target).style.display = 'block';\r\n}\r\n\r\nfunction hide(target) {\r\n document.getElementById(target).style.display = 'none';\r\n}\r\n\r\n\r\n"],"sourceRoot":"/source/"}