{"version":3,"sources":["RAD_lib.js","NumCountUp.js","_cookie.js","_filters.js","_header.js","_layout.js","_locationMap.js","_masonry.js","_sliders.js","_video.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACnLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACnEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACjJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC5LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACpGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACrGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"ecy_haulmark.js","sourcesContent":["// Equalize\nfunction equalize(what, thing) {\n var h = 0,\n vPad = 0;\n what.find(thing).each(function() {\n $(this).height('auto');\n var thisHeight = $(this).height(),\n pad1 = parseInt($(this).css('padding-top').replace(\"px\", \"\")),\n pad2 = parseInt($(this).css('padding-bottom').replace(\"px\", \"\"));\n vPad = pad1 + pad2;\n // alert(thisHeight);\n if (thisHeight > h) {\n h = thisHeight;\n // alert(h);\n }\n }).css('height', h + vPad + 'px');\n}\n\n// AnimScroll\nfunction animScroll(target, dur){\n if(typeof target === 'object' ){\n target = target.offset().top;\n }\n if (dur === undefined) {\n dur = 1000;\n }\n if($('header').css('position') == 'fixed'){\n \ttarget = target - $('header').height();\n }\n $('html,body').animate({\n scrollTop: target\n }, dur);\n window.addEventListener(\"wheel\",function(){\n $('html,body').stop();\n })\n}\n\n// OPACITY ANIMATE\n$.fn.opacify = function(val,time){\n if (val === undefined) {\n val = 1;\n console.log('Set value for opacity')\n }\n if (time === undefined) {\n time = 0;\n console.log('Set value for time')\n }\n this.animate({\n 'opacity':val\n },time);\n return this;\n}\n\n// CREATE GRID\nfunction gridify(num){\n var colNum = num,\n colW = (100 / colNum),\n colColor = 'dodgerblue',\n cols;\n if($('.gggridLine').length == 0){\n for(i = 0; i < colNum; i++){\n var col = $('
',{\n 'class':'gggridLine'\n });\n $('body').append(col);\n col.css({\n 'display':'block',\n 'position':'fixed',\n 'z-index':'9999999',\n 'pointer-events':'none',\n 'top':0,\n 'left':i*colW+'%',\n 'width':colW+'%',\n 'height':'100%',\n 'border-left':'1px solid ' + colColor\n })\n }\n var $tog = $('
',{\n 'id':'gridTogglr',\n 'class':'fa fa-asterisk'\n });\n $('body').append($tog);\n $tog.css({\n 'display':'block',\n 'position':'fixed',\n 'z-index':'9999999',\n 'bottom':0,\n 'left':0,\n 'background':'black',\n 'color':'white',\n 'width':'30px',\n 'text-align':'center',\n 'padding-top':'10px',\n 'height':'30px'\n })\n cols = $('.gggridLine');\n cols.hide();\n $tog.click(function(){\n cols.fadeToggle(100);\n })\n }\n}\n\n// FIND AND WRAP TEXT\n$.fn.replaceText = function(b, a, c) {\n return this.each(function() {\n var f = this.firstChild,\n g, e, d = [];\n if (f) {\n do {\n if (f.nodeType === 3) {\n g = f.nodeValue;\n e = g.replace(b, a);\n if (e !== g) {\n if (!c && /1?this.eq(0):this,n=r.get(0),f=i.width(),h=i.height(),o=o?o:\"both\",l=e===!0?n.offsetWidth*n.offsetHeight:!0;if(\"function\"==typeof n.getBoundingClientRect){var g=n.getBoundingClientRect(),u=g.top>=0&&g.top0&&g.bottom<=h,c=g.left>=0&&g.left0&&g.right<=f,v=t?u||s:u&&s,b=t?c||a:c&&a;if(\"both\"===o)return l&&v&&b;if(\"vertical\"===o)return l&&v;if(\"horizontal\"===o)return l&&b}else{var d=i.scrollTop(),p=d+h,w=i.scrollLeft(),m=w+f,y=r.offset(),z=y.top,B=z+r.height(),C=y.left,R=C+r.width(),j=t===!0?B:z,q=t===!0?z:B,H=t===!0?R:C,L=t===!0?C:R;if(\"both\"===o)return!!l&&p>=q&&j>=d&&m>=L&&H>=w;if(\"vertical\"===o)return!!l&&p>=q&&j>=d;if(\"horizontal\"===o)return!!l&&m>=L&&H>=w}}}}(jQuery);\n\n/**\n * Overwrites obj1's values with obj2's and adds obj2's if non existent in obj1\n * @param obj1\n * @param obj2\n * @returns obj3 a new object based on obj1 and obj2\n */\nfunction merge_options(obj1,obj2){\n var obj3 = {};\n for (var attrname in obj1) { obj3[attrname] = obj1[attrname]; }\n for (var attrname in obj2) { obj3[attrname] = obj2[attrname]; }\n return obj3;\n}","(function ($) {\n $.fn.countTo = function (options) {\n // merge the default plugin settings with the custom options\n options = $.extend({}, $.fn.countTo.defaults, options || {});\n\n // how many times to update the value, and how much to increment the value on each update\n var loops = Math.ceil(options.speed / options.refreshInterval),\n increment = (options.to - options.from) / loops;\n\n return $(this).each(function () {\n var _this = this,\n loopCount = 0,\n value = options.from,\n interval = setInterval(updateTimer, options.refreshInterval);\n\n function updateTimer() {\n value += increment;\n loopCount++;\n $(_this).html(value.toFixed(options.decimals));\n\n if (typeof (options.onUpdate) == 'function') {\n options.onUpdate.call(_this, value);\n }\n\n if (loopCount >= loops) {\n clearInterval(interval);\n value = options.to;\n\n if (typeof (options.onComplete) == 'function') {\n options.onComplete.call(_this, value);\n }\n }\n }\n });\n };\n\n $.fn.countTo.defaults = {\n from: 0, // the number the element should start at\n to: 100, // the number the element should end at\n speed: 1000, // how long it should take to count between the target numbers\n refreshInterval: 100, // how often the element should be updated\n decimals: 0, // the number of decimal places to show\n onUpdate: null, // callback method for every time the element is updated,\n onComplete: null, // callback method for when the element finishes updating\n };\n})(jQuery);","$(function () {\r\n var cookieValue = [{ \"value\": false }]; // Stores local storage data as json object\r\n var stateLength = 0; // LocalStorage amount of items stored -- updated each time item is pushed\r\n var storageName = 'interactive-cookie-notification';\r\n \r\n var cookieBar = $('#cookieBar');\r\n\r\n if (localStorage && localStorage.getItem(storageName)) {\r\n // Get storage item string data\r\n var retrievedWishlist = localStorage.getItem(storageName);\r\n // Parse that string as json object\r\n cookieValue = JSON.parse(retrievedWishlist);\r\n\r\n if (cookieValue[0].value === false) {\r\n cookieBar.addClass('visible');\r\n } else {\r\n cookieBar.removeClass('visible');\r\n }\r\n\r\n } else {\r\n // If wishlist does not exists on user browser set up list\r\n localStorage.setItem(storageName, JSON.stringify(cookieValue));\r\n }\r\n\r\n // Set As Agreed\r\n $('#cookieBar .accept').click(function (event) {\r\n event.preventDefault();\r\n localStorage.setItem(\r\n storageName,\r\n JSON.stringify(\r\n [{\r\n \"agreed\": true,\r\n \"timestamp\": new Date()\r\n }]\r\n )\r\n );\r\n $(this).parents('#cookieBar').removeClass('visible');\r\n });\r\n\r\n});","$(function(){\r\n \r\n // TABS SHIFT ACTIVE CLASS\r\n var tabs = $('ul.tabs li');\r\n\r\n // FILTER PRODUCT BLOCK\r\n\r\n tabs.click(function(){\r\n $(this).addClass('active').siblings().removeClass('active');\r\n \r\n var filterName = $(this).data('filter');\r\n var filterable = $(\".tab-filter-details\").find('div[data-type]');\r\n \r\n if(filterName != 'all'){\r\n \r\n filterable.filter(':not([data-type*=\"'+filterName+'\"])').addClass('hide');\r\n filterable.filter('[data-type*=\"'+filterName+'\"]').removeClass('hide');\r\n \r\n if (!filterable.filter('[data-type*=\"' + filterName + '\"]').hasClass('is-selected')){\r\n var filterindex = filterable.filter('[data-type*=\"' + filterName + '\"]').index();\r\n stockSlider.flickity('selectCell', filterindex);\r\n }\r\n } \r\n\r\n else {\r\n filterable.removeClass('hide');\r\n }\r\n });\r\n\r\n});\r\n\r\n","$(function(){ \r\n \r\n // MOBILE HEADER MENU\r\n var $menuNav = $('.siteHeader #mainNav').clone();\r\n $menuNav.attr( 'class', 'mobile-nav' );\r\n\r\n // Add New mmenu script full width\r\n $menuNav.mmenu({\r\n extensions : [ \"shadow-panels\", \"fx-panels-slide-100\", \"border-none\", \"theme-black\", \"fullscreen\" ], \r\n offCanvas : {\r\n position : \"right\"\r\n },\r\n \r\n navbars: {\r\n content : [ \"prev\", \"title\", \"next\", \"close\"],\r\n height : 1,\r\n }, \r\n \r\n setSelected: true,\r\n searchfield: {\r\n resultsPanel: true\r\n }}, { });\r\n \r\n\t/*$menuNav.mmenu({\r\n offCanvas: {position: \"right\"}\r\n\t});*/\r\n \r\n $('.mm-panel').append( $('#subNav ul.l0').clone().addClass('sub-menu') );\r\n\r\n\tvar API = $('.mobile-nav').data( \"mmenu\" );\r\n\r\n\t$(\".toggle\").click(function() {\r\n\t\tAPI.open();\r\n\t});\r\n\r\n\t// If the window width id greater than close mmenu\r\n\t$(window).resize(function(){\r\n\t\tif( $(window).width() > 900 ){\r\n\t\t\tAPI.close();\r\n\t\t}\r\n\t});\r\n\r\n // fade Page ELements in\r\n var $animation_elements = $('section');\r\n var $window = $(window);\r\n\r\n function check_if_in_view(el, callback) {\r\n var window_height = $window.height();\r\n var window_top_position = $window.scrollTop();\r\n var window_bottom_position = (window_top_position + window_height);\r\n\r\n $.each(el, function() {\r\n var $element = $(this);\r\n var element_height = $element.outerHeight();\r\n var element_top_position = $element.offset().top;\r\n var element_bottom_position = (element_top_position + element_height);\r\n\r\n //check to see if this current container is within viewport\r\n if ( (element_bottom_position >= window_top_position) && (element_top_position <= window_bottom_position) ) {\r\n $element.addClass('in-view');\r\n\r\n if(typeof callback == 'function'){\r\n callback($element);\r\n }\r\n }\r\n });\r\n }\r\n});","$(function(){\r\n // ACCORDION\r\n $('.acc header').click(function(){\r\n var parent = $(this).parent();\r\n parent.siblings().find('footer').hide();\r\n parent.siblings().removeClass('active');\r\n parent.toggleClass('active');\r\n parent.find('footer').stop().slideToggle();\r\n });\r\n\r\n\r\n // ACCORDION Toggle 2\r\n $('.listBlock a.cta').click(function(){\r\n var parent = $(this).parent();\r\n parent.find('.content .details').slideToggle();\r\n });\r\n\r\n // ACCORDION\r\n $('.halfBlock header').click(function(){\r\n var parent = $(this).parent();\r\n parent.siblings().find('ul').hide();\r\n parent.siblings().removeClass('active');\r\n parent.toggleClass('active');\r\n parent.find('ul').stop().slideToggle();\r\n });\r\n\r\n // Search Bar Functionality\r\n var searchBtn = $('.search .searchBtn');\r\n\r\n searchBtn.click(function(){\r\n $(this).closest('.search').toggleClass('searchActive');\r\n $(this).siblings('.searchBox').find('form input[type=\"text\"]').focus();\r\n });\r\n\r\n\r\n // Equalize product block heights\r\n $('.productBlocks, .gridBlocks').imagesLoaded(function(){\r\n $(window).resize(function(){\r\n equalize($('.productBlocks:not(.gridBlocks):not(.threeBlock)'), $('.product') );\r\n equalize($('.gridBlocks:not(.gridBlocks):not(.threeBlock)'), $('.item') );\r\n }).resize();\r\n });\r\n\r\n\r\n // If prevous page is \r\n $('.previousPage').each(function(){\r\n if (document.referrer == window.location.origin) {\r\n $(this).show();\r\n $(this).click(function(event){\r\n event.preventDefault();\r\n window.history.back();\r\n });\r\n } else {\r\n $(this).hide();\r\n }\r\n });\r\n\r\n // Team info panels\r\n var teamProfile = $('.teamMeetup .profile .action');\r\n\r\n teamProfile.click(function(){\r\n var parent = $(this).parent();\r\n\r\n if ( parent.hasClass('active') ) {\r\n parent.removeClass('active');\r\n parent.siblings().removeClass('disabled');\r\n } else {\r\n parent.addClass('active').siblings().addClass('disabled');\r\n }\r\n });\r\n});\r\n\r\n\r\n// Latest NEW Slider\r\n$(function() {\r\n var mainCarousel = $('div.ticker');\r\n\r\n mainCarousel.imagesLoaded(function(){\r\n mainCarousel.flickity({\r\n cellAlign: 'center',\r\n groupCells: true,\r\n contain: true,\r\n prevNextButtons: true,\r\n pageDots: false,\r\n autoPlay: false,\r\n wrapAround: true,\r\n arrowShape: { \r\n x0: 20,\r\n x1: 55, y1: 50,\r\n x2: 60, y2: 50,\r\n x3: 25\r\n }\r\n });\r\n });\r\n\r\n});\r\n\r\n//Responsiv Tabs with Mobile Accordion Mode\r\n$(document).ready(function() {\r\n //Horizontal Tab\r\n $('#parentHorizontalTab').easyResponsiveTabs({\r\n type: 'default', //Types: default, vertical, accordion\r\n width: 'auto', //auto or any width like 600px\r\n fit: true, // 100% fit in a container\r\n tabidentify: 'hor_1', // The tab groups identifier\r\n activate: function(event) { // Callback function if tab is switched\r\n var $tab = $(this);\r\n var $info = $('#nested-tabInfo');\r\n var $name = $('span', $info);\r\n $name.text($tab.text());\r\n $info.show();\r\n }\r\n }); \r\n});\r\n\r\n\r\n//download all file\r\n$(function() {\r\n $(\"#btnDownloadAll\").click(function (e) {\r\n e.preventDefault();\r\n\r\n var linkArray = [];\r\n $(\"ul.pdfList li a\").each(function () {\r\n var t = $(this).attr(\"href\");\r\n linkArray.push({ path: t, name: t } );\r\n });\r\n \r\n var temporaryDownloadLink = document.createElement(\"a\");\r\n temporaryDownloadLink.style.display = 'none';\r\n\r\n document.body.appendChild(temporaryDownloadLink);\r\n\r\n for (var n = 0; n < linkArray.length; n++) {\r\n var download = linkArray[n];\r\n temporaryDownloadLink.setAttribute('href', download.path);\r\n temporaryDownloadLink.setAttribute('download', download.name);\r\n\r\n temporaryDownloadLink.click();\r\n }\r\n\r\n document.body.removeChild(temporaryDownloadLink);\r\n });\r\n});\r\n\r\n\r\n","$(function(){\r\n var mapStyle = [\r\n {\r\n \"featureType\": \"all\",\r\n \"elementType\": \"labels.text.fill\",\r\n \"stylers\": [\r\n {\r\n \"saturation\": 36\r\n },\r\n {\r\n \"color\": \"#000000\"\r\n },\r\n {\r\n \"lightness\": 40\r\n }\r\n ]\r\n },\r\n {\r\n \"featureType\": \"all\",\r\n \"elementType\": \"labels.text.stroke\",\r\n \"stylers\": [\r\n {\r\n \"visibility\": \"on\"\r\n },\r\n {\r\n \"color\": \"#000000\"\r\n },\r\n {\r\n \"lightness\": 16\r\n }\r\n ]\r\n },\r\n {\r\n \"featureType\": \"all\",\r\n \"elementType\": \"labels.icon\",\r\n \"stylers\": [\r\n {\r\n \"visibility\": \"off\"\r\n }\r\n ]\r\n },\r\n {\r\n \"featureType\": \"administrative\",\r\n \"elementType\": \"geometry.fill\",\r\n \"stylers\": [\r\n {\r\n \"color\": \"#000000\"\r\n },\r\n {\r\n \"lightness\": 20\r\n }\r\n ]\r\n },\r\n {\r\n \"featureType\": \"administrative\",\r\n \"elementType\": \"geometry.stroke\",\r\n \"stylers\": [\r\n {\r\n \"color\": \"#000000\"\r\n },\r\n {\r\n \"lightness\": 17\r\n },\r\n {\r\n \"weight\": 1.2\r\n }\r\n ]\r\n },\r\n {\r\n \"featureType\": \"landscape\",\r\n \"elementType\": \"geometry\",\r\n \"stylers\": [\r\n {\r\n \"color\": \"#000000\"\r\n },\r\n {\r\n \"lightness\": 20\r\n }\r\n ]\r\n },\r\n {\r\n \"featureType\": \"poi\",\r\n \"elementType\": \"geometry\",\r\n \"stylers\": [\r\n {\r\n \"color\": \"#000000\"\r\n },\r\n {\r\n \"lightness\": 21\r\n }\r\n ]\r\n },\r\n {\r\n \"featureType\": \"road.highway\",\r\n \"elementType\": \"geometry.fill\",\r\n \"stylers\": [\r\n {\r\n \"color\": \"#000000\"\r\n },\r\n {\r\n \"lightness\": 17\r\n }\r\n ]\r\n },\r\n {\r\n \"featureType\": \"road.highway\",\r\n \"elementType\": \"geometry.stroke\",\r\n \"stylers\": [\r\n {\r\n \"color\": \"#000000\"\r\n },\r\n {\r\n \"lightness\": 29\r\n },\r\n {\r\n \"weight\": 0.2\r\n }\r\n ]\r\n },\r\n {\r\n \"featureType\": \"road.arterial\",\r\n \"elementType\": \"geometry\",\r\n \"stylers\": [\r\n {\r\n \"color\": \"#000000\"\r\n },\r\n {\r\n \"lightness\": 18\r\n }\r\n ]\r\n },\r\n {\r\n \"featureType\": \"road.local\",\r\n \"elementType\": \"geometry\",\r\n \"stylers\": [\r\n {\r\n \"color\": \"#000000\"\r\n },\r\n {\r\n \"lightness\": 16\r\n }\r\n ]\r\n },\r\n {\r\n \"featureType\": \"transit\",\r\n \"elementType\": \"geometry\",\r\n \"stylers\": [\r\n {\r\n \"color\": \"#000000\"\r\n },\r\n {\r\n \"lightness\": 19\r\n }\r\n ]\r\n },\r\n {\r\n \"featureType\": \"water\",\r\n \"elementType\": \"geometry\",\r\n \"stylers\": [\r\n {\r\n \"color\": \"#000000\"\r\n },\r\n {\r\n \"lightness\": 17\r\n }\r\n ]\r\n }\r\n ];\r\n \r\n function initMap() {\r\n var loc = new google.maps.LatLng( parseFloat( $('#map').data('lat')), parseFloat( $('#map').data('lng')) );\r\n\r\n var mapOptions = {\r\n zoom: parseInt($('#map').data('zoom')),\r\n center: loc,\r\n styles: mapStyle\r\n };\r\n var image1 = 'images/map-icon.png';\r\n var map = new google.maps.Map(document.getElementById('map'), mapOptions);\r\n var marker = new google.maps.Marker({\r\n position: loc,\r\n map: map,\r\n icon: image1\r\n });\r\n }\r\n\r\n if ($('#map').length) { initMap(); }\r\n\r\n});","/*--- isotope Auto Height adjust ---*/\n$(window).load(function() {\n\n var $container = $('.reviewsList ul'),\n filters = {};\n\n $container.isotope({\n itemSelector: '.isotopeItems',\n masonry: {\n columnWidth: 0,\n horizontalOrder: true,\n }\n }); \n});\n\n\n /*--- isotope with Tabs Click ---*/\n$(window).load(function() {\n\n var $container = $('#container'),\n filters = {};\n\n $container.isotope({\n itemSelector: '.isotopeItems',\n masonry: {\n columnWidth: 0,\n }\n });\n\n // filter buttons\n $('.filterItem a').click(function () {\n var $this = $(this);\n // don't proceed if already selected\n if ($this.hasClass('selected')) {\n return;\n }\n\n var $optionSet = $this.parents('.option-set');\n // change selected class\n $optionSet.find('.selected').removeClass('selected');\n $this.addClass('selected');\n\n // store filter value in object\n // i.e. filters.color = 'red'\n var group = $optionSet.attr('data-filter-group');\n filters[group] = $this.attr('data-filter-value');\n // convert object into array\n var isoFilters = [];\n for (var prop in filters) {\n isoFilters.push(filters[prop])\n }\n var selector = isoFilters.join('');\n $container.isotope({ filter: selector });\n\n return false;\n });\n\n $cls = $('#productFilter .filterList .productListItem li');\n\n var hasCls = $cls.hasClass('active');\n var child = \"\";\n if (hasCls) {\n child = $('#productFilter .filterList .productListItem li.active a').attr('data-filter-value');\n\n }\n\n var $containerProduct = $('#productcontainer');\n $containerProduct.isotope({\n itemSelector: '.isotopeItems',\n filter: child,\n masonry: {\n columnWidth: 0,\n }\n });\n \n $('#productFilter .Reset').on('click',function () {\n $('#productFilter .filterList .productListItem li').removeClass(\"active\");\n $containerProduct.isotope({ filter:''});\n });\n \n $('#productFilter .filterList .productListItem li a').on('click',function () {\n var $this1 = $(this);\n $this1.parent('li').toggleClass(\"active\");\n $optionSetActive = $('#productFilter .filterList .productListItem');\n var selectedVal = [];\n $optionSetActive.each(function (k,l) { \n var $this2 = $(l);\n $this2.find('li.active').each(function(m,n){\n $this3 = $(n);\n var temps = $this3.find('a').attr('data-filter-value');\n selectedVal.push(temps);\n });\n });\n \n var selector = selectedVal.join(''); \n // var selector = '.retail .black';\n \n $containerProduct.isotope({ filter: selector });\n }); \n\n});","$(function(){\r\n \r\n // Stock Slider - HomePage\r\n $('.banner').each(function(){\r\n var scope = $(this);\r\n $(this).imagesLoaded(function(){\r\n \r\n var stockItems = $('.slideSet').children('.slide').clone();\r\n\r\n scope.find('.slideSet').flickity({\r\n cellAlign: 'right',\r\n initialIndex: 0,\r\n groupCells: '100%',\r\n pageDots: true,\r\n autoPlay: 5000,\r\n prevNextButtons: true,\r\n }); \r\n });\r\n });\r\n\r\n\r\n // Our History Slider - About Page\r\n $('.historySlider').each(function(){\r\n var scope = $(this);\r\n $(this).imagesLoaded(function(){\r\n \r\n var stockItems = $('.slideSet').children('.items').clone();\r\n\r\n scope.find('.slideSet').flickity({\r\n cellAlign: 'right',\r\n initialIndex: 0,\r\n groupCells: '100%',\r\n pageDots: true,\r\n prevNextButtons: false,\r\n }); \r\n });\r\n });\r\n\r\n\r\n // Thumbnail Slider - LED Product Details Page\r\n $('.thumbnailSlider').each(function(){\r\n var scope = $(this);\r\n\r\n // 1st carousel, main\r\n $('.larg-slider').flickity({\r\n pageDots: false,\r\n prevNextButtons: false,\r\n });\r\n\r\n // 2nd carousel, navigation\r\n $('.larg-slider-nav').flickity({\r\n asNavFor: '.larg-slider',\r\n contain: true,\r\n pageDots: false,\r\n prevNextButtons: false,\r\n });\r\n });\r\n\r\n // About Section Slider - HomePage\r\n $('.orderBlock').each(function(){\r\n var scope = $(this);\r\n $(this).imagesLoaded(function(){\r\n \r\n var stockItems = $('.fiveRow').children('.blocks').clone(); \r\n \r\n if ( matchMedia('screen and (max-width: 992px)').matches ) {\r\n scope.find('.fiveRow').flickity({ \r\n initialIndex: 0,\r\n contain: true,\r\n cellAlign: 'right', \r\n wrapAround: false, \r\n draggable: true,\r\n groupCells: true,\r\n pageDots: false,\r\n prevNextButtons: true, \r\n });\r\n } \r\n\r\n });\r\n });\r\n\r\n\r\n // Testimonials Slider - About Page\r\n $('.testimonialsSlider').each(function(){\r\n var scope = $(this);\r\n $(this).imagesLoaded(function(){\r\n \r\n var stockItems = $('.slideSet').children('.items').clone();\r\n\r\n scope.find('.slideSet').flickity({\r\n cellAlign: 'right',\r\n initialIndex: 0,\r\n groupCells: '100%',\r\n autoPlay: 5000,\r\n pageDots: true,\r\n prevNextButtons: false,\r\n }); \r\n });\r\n });\r\n \r\n \r\n});","$(function(){\r\n\r\n var player;\r\n\r\n if($('.videoBG').length){\r\n var isMobile = {\r\n Android: function() {\r\n return navigator.userAgent.match(/Android/i);\r\n },\r\n BlackBerry: function() {\r\n return navigator.userAgent.match(/BlackBerry/i);\r\n },\r\n iOS: function() {\r\n return navigator.userAgent.match(/iPhone|iPad|iPod/i);\r\n },\r\n Opera: function() {\r\n return navigator.userAgent.match(/Opera Mini/i);\r\n },\r\n Windows: function() {\r\n return navigator.userAgent.match(/IEMobile/i);\r\n },\r\n any: function() {\r\n return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());\r\n }\r\n };\r\n\r\n var videoBg = $('.videoBG'),\r\n videoThumb = $('#videoThumb'),\r\n dt = new Date(),\r\n time = dt.getSeconds(),\r\n VidID = videoBg.attr('data-video');\r\n\r\n // DONT REMOVE THE TILDE EXPRESSION NOOBS\r\n if ( ~VidID.indexOf('youtube') ) {\r\n\r\n // YOUTUBE SCRIPT - DYNAMICALLY ADD YOUTUBE SCRIPT\r\n var tag = document.createElement('script');\r\n tag.src = \"//www.youtube.com/iframe_api\";\r\n var firstScriptTag = document.getElementsByTagName('script')[0];\r\n firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);\r\n\r\n var videoID = VidID != undefined ? VidID.split('v=').pop() : '';\r\n\r\n // YOUTUBE VIDEO CREATOR FUCNTION\r\n var ytVideos = {};\r\n\r\n $(window).load(function(){\r\n youtubeCreator(videoID);\r\n });\r\n\r\n } else {\r\n $(videoBg).attr('id','wistia_'+ VidID);\r\n \r\n if(isMobile.any()){\r\n $(videoBg).hide();\r\n $(videoThumb).hide();\r\n }\r\n \r\n var embedVideo = function() {\r\n var videoOptions = {\r\n backgroundvideo: VidID,\r\n backgroundvideoDiv: videoThumb\r\n };\r\n var supportsHd;\r\n if (bandwidthTest.isFresh()) {\r\n supportsHd = bandwidthTest.savedResult().supportsHd;\r\n } else {\r\n supportsHd = bandwidthTest.supportsHd();\r\n }\r\n if (supportsHd) {\r\n videoOptions.videoQuality = 'hd-only';\r\n } else {\r\n videoOptions.videoQuality = 'md';\r\n }\r\n Wistia.obj.merge(videoOptions, {\r\n plugin: {\r\n cropFill: {\r\n src: \"//fast.wistia.com/labs/crop-fill/plugin.js\"\r\n }\r\n }\r\n });\r\n \r\n wistiaEmbed = Wistia.embed(VidID, videoOptions);\r\n wistiaEmbed.bind(\"play\", function(){\r\n // wistiaEmbed.pause();\r\n wistiaEmbed.time(0);\r\n $(\"#wistia_\"+VidID).css('visibility', 'visible');\r\n wistiaEmbed.play();\r\n return this.unbind;\r\n });\r\n };\r\n \r\n var bandwidthTest = new Wistia.BandwidthTest({\r\n timeoutLength: 2000, // if the test file takes longer than this time to DL, the test failed. The default file is exactly 1MB.\r\n freshFor: 3600000 // don't do the bandwidth test for another hour\r\n });\r\n \r\n if(!Modernizr.touch){\r\n if (bandwidthTest.isFresh()) {\r\n setTimeout(function() {\r\n embedVideo();\r\n }, 10);\r\n } else {\r\n bandwidthTest.bind(\"ended\", embedVideo);\r\n bandwidthTest.start();\r\n }\r\n }\r\n }\r\n }\r\n\r\n\r\n // YOUTUBE VIDEO\r\n function youtubeCreator(playerID, where, index) {\r\n var i = index == undefined ? ytVideos.length + 1 : index;\r\n \r\n createVideoBox(playerID);\r\n\r\n ytVideos[playerID] = new YT.Player(playerID, {\r\n width: 1920,\r\n height: 1080,\r\n videoId: playerID,\r\n playerVars: {\r\n 'autohide': 1,\r\n 'controls': 0,\r\n 'disablekb': 1,\r\n 'loop': 1,\r\n 'modestbranding':1\r\n },\r\n events: {\r\n 'onReady': onPlayerReady,\r\n 'onStateChange': onPlayerStateChange\r\n }\r\n });\r\n\r\n // Player state wrapper\r\n function onPlayerStateChange(event) {\r\n switch(event.data) {\r\n case 0:\r\n // record('video ended');\r\n event.target.playVideo();\r\n break;\r\n case 1:\r\n // Play video ----\r\n // console.log('video playing from '+yVideos[localVidID].getCurrentTime());\r\n player.fadeIn(300);\r\n break;\r\n case 2:\r\n console.log('video paused at '+ytVideos[playerID].getCurrentTime());\r\n }\r\n }\r\n\r\n function onPlayerReady(event){\r\n console.log(event);\r\n event.target.playVideo();\r\n ytVideos[playerID].mute();\r\n }\r\n\r\n $('.'+playerID).fitVids();\r\n }\r\n\r\n // Create Video Lightbox\r\n function createVideoBox(videoID){\r\n var playerMarkUp = ('
');\r\n $('.vidWrap').append(playerMarkUp);\r\n // Responsively Cover Banner\r\n var par = videoBg.parent();\r\n player = par.find('.player.'+videoID);\r\n player.hide();\r\n var aspect = 100/56.25;\r\n $(window).resize(function(){\r\n var w = par.width(),\r\n h = par.height();\r\n if (w/h < aspect){\r\n // SQ \r\n player.css({\r\n 'width':h*aspect+'px'\r\n });\r\n console.log(player);\r\n } else{\r\n player.css({\r\n 'width':'100%'\r\n })\r\n }\r\n }).resize();\r\n }\r\n\r\n\r\n});\r\n"]}