1// 2// vein 3// 4 5!function(e,t){"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("vein",t):this.vein=t()}(0,function(){var e=function(){},t=function(e,t,n){var s,r,l=[],i=[],u=t[document.all?"rules":"cssRules"],o=e.replace(/\s/g,"");for(s=0,r=u.length;s<r;s++)(u[s].selectorText===e||4===u[s].type&&u[s].cssText.replace(/\s/g,"").substring(0,o.length)==o)&&(null===n?i.push(s):l.push(u[s]));for(s=0,r=i.length;s<r;s++)t.deleteRule(i[s]);return l},n=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n+": "+e[n]+";");return t.join("")};e.getStylesheet=function(){return this.element&&document.getElementById("vein")||(this.element=document.createElement("style"),this.element.setAttribute("type","text/css"),this.element.setAttribute("id","vein"),document.getElementsByTagName("head")[0].appendChild(this.element),this.stylesheet=this.element.sheet),this.stylesheet};var s=function(e){return e[document.all?"rules":"cssRules"]},r=function(e,t,n){var r=s(n);n.insertRule?n.insertRule(e+"{"+t+"}",r.length):n.addRule(e,t,r.length)};return e.inject=function(e,l,i){var u,o,h,f,c,a,y,d,g,p,m=(i=function(e){e=e||{};for(var t=1;t<arguments.length;t++)if(arguments[t])for(var n in arguments[t])arguments[t].hasOwnProperty(n)&&(e[n]=arguments[t][n]);return e}({},i)).stylesheet||this.getStylesheet();s(m);for("string"==typeof e&&(e=[e]),u=0,o=e.length;u<o;u++)if("object"==typeof e[u]&&m.insertRule)for(h in e[u])if(0===(f=t(h,m,l)).length)for(c=n(l),g=0,p=e[u][h].length;g<p;g++)r(h,e[u][h][g]+"{"+c+"}",m);else for(y=0,d=f.length;y<d;y++)this.inject(e[u][h],l,{stylesheet:f[y]});else{if(f=t(e[u],m,l),null===l)return;if(0===f.length)c=n(l),r(e[u],c,m);else for(y=0,d=f.length;y<d;y++)for(a in l)l.hasOwnProperty(a)&&(f[y].style.setProperty?f[y].style.setProperty(a,l[a],""):f[y].style.setAttribute(a,l[a],""))}return this},e}); 6 7 8// 9// jwlib-utils 10// 11 12(function($){"use strict";jQuery.fn.exists=function(){return jQuery(this).length>0;};jQuery.getParameterByName=function(name,url){if(!url)url=window.location.href;name=name.replace(/[[\]]/g,"\\$&");var regex=new RegExp("[?&]"+name+"(=([^&#]*)|&|#|$)"),results=regex.exec(url);if(!results)return null;if(!results[2])return"";return decodeURIComponent(results[2].replace(/\+/g," "));};jQuery.debug=function(){if(window.debug===true)window.debug=1;var maxlevel=parseInt($.getParameterByName("debug")||window.debug)||0;if(maxlevel===0)return;var args=Array.prototype.slice.call(arguments),group="debug",loglevel=1;if(args.length>1&&typeof(args[args.length-1])==="number"){loglevel=args.pop();} 13if(loglevel>maxlevel)return;if(args.length>1&&typeof(args[0])==="string"){group=args.shift();} 14var debugGroup=$.getParameterByName("debugGroup")||window.debugGroup;if(debugGroup&&!group.match(debugGroup))return;console.group(group);args.forEach(function(arg){if(Array.isArray(arg)&&typeof arg[0]!=="object"){console.table(arg);} 15else{console.log(arg);}});console.groupEnd();};jQuery.isMobile=jQuery.isTouch=function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch||false;};if(jQuery.isTouch())document.documentElement.classList.add("touch");jQuery.clearBrowserCache=function(){$(window).on("pageshow",function(event){if(event.originalEvent.persisted){window.location.reload();}});};jQuery.preloadImages=function(){for(var i=0;i<arguments.length;i++){$("<img />").attr("src",arguments[i]);}};var triggerWindowResize=function(){$(window).trigger("resize");};if(typeof(orientationEvent)==undefined){var orientationEvent=0;} 16$(window).on(orientationEvent,triggerWindowResize).on("load",triggerWindowResize);})(jQuery); 17 18 19/*! jQuery Migrate v1.2.1 | (c) 2005, 2013 jQuery Foundation, Inc. and other contributors | jquery.org/license */ 20jQuery.migrateMute===void 0&&(jQuery.migrateMute=!0),function(e,t,n){function r(n){var r=t.console;i[n]||(i[n]=!0,e.migrateWarnings.push(n),r&&r.warn&&!e.migrateMute&&(r.warn("JQMIGRATE: "+n),e.migrateTrace&&r.trace&&r.trace()))}function a(t,a,i,o){if(Object.defineProperty)try{return Object.defineProperty(t,a,{configurable:!0,enumerable:!0,get:function(){return r(o),i},set:function(e){r(o),i=e}}),n}catch(s){}e._definePropertyBroken=!0,t[a]=i}var i={};e.migrateWarnings=[],!e.migrateMute&&t.console&&t.console.log&&t.console.log("JQMIGRATE: Logging is active"),e.migrateTrace===n&&(e.migrateTrace=!0),e.migrateReset=function(){i={},e.migrateWarnings.length=0},"BackCompat"===document.compatMode&&r("jQuery is not compatible with Quirks Mode");var o=e("<input/>",{size:1}).attr("size")&&e.attrFn,s=e.attr,u=e.attrHooks.value&&e.attrHooks.value.get||function(){return null},c=e.attrHooks.value&&e.attrHooks.value.set||function(){return n},l=/^(?:input|button)$/i,d=/^[238]$/,p=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,f=/^(?:checked|selected)$/i;a(e,"attrFn",o||{},"jQuery.attrFn is deprecated"),e.attr=function(t,a,i,u){var c=a.toLowerCase(),g=t&&t.nodeType;return u&&(4>s.length&&r("jQuery.fn.attr( props, pass ) is deprecated"),t&&!d.test(g)&&(o?a in o:e.isFunction(e.fn[a])))?e(t)[a](i):("type"===a&&i!==n&&l.test(t.no
20deName)&&t.parentNode&&r("Can't change the 'type' of an input or button in IE 6/7/8"),!e.attrHooks[c]&&p.test(c)&&(e.attrHooks[c]={get:function(t,r){var a,i=e.prop(t,r);return i===!0||"boolean"!=typeof i&&(a=t.getAttributeNode(r))&&a.nodeValue!==!1?r.toLowerCase():n},set:function(t,n,r){var a;return n===!1?e.removeAttr(t,r):(a=e.propFix[r]||r,a in t&&(t[a]=!0),t.setAttribute(r,r.toLowerCase())),r}},f.test(c)&&r("jQuery.fn.attr('"+c+"') may use property instead of attribute")),s.call(e,t,a,i))},e.attrHooks.value={get:function(e,t){var n=(e.nodeName||"").toLowerCase();return"button"===n?u.apply(this,arguments):("input"!==n&&"option"!==n&&r("jQuery.fn.attr('value') no longer gets properties"),t in e?e.value:null)},set:function(e,t){var a=(e.nodeName||"").toLowerCase();return"button"===a?c.apply(this,arguments):("input"!==a&&"option"!==a&&r("jQuery.fn.attr('value', val) no longer sets properties"),e.value=t,n)}};var g,h,v=e.fn.init,m=e.parseJSON,y=/^([^<]*)(<[\w\W]+>)([^>]*)$/;e.fn.init=function(t,n,a){var i;return t&&"string"==typeof t&&!e.isPlainObject(n)&&(i=y.exec(e.trim(t)))&&i[0]&&("<"!==t.charAt(0)&&r("$(html) HTML strings must start with '<' character"),i[3]&&r("$(html) HTML text after last tag is ignored"),"#"===i[0].charAt(0)&&(r("HTML string cannot start with a '#' character"),e.error("JQMIGRATE: Invalid selector string (XSS)")),n&&n.context&&(n=n.context),e.parseHTML)?v.call(this,e.parseHTML(i[2],n,!0),n,a):v.apply(this,arguments)},e.fn.init.prototype=e.fn,e.parseJSON=function(e){return e||null===e?m.apply(this,arguments):(r("jQuery.parseJSON requires a valid JSON string"),null)},e.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||0>e.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e.browser||(g=e.uaMatch(navigator.userAgent),h={},g.browser&&(h[g.browser]=!0,h.version=g.version),h.chrome?h.webkit=!0:h.webkit&&(h.safari=!0),e.browser=h),a(e,"browser",e.browser,"jQuery.browser is deprecated"),e.sub=function(){function t(e,n){return new t.fn.init(e,n)}e.extend(!0,t,this),t.superclass=this,t.fn=t.prototype=this(),t.fn.constructor=t,t.sub=this.sub,t.fn.init=function(r,a){return a&&a instanceof e&&!(a instanceof t)&&(a=t(a)),e.fn.init.call(this,r,a,n)},t.fn.init.prototype=t.fn;var n=t(document);return r("jQuery.sub() is deprecated"),t},e.ajaxSetup({converters:{"text json":e.parseJSON}});var b=e.fn.data;e.fn.data=function(t){var a,i,o=this[0];return!o||"events"!==t||1!==arguments.length||(a=e.data(o,t),i=e._data(o,t),a!==n&&a!==i||i===n)?b.apply(this,arguments):(r("Use of jQuery.fn.data('events') is deprecated"),i)};var j=/\/(java|ecma)script/i,w=e.fn.andSelf||e.fn.addBack;e.fn.andSelf=function(){return r("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),w.apply(this,arguments)},e.clean||(e.clean=function(t,a,i,o){a=a||document,a=!a.nodeType&&a[0]||a,a=a.ownerDocument||a,r("jQuery.clean() is deprecated");var s,u,c,l,d=[];if(e.merge(d,e.buildFragment(t,a).childNodes),i)for(c=function(e){return!e.type||j.test(e.type)?o?o.push(e.parentNode?e.parentNode.removeChild(e):e):i.appendChild(e):n},s=0;null!=(u=d[s]);s++)e.nodeName(u,"script")&&c(u)||(i.appendChild(u),u.getElementsByTagName!==n&&(l=e.grep(e.merge([],u.getElementsByTagName("script")),c),d.splice.apply(d,[s+1,0].concat(l)),s+=l.length));return d});var Q=e.event.add,x=e.event.remove,k=e.event.trigger,N=e.fn.toggle,T=e.fn.live,M=e.fn.die,S="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",C=RegExp("\\b(?:"+S+")\\b"),H=/(?:^|\s)hover(\.\S+|)\b/,A=function(t){return"string"!=typeof t||e.event.special.hover?t:(H.test(t)&&r("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),t&&t.replace(H,"mouseenter$1 mouseleave$1"))};e.event.props&&"attrChange"!==e.event.props[0]&&e.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),e.event.dispatch&&a(e.event,"handle",e.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),e.event.add=function(e,t,n,a,i){e!==document&&C.test(t)&&r("AJAX events should be attached to document: "+t),Q.call(this,e,A(t||""),n,a,i)},e.event.remove=function(e,t,n,r,a){x.call(this,e,A(t)||"",n,r,a)},e.fn.error=function(){var e=Array.prototype.slice.call(arguments,0);return r("jQuery.fn.error() is deprecated"),e.splice(0,0,"error"),arguments.length?this.bind.apply(this,e):(this.triggerHandler.apply(this,e),this)},e.fn.toggle=function(t,n){if(!e.isFunction(t)||!e.isFunction(n))return N.apply(this,arguments);r("jQuery.fn.toggle(handler, handler...) is deprecated");var a=arguments,i=t.guid||e.guid++,o=0,s=function(n){var r=(e._data(this,"lastToggle"+t.guid)||0)%o;return e._data(this,"lastToggle"+t.guid,r+1),n.preventDefault(),a[r].apply(this,arguments)||!1};for(s.guid=i;a.length>o;)a[o++].guid=i;return this.click(s)},e.fn.live=function(t,n,a){return r("jQuery.fn.live() is deprecated"),T?T.apply(this,arguments):(e(this.context).on(t,this.selector,n,a),this)},e.fn.die=function(t,n){return r("jQuery.fn.die() is deprecated"),M?M.apply(this,arguments):(e(this.context).off(t,this.selector||"**",n),this)},e.event.trigger=function(e,t,n,a){return n||C.test(e)||r("Global events are undocumented and deprecated"),k.call(this,e,t,n||document,a)},e.each(S.split("|"),function(t,n){e.event.special[n]={setup:function(){var t=this;return t!==document&&(e.event.add(document,n+"."+e.guid,function(){e.event.trigger(n,null,t,!0)}),e._data(this,n,e.guid++)),!1},teardown:function(){return this!==document&&e.event.remove(document,n+"."+e._data(this,n)),!1}}})}(jQuery,window); 21var stacks = {}; 22stacks.jQuery = jQuery.noConflict(true); 23stacks.com_bigwhiteduck_stacks_headerpro_animate = {}; 24stacks.com_bigwhiteduck_stacks_headerpro_animate = (function(stack) { 25var jQuery = stacks.jQuery;var $ = jQuery; 26(function($){"use strict";function isInEffect(effect){return/In/.test(effect)||$.inArray(effect,$.fn.textillate.defaults.inEffects)>=0;};function isOutEffect(effect){return/Out/.test(effect)||$.inArray(effect,$.fn.textillate.defaults.outEffects)>=0;};function stringToBoolean(str){if(str!=="true"&&str!=="false")return str;return(str==="true");};function getData(node){var attrs=node.attributes||[],data={};if(!attrs.length)return data;$.each(attrs,function(i,attr){var nodeName=attr.nodeName.replace(/delayscale/,'delayScale');if(/^data-in-*/.test(nodeName)){data.in=data.in||{};data.in[nodeName.replace(/data-in-/,'')]=stringToBoolean(attr.nodeValue);}else if(/^data-out-*/.test(nodeName)){data.out=data.out||{};data.out[nodeName.replace(/data-out-/,'')]=stringToBoolean(attr.nodeValue);}else if(/^data-*/.test(nodeName)){data[nodeName.replace(/data-/,'')]=stringToBoolean(attr.nodeValue);}}) 27return data;} 28function shuffle(o){for(var j,x,i=o.length;i;j=parseInt(Math.random()*i),x=o[--i],o[i]=o[j],o[j]=x);return o;} 29function animate($t,effect,cb){$t.addClass('animated '+effect).css('visibility','visible').show();$t.one('animationend webkitAnimationEnd oAnimationEnd',function(){$t.removeClass('animated '+effect);cb&&cb();});} 30function animateTokens($tokens,options,cb){var that=this,count=$tokens.length;if(!count){cb&&cb();return;} 31if(options.shuffle)$tokens=shuffle($tokens);if(options.reverse)$tokens=$tokens.toArray().reverse();$.each($tokens,function(i,t){var $token=$(t);function complete(){if(isInEffect(options.effect)){$token.css('visibility','visible');}else if(isOutEffect(options.effect)){$token.css('visibility','hidden');} 32count-=1;if(!count&&cb)cb();} 33var delay=options.sync?options.delay:options.delay*i*options.delayScale;$token.text()?setTimeout(function(){animate($token,options.effect,complete)},delay):complete();});};var Textillate=function(element,options){var base=this,$element=$(element);base.init=function(){base.$texts=$element.find(options.selector);if(!base.$texts.length){base.$texts=$('<ul class="texts"><li>'+$element.html()+'</li></ul>');$element.html(base.$texts);} 34base.$texts.hide();base.$current=$('<span>').html(base.$texts.find(':first-child').html()).prependTo($element);if(isInEffect(options.in.effect)){base.$current.css('visibility','hidden');}else if(isOutEffect(options.out.effect)){base.$current.css('visibility','visible');} 35base.setOptions(options);base.timeoutRun=null;setTimeout(function(){base.options.autoStart&&base.start();},base.options.initialDelay)};base.setOptions=function(options){base.options=options;};base.triggerEvent=function(name){var e=$.Event(name+'.tlt');$element.trigger(e,base);return e;};
35base.in=function(index,cb){index=index||0;var $elem=base.$texts.find(':nth-child('+((index||0)+1)+')'),options=$.extend(true,{},base.options,$elem.length?getData($elem[0]):{}),$tokens;$elem.addClass('current');base.triggerEvent('inAnimationBegin');base.$current.html($elem.html()).lettering('words');if(base.options.type=="char"){base.$current.find('[class^="word"]').css({'display':'inline-block','-webkit-transform':'translate3d(0,0,0)','-moz-transform':'translate3d(0,0,0)','-o-transform':'translate3d(0,0,0)','transform':'translate3d(0,0,0)'}).each(function(){$(this).lettering()});} 36$tokens=base.$current.find('[class^="'+base.options.type+'"]').css('display','inline-block');if(isInEffect(options.in.effect)){$tokens.css('visibility','hidden');}else if(isOutEffect(options.in.effect)){$tokens.css('visibility','visible');} 37base.currentIndex=index;animateTokens($tokens,options.in,function(){base.triggerEvent('inAnimationEnd');if(options.in.callback)options.in.callback();if(cb)cb(base);});};base.out=function(cb){var $elem=base.$texts.find(':nth-child('+((base.currentIndex||0)+1)+')'),$tokens=base.$current.find('[class^="'+base.options.type+'"]'),options=$.extend(true,{},base.options,$elem.length?getData($elem[0]):{}) 38base.triggerEvent('outAnimationBegin');animateTokens($tokens,options.out,function(){$elem.removeClass('current');base.triggerEvent('outAnimationEnd');if(options.out.callback)options.out.callback();if(cb)cb(base);});};base.start=function(index){setTimeout(function(){base.triggerEvent('start');(function run(index){base.in(index,function(){var length=base.$texts.children().length;index+=1;if(!base.options.loop&&index>=length){if(base.options.callback)base.options.callback();base.triggerEvent('end');}else{index=index%length;base.timeoutRun=setTimeout(function(){base.out(function(){run(index)});},base.options.minDisplayTime);}});}(index||0));},base.options.initialDelay);};base.stop=function(){if(base.timeoutRun){clearInterval(base.timeoutRun);base.timeoutRun=null;}};base.init();} 39$.fn.textillate=function(settings,args){return this.each(function(){var $this=$(this),data=$this.data('textillate'),options=$.extend(true,{},$.fn.textillate.defaults,getData(this),typeof settings=='object'&&settings);if(!data){$this.data('textillate',(data=new Textillate(this,options)));}else if(typeof settings=='string'){data[settings].apply(data,[].concat(args));}else{data.setOptions.call(data,options);}})};$.fn.textillate.defaults={selector:'.texts',loop:false,minDisplayTime:2000,initialDelay:0,in:{effect:'fadeInLeftBig',delayScale:1.5,delay:50,sync:false,reverse:false,shuffle:false,callback:function(){}},out:{effect:'hinge',delayScale:1.5,delay:50,sync:false,reverse:false,shuffle:false,callback:function(){}},autoStart:true,inEffects:[],outEffects:['hinge'],callback:function(){},type:'char'};}(jQuery)); 40 41(function($){function injector(t,splitter,klass,after){var text=t.text(),a=text.split(splitter),inject='';if(a.length){$(a).each(function(i,item){inject+='<span class="'+klass+(i+1)+'" aria-hidden="true">'+item+'</span>'+after;});t.attr('aria-label',text).empty().append(inject)}} 42var methods={init:function(){return this.each(function(){injector($(this),'','char','');});},words:function(){return this.each(function(){injector($(this),' ','word',' ');});},lines:function(){return this.each(function(){var r="eefec303079ad17405c889e092e105b0";injector($(this).children("br").replaceWith(r).end(),r,'line','');});}};$.fn.lettering=function(method){if(method&&methods[method]){return methods[method].apply(this,[].slice.call(arguments,1));}else if(method==='letters'||!method){return methods.init.apply(this,[].slice.call(arguments,0));} 43$.error('Method '+method+' does not exist on jQuery.lettering');return this;};})(jQuery); 44 45(function($){$.fn.onImpression=function(options){var settings=$.extend({offset:0,callback:null,attribute:"",alwayscallback:false,scrollable:""},options) 46var $window=$(window),$scrollable=$(settings.scrollable),onImpressionElements=this,loaded;this.one("onImpression",function(){if(typeof settings.callback==="function")settings.callback.call(this,this.getAttribute(settings.attribute));});this.on("alwaysOnImpression",function(){if(typeof settings.callback==="function")settings.callback.call(this,this.getAttribute(settings.attribute));});function onImpression(){var inview=onImpressionElements.filter(function(){var $e=$(this);if($e.is(":hidden"))return;var wt=$window.scrollTop(),wb=wt+$window.height(),et=$e.offset().top,eb=et+$e.height();var inScrollable=false;if($scrollable.length){var scrollTop=$scrollable.scrollTop(),scrollBottom=scrollTop+$scrollable.height();inScrollable=(eb>=scrollTop-settings.offset&&et<=scrollBottom+settings.offset);} 47return(eb>=wt-settings.offset&&et<=wb+settings.offset)||inScrollable;});if(settings.alwayscallback){loaded=inview.trigger("alwaysOnImpression");} 48else{loaded=inview.trigger("onImpression");onImpressionElements=onImpressionElements.not(loaded);}} 49if(typeof settings.callback==="function"){if($scrollable.length){$scrollable.on("scroll.onImpression resize.onImpression lookup.onImpression",onImpression);}else{$window.on("scroll.onImpression resize.onImpression lookup.onImpression",onImpression);} 50onImpression();} 51return this;};})(jQuery); 52 53return stack;})(stacks.com_bigwhiteduck_stacks_headerpro_animate); 54stacks.com_bigwhiteduck_stacks_headerpro = {}; 55stacks.com_bigwhiteduck_stacks_headerpro = (function(stack) { 56var jQuery = stacks.jQuery;var $ = jQuery; var elements=document.getElementsByClassName('hp-slice');while(elements.length>0){elements[0].parentNode.removeChild(elements[0]);} 57 58return stack;})(stacks.com_bigwhiteduck_stacks_headerpro); 59stacks.stacks_in_35_1 = {}; 60stacks.stacks_in_35_1 = (function(stack) { 61var jQuery = stacks.jQuery;var $ = jQuery; 62stacks.fInit=function(stack){return stack;} 63window.wowjsmobile=true;window.revealAnimation='fadeAndPop';window.revealNoScroll=false;$(document).on('opened.fndtn.reveal','[data-reveal]',function(){$(window).trigger('resize')}
63);$(document).ready(function(){if($.isMobile()){$('.show-for-touch').fadeIn('fast');$("a[data-dropdown],a.menu-icon,a.touchfix").on('touchend',function(){$(this).trigger('click')});}});var useCustomSelector='False',stacksTrue='True',headerFamily='Open Sans'==='custom'?'':"Open Sans",headerFamilyFallback='sans-serif',headerSelector='h1'+',.font-family-h1',headerStyle='normal',headerGoogle=headerFamily==='Open Sans'?stacksTrue:'Open Sans'==='custom'?'False':'false',headerWeight=headerStyle==='italic'?'400italic':'400',headerWeight=headerWeight+',400'.replace(/\s/g,''),header2Family='Open Sans'==='custom'?'':'Open Sans',header2FamilyFallback='sans-serif',header2Selector='h2, h3, h4, h5, h6'+',.font-family-h2',header2Style='normal',header2Google=header2Family==='Open Sans'?stacksTrue:'Open Sans'==='custom'?'False':'false',header2Weight=header2Style==='italic'?'500italic':'500',header2Weight=header2Weight+',400'.replace(/\s/g,''),fontFamily='\'Helvetica Neue\', Helvetica, Arial, sans-serif'==='custom'?'':'\'Helvetica Neue\', Helvetica, Arial, sans-serif',fontFamilyFallback='sans-serif',fontSelector='p'+',.font-family-text',fontGoogle=fontFamily==='Open Sans'?stacksTrue:'\'Helvetica Neue\', Helvetica, Arial, sans-serif'==='custom'?'False':'false',fontWeight='400,400'.replace(/\s/g,''),getGoogleUrls=function(fontStore){var googleFonts=[];for(var family in fontStore){var weights=fontStore[family].join().replace(/,,/g,',').replace(/,$/,'');googleFonts.push('https://fonts.googleapis.com/css?family='+family+':'+weights);} 64return googleFonts;},isGFont=function(family,google){if(google===stacksTrue)return family;return false;},getGoogleFonts=function(data){var fonts=data.fonts,weights=data.weights,google=data.google,fontStore=new Object();for(var i=0;i<fonts.length;i++){if(isGFont(fonts[i],google[i])===false)continue;(fontStore[fonts[i]]=fontStore[fonts[i]]||[]).push(weights[i]);} 65return getGoogleUrls(fontStore);};headerFamily=$.trim(headerFamily);header2Family=$.trim(header2Family);fontFamily=$.trim(fontFamily);var cssFontFiles=getGoogleFonts({fonts:[headerFamily,header2Family,fontFamily],weights:[headerWeight,header2Weight,fontWeight],google:[headerGoogle,header2Google,fontGoogle]});for(var i=0;i<cssFontFiles.length;i++){loadCSS(decodeURIComponent(cssFontFiles[i]));} 66if(useCustomSelector===stacksTrue){fontFamily='"'+fontFamily+'"';headerFamily='"'+headerFamily+'"';header2Family='"'+header2Family+'"';var customFontStyles={'font-family':[fontFamily,fontFamilyFallback].join()+'!important','font-weight':fontWeight.split(',')[0]+'!important'},customHeaderSyles={'font-family':[headerFamily,headerFamilyFallback].join()+'!important','font-weight':headerWeight.split(',')[0]+'!important','font-style':headerStyle+'!important'},customHeader2Syles={'font-family':[header2Family,header2FamilyFallback].join()+'!important','font-weight':header2Weight.split(',')[0]+'!important','font-style':header2Style+'!important'};if(fontFamily!=='fontpro'){$.debug('Custom Font Selectors:'+fontSelector,customFontStyles);vein.inject(fontSelector,customFontStyles);} 67if(headerFamily!=='fontpro'){$.debug('Custom Header Selectors:'+headerSelector,customHeaderSyles);vein.inject(headerSelector,customHeaderSyles);} 68if(header2Family!=='fontpro'){$.debug('Custom Header2 Selectors:'+header2Selector,customHeader2Syles);vein.inject(header2Selector,customHeader2Syles);}} 69 70return stack;})(stacks.stacks_in_35_1); 71stacks.stacks_in_68 = {}; 72stacks.stacks_in_68 = (function(stack) { 73var jQuery = stacks.jQuery;var $ = jQuery; 74$(function(){var stack=$('#stacks_in_68');if(!stack.length>0||typeof stack==='undefined'){console.log('com_bigwhiteduck_stacks_sections_pro_section_stack removed by 3rd party php. Execution terminated contact the vendor of the php stack.');return false;};var 75baseSelector='#stacks_in_68>.s-pro:not(.vault-height)',container=$(baseSelector),wrapper=$('>.shear-wrapper',baseSelector),layer=$('>.sections-layer',baseSelector),inner=$('>.shear-inner',wrapper),content=$('>.inner-content',inner),flexHeight=100.00,flexProportion=flexHeight/100,mobflexHeight=100.00,mobflexProportion=mobflexHeight/100,flexBP=740,bpHeight=768,bpWidth=768,_win=$(window);;inner.addClass('prop-'+'sec-width');var flexSize=function(){return _win.width()<flexBP?mobflexProportion:flexProportion;} 76var checkOverflow=function(){if(inner.hasClass('flex-height')){var content_height=content.outerHeight();var win_height=stack.outerWidth()*flexSize();
76transform_string='translateY('+(win_height/2)+'px)';if(win_height<=content_height){inner.removeClass('full-height');inner.css('height','');}else{inner.addClass('full-height');inner.css('height',win_height);}} 77stack.trigger('sections-resize');};_win.on("resize",checkOverflow);_win.on('load',function(){checkOverflow();inner.removeClass('preload-height');layer.removeClass('preload-height');_win.trigger('resize');});function afterResize(){if((typeof foundation!='undefined')&&(typeof foundation.jQuery!='undefined')){foundation.jQuery(document).foundation('equalizer','reflow');}} 78var resizeId;$(window).on('resize',function(){clearTimeout(resizeId);resizeId=setTimeout(afterResize,0);});window.addEventListener('load',(event)=>{$('#stacks_in_68>.s-pro:not(.vault-height)>.shear-wrapper').removeClass('preload-wrapper');$('#stacks_in_68>.s-pro:not(.vault-height) .content').removeClass('preload-content');});}); 79 80return stack;})(stacks.stacks_in_68); 81stacks.stacks_in_144 = {}; 82stacks.stacks_in_144 = (function(stack) { 83var jQuery = stacks.jQuery;var $ = jQuery; 84document.addEventListener("DOMContentLoaded",function(){window.addEventListener('load',(event)=>{var stack=$('#stacks_in_144 .pin-it'),wrapper=$('#stacks_in_144'),spacer=$('#stacks_in_144 .pin-spacer'),didScroll,lastPos=0,downTolerance=100,upTolerance=100,navbarHeight=stack.outerHeight(),topOffset=0,offsetUnits='px',smallOffsetUnits=false===true?'px':'px',breakpoint=645,smallTopOffset=false===true?0:0,smallTopOffset=false===true?-9999:smallTopOffset,triggerTop=stack.offset().top-topOffset;spacer.css('height',0);calcOffset(breakpoint,true);resizeElement();stack.addClass('pin-static');$(window).scroll(function(event){shouldAnimate($(this).scrollTop());didScroll=true});setInterval(function(){if(didScroll){hasScrolled();didScroll=false;}},10);function hasScrolled(){var sup=$(window).scrollTop();if(sup>triggerTop&&stack.hasClass('pin-static')){toggleSpacer(true);stack.removeClass('pin-static').addClass('pin-fixed');wrapper.addClass('pin-fixed');lastPos=sup;} 85if(sup<triggerTop&&stack.hasClass('pin-fixed')){toggleSpacer(false);stack.removeClass('pin-fixed').addClass("pin-static");wrapper.removeClass('pin-fixed')}if(stack.hasClass('pin-fixed')){if(sup>(lastPos+downTolerance)){stack.removeClass('slide-down').addClass('slide-up');lastPos=sup;$('body').trigger('menuSlideUp');} 86if((sup<(lastPos-upTolerance))&&(sup+$(window).height()<$(document).height())){stack.removeClass('slide-up').addClass('slide-down');lastPos=sup;}}} 87function shouldAnimate(yPos){if(yPos<triggerTop){stack.removeClass('animate').removeClass('slide-up').removeClass('slide-down')}else{stack.addClass('animate')}} 88function toggleSpacer(fix){if(fix==true){spacer.css('height',$('#stacks_in_144 .pin-it').height());}else 89{spacer.css('height',0);}} 90function resizeElement(){stack.css('width',spacer.outerWidth(true));} 91function convertToPercent(percentValue){var absBottom;return((percentValue/100)*$(window).height());} 92function calcOffset(breakpoint,init){var thisTop,thisUnits,winWidth=$(window).width();thisTop=winWidth>breakpoint?topOffset:smallTopOffset;thisUnits=winWidth>breakpoint?offsetUnits:smallOffsetUnits;if(thisUnits==="%")thisTop=convertToPercent(thisTop);if(init){lastPos=$(window).scrollTop;if(spacer.offset().top<thisTop){stack.addClass('pin-fixed').removeClass('pin-static')} 93else{stack.removeClass('pin-fixed').addClass('pin-static')}}triggerTop=spacer.offset().top-thisTop;} 94function calcPositions(){resizeElement();calcOffset(breakpoint,true);hasScrolled();} 95$(window).resize(function(){calcPositions();});setTimeout(function(){var resize=true;},10);function isTouchDevice(){return true==("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}});}); 96 97return stack;})(stacks.stacks_in_144); 98stacks.stacks_in_215 = {}; 99stacks.stacks_in_215 = (function(stack) { 100var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function() { 101 102 if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { 103 $('#volumestacks_in_215').attr('style', 'display: none !important'); 104 } 105 106 107 // Pause the AudioPlayer stack by clicking anywhere outside of itself 108 $(document).mouseup(function (e) { 109 var container = $("#audioPlayerContainerstacks_in_215"); 110 if (!container.is(e.target) // if the target of the click isn't the container... 111 && container.has(e.target).length === 0) // ... nor a descendant of the container 112 { 113 audio.pause(); 114 playButton.innerHTML = "<i class='fa fa-play'></i>"; 115 } 116 }); 117 118 119 120 121 // Variables 122 var audio = document.getElementById("audioPlayerstacks_in_215"); 123 var playButton = document.getElementById("audioPlayerPlayPausestacks_in_215"); 124 var muteButton = document.getElementById("volumeMinstacks_in_215"); 125 var fullVolumeButton = document.getElementById("volumeMaxstacks_in_215"); 126 var textduration = document.getElementById("audioPlayerDurationstacks_in_215"); 127 var textcurrenttime = document.getElementById("audioPlayerCurrentTimestacks_in_215"); 128 var seekBar = document.getElementById("audioPlayerSeekBarstacks_in_215"); 129 var volumeBar = document.getElementById("volume-barstacks_in_215"); 130 var playbackRateNumberBox = document.getElementById("playback_rate_numberbox_stacks_in_215"); 131 var playbackRateSelectMenu = document.getElementById("playback_rate_selectmenu_stacks_in_215"); 132 133 // Check audio is available, before constructing the player 134 if (audio) { 135 136 // Event listener for the play/pause button 137 playButton.addEventListener("click", function() { 138 if (audio.paused == true) { 139 audio.volume = 0.60; 140 audio.play(); 141 playButton.innerHTML = "<i class='fa fa-pause'></i>"; 142 $('#audioPlayerContainerstacks_in_215').addClass('audioPlayerPlaying'); 143 $('#audioPlayerContainerstacks_in_215').removeClass('audioPlayerPaused'); 144 } else { 145 audio.pause(); 146 playButton.innerHTML = "<i class='fa fa-play'></i>"; 147 $('#audioPlayerContainerstacks_in_215').addClass('audioPlayerPaused'); 148 $('#audioPlayerContainerstacks_in_215').removeClass('audioPlayerPlaying'); 149 } 150 }); 151 152 // Event listener for the seek bar 153 seekBar.addEventListener("change", function() { 154 var time = audio.duration * (seekBar.value / 100); // Calculate the new time 155 audio.currentTime = time; // Update the audio time 156 }); 157 158 // Update the seek bar as the audio plays 159 audio.addEventListener("timeupdate", function() { 160 var value = (100 / audio.duration) * audio.currentTime; // Calculate the slider value 161 seekBar.value = value; // Update the slider value 162 }); 163 164 audio.addEventListener("timeupdate", function(){ 165 var whereYouAt = (audio.currentTime); 166 var minutes = Math.floor(whereYouAt / 60); 167 var seconds = Math.floor(whereYouAt - minutes * 60) 168 var x = minutes < 10 ? "0" + minutes : minutes; 169 var y = seconds < 10 ? "0" + seconds : seconds; 170 171 document.getElementById("audioPlayerCurrentTimestacks_in_215").innerHTML = x + ":" + y; 172 }, 173 false); 174 175 // audio duration 176 audio.addEventListener("loadedmetadata", function(){ 177 var totaltime = (audio.duration); 178 var minutes = Math.floor(totaltime / 60); 179 var seconds = Math.floor(totaltime - minutes * 60) 180 var x = minutes < 10 ? "0" + minutes : minutes; 181 var y = seconds < 10 ? "0" + seconds : seconds; 182 183 document.getElementById("audioPlayerDurationstacks_in_215").innerHTML = x + ":" + y; 184 }, 185 false); 186 187 // Event listener for the volume bar 188 volumeBar.addEventListener("change", function() { 189 audio.volume = volumeBar.value; 190 }); 191 192 // Event listener for the playback rate number box 193 playbackRateNumberBox.addEventListener("change", function() { 194 audio.playbackRate = playbackRateNumberBox.value; 195 }); 196 197 // Event listener for the playback rate select menu 198 playbackRateSelectMenu.addEventListener("change", function() { 199 audio.playbackRate = playbackRateSelectMenu.value; 200 }); 201 202 // Event listener for the mute button 203 muteButton.addEventListener("click", function() { 204 audio.volume = 0; 205 volumeBar.value = 0; 206 }); 207 208 // Event listener for the full volume button 209 fullVolumeButton.addEventListener("click", function() { 210 audio.volume = 1.00; 211 volumeBar.value = 1.00; 212 }); 213 214 // When the audio stops playing 215 audio.addEventListener("ended", function() { 216 audio.currentTime = 0; 217 playButton.innerHTML = "<i class='fa fa-play'></i>"; 218 }); 219 220 }; 221}); 222 223return stack;})(stacks.stacks_in_215); 224stacks.stacks_in_155 = {}; 225stacks.stacks_in_155 = (function(stack) { 226var jQuery = stacks.jQuery;var $ = jQuery; 227$(function(){var stack=$('#stacks_in_145'),headPro=$('.header-pro',stack),hPro=$('.h-pro',stack),hProText=$('.hTxt',stack),startAuto='false'!='true'?false:true;function triggerAnimation(){$tlt.textillate('start');} 228var $tlt=hProText.textillate({loop:false,minDisplayTime:0,initialDelay:800,autoStart:startAuto,in:{effect:'zoomIn',delayScale:1.00,delay:150,sync:false,shuffle:false,reverse:false},out:{effect:'flip',delayScale:1.50,delay:50,sync:false,shuffle:false,reverse:false},type:'char'});stack.onImpression({offset:0,callback:triggerAnimation,});}); 229 230return stack;})(stacks.stacks_in_155); 231stacks.stacks_in_204 = {}; 232stacks.stacks_in_204 = (function(stack) { 233var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function() { 234
235 if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { 236 $('#volumestacks_in_204').attr('style', 'display: none !important'); 237 } 238 239 240 // Pause the AudioPlayer stack by clicking anywhere outside of itself 241 $(document).mouseup(function (e) { 242 var container = $("#audioPlayerContainerstacks_in_204"); 243 if (!container.is(e.target) // if the target of the click isn't the container... 244 && container.has(e.target).length === 0) // ... nor a descendant of the container 245 { 246 audio.pause(); 247 playButton.innerHTML = "<i class='fa fa-play'></i>"; 248 } 249 }); 250 251 252 253 254 // Variables 255 var audio = document.getElementById("audioPlayerstacks_in_204"); 256 var playButton = document.getElementById("audioPlayerPlayPausestacks_in_204"); 257 var muteButton = document.getElementById("volumeMinstacks_in_204"); 258 var fullVolumeButton = document.getElementById("volumeMaxstacks_in_204"); 259 var textduration = document.getElementById("audioPlayerDurationstacks_in_204"); 260 var textcurrenttime = document.getElementById("audioPlayerCurrentTimestacks_in_204"); 261 var seekBar = document.getElementById("audioPlayerSeekBarstacks_in_204"); 262 var volumeBar = document.getElementById("volume-barstacks_in_204"); 263 var playbackRateNumberBox = document.getElementById("playback_rate_numberbox_stacks_in_204"); 264 var playbackRateSelectMenu = document.getElementById("playback_rate_selectmenu_stacks_in_204"); 265 266 // Check audio is available, before constructing the player 267 if (audio) { 268 269 // Event listener for the play/pause button 270 playButton.addEventListener("click", function() { 271 if (audio.paused == true) { 272 audio.volume = 0.60; 273 audio.play(); 274 playButton.innerHTML = "<i class='fa fa-pause'></i>"; 275 $('#audioPlayerContainerstacks_in_204').addClass('audioPlayerPlaying'); 276 $('#audioPlayerContainerstacks_in_204').removeClass('audioPlayerPaused'); 277 } else { 278 audio.pause(); 279 playButton.innerHTML = "<i class='fa fa-play'></i>"; 280 $('#audioPlayerContainerstacks_in_204').addClass('audioPlayerPaused'); 281 $('#audioPlayerContainerstacks_in_204').removeClass('audioPlayerPlaying'); 282 } 283 }); 284 285 // Event listener for the seek bar 286 seekBar.addEventListener("change", function() { 287 var time = audio.duration * (seekBar.value / 100); // Calculate the new time 288 audio.currentTime = time; // Update the audio time 289 }); 290 291 // Update the seek bar as the audio plays 292 audio.addEventListener("timeupdate", function() { 293 var value = (100 / audio.duration) * audio.currentTime; // Calculate the slider value 294 seekBar.value = value; // Update the slider value 295 }); 296 297 audio.addEventListener("timeupdate", function(){ 298 var whereYouAt = (audio.currentTime); 299 var minutes = Math.floor(whereYouAt / 60); 300 var seconds = Math.floor(whereYouAt - minutes * 60) 301 var x = minutes < 10 ? "0" + minutes : minutes; 302 var y = seconds < 10 ? "0" + seconds : seconds; 303 304 document.getElementById("audioPlayerCurrentTimestacks_in_204").innerHTML = x + ":" + y; 305 }, 306 false); 307 308 // audio duration 309 audio.addEventListener("loadedmetadata", function(){ 310 var totaltime = (audio.duration); 311 var minutes = Math.floor(totaltime / 60); 312 var seconds = Math.floor(totaltime - minutes * 60) 313 var x = minutes < 10 ? "0" + minutes : minutes; 314 var y = seconds < 10 ? "0" + seconds : seconds; 315 316 document.getElementById("audioPlayerDurationstacks_in_204").innerHTML = x + ":" + y; 317 }, 318 false); 319 320 // Event listener for the volume bar 321 volumeBar.addEventListener("change", function() { 322 audio.volume = volumeBar.value; 323 }); 324 325 // Event listener for the playback rate number box 326 playbackRateNumberBox.addEventListener("change", function() { 327 audio.playbackRate = playbackRateNumberBox.value; 328 }); 329 330 // Event listener for the playback rate select menu 331 playbackRateSelectMenu.addEventListener("change", function() { 332 audio.playbackRate = playbackRateSelectMenu.value; 333 }); 334 335 // Event listener for the mute button 336 muteButton.addEventListener("click", function() { 337 audio.volume = 0; 338 volumeBar.value = 0; 339 }); 340 341 // Event listener for the full volume button 342 fullVolumeButton.addEventListener("click", function() { 343 audio.volume = 1.00; 344 volumeBar.value = 1.00; 345 }); 346 347 // When the audio stops playing 348 audio.addEventListener("ended", function() { 349 audio.currentTime = 0; 350 playButton.innerHTML = "<i class='fa fa-play'></i>"; 351 }); 352 353 }; 354}); 355 356return stack;})(stacks.stacks_in_204); 357stacks.stacks_in_205 = {}; 358stacks.stacks_in_205 = (function(stack) { 359var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function() { 360
361 if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { 362 $('#volumestacks_in_205').attr('style', 'display: none !important'); 363 } 364 365 366 // Pause the AudioPlayer stack by clicking anywhere outside of itself 367 $(document).mouseup(function (e) { 368 var container = $("#audioPlayerContainerstacks_in_205"); 369 if (!container.is(e.target) // if the target of the click isn't the container... 370 && container.has(e.target).length === 0) // ... nor a descendant of the container 371 { 372 audio.pause(); 373 playButton.innerHTML = "<i class='fa fa-play'></i>"; 374 } 375 }); 376 377 378 379 380 // Variables 381 var audio = document.getElementById("audioPlayerstacks_in_205"); 382 var playButton = document.getElementById("audioPlayerPlayPausestacks_in_205"); 383 var muteButton = document.getElementById("volumeMinstacks_in_205"); 384 var fullVolumeButton = document.getElementById("volumeMaxstacks_in_205"); 385 var textduration = document.getElementById("audioPlayerDurationstacks_in_205"); 386 var textcurrenttime = document.getElementById("audioPlayerCurrentTimestacks_in_205"); 387 var seekBar = document.getElementById("audioPlayerSeekBarstacks_in_205"); 388 var volumeBar = document.getElementById("volume-barstacks_in_205"); 389 var playbackRateNumberBox = document.getElementById("playback_rate_numberbox_stacks_in_205"); 390 var playbackRateSelectMenu = document.getElementById("playback_rate_selectmenu_stacks_in_205"); 391 392 // Check audio is available, before constructing the player 393 if (audio) { 394 395 // Event listener for the play/pause button 396 playButton.addEventListener("click", function() { 397 if (audio.paused == true) { 398 audio.volume = 0.60; 399 audio.play(); 400 playButton.innerHTML = "<i class='fa fa-pause'></i>"; 401 $('#audioPlayerContainerstacks_in_205').addClass('audioPlayerPlaying'); 402 $('#audioPlayerContainerstacks_in_205').removeClass('audioPlayerPaused'); 403 } else { 404 audio.pause(); 405 playButton.innerHTML = "<i class='fa fa-play'></i>"; 406 $('#audioPlayerContainerstacks_in_205').addClass('audioPlayerPaused'); 407 $('#audioPlayerContainerstacks_in_205').removeClass('audioPlayerPlaying'); 408 } 409 }); 410 411 // Event listener for the seek bar 412 seekBar.addEventListener("change", function() { 413 var time = audio.duration * (seekBar.value / 100); // Calculate the new time 414 audio.currentTime = time; // Update the audio time 415 }); 416 417 // Update the seek bar as the audio plays 418 audio.addEventListener("timeupdate", function() { 419 var value = (100 / audio.duration) * audio.currentTime; // Calculate the slider value 420 seekBar.value = value; // Update the slider value 421 }); 422 423 audio.addEventListener("timeupdate", function(){ 424 var whereYouAt = (audio.currentTime); 425 var minutes = Math.floor(whereYouAt / 60); 426 var seconds = Math.floor(whereYouAt - minutes * 60) 427 var x = minutes < 10 ? "0" + minutes : minutes; 428 var y = seconds < 10 ? "0" + seconds : seconds; 429 430 document.getElementById("audioPlayerCurrentTimestacks_in_205").innerHTML = x + ":" + y; 431 }, 432 false); 433 434 // audio duration 435 audio.addEventListener("loadedmetadata", function(){ 436 var totaltime = (audio.duration); 437 var minutes = Math.floor(totaltime / 60); 438 var seconds = Math.floor(totaltime - minutes * 60) 439 var x = minutes < 10 ? "0" + minutes : minutes; 440 var y = seconds < 10 ? "0" + seconds : seconds; 441 442 document.getElementById("audioPlayerDurationstacks_in_205").innerHTML = x + ":" + y; 443 }, 444 false); 445 446 // Event listener for the volume bar 447 volumeBar.addEventListener("change", function() { 448 audio.volume = volumeBar.value; 449 }); 450 451 // Event listener for the playback rate number box 452 playbackRateNumberBox.addEventListener("change", function() { 453 audio.playbackRate = playbackRateNumberBox.value; 454 }); 455 456 // Event listener for the playback rate select menu 457 playbackRateSelectMenu.addEventListener("change", function() { 458 audio.playbackRate = playbackRateSelectMenu.value; 459 }); 460 461 // Event listener for the mute button 462 muteButton.addEventListener("click", function() { 463 audio.volume = 0; 464 volumeBar.value = 0; 465 }); 466 467 // Event listener for the full volume button 468 fullVolumeButton.addEventListener("click", function() { 469 audio.volume = 1.00; 470 volumeBar.value = 1.00; 471 }); 472 473 // When the audio stops playing 474 audio.addEventListener("ended", function() { 475 audio.currentTime = 0; 476 playButton.innerHTML = "<i class='fa fa-play'></i>"; 477 }); 478 479 }; 480}); 481 482return stack;})(stacks.stacks_in_205); 483stacks.stacks_in_196 = {}; 484stacks.stacks_in_196 = (function(stack) { 485var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function() { 486
487 if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { 488 $('#volumestacks_in_196').attr('style', 'display: none !important'); 489 } 490 491 492 // Pause the AudioPlayer stack by clicking anywhere outside of itself 493 $(document).mouseup(function (e) { 494 var container = $("#audioPlayerContainerstacks_in_196"); 495 if (!container.is(e.target) // if the target of the click isn't the container... 496 && container.has(e.target).length === 0) // ... nor a descendant of the container 497 { 498 audio.pause(); 499 playButton.innerHTML = "<i class='fa fa-play'></i>"; 500 } 501 }); 502 503 504 505 506 // Variables 507 var audio = document.getElementById("audioPlayerstacks_in_196"); 508 var playButton = document.getElementById("audioPlayerPlayPausestacks_in_196"); 509 var muteButton = document.getElementById("volumeMinstacks_in_196"); 510 var fullVolumeButton = document.getElementById("volumeMaxstacks_in_196"); 511 var textduration = document.getElementById("audioPlayerDurationstacks_in_196"); 512 var textcurrenttime = document.getElementById("audioPlayerCurrentTimestacks_in_196"); 513 var seekBar = document.getElementById("audioPlayerSeekBarstacks_in_196"); 514 var volumeBar = document.getElementById("volume-barstacks_in_196"); 515 var playbackRateNumberBox = document.getElementById("playback_rate_numberbox_stacks_in_196"); 516 var playbackRateSelectMenu = document.getElementById("playback_rate_selectmenu_stacks_in_196"); 517 518 // Check audio is available, before constructing the player 519 if (audio) { 520 521 // Event listener for the play/pause button 522 playButton.addEventListener("click", function() { 523 if (audio.paused == true) { 524 audio.volume = 0.30; 525 audio.play(); 526 playButton.innerHTML = "<i class='fa fa-pause'></i>"; 527 $('#audioPlayerContainerstacks_in_196').addClass('audioPlayerPlaying'); 528 $('#audioPlayerContainerstacks_in_196').removeClass('audioPlayerPaused'); 529 } else { 530 audio.pause(); 531 playButton.innerHTML = "<i class='fa fa-play'></i>"; 532 $('#audioPlayerContainerstacks_in_196').addClass('audioPlayerPaused'); 533 $('#audioPlayerContainerstacks_in_196').removeClass('audioPlayerPlaying'); 534 } 535 }); 536 537 // Event listener for the seek bar 538 seekBar.addEventListener("change", function() { 539 var time = audio.duration * (seekBar.value / 100); // Calculate the new time 540 audio.currentTime = time; // Update the audio time 541 }); 542 543 // Update the seek bar as the audio plays 544 audio.addEventListener("timeupdate", function() { 545 var value = (100 / audio.duration) * audio.currentTime; // Calculate the slider value 546 seekBar.value = value; // Update the slider value 547 }); 548 549 audio.addEventListener("timeupdate", function(){ 550 var whereYouAt = (audio.currentTime); 551 var minutes = Math.floor(whereYouAt / 60); 552 var seconds = Math.floor(whereYouAt - minutes * 60) 553 var x = minutes < 10 ? "0" + minutes : minutes; 554 var y = seconds < 10 ? "0" + seconds : seconds; 555 556 document.getElementById("audioPlayerCurrentTimestacks_in_196").innerHTML = x + ":" + y; 557 }, 558 false); 559 560 // audio duration 561 audio.addEventListener("loadedmetadata", function(){ 562 var totaltime = (audio.duration); 563 var minutes = Math.floor(totaltime / 60); 564 var seconds = Math.floor(totaltime - minutes * 60) 565 var x = minutes < 10 ? "0" + minutes : minutes; 566 var y = seconds < 10 ? "0" + seconds : seconds; 567 568 document.getElementById("audioPlayerDurationstacks_in_196").innerHTML = x + ":" + y; 569 }, 570 false); 571 572 // Event listener for the volume bar 573 volumeBar.addEventListener("change", function() { 574 audio.volume = volumeBar.value; 575 }); 576 577 // Event listener for the playback rate number box 578 playbackRateNumberBox.addEventListener("change", function() { 579 audio.playbackRate = playbackRateNumberBox.value; 580 }); 581 582 // Event listener for the playback rate select menu 583 playbackRateSelectMenu.addEventListener("change", function() { 584 audio.playbackRate = playbackRateSelectMenu.value; 585 }); 586 587 // Event listener for the mute button 588 muteButton.addEventListener("click", function() { 589 audio.volume = 0; 590 volumeBar.value = 0; 591 }); 592 593 // Event listener for the full volume button 594 fullVolumeButton.addEventListener("click", function() { 595 audio.volume = 1.00; 596 volumeBar.value = 1.00; 597 }); 598 599 // When the audio stops playing 600 audio.addEventListener("ended", function() { 601 audio.currentTime = 0; 602 playButton.innerHTML = "<i class='fa fa-play'></i>"; 603 }); 604 605 }; 606}); 607 608return stack;})(stacks.stacks_in_196); 609stacks.stacks_in_89 = {}; 610stacks.stacks_in_89 = (function(stack) { 611var jQuery = stacks.jQuery;var $ = jQuery; 612$(function(){var stack=$('#stacks_in_89');if(!stack.length>0||typeof stack==='undefined'){console.log('com_bigwhiteduck_stacks_sections_pro_section_stack removed by 3rd party php. Execution terminated contact the vendor of the php stack.');return false;};var 613baseSelector='#stacks_in_89>.s-pro:not(.vault-height)',container=$(baseSelector),wrapper=$('>.shear-wrapper',baseSelector),layer=$('>.sections-layer',baseSelector),inner=$('>.shear-inner',wrapper),content=$('>
613.inner-content',inner),flexHeight=100.00,flexProportion=flexHeight/100,mobflexHeight=100.00,mobflexProportion=mobflexHeight/100,flexBP=740,bpHeight=768,bpWidth=768,_win=$(window);;inner.addClass('prop-'+'win-height');var flexSize=function(){return _win.width()<flexBP?mobflexProportion:flexProportion;} 614var checkOverflow=function(){if(inner.hasClass('flex-height')){var content_height=content.outerHeight();var win_height=_win.height()*flexSize();transform_string='translateY('+(win_height/2)+'px)';if(win_height<=content_height){inner.removeClass('full-height');inner.css('height','');}else{inner.addClass('full-height');inner.css('height',win_height);}} 615stack.trigger('sections-resize');};_win.on("resize",checkOverflow);_win.on('load',function(){checkOverflow();inner.removeClass('preload-height');layer.removeClass('preload-height');_win.trigger('resize');});function afterResize(){if((typeof foundation!='undefined')&&(typeof foundation.jQuery!='undefined')){foundation.jQuery(document).foundation('equalizer','reflow');}} 616var resizeId;$(window).on('resize',function(){clearTimeout(resizeId);resizeId=setTimeout(afterResize,0);});window.addEventListener('load',(event)=>{$('#stacks_in_89>.s-pro:not(.vault-height)>.shear-wrapper').removeClass('preload-wrapper');$('#stacks_in_89>.s-pro:not(.vault-height) .content').removeClass('preload-content');});}); 617 618return stack;})(stacks.stacks_in_89); 619stacks.stacks_in_135 = {}; 620stacks.stacks_in_135 = (function(stack) { 621var jQuery = stacks.jQuery;var $ = jQuery; 622document.addEventListener("DOMContentLoaded",function(){window.addEventListener('load',(event)=>{var stack=$('#stacks_in_135 .pin-it'),wrapper=$('#stacks_in_135'),spacer=$('#stacks_in_135 .pin-spacer'),didScroll,lastPos=0,downTolerance=100,upTolerance=100,navbarHeight=stack.outerHeight(),topOffset=0,offsetUnits='px',smallOffsetUnits=false===true?'px':'px',breakpoint=645,smallTopOffset=false===true?0:0,smallTopOffset=false===true?-9999:smallTopOffset,triggerTop=stack.offset().top-topOffset;spacer.css('height',0);calcOffset(breakpoint,true);resizeElement();stack.addClass('pin-static');$(window).scroll(function(event){shouldAnimate($(this).scrollTop());didScroll=true});setInterval(function(){if(didScroll){hasScrolled();didScroll=false;}},10);function hasScrolled(){var sup=$(window).scrollTop();if(sup>triggerTop&&stack.hasClass('pin-static')){toggleSpacer(true);stack.removeClass('pin-static').addClass('pin-fixed');wrapper.addClass('pin-fixed');lastPos=sup;} 623if(sup<triggerTop&&stack.hasClass('pin-fixed')){toggleSpacer(false);stack.removeClass('pin-fixed').addClass("pin-static");wrapper.removeClass('pin-fixed')}if(stack.hasClass('pin-fixed')){if(sup>(lastPos+downTolerance)){stack.removeClass('slide-down').addClass('slide-up');lastPos=sup;$('body').trigger('menuSlideUp');} 624if((sup<(lastPos-upTolerance))&&(sup+$(window).height()<$(document).height())){stack.removeClass('slide-up').addClass('slide-down');lastPos=sup;}}} 625function shouldAnimate(yPos){if(yPos<triggerTop){stack.removeClass('animate').removeClass('slide-up').removeClass('slide-down')}else{stack.addClass('animate')}} 626function toggleSpacer(fix){if(fix==true){spacer.css('height',$('#stacks_in_135 .pin-it').height());}else 627{spacer.css('height',0);}} 628function resizeElement(){stack.css('width',spacer.outerWidth(true));} 629function convertToPercent(percentValue){var absBottom;return((percentValue/100)*$(window).height());} 630function calcOffset(breakpoint,init){var thisTop,thisUnits,winWidth=$(window).width();thisTop=winWidth>breakpoint?topOffset:smallTopOffset;thisUnits=winWidth>breakpoint?offsetUnits:smallOffsetUnits;if(thisUnits==="%")thisTop=convertToPercent(thisTop);if(init){lastPos=$(window).scrollTop;if(spacer.offset().top<thisTop){stack.addClass('pin-fixed').removeClass('pin-static')} 631else{stack.removeClass('pin-fixed').addClass('pin-static')}}triggerTop=spacer.offset().top-thisTop;} 632function calcPositions(){resizeElement();calcOffset(breakpoint,true);hasScrolled();} 633$(window).resize(function(){calcPositions();});setTimeout(function(){var resize=true;},10);function isTouchDevice(){return true==("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}});}); 634 635return stack;})(stacks.stacks_in_135); 636stacks.stacks_in_229 = {}; 637stacks.stacks_in_229 = (function(stack) { 638var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function() { 639
640 if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { 641 $('#volumestacks_in_229').attr('style', 'display: none !important'); 642 } 643 644 645 // Pause the AudioPlayer stack by clicking anywhere outside of itself 646 $(document).mouseup(function (e) { 647 var container = $("#audioPlayerContainerstacks_in_229"); 648 if (!container.is(e.target) // if the target of the click isn't the container... 649 && container.has(e.target).length === 0) // ... nor a descendant of the container 650 { 651 audio.pause(); 652 playButton.innerHTML = "<i class='fa fa-play'></i>"; 653 } 654 }); 655 656 657 658 659 // Variables 660 var audio = document.getElementById("audioPlayerstacks_in_229"); 661 var playButton = document.getElementById("audioPlayerPlayPausestacks_in_229"); 662 var muteButton = document.getElementById("volumeMinstacks_in_229"); 663 var fullVolumeButton = document.getElementById("volumeMaxstacks_in_229"); 664 var textduration = document.getElementById("audioPlayerDurationstacks_in_229"); 665 var textcurrenttime = document.getElementById("audioPlayerCurrentTimestacks_in_229"); 666 var seekBar = document.getElementById("audioPlayerSeekBarstacks_in_229"); 667 var volumeBar = document.getElementById("volume-barstacks_in_229"); 668 var playbackRateNumberBox = document.getElementById("playback_rate_numberbox_stacks_in_229"); 669 var playbackRateSelectMenu = document.getElementById("playback_rate_selectmenu_stacks_in_229"); 670 671 // Check audio is available, before constructing the player 672 if (audio) { 673 674 // Event listener for the play/pause button 675 playButton.addEventListener("click", function() { 676 if (audio.paused == true) { 677 audio.volume = 0.60; 678 audio.play(); 679 playButton.innerHTML = "<i class='fa fa-pause'></i>"; 680 $('#audioPlayerContainerstacks_in_229').addClass('audioPlayerPlaying'); 681 $('#audioPlayerContainerstacks_in_229').removeClass('audioPlayerPaused'); 682 } else { 683 audio.pause(); 684 playButton.innerHTML = "<i class='fa fa-play'></i>"; 685 $('#audioPlayerContainerstacks_in_229').addClass('audioPlayerPaused'); 686 $('#audioPlayerContainerstacks_in_229').removeClass('audioPlayerPlaying'); 687 } 688 }); 689 690 // Event listener for the seek bar 691 seekBar.addEventListener("change", function() { 692 var time = audio.duration * (seekBar.value / 100); // Calculate the new time 693 audio.currentTime = time; // Update the audio time 694 }); 695 696 // Update the seek bar as the audio plays 697 audio.addEventListener("timeupdate", function() { 698 var value = (100 / audio.duration) * audio.currentTime; // Calculate the slider value 699 seekBar.value = value; // Update the slider value 700 }); 701 702 audio.addEventListener("timeupdate", function(){ 703 var whereYouAt = (audio.currentTime); 704 var minutes = Math.floor(whereYouAt / 60); 705 var seconds = Math.floor(whereYouAt - minutes * 60) 706 var x = minutes < 10 ? "0" + minutes : minutes; 707 var y = seconds < 10 ? "0" + seconds : seconds; 708 709 document.getElementById("audioPlayerCurrentTimestacks_in_229").innerHTML = x + ":" + y; 710 }, 711 false); 712 713 // audio duration 714 audio.addEventListener("loadedmetadata", function(){ 715 var totaltime = (audio.duration); 716 var minutes = Math.floor(totaltime / 60); 717 var seconds = Math.floor(totaltime - minutes * 60) 718 var x = minutes < 10 ? "0" + minutes : minutes; 719 var y = seconds < 10 ? "0" + seconds : seconds; 720 721 document.getElementById("audioPlayerDurationstacks_in_229").innerHTML = x + ":" + y; 722 }, 723 false); 724 725 // Event listener for the volume bar 726 volumeBar.addEventListener("change", function() { 727 audio.volume = volumeBar.value; 728 }); 729 730 // Event listener for the playback rate number box 731 playbackRateNumberBox.addEventListener("change", function() { 732 audio.playbackRate = playbackRateNumberBox.value; 733 }); 734 735 // Event listener for the playback rate select menu 736 playbackRateSelectMenu.addEventListener("change", function() { 737 audio.playbackRate = playbackRateSelectMenu.value; 738 }); 739 740 // Event listener for the mute button 741 muteButton.addEventListener("click", function() { 742 audio.volume = 0; 743 volumeBar.value = 0; 744 }); 745 746 // Event listener for the full volume button 747 fullVolumeButton.addEventListener("click", function() { 748 audio.volume = 1.00; 749 volumeBar.value = 1.00; 750 }); 751 752 // When the audio stops playing 753 audio.addEventListener("ended", function() { 754 audio.currentTime = 0; 755 playButton.innerHTML = "<i class='fa fa-play'></i>"; 756 }); 757 758 }; 759}); 760 761return stack;})(stacks.stacks_in_229); 762stacks.stacks_in_237 = {}; 763stacks.stacks_in_237 = (function(stack) { 764var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function() { 765
766 if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { 767 $('#volumestacks_in_237').attr('style', 'display: none !important'); 768 } 769 770 771 // Pause the AudioPlayer stack by clicking anywhere outside of itself 772 $(document).mouseup(function (e) { 773 var container = $("#audioPlayerContainerstacks_in_237"); 774 if (!container.is(e.target) // if the target of the click isn't the container... 775 && container.has(e.target).length === 0) // ... nor a descendant of the container 776 { 777 audio.pause(); 778 playButton.innerHTML = "<i class='fa fa-play'></i>"; 779 } 780 }); 781 782 783 784 785 // Variables 786 var audio = document.getElementById("audioPlayerstacks_in_237"); 787 var playButton = document.getElementById("audioPlayerPlayPausestacks_in_237"); 788 var muteButton = document.getElementById("volumeMinstacks_in_237"); 789 var fullVolumeButton = document.getElementById("volumeMaxstacks_in_237"); 790 var textduration = document.getElementById("audioPlayerDurationstacks_in_237"); 791 var textcurrenttime = document.getElementById("audioPlayerCurrentTimestacks_in_237"); 792 var seekBar = document.getElementById("audioPlayerSeekBarstacks_in_237"); 793 var volumeBar = document.getElementById("volume-barstacks_in_237"); 794 var playbackRateNumberBox = document.getElementById("playback_rate_numberbox_stacks_in_237"); 795 var playbackRateSelectMenu = document.getElementById("playback_rate_selectmenu_stacks_in_237"); 796 797 // Check audio is available, before constructing the player 798 if (audio) { 799 800 // Event listener for the play/pause button 801 playButton.addEventListener("click", function() { 802 if (audio.paused == true) { 803 audio.volume = 0.60; 804 audio.play(); 805 playButton.innerHTML = "<i class='fa fa-pause'></i>"; 806 $('#audioPlayerContainerstacks_in_237').addClass('audioPlayerPlaying'); 807 $('#audioPlayerContainerstacks_in_237').removeClass('audioPlayerPaused'); 808 } else { 809 audio.pause(); 810 playButton.innerHTML = "<i class='fa fa-play'></i>"; 811 $('#audioPlayerContainerstacks_in_237').addClass('audioPlayerPaused'); 812 $('#audioPlayerContainerstacks_in_237').removeClass('audioPlayerPlaying'); 813 } 814 }); 815 816 // Event listener for the seek bar 817 seekBar.addEventListener("change", function() { 818 var time = audio.duration * (seekBar.value / 100); // Calculate the new time 819 audio.currentTime = time; // Update the audio time 820 }); 821 822 // Update the seek bar as the audio plays 823 audio.addEventListener("timeupdate", function() { 824 var value = (100 / audio.duration) * audio.currentTime; // Calculate the slider value 825 seekBar.value = value; // Update the slider value 826 }); 827 828 audio.addEventListener("timeupdate", function(){ 829 var whereYouAt = (audio.currentTime); 830 var minutes = Math.floor(whereYouAt / 60); 831 var seconds = Math.floor(whereYouAt - minutes * 60) 832 var x = minutes < 10 ? "0" + minutes : minutes; 833 var y = seconds < 10 ? "0" + seconds : seconds; 834 835 document.getElementById("audioPlayerCurrentTimestacks_in_237").innerHTML = x + ":" + y; 836 }, 837 false); 838 839 // audio duration 840 audio.addEventListener("loadedmetadata", function(){ 841 var totaltime = (audio.duration); 842 var minutes = Math.floor(totaltime / 60); 843 var seconds = Math.floor(totaltime - minutes * 60) 844 var x = minutes < 10 ? "0" + minutes : minutes; 845 var y = seconds < 10 ? "0" + seconds : seconds; 846 847 document.getElementById("audioPlayerDurationstacks_in_237").innerHTML = x + ":" + y; 848 }, 849 false); 850 851 // Event listener for the volume bar 852 volumeBar.addEventListener("change", function() { 853 audio.volume = volumeBar.value; 854 }); 855 856 // Event listener for the playback rate number box 857 playbackRateNumberBox.addEventListener("change", function() { 858 audio.playbackRate = playbackRateNumberBox.value; 859 }); 860 861 // Event listener for the playback rate select menu 862 playbackRateSelectMenu.addEventListener("change", function() { 863 audio.playbackRate = playbackRateSelectMenu.value; 864 }); 865 866 // Event listener for the mute button 867 muteButton.addEventListener("click", function() { 868 audio.volume = 0; 869 volumeBar.value = 0; 870 }); 871 872 // Event listener for the full volume button 873 fullVolumeButton.addEventListener("click", function() { 874 audio.volume = 1.00; 875 volumeBar.value = 1.00; 876 }); 877 878 // When the audio stops playing 879 audio.addEventListener("ended", function() { 880 audio.currentTime = 0; 881 playButton.innerHTML = "<i class='fa fa-play'></i>"; 882 }); 883 884 }; 885}); 886 887return stack;})(stacks.stacks_in_237); 888stacks.stacks_in_240 = {}; 889stacks.stacks_in_240 = (function(stack) { 890var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function() { 891
892 if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { 893 $('#volumestacks_in_240').attr('style', 'display: none !important'); 894 } 895 896 897 // Pause the AudioPlayer stack by clicking anywhere outside of itself 898 $(document).mouseup(function (e) { 899 var container = $("#audioPlayerContainerstacks_in_240"); 900 if (!container.is(e.target) // if the target of the click isn't the container... 901 && container.has(e.target).length === 0) // ... nor a descendant of the container 902 { 903 audio.pause(); 904 playButton.innerHTML = "<i class='fa fa-play'></i>"; 905 } 906 }); 907 908 909 910 911 // Variables 912 var audio = document.getElementById("audioPlayerstacks_in_240"); 913 var playButton = document.getElementById("audioPlayerPlayPausestacks_in_240"); 914 var muteButton = document.getElementById("volumeMinstacks_in_240"); 915 var fullVolumeButton = document.getElementById("volumeMaxstacks_in_240"); 916 var textduration = document.getElementById("audioPlayerDurationstacks_in_240"); 917 var textcurrenttime = document.getElementById("audioPlayerCurrentTimestacks_in_240"); 918 var seekBar = document.getElementById("audioPlayerSeekBarstacks_in_240"); 919 var volumeBar = document.getElementById("volume-barstacks_in_240"); 920 var playbackRateNumberBox = document.getElementById("playback_rate_numberbox_stacks_in_240"); 921 var playbackRateSelectMenu = document.getElementById("playback_rate_selectmenu_stacks_in_240"); 922 923 // Check audio is available, before constructing the player 924 if (audio) { 925 926 // Event listener for the play/pause button 927 playButton.addEventListener("click", function() { 928 if (audio.paused == true) { 929 audio.volume = 0.60; 930 audio.play(); 931 playButton.innerHTML = "<i class='fa fa-pause'></i>"; 932 $('#audioPlayerContainerstacks_in_240').addClass('audioPlayerPlaying'); 933 $('#audioPlayerContainerstacks_in_240').removeClass('audioPlayerPaused'); 934 } else { 935 audio.pause(); 936 playButton.innerHTML = "<i class='fa fa-play'></i>"; 937 $('#audioPlayerContainerstacks_in_240').addClass('audioPlayerPaused'); 938 $('#audioPlayerContainerstacks_in_240').removeClass('audioPlayerPlaying'); 939 } 940 }); 941 942 // Event listener for the seek bar 943 seekBar.addEventListener("change", function() { 944 var time = audio.duration * (seekBar.value / 100); // Calculate the new time 945 audio.currentTime = time; // Update the audio time 946 }); 947 948 // Update the seek bar as the audio plays 949 audio.addEventListener("timeupdate", function() { 950 var value = (100 / audio.duration) * audio.currentTime; // Calculate the slider value 951 seekBar.value = value; // Update the slider value 952 }); 953 954 audio.addEventListener("timeupdate", function(){ 955 var whereYouAt = (audio.currentTime); 956 var minutes = Math.floor(whereYouAt / 60); 957 var seconds = Math.floor(whereYouAt - minutes * 60) 958 var x = minutes < 10 ? "0" + minutes : minutes; 959 var y = seconds < 10 ? "0" + seconds : seconds; 960 961 document.getElementById("audioPlayerCurrentTimestacks_in_240").innerHTML = x + ":" + y; 962 }, 963 false); 964 965 // audio duration 966 audio.addEventListener("loadedmetadata", function(){ 967 var totaltime = (audio.duration); 968 var minutes = Math.floor(totaltime / 60); 969 var seconds = Math.floor(totaltime - minutes * 60) 970 var x = minutes < 10 ? "0" + minutes : minutes; 971 var y = seconds < 10 ? "0" + seconds : seconds; 972 973 document.getElementById("audioPlayerDurationstacks_in_240").innerHTML = x + ":" + y; 974 }, 975 false); 976 977 // Event listener for the volume bar 978 volumeBar.addEventListener("change", function() { 979 audio.volume = volumeBar.value; 980 }); 981 982 // Event listener for the playback rate number box 983 playbackRateNumberBox.addEventListener("change", function() { 984 audio.playbackRate = playbackRateNumberBox.value; 985 }); 986 987 // Event listener for the playback rate select menu 988 playbackRateSelectMenu.addEventListener("change", function() { 989 audio.playbackRate = playbackRateSelectMenu.value; 990 }); 991 992 // Event listener for the mute button 993 muteButton.addEventListener("click", function() { 994 audio.volume = 0; 995 volumeBar.value = 0; 996 }); 997 998 // Event listener for the full volume button 999 fullVolumeButton.addEventListener("click", function() { 1000 audio.volume = 1.00; 1001 volumeBar.value = 1.00; 1002 }); 1003 1004 // When the audio stops playing 1005 audio.addEventListener("ended", function() { 1006 audio.currentTime = 0; 1007 playButton.innerHTML = "<i class='fa fa-play'></i>"; 1008 }); 1009 1010 }; 1011}); 1012 1013return stack;})(stacks.stacks_in_240); 1014stacks.stacks_in_243 = {}; 1015stacks.stacks_in_243 = (function(stack) { 1016var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function() { 1017
1018 if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { 1019 $('#volumestacks_in_243').attr('style', 'display: none !important'); 1020 } 1021 1022 1023 // Pause the AudioPlayer stack by clicking anywhere outside of itself 1024 $(document).mouseup(function (e) { 1025 var container = $("#audioPlayerContainerstacks_in_243"); 1026 if (!container.is(e.target) // if the target of the click isn't the container... 1027 && container.has(e.target).length === 0) // ... nor a descendant of the container 1028 { 1029 audio.pause(); 1030 playButton.innerHTML = "<i class='fa fa-play'></i>"; 1031 } 1032 }); 1033 1034 1035 1036 1037 // Variables 1038 var audio = document.getElementById("audioPlayerstacks_in_243"); 1039 var playButton = document.getElementById("audioPlayerPlayPausestacks_in_243"); 1040 var muteButton = document.getElementById("volumeMinstacks_in_243"); 1041 var fullVolumeButton = document.getElementById("volumeMaxstacks_in_243"); 1042 var textduration = document.getElementById("audioPlayerDurationstacks_in_243"); 1043 var textcurrenttime = document.getElementById("audioPlayerCurrentTimestacks_in_243"); 1044 var seekBar = document.getElementById("audioPlayerSeekBarstacks_in_243"); 1045 var volumeBar = document.getElementById("volume-barstacks_in_243"); 1046 var playbackRateNumberBox = document.getElementById("playback_rate_numberbox_stacks_in_243"); 1047 var playbackRateSelectMenu = document.getElementById("playback_rate_selectmenu_stacks_in_243"); 1048 1049 // Check audio is available, before constructing the player 1050 if (audio) { 1051 1052 // Event listener for the play/pause button 1053 playButton.addEventListener("click", function() { 1054 if (audio.paused == true) { 1055 audio.volume = 0.30; 1056 audio.play(); 1057 playButton.innerHTML = "<i class='fa fa-pause'></i>"; 1058 $('#audioPlayerContainerstacks_in_243').addClass('audioPlayerPlaying'); 1059 $('#audioPlayerContainerstacks_in_243').removeClass('audioPlayerPaused'); 1060 } else { 1061 audio.pause(); 1062 playButton.innerHTML = "<i class='fa fa-play'></i>"; 1063 $('#audioPlayerContainerstacks_in_243').addClass('audioPlayerPaused'); 1064 $('#audioPlayerContainerstacks_in_243').removeClass('audioPlayerPlaying'); 1065 } 1066 }); 1067 1068 // Event listener for the seek bar 1069 seekBar.addEventListener("change", function() { 1070 var time = audio.duration * (seekBar.value / 100); // Calculate the new time 1071 audio.currentTime = time; // Update the audio time 1072 }); 1073 1074 // Update the seek bar as the audio plays 1075 audio.addEventListener("timeupdate", function() { 1076 var value = (100 / audio.duration) * audio.currentTime; // Calculate the slider value 1077 seekBar.value = value; // Update the slider value 1078 }); 1079 1080 audio.addEventListener("timeupdate", function(){ 1081 var whereYouAt = (audio.currentTime); 1082 var minutes = Math.floor(whereYouAt / 60); 1083 var seconds = Math.floor(whereYouAt - minutes * 60) 1084 var x = minutes < 10 ? "0" + minutes : minutes; 1085 var y = seconds < 10 ? "0" + seconds : seconds; 1086 1087 document.getElementById("audioPlayerCurrentTimestacks_in_243").innerHTML = x + ":" + y; 1088 }, 1089 false); 1090 1091 // audio duration 1092 audio.addEventListener("loadedmetadata", function(){ 1093 var totaltime = (audio.duration); 1094 var minutes = Math.floor(totaltime / 60); 1095 var seconds = Math.floor(totaltime - minutes * 60) 1096 var x = minutes < 10 ? "0" + minutes : minutes; 1097 var y = seconds < 10 ? "0" + seconds : seconds; 1098 1099 document.getElementById("audioPlayerDurationstacks_in_243").innerHTML = x + ":" + y; 1100 }, 1101 false); 1102 1103 // Event listener for the volume bar 1104 volumeBar.addEventListener("change", function() { 1105 audio.volume = volumeBar.value; 1106 }); 1107 1108 // Event listener for the playback rate number box 1109 playbackRateNumberBox.addEventListener("change", function() { 1110 audio.playbackRate = playbackRateNumberBox.value; 1111 }); 1112 1113 // Event listener for the playback rate select menu 1114 playbackRateSelectMenu.addEventListener("change", function() { 1115 audio.playbackRate = playbackRateSelectMenu.value; 1116 }); 1117 1118 // Event listener for the mute button 1119 muteButton.addEventListener("click", function() { 1120 audio.volume = 0; 1121 volumeBar.value = 0; 1122 }); 1123 1124 // Event listener for the full volume button 1125 fullVolumeButton.addEventListener("click", function() { 1126 audio.volume = 1.00; 1127 volumeBar.value = 1.00; 1128 }); 1129 1130 // When the audio stops playing 1131 audio.addEventListener("ended", function() { 1132 audio.currentTime = 0; 1133 playButton.innerHTML = "<i class='fa fa-play'></i>"; 1134 }); 1135 1136 }; 1137}); 1138 1139return stack;})(stacks.stacks_in_243);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.