/** * Stellar.js v0.6.2 * Copyright 2013, Mark Dalgleish * http://markdalgleish.com/projects/stellar.js * http://markdalgleish.mit-license.org **/ !function(t,e,i,s){function o(e,i){this.element=e,this.options=t.extend({},r,i),this._defaults=r,this._name=n,this.init()}var n="stellar",r={scrollProperty:"scroll",positionProperty:"position",horizontalScrolling:!0,verticalScrolling:!0,horizontalOffset:0,verticalOffset:0,responsive:!1,parallaxBackgrounds:!0,parallaxElements:!0,hideDistantElements:!0,hideElement:function(t){t.hide()},showElement:function(t){t.show()}},a={scroll:{getLeft:function(t){return t.scrollLeft()},setLeft:function(t,e){t.scrollLeft(e)},getTop:function(t){return t.scrollTop()},setTop:function(t,e){t.scrollTop(e)}},position:{getLeft:function(t){return-1*parseInt(t.css("right"),10)},getTop:function(t){return-1*parseInt(t.css("top"),10)}},margin:{getLeft:function(t){return-1*parseInt(t.css("margin-right"),10)},getTop:function(t){return-1*parseInt(t.css("margin-top"),10)}},transform:{getLeft:function(t){var e=getComputedStyle(t[0])[c];return"none"!==e?-1*parseInt(e.match(/(-?[0-9]+)/g)[4],10):0},getTop:function(t){var e=getComputedStyle(t[0])[c];return"none"!==e?-1*parseInt(e.match(/(-?[0-9]+)/g)[5],10):0}}},l={position:{setLeft:function(t,e){t.css("right",e)},setTop:function(t,e){t.css("top",e)}},transform:{setPosition:function(t,e,i,s,o){t[0].style[c]="translate3d("+(e-i)+"px, "+(s-o)+"px, 0)"}}},f=function(){var e,i=/^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/,s=t("script")[0].style,o="";for(e in s)if(i.test(e)){o=e.match(i)[0];break}return"WebkitOpacity"in s&&(o="Webkit"),"KhtmlOpacity"in s&&(o="Khtml"),function(t){return o+(o.length>0?t.charAt(0).toUpperCase()+t.slice(1):t)}}(),c=f("transform"),h=t("
",{style:"background:#fff"}).css("background-position-x")!==s,p=h?function(t,e,i){t.css({"background-position-x":e,"background-position-y":i})}:function(t,e,i){t.css("background-position",e+" "+i)},g=h?function(t){return[t.css("background-position-x"),t.css("background-position-y")]}:function(t){return t.css("background-position").split(" ")},d=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(t){setTimeout(t,1e3/60)};o.prototype={init:function(){this.options.name=n+"_"+Math.floor(1e9*Math.random()),this._defineElements(),this._defineGetters(),this._defineSetters(),this._handleWindowLoadAndResize(),this._detectViewport(),this.refresh({firstLoad:!0}),"scroll"===this.options.scrollProperty?this._handleScrollEvent():this._startAnimationLoop()},_defineElements:function(){this.element===i.body&&(this.element=e),this.$scrollElement=t(this.element),this.$element=this.element===e?t("body"):this.$scrollElement,this.$viewportElement=this.options.viewportElement!==s?t(this.options.viewportElement):this.$scrollElement[0]===e||"scroll"===this.options.scrollProperty?this.$scrollElement:this.$scrollElement.parent()},_defineGetters:function(){var t=this,e=a[t.options.scrollProperty];this._getScrollLeft=function(){return e.getLeft(t.$scrollElement)},this._getScrollTop=function(){return e.getTop(t.$scrollElement)}},_defineSetters:function(){var e=this,i=a[e.options.scrollProperty],s=l[e.options.positionProperty],o=i.setLeft,n=i.setTop;this._setScrollLeft="function"==typeof o?function(t){o(e.$scrollElement,t)}:t.noop,this._setScrollTop="function"==typeof n?function(t){n(e.$scrollElement,t)}:t.noop,this._setPosition=s.setPosition||function(t,i,o,n,r){e.options.horizontalScrolling&&s.setLeft(t,i,o),e.options.verticalScrolling&&s.setTop(t,n,r)}},_handleWindowLoadAndResize:function(){var i=this,s=t(e);i.options.responsive&&s.on("load."+this.name,function(){i.refresh()}),s.on("resize."+this.name,function(){i._detectViewport(),i.options.responsive&&i.refresh()})},refresh:function(i){var s=this,o=s._getScrollLeft(),n=s._getScrollTop();i&&i.firstLoad||this._reset(),this._setScrollLeft(0),this._setScrollTop(0),this._setOffsets(),this._findParticles(),this._findBackgrounds(),i&&i.firstLoad&&/WebKit/.test(navigator.userAgent)&&t(e).load(function(){var t=s._getScrollLeft(),e=s._getScrollTop();s._setScrollLeft(t+1),s._setScrollTop(e+1),s._setScrollLeft(t),s._setScrollTop(e)}),this._setScrollLeft(o),this._setScrollTop(n)},_detectViewport:function(){var t=this.$viewportElement.offset(),e=null!==t&&t!==s;this.viewportWidth=this.$viewportElement.width(),this.viewportHeight=this.$viewportElement.height(),this.viewportOffsetTop=e?t.top:0,this.viewportOffsetLeft=e?t.left:0},_findParticles:function(){var e=this;if(this._getScrollLeft(),this._getScrollTop(),this.particles!==s)for(var i=this.particles.length-1;i>=0;i--)this.particles[i].$element.data("stellar-elementIsActive",s);this.particles=[],this.options.parallaxElements&&this.$element.find("[data-stellar-ratio]").each(function(){var i,o,n,r,a,l,f,c,h,p=t(this),g=0,d=0,u=0,m=0;if(p.data("stellar-elementIsActive")){if(p.data("stellar-elementIsActive")!==this)return}else p.data("stellar-elementIsActive",this);e.options.showElement(p),p.data("stellar-startingRight")?(p.css("right",p.data("stellar-startingRight")),p.css("top",p.data("stellar-startingTop"))):(p.data("stellar-startingRight",p.css("right")),p.data("stellar-startingTop",p.css("top"))),n=p.position().left,r=p.position().top,a="auto"===p.css("margin-right")?0:parseInt(p.css("margin-right"),10),l="auto"===p.css("margin-top")?0:parseInt(p.css("margin-top"),10),c=p.offset().left-a,h=p.offset().top-l,p.parents().each(function(){var e=t(this);return!0===e.data("stellar-offset-parent")?(g=u,d=m,f=e,!1):(u+=e.position().left,void(m+=e.position().top))}),i=p.data("stellar-horizontal-offset")!==s?p.data("stellar-horizontal-offset"):f!==s&&f.data("stellar-horizontal-offset")!==s?f.data("stellar-horizontal-offset"):e.horizontalOffset,o=p.data("stellar-vertical-offset")!==s?p.data("stellar-vertical-offset"):f!==s&&f.data("stellar-vertical-offset")!==s?f.data("stellar-vertical-offset"):e.verticalOffset,e.particles.push({$element:p,$offsetParent:f,isFixed:"fixed"===p.css("position"),horizontalOffset:i,verticalOffset:o,startingPositionLeft:n,startingPositionTop:r,startingOffsetLeft:c,startingOffsetTop:h,parentOffsetLeft:g,parentOffsetTop:d,stellarRatio:p.data("stellar-ratio")!==s?p.data("stellar-ratio"):1,width:p.outerWidth(!0),height:p.outerHeight(!0),isHidden:!1})})},_findBackgrounds:function(){var e,i=this,o=this._getScrollLeft(),n=this._getScrollTop();this.backgrounds=[],this.options.parallaxBackgrounds&&(e=this.$element.find("[data-stellar-background-ratio]"),this.$element.data("stellar-background-ratio")&&(e=e.add(this.$element)),e.each(function(){var e,r,a,l,f,c,h,d=t(this),u=g(d),m=0,v=0,_=0,L=0;if(d.data("stellar-backgroundIsActive")){if(d.data("stellar-backgroundIsActive")!==this)return}else d.data("stellar-backgroundIsActive",this);d.data("stellar-backgroundStartingRight")?p(d,d.data("stellar-backgroundStartingRight"),d.data("stellar-backgroundStartingTop")):(d.data("stellar-backgroundStartingRight",u[0]),d.data("stellar-backgroundStartingTop",u[1])),a="auto"===d.css("margin-right")?0:parseInt(d.css("margin-right"),10),l="auto"===d.css("margin-top")?0:parseInt(d.css("margin-top"),10),f=d.offset().left-a-o,c=d.offset().top-l-n,d.parents().each(function(){var e=t(this);return!0===e.data("stellar-offset-parent")?(m=_,v=L,h=e,!1):(_+=e.position().left,void(L+=e.position().top))}),e=d.data("stellar-horizontal-offset")!==s?d.data("stellar-horizontal-offset"):h!==s&&h.data("stellar-horizontal-offset")!==s?h.data("stellar-horizontal-offset"):i.horizontalOffset,r=d.data("stellar-vertical-offset")!==s?d.data("stellar-vertical-offset"):h!==s&&h.data("stellar-vertical-offset")!==s?h.data("stellar-vertical-offset"):i.verticalOffset,i.backgrounds.push({$element:d,$offsetParent:h,isFixed:"fixed"===d.css("background-attachment"),horizontalOffset:e,verticalOffset:r,startingValueLeft:u[0],startingValueTop:u[1],startingBackgroundPositionLeft:isNaN(parseInt(u[0],10))?0:parseInt(u[0],10),startingBackgroundPositionTop:isNaN(parseInt(u[1],10))?0:parseInt(u[1],10),startingPositionLeft:d.position().left,startingPositionTop:d.position().top,startingOffsetLeft:f,startingOffsetTop:c,parentOffsetLeft:m,parentOffsetTop:v,stellarRatio:d.data("stellar-background-ratio")===s?1:d.data("stellar-background-ratio")})}))},_reset:function(){var t,e,i,s,o;for(o=this.particles.length-1;o>=0;o--)t=this.particles[o],e=t.$element.data("stellar-startingRight"),i=t.$element.data("stellar-startingTop"),this._setPosition(t.$element,e,e,i,i),this.options.showElement(t.$element),t.$element.data("stellar-startingRight",null).data("stellar-elementIsActive",null).data("stellar-backgroundIsActive",null);for(o=this.backgrounds.length-1;o>=0;o--)s=this.backgrounds[o],s.$element.data("stellar-backgroundStartingRight",null).data("stellar-backgroundStartingTop",null),p(s.$element,s.startingValueLeft,s.startingValueTop)},destroy:function(){this._reset(),this.$scrollElement.off("resize."+this.name).off("scroll."+this.name),this._animationLoop=t.noop,t(e).off("load."+this.name).off("resize."+this.name)},_setOffsets:function(){var i=this,s=t(e);s.off("resize.horizontal-"+this.name).off("resize.vertical-"+this.name),"function"==typeof this.options.horizontalOffset?(this.horizontalOffset=this.options.horizontalOffset(),s.on("resize.horizontal-"+this.name,function(){i.horizontalOffset=i.options.horizontalOffset()})):this.horizontalOffset=this.options.horizontalOffset,"function"==typeof this.options.verticalOffset?(this.verticalOffset=this.options.verticalOffset(),s.on("resize.vertical-"+this.name,function(){i.verticalOffset=i.options.verticalOffset()})):this.verticalOffset=this.options.verticalOffset},_repositionElements:function(){var t,e,i,s,o,n,r,a,l,f,c=this._getScrollLeft(),h=this._getScrollTop(),g=!0,d=!0;if(this.currentScrollLeft!==c||this.currentScrollTop!==h||this.currentWidth!==this.viewportWidth||this.currentHeight!==this.viewportHeight){for(this.currentScrollLeft=c,this.currentScrollTop=h,this.currentWidth=this.viewportWidth,this.currentHeight=this.viewportHeight,f=this.particles.length-1;f>=0;f--)t=this.particles[f],e=t.isFixed?1:0,this.options.horizontalScrolling?(n=(c+t.horizontalOffset+this.viewportOffsetLeft+t.startingPositionLeft-t.startingOffsetLeft+t.parentOffsetLeft)*-(t.stellarRatio+e-1)+t.startingPositionLeft,a=n-t.startingPositionLeft+t.startingOffsetLeft):(n=t.startingPositionLeft,a=t.startingOffsetLeft),this.options.verticalScrolling?(r=(h+t.verticalOffset+this.viewportOffsetTop+t.startingPositionTop-t.startingOffsetTop+t.parentOffsetTop)*-(t.stellarRatio+e-1)+t.startingPositionTop,l=r-t.startingPositionTop+t.startingOffsetTop):(r=t.startingPositionTop,l=t.startingOffsetTop),this.options.hideDistantElements&&(d=!this.options.horizontalScrolling||a+t.width>(t.isFixed?0:c)&&a<(t.isFixed?0:c)+this.viewportWidth+this.viewportOffsetLeft,g=!this.options.verticalScrolling||l+t.height>(t.isFixed?0:h)&&l<(t.isFixed?0:h)+this.viewportHeight+this.viewportOffsetTop),d&&g?(t.isHidden&&(this.options.showElement(t.$element),t.isHidden=!1),this._setPosition(t.$element,n,t.startingPositionLeft,r,t.startingPositionTop)):t.isHidden||(this.options.hideElement(t.$element),t.isHidden=!0);for(f=this.backgrounds.length-1;f>=0;f--)i=this.backgrounds[f],e=i.isFixed?0:1,s=this.options.horizontalScrolling?(c+i.horizontalOffset-this.viewportOffsetLeft-i.startingOffsetLeft+i.parentOffsetLeft-i.startingBackgroundPositionLeft)*(e-i.stellarRatio)+"px":i.startingValueLeft,o=this.options.verticalScrolling?(h+i.verticalOffset-this.viewportOffsetTop-i.startingOffsetTop+i.parentOffsetTop-i.startingBackgroundPositionTop)*(e-i.stellarRatio)+"px":i.startingValueTop,p(i.$element,s,o)}},_handleScrollEvent:function(){var t=this,e=!1,i=function(){t._repositionElements(),e=!1},s=function(){e||(d(i),e=!0)};this.$scrollElement.on("scroll."+this.name,s),s()},_startAnimationLoop:function(){var t=this;this._animationLoop=function(){d(t._animationLoop),t._repositionElements()},this._animationLoop()}},t.fn[n]=function(e){var i=arguments;return e===s||"object"==typeof e?this.each(function(){t.data(this,"plugin_"+n)||t.data(this,"plugin_"+n,new o(this,e))}):"string"==typeof e&&"_"!==e[0]&&"init"!==e?this.each(function(){var s=t.data(this,"plugin_"+n);s instanceof o&&"function"==typeof s[e]&&s[e].apply(s,Array.prototype.slice.call(i,1)),"destroy"===e&&t.data(this,"plugin_"+n,null)}):void 0},t[n]=function(){var i=t(e);return i.stellar.apply(i,Array.prototype.slice.call(arguments,0))},t[n].scrollProperty=a,t[n].positionProperty=l,e.Stellar=o}(jQuery,this,document); /** * Before After * TwentyTwenty * http://zurb.com/playground/twentytwenty */ !function(t){t.fn.twentytwenty=function(e){return e=t.extend({default_offset_pct:.5,orientation:"horizontal",before_label:"قبل",after_label:"بعد",no_overlay:!1,move_slider_on_hover:!1,move_with_handle_only:!0,click_to_move:!1},e),this.each(function(){function n(t){var e,n;e=t,n=c.width(),t=c.height(),t={w:n+"px",h:t+"px",cw:e*n+"px",ch:e*t+"px"};w.css("vertical"===r?"top":"left","vertical"===r?t.ch:t.cw),t=t,"vertical"===r?(c.css("clip","rect(0,"+t.w+","+t.ch+",0)"),f.css("clip","rect("+t.ch+","+t.w+","+t.h+",0)")):(c.css("clip","rect(0,"+t.cw+","+t.h+",0)"),f.css("clip","rect(0,"+t.w+","+t.h+","+t.cw+")")),s.css("height",t.h)}function a(t,e){var n;return n="vertical"===r?(e-p)/h:(t-v)/y,e=0,t=1,Math.max(e,Math.min(t,n))}function i(t){((t.distX>t.distY&&t.distX<-t.distY||t.distX-t.distY)&&"vertical"!==r||(t.distXt.distY&&t.distX>-t.distY)&&"vertical"===r)&&t.preventDefault(),s.addClass("active"),v=s.offset().left,p=s.offset().top,y=c.width(),h=c.height()}var o=e.default_offset_pct,s=t(this),r=e.orientation,d="vertical"===r?"down":"left",l="vertical"===r?"up":"right";s.data("before")&&(e.before_label=s.data("before")),s.data("after")&&(e.after_label=s.data("after")),s.wrap("
"),e.no_overlay||(s.append("
"),(_=s.find(".twentytwenty-overlay")).append("
"),_.append("
"));var c=s.find("img:first"),f=s.find("img:last");s.append("
");var w=s.find(".twentytwenty-handle");w.append(""),w.append(""),s.addClass("twentytwenty-container"),c.addClass("twentytwenty-before"),f.addClass("twentytwenty-after"),t(window).on("resize.twentytwenty",function(t){n(o)});var v=0,p=0,y=0,h=0,_=function(t){s.hasClass("active")&&(o=a(t.pageX,t.pageY),n(o))};d=function(){s.removeClass("active")},l=e.move_with_handle_only?w:s;l.on("movestart",i),l.on("move",_),l.on("moveend",d),e.move_slider_on_hover&&(s.on("mouseenter",i),s.on("mousemove",_),s.on("mouseleave",d)),w.on("touchmove",function(t){t.preventDefault()}),s.find("img").on("mousedown",function(t){t.preventDefault()}),e.click_to_move&&s.on("click",function(t){v=s.offset().left,p=s.offset().top,y=c.width(),h=c.height(),o=a(t.pageX,t.pageY),n(o)}),t(window).trigger("resize.twentytwenty")})}}(jQuery); /** * Event Move * required for: TwentyTwenty * 2.0.0 | Stephen Band */ !function(e){"function"==typeof define&&define.amd?define([],e):"undefined"!=typeof module&&null!==module&&module.exports?module.exports=e:e()}(function(){function e(e){return e[q]||(e[q]={})}function t(t,n,i,o,a){function c(e){i(e,o)}n=n.split(E);for(var u,r=e(t),d=n.length;d--;)(r[u=n[d]]||(r[u]=[])).push([i,c]),t.addEventListener(u,c)}function n(t,n,i,o){n=n.split(E);var a,c,u,r=e(t),d=n.length;if(r)for(;d--;)if(c=r[a=n[d]])for(u=c.length;u--;)c[u][0]===i&&(t.removeEventListener(a,c[u][1]),c.splice(u,1))}function i(e,t,n){var i=function(e){return new CustomEvent(e,Q)}(t);n&&T(i,n),e.dispatchEvent(i)}function o(e){function t(e){i?(n(),S(t),o=!0,i=!1):o=!1}var n=e,i=!1,o=!1;this.kick=function(e){i=!0,o||t()},this.end=function(e){var t=n;e&&(o?(n=i?function(){t(),e()}:e,i=!0):e())}}function a(){}function c(e){e.preventDefault()}function u(e,t){var n,i;if(e.identifiedTouch)return e.identifiedTouch(t);for(n=-1,i=e.length;++n (http://robert-fleischmann.de) **/ !function(e,t){"object"==typeof exports?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define("EasyPieChart",["jquery"],t):t(e.jQuery)}(this,function(e){var t=function(e,t){var a,n=document.createElement("canvas");"undefined"!=typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(n);var i=n.getContext("2d");n.width=n.height=t.size,e.appendChild(n);var r=1;window.devicePixelRatio>1&&(r=window.devicePixelRatio,n.style.width=n.style.height=[t.size,"px"].join(""),n.width=n.height=t.size*r,i.scale(r,r)),i.translate(t.size/2,t.size/2),i.rotate((t.rotate/180-.5)*Math.PI);var o=(t.size-t.lineWidth)/2;t.scaleColor&&t.scaleLength&&(o-=t.scaleLength+2),Date.now=Date.now||function(){return+new Date};var s=function(e,t,a){a=Math.min(Math.max(-1,a||0),1);var n=0>=a;i.beginPath(),i.arc(0,0,o,0,2*Math.PI*a,n),i.strokeStyle=e,i.lineWidth=t,i.stroke()},d=function(){var e,a,n=24;i.lineWidth=1,i.fillStyle=t.scaleColor,i.save();for(n=24;n>0;--n)0==n%6?(a=t.scaleLength,e=0):(a=.6*t.scaleLength,e=t.scaleLength-a),i.fillRect(-t.size/2+e,0,a,1),i.rotate(Math.PI/12);i.restore()},h=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)},l=function(){t.scaleColor&&d(),t.trackColor&&s(t.trackColor,t.lineWidth,1)};this.clear=function(){i.clearRect(t.size/-2,t.size/-2,t.size,t.size)},this.draw=function(e){var n;t.scaleColor||t.trackColor?i.getImageData&&i.putImageData?a?i.putImageData(a,0,0):(l(),a=i.getImageData(0,0,t.size*r,t.size*r)):(this.clear(),l()):this.clear(),i.lineCap=t.lineCap,n="function"==typeof t.barColor?t.barColor(e):t.barColor,s(n,t.lineWidth,e/100)}.bind(this),this.animate=function(e,a){var n=Date.now();t.onStart(e,a);var i=function(){var r=Math.min(Date.now()-n,t.animate),o=t.easing(this,r,e,a-e,t.animate);this.draw(o),t.onStep(e,a,o),r>=t.animate?t.onStop(e,a):h(i)}.bind(this);h(i)}.bind(this)},a=function(e,a){var n={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,size:110,rotate:0,animate:1e3,easing:function(e,t,a,n,i){return t/=i/2,1>t?n/2*t*t+a:-n/2*(--t*(t-2)-1)+a},onStart:function(){},onStep:function(){},onStop:function(){}};if(void 0!==t)n.renderer=t;else{if("undefined"==typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");n.renderer=SVGRenderer}var i={},r=0,o=function(){for(var t in this.el=e,this.options=i,n)n.hasOwnProperty(t)&&(i[t]=a&&void 0!==a[t]?a[t]:n[t],"function"==typeof i[t]&&(i[t]=i[t].bind(this)));i.easing="string"==typeof i.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[i.easing])?jQuery.easing[i.easing]:n.easing,this.renderer=new i.renderer(e,i),this.renderer.draw(r),e.dataset&&e.dataset.percent?this.update(parseFloat(e.dataset.percent)):e.getAttribute&&e.getAttribute("data-percent")&&this.update(parseFloat(e.getAttribute("data-percent")))}.bind(this);this.update=function(e){return e=parseFloat(e),i.animate?this.renderer.animate(r,e):this.renderer.draw(e),r=e,this}.bind(this),o()};e.fn.easyPieChart=function(t){return this.each(function(){var n;e.data(this,"easyPieChart")||(n=e.extend({},t,e(this).data()),e.data(this,"easyPieChart",new a(this,n)))})}}); /** * Countdown * downCount * Sonny T. , sonnyt.com */ (function(e){e.fn.downCount=function(t,n){function r(){var e=new Date(o.date),t=i(),r=e-t;if(r<0)return clearInterval(a),void(n&&"function"==typeof n&&n());var d=1e3,s=60*d,u=60*s,l=24*u,h=Math.floor(r/l),c=Math.floor(r%l/u),g=Math.floor(r%u/s),v=Math.floor(r%s/d);h=String(h).length>=2?h:"0"+h,c=String(c).length>=2?c:"0"+c,g=String(g).length>=2?g:"0"+g,v=String(v).length>=2?v:"0"+v;var x=1===h?"day":"days",m=1===c?"hour":"hours",y=1===g?"minute":"minutes",D=1===v?"second":"seconds";f.find(".days").text(h),f.find(".hours").text(c),f.find(".minutes").text(g),f.find(".seconds").text(v),f.find(".days_ref").text(x),f.find(".hours_ref").text(m),f.find(".minutes_ref").text(y),f.find(".seconds_ref").text(D)}var o=e.extend({date:null,offset:null},t);o.date||e.error("Date is not defined."),Date.parse(o.date)||e.error("Incorrect date format, it should look like this, 12/24/2012 12:00:00.");var f=this,i=function(){var e=new Date,t=e.getTime()+6e4*e.getTimezoneOffset(),n=new Date(t+36e5*o.offset);return n},a=setInterval(r,1e3)}})(jQuery); /** * Greyscale * * Black & White * * 0.3.7 | Gianluca Guarini | http://www.gianlucaguarini.com/ **/ !function(e){e.fn.extend({BlackAndWhite:function(t){"use strict";var n=this,a=e.extend({hoverEffect:!0,webworkerPath:!1,invertHoverEffect:!1,speed:500,onImageReady:null,intensity:1},t),i=a.hoverEffect,o=a.webworkerPath,r=a.invertHoverEffect,d="number"==typeof a.intensity&&a.intensity<1&&a.intensity>0?a.intensity:1,s=e.isPlainObject(a.speed)?a.speed.fadeIn:a.speed,c=e.isPlainObject(a.speed)?a.speed.fadeOut:a.speed,f=e(window),u=".BlackAndWhite",l=(!document.all||window.opera||window.XMLHttpRequest," -webkit- -moz- -o- -ms- ".split(" ")),m={},g=function(e){if(m[e]||""===m[e])return m[e]+e;var t=document.createElement("div"),n=["","Moz","Webkit","O","ms","Khtml"];for(var a in n)if(void 0!==t.style[n[a]+e])return m[e]=n[a],n[a]+e;return e.toLowerCase()},h=function(){var e=document.createElement("div");return e.style.cssText=l.join("filter:blur(2px); "),!!e.style.length&&(void 0===document.documentMode||document.documentMode>9)}(),p=!!document.createElement("canvas").getContext,v="undefined"!=typeof Worker,w=g("Filter"),y=[],W=!(!v||!o)&&new Worker(o+"BnWWorker.js"),b=function(t){e(t.currentTarget).find(".BWfade").stop(!0,!0).animate({opacity:r?0:1},c)},k=function(t){e(t.currentTarget).find(".BWfade").stop(!0,!0).animate({opacity:r?1:0},s)},I=function(e){"function"==typeof a.onImageReady&&a.onImageReady(e)},B=function(e){W&&p&&!h&&!e&&x()},x=function(){return y.length?(W.postMessage({imgData:y[0].imageData,intensity:d}),void(W.onmessage=function(e){y[0].ctx.putImageData(e.data,0,0),I(y[0].img),y.splice(0,1),x()})):(W.terminate&&W.terminate(),void(W.close&&W.close()))},D=function(e){return e.complete||void 0!==e.naturalWidth&&e.naturalWidth},E=function(e,t,n,a){var i=t.getContext("2d"),o=0;i.drawImage(e,0,0,n,a);var r=i.getImageData(0,0,n,a),s=r.data,c=s.length;if(W)y.push({imageData:r,ctx:i,img:e});else{for(;c>o;o+=4){var f=.3*s[o]+.59*s[o+1]+.11*s[o+2];s[o]=~~(f*d+s[o]*(1-d)),s[o+1]=~~(f*d+s[o+1]*(1-d)),s[o+2]=~~(f*d+s[o+2]*(1-d))}i.putImageData(r,0,0),I(e)}},_=function(t,n){var a,i=t[0],o=(i.src,t.position()),s={top:o.top,right:o.left,position:"absolute","-webkit-transform":"translate3d(0,0,0)",opacity:r?0:1};i.crossOrigin="anonymous",p&&!h?(a=e(''),s.width=t.width(),s.height=t.height(),E(i,a.get(0),i.naturalWidth,i.naturalHeight)):(p?s[w]="grayscale("+100*d+"%)":s.filter="progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)",a=t.clone().addClass("BWFilter BWfade"),I(i)),a.css(s).prependTo(n),!e.support.opacity&&r&&a.animate({opacity:0},0)},M=function(){n.each(function(t,n){var a=e(n).find("img"),i=e(a).width(),o=e(a).height();e(this).find("canvas").css({width:i,height:o})})},T=function(){var t=n.find("img").filter(function(){return!e(this).data("_b&w")}).length;n.each(function(n,a){var i=e(a),o=i.find("img");o.data("_b&w")||(D(o[0])?(t--,_(o,i)):o.on("load",function(){return o.data("_b&w_loaded")||!o[0].complete?void setTimeout(function(){o.load()},20):(_(o,i),o.data("_b&w_loaded",!0),t--,void B(t))}).load(),o.data("_b&w",!0))}),B(t),i&&n.off(u).on("mouseleave"+u,b).on("mouseenter"+u,k),p&&!h&&f.off(u).on("resize"+u+" orientationchange"+u,M)},j=function(){n.off(u),f.off(u)};return T(),{destroy:j}}})}(jQuery); /** * imagesLoaded * required for: Isotope * 4.1.4 | http://imagesloaded.desandro.com/ */ !function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},o=i[e]=i[e]||[];return-1==o.indexOf(t)&&o.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{},o=i[e]=i[e]||{};return o[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var o=i.indexOf(t);return-1!=o&&i.splice(o,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var o=this._onceEvents&&this._onceEvents[e],n=0;n