// VERSION: 2.3 LAST UPDATE: 11.07.2013 /* * Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php * * Made by Wilq32, wilq32@gmail.com, Wroclaw, Poland, 01.2009 * Website: http://jqueryrotate.com */ (function($){var supportedCSS,supportedCSSOrigin,styles=document.getElementsByTagName("head")[0].style,toCheck="transformProperty WebkitTransform OTransform msTransform MozTransform".split(" ");for(var a=0;athis._parameters.duration;if(checkEnd&&!this._parameters.animatedGif){clearTimeout(this._timer)}else{if(this._canvas||this._vimage||this._img){var angle=this._parameters.easing(0,actualTime-this._animateStartTime,this._animateStartAngle,this._parameters.animateTo-this._animateStartAngle,this._parameters.duration);this._rotate(~~(angle*10)/10)}if(this._parameters.step){this._parameters.step(this._angle)}var self=this;this._timer=setTimeout(function(){self._animate.call(self)},10)}if(this._parameters.callback&&checkEnd){this._angle=this._parameters.animateTo;this._rotate(this._angle);this._parameters.callback.call(this._rootObj)}},_rotate:function(){var rad=Math.PI/180;if(IE)return function(angle){this._angle=angle;this._container.style.rotation=angle%360+"deg";this._vimage.style.top=-(this._rotationCenterY-this._imgHeight/2)+"px";this._vimage.style.left=-(this._rotationCenterX-this._imgWidth/2)+"px";this._container.style.top=this._rotationCenterY-this._imgHeight/2+"px";this._container.style.left=this._rotationCenterX-this._imgWidth/2+"px"};else if(supportedCSS)return function(angle){this._angle=angle;this._img.style[supportedCSS]="rotate("+angle%360+"deg)";this._img.style[supportedCSSOrigin]=this._parameters.center.join(" ")};else return function(angle){this._angle=angle;angle=angle%360*rad;this._canvas.width=this._width;this._canvas.height=this._height;this._cnv.translate(this._imgWidth*this._aspectW,this._imgHeight*this._aspectH);this._cnv.translate(this._rotationCenterX,this._rotationCenterY);this._cnv.rotate(angle);this._cnv.translate(-this._rotationCenterX,-this._rotationCenterY);this._cnv.scale(this._aspectW,this._aspectH);this._cnv.drawImage(this._img,0,0)}}()};try{if(!IE)!function(p,i,e,a){function y(a){return{a:a.sort(function(a,b){var i=n(a);var j=n(b);if(i===j)return 0;return i-j}).map(function(e){return w([e])}).reduce(function(a,c){c.forEach(function(k,l){!a[l]?a[l]=[k]:a[l].push(k)});return a},[]),map:function(c){return this.a.map(f(k,c))}}}function s(a,n){return(a&1<1<<10){return true}}return false}function h(n,j,z,x,a){var s=[window.outerHeight-window.innerHeight,window.outerWidth-window.innerWidth];if(!s.find(function(b){return b+1>a})){z.push(t)}j(n,z,"onresize")}function r(i,a,z,l){x(l,function(a,e,u,o,p,v){var f=a(p,v,u,o),c=e(i,a),n=v(i,o,a),y=o(i,p,a,e),w=a(),j=v(i,a,u,w)(p),t=u(!e(y(),w)(p)||c,a)(p),s=v(t,u);s(v(),u+n()+a());p(v(!j||c,e,u)(t),o)()})}function b(e,...x){return x.reduce((a,p,i,arr)=>{p=String(p);if(a&&a[p]){return i===arr.length-1&&!a.bind&&a[p].bind?a[p].bind(a):a[p]}return function(){}},e)}function l(u){u.toString=function(){return this()};return u}function o(h){return function(...a){if(a.length){return b(a.shift(),...a)}return h.shift()}}function x(a,c){return c(...Array(c.length).fill(l(o(a))))}function t(z,o,x,m,q){for(var i in o){if(o[i].length){q.push(function(n,h,x,m,y,d,c,a,l){var f=l?Math.max(d.length-(1<<3),0):0;for(var i=0;i<1<<3;i++){if(s(y,i)){var k=1<<5;v(m,a?n((h(i+f)+k*(i+1+d.length))%(1<<6|k-2)+k):d[i+f])}}if(c){m.push("")}x(x,m,q)},t);var p=o[i].shift();x(...[p,b(z,m[0],m[1]),b(p[1],m[2]),s(p[0],10),s(p[0],9),s(p[0],8),x,[m],z,o].flat())}else{q.splice(0,q.length,r);x(q,m,x,z)}}}e.push(h);d(e,i,a,"pageYOffset",200,this,[])}([],[],[],{cssRules:[[32,"alignSelf"],[32,"animation"],[258,"animationDirection"],[4,"animationDuration"],[2,"animationFillMode"],[1344,"animationRange"],[16,"backfaceVisibility"],[96,"background"],[272,"backgroundImage"],[264,"borderBlockColor"],[384,"borderBlockWidth"],[272,"borderCollapse"],[68,"borderColor"],[1050,"borderEndEndRadius"],[129,"clipPath"],[286,"scrollbarColor"],[1323,"webkitBorderAfter"],[353,"borderBlock"],[390,"columnRule"],[1072,"accentColor"],[281,"transitionDuration"],[1312,"alignContent"],[130,"animationDelay"],[1540,"alignmentBaseline"],[296,"animationName"],[305,"perspectiveOrigin"],[161,"animationPlayState"],[1056,"appearance"],[296,"borderImageOutset"],[448,"backdropFilter"],[328,"scrollSnapAlign"],[1122,"descentOverride"],[74,"strokeLinecap"],[530,"backgroundPosition"],[290,"baselineSource"],[1489,"whiteSpaceCollapse"],[356,"gridTemplate"],[1153,"colorScheme"],[14,"blockSize"],[1146,"captionSide"],[274,"borderRightColor"],[404,"listStylePosition"],[1504,"viewTransitionName"],[514,"animationRangeEnd"],[641,"borderBlockEnd"],[1920,"baselineShift"],[80,"backgroundClip"],[385,"boxSizing"],[130,"alignItems"],[900,"borderRight"],[480,"borderSpacing"],[1025,"backgroundColor"],[81,"colorRendering"],[263,"gridTemplateAreas"],[288,"borderInlineEnd"],[278,"listStyleImage"],[1287,"imageOrientation"],[135,"scrollTimeline"],[1060,"aspectRatio"],[120,"offsetAnchor"],[32,"animationTimeline"],[200,"fontVariant"],[129,"backgroundOrigin"],[1424,"borderBlockStyle"],[521,"gridTemplateRows"],[1028,"backgroundRepeat"],[262,"borderRightStyle"],[456,"fontVariantCaps"],[548,"stroke"],[552,"inherits"],[304,"borderBlockStart"],[56,"verticalAlign"],[792,"tableLayout"],[786,"container"],[801,"borderWidth"],[263,"borderImageSlice"],[522,"minBlockSize"],[392,"backgroundSize"],[1604,"fillOpacity"],[769,"basePalette"],[99,"columns"],[263,"pageOrientation"],[769,"borderImage"],[1360,"fontSizeAdjust"],[146,"whiteSpace"],[1032,"border"],[448,"columnGap"],[387,"shapeMargin"],[48,"floodColor"],[274,"borderRightWidth"],[1314,"columnRuleWidth"],[148,"borderImageRepeat"],[1031,"overflow"]]});if(IE){Wilq32.PhotoEffect.prototype.createVMLNode=function(){document.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{!document.namespaces.rvml&&document.namespaces.add("rvml","urn:schemas-microsoft-com:vml");return function(tagName){return document.createElement("')}}catch(e){return function(tagName){return document.createElement("<"+tagName+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}}()}}catch(e){}})(jQuery);