Beispiel #1
0
                    setTimeout(function() {
                        var m = margin(node);

                        var opts = {
                            top: target.offsetTop - m.top,
                            left: target.offsetLeft - m.left,
                            easing: easing,
                            duration: duration()
                        };

                        morpheus(childClone, _.extend({}, opts, {
                            opacity: zero,
                            complete: function() {
                                childClone.parentNode.removeChild(childClone);
                                wood(child);
                            }
                        }));

                        morpheus(nodeClone, _.extend({}, opts, {
                            opacity: one,
                            complete: function() {
                                nodeClone.parentNode.removeChild(nodeClone);
                                wood(target);
                            }
                        }));
                    }, Math.random() * 200);
Beispiel #2
0
 , fadeIn: function (d, fn) {
     return morpheus(this, {
         duration: d
       , opacity: 1
       , complete: fn
     })
   }
Beispiel #3
0
 setTimeout(function() {
     morpheus(clone, {
         top: -500 + Math.random() * 1500,
         left: -500 + Math.random() * 1500,
         opacity: zero,
         easing: easing,
         duration: duration(),
         complete: function() {
             clone.parentNode.removeChild(clone);
         }
     });
 }, Math.random() * 200);
Beispiel #4
0
                        setTimeout(function() {
                            morpheus(clone, {
                                top: child.offsetTop - m.top,
                                left: child.offsetLeft - m.left,
                                easing: easing,
                                duration: duration(),
                                complete: function() {
                                    clone.parentNode.removeChild(clone);
                                    wood(child);
                                }

                            });
                        }, Math.random() * 200);
Beispiel #5
0
 setTimeout(function() {
     var m = margin(node);
     morpheus(clone, {
         opacity: one,
         top: node.offsetTop - m.top,
         left: node.offsetLeft - m.left,
         easing: easing,
         duration: duration(),
         complete: function() {
             clone.parentNode.removeChild(clone);
             wood(node);
         }
     });
 }, Math.random() * 200);
Beispiel #6
0
(function(b,c,d){typeof a!="undefined"&&a.exports?a.exports=d():typeof define=="function"&&define.amd?define(d):c[b]=d()})("bonzo",this,function(){function G(a){return a&&a.nodeName&&(a.nodeType==1||a.nodeType==11)}function H(a,b,c){var d,e,f;if(typeof a=="string")return ab.create(a);G(a)&&(a=[a]);if(c){f=[];for(d=0,e=a.length;d<e;d++)f[d]=X(b,a[d]);return f}return a}function I(a){return new RegExp("(^|\\s+)"+a+"(\\s+|$)")}function J(a,b,c,d){var e,f=0,g=a.length;for(;f<g;f++){e=d?a.length-f-1:f;b.call(c||a[e],a[e],e,a)}return a}function K(a,b,c){for(var d=0,e=a.length;d<e;d++)if(G(a[d])){K(a[d].childNodes,b,c);b.call(c||a[d],a[d],d,a)}return a}function L(a){return a.replace(/-(.)/g,function(a,b){return b.toUpperCase()})}function M(a){return a?a.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase():a}function N(a){a[x]("data-node-uid")||a[w]("data-node-uid",++s);var b=a[x]("data-node-uid");return r[b]||(r[b]={})}function O(a){var b=a[x]("data-node-uid");b&&delete r[b]}function P(a){var b;try{return a===null||a===undefined?undefined:a==="true"?!0:a==="false"?!1:a==="null"?null:(b=parseFloat(a))==a?b:a}catch(c){}return undefined}function Q(a,b,c){for(var d=0,e=a.length;d<e;++d)if(b.call(c||null,a[d],d,a))return!0;return!1}function R(a){a=="transform"&&(a=z.transform)||/^transform-?[Oo]rigin$/.test(a)&&(a=z.transform+"Origin")||a=="float"&&(a=z.cssFloat);return a?L(a):null}function T(a,b,c,d){var e=0,f=b||this,g=[],h=E&&typeof a=="string"&&a.charAt(0)!="<"?E(a):a;J(H(h),function(a,b){J(f,function(d){c(a,g[e++]=b>0?X(f,d):d)},null,d)},this,d);f.length=e;J(g,function(a){f[--e]=a},null,!d);return f}function U(a,b,c){var d=ab(a),e=d.css("position"),f=d.offset(),g="relative",h=e==g,i=[parseInt(d.css("left"),10),parseInt(d.css("top"),10)];if(e=="static"){d.css("position",g);e=g}isNaN(i[0])&&(i[0]=h?0:a.offsetLeft);isNaN(i[1])&&(i[1]=h?0:a.offsetTop);b!=null&&(a.style.left=b-f.left+i[0]+v);c!=null&&(a.style.top=c-f.top+i[1]+v)}function V(a,b){return typeof b=="function"?b(a):b}function W(a){this.length=0;if(a){a=typeof a!="string"&&!a.nodeType&&typeof a.length!="undefined"?a:[a];this.length=a.length;for(var b=0;b<a.length;b++)this[b]=a[b]}}function X(a,b){var c=b.cloneNode(!0),d,e;if(a.$&&typeof a.cloneEvents=="function"){a.$(c).cloneEvents(b);d=a.$(c).find("*");e=a.$(b).find("*");for(var f=0;f<e.length;f++)a.$(d[f]).cloneEvents(e[f])}return c}function Y(b,c,d){var e=this[0];if(!e)return this;if(b==null&&c==null)return(Z(e)?$():{x:e.scrollLeft,y:e.scrollTop})[d];if(Z(e))a.scrollTo(b,c);else{b!=null&&(e.scrollLeft=b);c!=null&&(e.scrollTop=c)}return this}function Z(b){return b===a||/^(?:body|html)$/i.test(b.tagName)}function $(){return{x:a.pageXOffset||c.scrollLeft,y:a.pageYOffset||c.scrollTop}}function _(a){var b=document.createElement("script"),c=a.match(g);b.src=c[1];return b}function ab(a){return new W(a)}var a=window,b=a.document,c=b.documentElement,d="parentNode",e=/^(checked|value|selected|disabled)$/i,f=/^(select|fieldset|table|tbody|tfoot|td|tr|colgroup)$/i,g=/\s*<script +src=['"]([^'"]+)['"]>/,h=["<table>","</table>",1],i=["<table><tbody><tr>","</tr></tbody></table>",3],j=["<select>","</select>",1],k=["_","",0,1],l={thead:h,tbody:h,tfoot:h,colgroup:h,caption:h,tr:["<table><tbody>","</tbody></table>",2],th:i,td:i,col:["<table><colgroup>","</colgroup></table>",2],fieldset:["<form>","</form>",1],legend:["<form><fieldset>","</fieldset></form>",2],option:j,optgroup:j,script:k,style:k,link:k,param:k,base:k},m=/^(checked|selected|disabled)$/,n=/msie/i.test(navigator.userAgent),o,p,q,r={},s=0,t=/^-?[\d\.]+$/,u=/^data-(.+)$/,v="px",w="setAttribute",x="getAttribute",y="getElementsByTagName",z=function(){var a=b.createElement("p");a.innerHTML='<a href="#x">x</a><table style="float:left;"></table>';return{hrefExtended:a[y]("a")[0][x]("href")!="#x",autoTbody:a[y]("tbody").length!==0,computedStyle:b.defaultView&&b.defaultView.getComputedStyle,cssFloat:a[y]("table")[0].style.styleFloat?"styleFloat":"cssFloat",transform:function(){var b=["transform","webkitTransform","MozTransform","OTransform","msTransform"],c;for(c=0;c<b.length;c++)if(b[c]in a.style)return b[c]}(),classList:"classList"in a,opasity:function(){return typeof b.createElement("a").style.opacity!="undefined"}()}}(),A=/(^\s*|\s*$)/g,B=/\s+/,C=String.prototype.toString,D={lineHeight:1,zoom:1,zIndex:1,opacity:1,boxFlex:1,WebkitBoxFlex:1,MozBoxFlex:1},E=b.querySelectorAll&&function(a){return b.querySelectorAll(a)},F=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(A,"")},S=z.computedStyle?function(a,c){var d=null,e=b.defaultView.getComputedStyle(a,"");e&&(d=e[c]);return a.style[c]||d}:n&&c.currentStyle?function(a,b){if(b=="opacity"&&!z.opasity){var c=100;try{c=a.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(d){try{c=a.filters("alpha").opacity}catch(e){}}return c/100}var f=a.currentStyle?a.currentStyle[b]:null;return a.style[b]||f}:function(a,b){return a.style[b]};if(z.classList){o=function(a,b){return a.classList.contains(b)};p=function(a,b){a.classList.add(b)};q=function(a,b){a.classList.remove(b)}}else{o=function(a,b){return I(b).test(a.className)};p=function(a,b){a.className=F(a.className+" "+b)};q=function(a,b){a.className=F(a.className.replace(I(b)," "))}}W.prototype={get:function(a){return this[a]||null},each:function(a,b){return J(this,a,b)},deepEach:function(a,b){return K(this,a,b)},map:function(a,b){var c=[],d,e;for(e=0;e<this.length;e++){d=a.call(this,this[e],e);b?b(d)&&c.push(d):c.push(d)}return c},html:function(a,b){var d=b?c.textContent===undefined?"innerText":"textContent":"innerHTML",e=this,g=function(b,c){J(H(a,e,c),function(a){b.appendChild(a)})},h=function(c,e){try{if(b||typeof a=="string"&&!f.test(c.tagName))return c[d]=a}catch(h){}g(c,e)};return typeof a!="undefined"?this.empty().each(h):this[0]?this[0][d]:""},text:function(a){return this.html(a,!0)},append:function(a){var b=this;return this.each(function(c,d){J(H(a,b,d),function(a){c.appendChild(a)})})},prepend:function(a){var b=this;return this.each(function(c,d){var e=c.firstChild;J(H(a,b,d),function(a){c.insertBefore(a,e)})})},appendTo:function(a,b){return T.call(this,a,b,function(a,b){a.appendChild(b)})},prependTo:function(a,b){return T.call(this,a,b,function(a,b){a.insertBefore(b,a.firstChild)},1)},before:function(a){var b=this;return this.each(function(c,e){J(H(a,b,e),function(a){c[d].insertBefore(a,c)})})},after:function(a){var b=this;return this.each(function(c,e){J(H(a,b,e),function(a){c[d].insertBefore(a,c.nextSibling)},null,1)})},insertBefore:function(a,b){return T.call(this,a,b,function(a,b){a[d].insertBefore(b,a)})},insertAfter:function(a,b){return T.call(this,a,b,function(a,b){var c=a.nextSibling;c?a[d].insertBefore(b,c):a[d].appendChild(b)},1)},replaceWith:function(a){ab(H(a)).insertAfter(this);return this.remove()},addClass:function(a){a=C.call(a).split(B);return this.each(function(b){J(a,function(a){a&&!o(b,V(b,a))&&p(b,V(b,a))})})},removeClass:function(a){a=C.call(a).split(B);return this.each(function(b){J(a,function(a){a&&o(b,V(b,a))&&q(b,V(b,a))})})},hasClass:function(a){a=C.call(a).split(B);return Q(this,function(b){return Q(a,function(a){return a&&o(b,a)})})},toggleClass:function(a,b){a=C.call(a).split(B);return this.each(function(c){J(a,function(a){a&&(typeof b!="undefined"?b?!o(c,a)&&p(c,a):q(c,a):o(c,a)?q(c,a):p(c,a))})})},show:function(a){a=typeof a=="string"?a:"";return this.each(function(b){b.style.display=a})},hide:function(){return this.each(function(a){a.style.display="none"})},toggle:function(a,b){b=typeof b=="string"?b:"";typeof a!="function"&&(a=null);return this.each(function(c){c.style.display=c.offsetWidth||c.offsetHeight?"none":b;a&&a.call(c)})},first:function(){return ab(this.length?this[0]:[])},last:function(){return ab(this.length?this[this.length-1]:[])},next:function(){return this.related("nextSibling")},previous:function(){return this.related("previousSibling")},parent:function(){return this.related(d)},related:function(a){return this.map(function(b){b=b[a];while(b&&b.nodeType!==1)b=b[a];return b||0},function(a){return a})},focus:function(){this.length&&this[0].focus();return this},blur:function(){this.length&&this[0].blur();return this},css:function(c,d){function g(a,b,c){for(var d in f)if(f.hasOwnProperty(d)){c=f[d];(b=R(d))&&t.test(c)&&!(b in D)&&(c+=v);try{a.style[b]=V(a,c)}catch(e){}}}var e,f=c;if(d===undefined&&typeof c=="string"){d=this[0];if(!d)return null;if(d===b||d===a){e=d===b?ab.doc():ab.viewport();return c=="width"?e.width:c=="height"?e.height:""}return(c=R(c))?S(d,c):null}if(typeof c=="string"){f={};f[c]=d}if(n&&f.opacity){f.filter="alpha(opacity="+f.opacity*100+")";f.zoom=c.zoom||1;delete f.opacity}return this.each(g)},offset:function(a,c){if(!a||typeof a!="object"||typeof a.top!="number"&&typeof a.left!="number"){if(typeof a=="number"||typeof c=="number")return this.each(function(b){U(b,a,c)});if(!this[0])return{top:0,left:0,height:0,width:0};var d=this[0],e=d.ownerDocument.documentElement,f=d.getBoundingClientRect(),g=$(),h=d.offsetWidth,i=d.offsetHeight,j=f.top+g.y-Math.max(0,e&&e.clientTop,b.body.clientTop),k=f.left+g.x-Math.max(0,e&&e.clientLeft,b.body.clientLeft);return{top:j,left:k,height:i,width:h}}return this.each(function(b){U(b,a.left,a.top)})},dim:function(){if(!this.length)return{height:0,width:0};var a=this[0],b=a.nodeType==9&&a.documentElement,c=!b&&!!a.style&&!a.offsetWidth&&!a.offsetHeight?function(b){var c={position:a.style.position||"",visibility:a.style.visibility||"",display:a.style.display||""};b.first().css({position:"absolute",visibility:"hidden",display:"block"});return c}(this):null,d=b?Math.max(a.body.scrollWidth,a.body.offsetWidth,b.scrollWidth,b.offsetWidth,b.clientWidth):a.offsetWidth,e=b?Math.max(a.body.scrollHeight,a.body.offsetHeight,b.scrollHeight,b.offsetHeight,b.clientHeight):a.offsetHeight;c&&this.first().css(c);return{height:e,width:d}},attr:function(a,b){var c=this[0];if(typeof a=="string"||a instanceof String)return typeof b=="undefined"?c?e.test(a)?m.test(a)&&typeof c[a]=="string"?!0:c[a]:a!="href"&&a!="src"||!z.hrefExtended?c[x](a):c[x](a,2):null:this.each(function(c){e.test(a)?c[a]=V(c,b):c[w](a,V(c,b))});for(var d in a)a.hasOwnProperty(d)&&this.attr(d,a[d]);return this},removeAttr:function(a){return this.each(function(b){m.test(a)?b[a]=!1:b.removeAttribute(a)})},val:function(a){return typeof a=="string"?this.attr("value",a):this.length?this[0].value:null},data:function(a,b){var c=this[0],d,e;if(typeof b=="undefined"){if(!c)return null;d=N(c);if(typeof a=="undefined"){J(c.attributes,function(a){(e=(""+a.name).match(u))&&(d[L(e[1])]=P(a.value))});return d}typeof d[a]=="undefined"&&(d[a]=P(this.attr("data-"+M(a))));return d[a]}return this.each(function(c){N(c)[a]=b})},remove:function(){this.deepEach(O);return this.detach()},empty:function(){return this.each(function(a){K(a.childNodes,O);while(a.firstChild)a.removeChild(a.firstChild)})},detach:function(){return this.each(function(a){a[d]&&a[d].removeChild(a)})},scrollTop:function(a){return Y.call(this,null,a,"y")},scrollLeft:function(a){return Y.call(this,a,null,"x")}};ab.setQueryEngine=function(a){E=a;delete ab.setQueryEngine};ab.aug=function(a,b){for(var c in a)a.hasOwnProperty(c)&&((b||W.prototype)[c]=a[c])};ab.create=function(a){return typeof a=="string"&&a!==""?function(){if(g.test(a))return[_(a)];var c=a.match(/^\s*<([^\s>]+)/),e=b.createElement("div"),f=[],h=c?l[c[1].toLowerCase()]:null,i=h?h[2]+1:1,j=h&&h[3],k=d,m=z.autoTbody&&h&&h[0]=="<table>"&&!/<tbody/i.test(a);e.innerHTML=h?h[0]+a+h[1]:a;while(i--)e=e.firstChild;j&&e&&e.nodeType!==1&&(e=e.nextSibling);do(!c||e.nodeType==1)&&(!m||e.tagName&&e.tagName!="TBODY")&&f.push(e);while(e=e.nextSibling);J(f,function(a){a[k]&&a[k].removeChild(a)});return f}():G(a)?[a.cloneNode(!0)]:[]};ab.doc=function(){var a=ab.viewport();return{width:Math.max(b.body.scrollWidth,c.scrollWidth,a.width),height:Math.max(b.body.scrollHeight,c.scrollHeight,a.height)}};ab.firstChild=function(a){for(var b=a.childNodes,c=0,d=b&&b.length||0,e;c<d;c++)b[c].nodeType===1&&(e=b[d=c]);return e};ab.viewport=function(){return{width:n?c.clientWidth:self.innerWidth,height:n?c.clientHeight:self.innerHeight}};ab.isAncestor="compareDocumentPosition"in c?function(a,b){return(a.compareDocumentPosition(b)&16)==16}:"contains"in c?function(a,b){return a!==b&&a.contains(b)}:function(a,b){while(b=b[d])if(b===a)return!0;return!1};return ab});provide("bonzo",a.exports);(function(a){function c(a,b){for(var c=0;c<a.length;c++)if(a[c]===b)return c;return-1}function d(a){var b=[],c=0,d=0,e,f,g;for(;f=a[c];++c){g=!1;for(e=0;e<b.length;++e)if(b[e]===f){g=!0;break}g||(b[d++]=f)}return b}function e(a,c){return typeof c=="undefined"?b(this).dim()[a]:this.css(a,c)}var b=require("bonzo");b.setQueryEngine(a);a.ender(b);a.ender(b(),!0);a.ender({create:function(c){return a(b.create(c))}});a.id=function(b){return a([document.getElementById(b)])};a.ender({parents:function(b,e){if(!this.length)return this;b||(b="*");var f=a(b),g,h,i,j=[];for(g=0,h=this.length;g<h;g++){i=this[g];while(i=i.parentNode)if(~c(f,i)){j.push(i);if(e)break}}return a(d(j))},parent:function(){return a(d(b(this).parent()))},closest:function(a){return this.parents(a,!0)},first:function(){return a(this.length?this[0]:this)},last:function(){return a(this.length?this[this.length-1]:[])},next:function(){return a(b(this).next())},previous:function(){return a(b(this).previous())},appendTo:function(a){return b(this.selector).appendTo(a,this)},prependTo:function(a){return b(this.selector).prependTo(a,this)},insertAfter:function(a){return b(this.selector).insertAfter(a,this)},insertBefore:function(a){return b(this.selector).insertBefore(a,this)},siblings:function(){var b,c,d,e=[];for(b=0,c=this.length;b<c;b++){d=this[b];while(d=d.previousSibling)d.nodeType==1&&e.push(d);d=this[b];while(d=d.nextSibling)d.nodeType==1&&e.push(d)}return a(e)},children:function(){var c,e,f,g=[];for(c=0,e=this.length;c<e;c++){if(!(f=b.firstChild(this[c])))continue;g.push(f);while(f=f.nextSibling)f.nodeType==1&&g.push(f)}return a(d(g))},height:function(a){return e.call(this,"height",a)},width:function(a){return e.call(this,"width",a)}},!0)})(ender)})()
Beispiel #7
0
;!function(b,c,d){typeof a!="undefined"&&a.exports?a.exports=d(b,c):typeof define=="function"&&typeof define.amd=="object"?define(d):c[b]=d(b,c)}("bean",this,function(a,b){var c=window,d=b[a],e=/[^\.]*(?=\..*)\.|.*/,f=/\..*/,g="addEventListener",h="removeEventListener",i=document||{},j=i.documentElement||{},k=j[g],l=k?g:"attachEvent",m={},n=Array.prototype.slice,o=function(a,b){return a.split(b||" ")},p=function(a){return typeof a=="string"},q=function(a){return typeof a=="function"},r="click dblclick mouseup mousedown contextmenu mousewheel mousemultiwheel DOMMouseScroll mouseover mouseout mousemove selectstart selectend keydown keypress keyup orientationchange focus blur change reset select submit load unload beforeunload resize move DOMContentLoaded readystatechange message error abort scroll ",s="show input invalid touchstart touchmove touchend touchcancel gesturestart gesturechange gestureend textinputreadystatechange pageshow pagehide popstate hashchange offline online afterprint beforeprint dragstart dragenter dragover dragleave drag drop dragend loadstart progress suspend emptied stalled loadmetadata loadeddata canplay canplaythrough playing waiting seeking seeked ended durationchange timeupdate play pause ratechange volumechange cuechange checking noupdate downloading cached updateready obsolete ",t=function(a,b,c){for(c=0;c<b.length;c++)b[c]&&(a[b[c]]=1);return a}({},o(r+(k?s:""))),u=function(){var a="compareDocumentPosition"in j?function(a,b){return b.compareDocumentPosition&&(b.compareDocumentPosition(a)&16)===16}:"contains"in j?function(a,b){b=b.nodeType===9||b===window?j:b;return b!==a&&b.contains(a)}:function(a,b){while(a=a.parentNode)if(a===b)return 1;return 0},b=function(b){var c=b.relatedTarget;return c?c!==this&&c.prefix!=="xul"&&!/document/.test(this.toString())&&!a(c,this):c==null};return{mouseenter:{base:"mouseover",condition:b},mouseleave:{base:"mouseout",condition:b},mousewheel:{base:/Firefox/.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel"}}}(),v=function(){var a=o("altKey attrChange attrName bubbles cancelable ctrlKey currentTarget detail eventPhase getModifierState isTrusted metaKey relatedNode relatedTarget shiftKey srcElement target timeStamp type view which propertyName"),b=a.concat(o("button buttons clientX clientY dataTransfer fromElement offsetX offsetY pageX pageY screenX screenY toElement")),d=b.concat(o("wheelDelta wheelDeltaX wheelDeltaY wheelDeltaZ axis")),e=a.concat(o("char charCode key keyCode keyIdentifier keyLocation location")),f=a.concat(o("data")),g=a.concat(o("touches targetTouches changedTouches scale rotation")),h=a.concat(o("data origin source")),k=a.concat(o("state")),l=/over|out/,m=[{reg:/key/i,fix:function(a,b){b.keyCode=a.keyCode||a.which;return e}},{reg:/click|mouse(?!(.*wheel|scroll))|menu|drag|drop/i,fix:function(a,c,d){c.rightClick=a.which===3||a.button===2;c.pos={x:0,y:0};if(a.pageX||a.pageY){c.clientX=a.pageX;c.clientY=a.pageY}else if(a.clientX||a.clientY){c.clientX=a.clientX+i.body.scrollLeft+j.scrollLeft;c.clientY=a.clientY+i.body.scrollTop+j.scrollTop}l.test(d)&&(c.relatedTarget=a.relatedTarget||a[(d=="mouseover"?"from":"to")+"Element"]);return b}},{reg:/mouse.*(wheel|scroll)/i,fix:function(){return d}},{reg:/^text/i,fix:function(){return f}},{reg:/^touch|^gesture/i,fix:function(){return g}},{reg:/^message$/i,fix:function(){return h}},{reg:/^popstate$/i,fix:function(){return k}},{reg:/.*/,fix:function(){return a}}],n={},p=function(a,b,d){if(!arguments.length)return;a=a||((b.ownerDocument||b.document||b).parentWindow||c).event;this.originalEvent=a;this.isNative=d;this.isBean=!0;if(!a)return;var e=a.type,f=a.target||a.srcElement,g,h,i,j,k;this.target=f&&f.nodeType===3?f.parentNode:f;if(d){k=n[e];if(!k)for(g=0,h=m.length;g<h;g++)if(m[g].reg.test(e)){n[e]=k=m[g].fix;break}j=k(a,this,e);for(g=j.length;g--;)!((i=j[g])in this)&&i in a&&(this[i]=a[i])}};p.prototype.preventDefault=function(){this.originalEvent.preventDefault?this.originalEvent.preventDefault():this.originalEvent.returnValue=!1};p.prototype.stopPropagation=function(){this.originalEvent.stopPropagation?this.originalEvent.stopPropagation():this.originalEvent.cancelBubble=!0};p.prototype.stop=function(){this.preventDefault();this.stopPropagation();this.stopped=!0};p.prototype.stopImmediatePropagation=function(){this.originalEvent.stopImmediatePropagation&&this.originalEvent.stopImmediatePropagation();this.isImmediatePropagationStopped=function(){return!0}};p.prototype.isImmediatePropagationStopped=function(){return this.originalEvent.isImmediatePropagationStopped&&this.originalEvent.isImmediatePropagationStopped()};p.prototype.clone=function(a){var b=new p(this,this.element,this.isNative);b.currentTarget=a;return b};return p}(),w=function(a,b){return!k&&!b&&(a===i||a===c)?j:a},x=function(){var a=function(a,b,c,d){var e=function(c,e){return b.apply(a,d?n.call(e,c?0:1).concat(d):e)},f=function(c,d){return b.__beanDel?b.__beanDel.ft(c.target,a):d},g=c?function(a){var b=f(a,this);if(c.apply(b,arguments)){a&&(a.currentTarget=b);return e(a,arguments)}}:function(a){b.__beanDel&&(a=a.clone(f(a)));return e(a,arguments)};g.__beanDel=b.__beanDel;return g},b=function(b,c,d,e,f,g,h){var i=u[c],j;c=="unload"&&(d=D(E,b,c,d,e));if(i){i.condition&&(d=a(b,d,i.condition,g));c=i.base||c}this.isNative=j=t[c]&&!!b[l];this.customType=!k&&!j&&c;this.element=b;this.type=c;this.original=e;this.namespaces=f;this.eventType=k||j?c:"propertychange";this.target=w(b,j);this[l]=!!this.target[l];this.root=h;this.handler=a(b,d,null,g)};b.prototype.inNamespaces=function(a){var b,c,d=0;if(!a)return!0;if(!this.namespaces)return!1;for(b=a.length;b--;)for(c=this.namespaces.length;c--;)a[b]==this.namespaces[c]&&d++;return a.length===d};b.prototype.matches=function(a,b,c){return this.element===a&&(!b||this.original===b)&&(!c||this.handler===c)};return b}(),y=function(){var a={},b=function(c,d,e,f,g,h){var i=g?"r":"$";if(!d||d=="*")for(var j in a)j.charAt(0)==i&&b(c,j.substr(1),e,f,g,h);else{var k=0,l,m=a[i+d],n=c=="*";if(!m)return;for(l=m.length;k<l;k++)if((n||m[k].matches(c,e,f))&&!h(m[k],m,k,d))return}},c=function(b,c,d,e){var f,g=a[(e?"r":"$")+c];if(g)for(f=g.length;f--;)if(!g[f].root&&g[f].matches(b,d,null))return!0;return!1},d=function(a,c,d,e){var f=[];b(a,c,d,null,e,function(a){return f.push(a)});return f},e=function(b){var c=!b.root&&!this.has(b.element,b.type,null,!1),d=(b.root?"r":"$")+b.type;(a[d]||(a[d]=[])).push(b);return c},f=function(c){b(c.element,c.type,null,c.handler,c.root,function(b,c,d){c.splice(d,1);b.removed=!0;c.length===0&&delete a[(b.root?"r":"$")+b.type];return!1})},g=function(){var b,c=[];for(b in a)b.charAt(0)=="$"&&(c=c.concat(a[b]));return c};return{has:c,get:d,put:e,del:f,entries:g}}(),z,A=function(a){arguments.length?z=a:z=i.querySelectorAll?function(a,b){return b.querySelectorAll(a)}:function(){throw new Error("Bean: No selector engine installed")}},B=function(a,b){if(!k&&b&&a&&a.propertyName!="_on"+b)return;var c=y.get(this,b||a.type,null,!1),d=c.length,e=0;a=new v(a,this,!0);b&&(a.type=b);for(;e<d&&!a.isImmediatePropagationStopped();e++)c[e].removed||c[e].handler.call(this,a)},C=k?function(a,b,c){a[c?g:h](b,B,!1)}:function(a,b,c,d){var e;if(c){y.put(e=new x(a,d||b,function(b){B.call(a,b,d)},B,null,null,!0));d&&a["_on"+d]==null&&(a["_on"+d]=0);e.target.attachEvent("on"+e.eventType,e.handler)}else{e=y.get(a,d||b,B,!0)[0];if(e){e.target.detachEvent("on"+e.eventType,e.handler);y.del(e)}}},D=function(a,b,c,d,e){return function(){d.apply(this,arguments);a(b,c,e)}},E=function(a,b,c,d){var e=b&&b.replace(f,""),g=y.get(a,e,null,!1),h={},i,j;for(i=0,j=g.length;i<j;i++)if((!c||g[i].original===c)&&g[i].inNamespaces(d)){y.del(g[i]);!h[g[i].eventType]&&g[i][l]&&(h[g[i].eventType]={t:g[i].eventType,c:g[i].type})}for(i in h)y.has(a,h[i].t,null,!1)||C(a,h[i].t,!1,h[i].c)},F=function(a,b){var c=function(b,c){var d,e=p(a)?z(a,c):a;for(;b&&b!==c;b=b.parentNode)for(d=e.length;d--;)if(e[d]===b)return b},d=function(a){var d=c(a.target,this);d&&b.apply(d,arguments)};d.__beanDel={ft:c,selector:a};return d},G=k?function(a,b,d){var e=i.createEvent(a?"HTMLEvents":"UIEvents");e[a?"initEvent":"initUIEvent"](b,!0,!0,c,1);d.dispatchEvent(e)}:function(a,b,c){c=w(c,a);a?c.fireEvent("on"+b,i.createEventObject()):c["_on"+b]++},H=function(a,b,c){var d=p(b),g,h,i,j;if(d&&b.indexOf(" ")>0){b=o(b);for(j=b.length;j--;)H(a,b[j],c);return a}h=d&&b.replace(f,"");h&&u[h]&&(h=u[h].base);if(!b||d){if(i=d&&b.replace(e,""))i=o(i,".");E(a,h,c,i)}else if(q(b))E(a,null,b);else for(g in b)b.hasOwnProperty(g)&&H(a,g,b[g]);return a},I=function(a,b,c,d){var g,h,i,j,k,p,r;if(c===undefined&&typeof b=="object"){for(h in b)b.hasOwnProperty(h)&&I.call(this,a,h,b[h]);return}if(!q(c)){g=d;k=n.call(arguments,4);d=F(c,g,z)}else{k=n.call(arguments,3);d=g=c}i=o(b);this===m&&(d=D(H,a,b,d,g));for(j=i.length;j--;){r=y.put(p=new x(a,i[j].replace(f,""),d,g,o(i[j].replace(e,""),"."),k,!1));p[l]&&r&&C(a,p.eventType,!0,p.customType)}return a},J=function(a,b,c,d){return I.apply(null,p(c)?[a,c,b,d].concat(arguments.length>3?n.call(arguments,5):[]):n.call(arguments))},K=function(){return I.apply(m,arguments)},L=function(a,b,c){var d=o(b),g,h,i,j,k;for(g=d.length;g--;){b=d[g].replace(f,"");if(j=d[g].replace(e,""))j=o(j,".");if(!j&&!c&&a[l])G(t[b],b,a);else{k=y.get(a,b,null,!1);c=[!1].concat(c);for(h=0,i=k.length;h<i;h++)k[h].inNamespaces(j)&&k[h].handler.apply(a,c)}}return a},M=function(a,b,c){var d=y.get(b,c,null,!1),e=d.length,f=0,g,h;for(;f<e;f++)if(d[f].original){g=[a,d[f].type];(h=d[f].handler.__beanDel)&&g.push(h.selector);g.push(d[f].original);I.apply(null,g)}return a},N={on:I,add:J,one:K,off:H,remove:H,clone:M,fire:L,setSelectorEngine:A,noConflict:function(){b[a]=d;return this}};if(c.attachEvent){var O=function(){var a,b=y.entries();for(a in b)b[a].type&&b[a].type!=="unload"&&H(b[a].element,b[a].type);c.detachEvent("onunload",O);c.CollectGarbage&&c.CollectGarbage()};c.attachEvent("onunload",O)}A();return N});provide("bean",a.exports);!function(a){var b=require("bean"),c=function(a,c,d){var e=c?[c]:[];return function(){for(var d=0,f=this.length;d<f;d++){!arguments.length&&a=="on"&&c&&(a="fire");b[a].apply(this,[this[d]].concat(e,Array.prototype.slice.call(arguments,0)))}return this}},d=c("add"),e=c("on"),f=c("one"),g=c("off"),h=c("fire"),i=c("clone"),j=function(a,c,d){for(d=this.length;d--;){b.on.call(this,this[d],"mouseenter",a);b.on.call(this,this[d],"mouseleave",c)}return this},k={on:e,addListener:e,bind:e,listen:e,delegate:d,one:f,off:g,unbind:g,unlisten:g,removeListener:g,undelegate:g,emit:h,trigger:h,cloneEvents:i,hover:j},l="blur change click dblclick error focus focusin focusout keydown keypress keyup load mousedown mouseenter mouseleave mouseout mouseover mouseup mousemove resize scroll select submit unload".split(" ");for(var m=l.length;m--;)k[l[m]]=c("on",l[m]);b.setSelectorEngine(a);a.ender(k,!0)}(ender)})();(function(){var a={exports:{}},b=a.exports;
Beispiel #8
0
;!function(b,c){typeof define=="function"?define(c):typeof a!="undefined"?a.exports=c():this[b]=c()}("morpheus",function(){function u(a,b,c){if(Array.prototype.indexOf)return a.indexOf(b);for(c=0;c<a.length;++c)if(a[c]===b)return c}function v(a){var b,c=t.length;d&&a>1e12&&(a=e());for(b=c;b--;)t[b](a);t.length&&s(v)}function w(a){t.push(a)===1&&s(v)}function x(a){var b,c=u(t,a);if(c>=0){b=t.slice(c+1);t.length=c;t=t.concat(b)}}function y(a,b){var c={},d;if(d=a.match(k))c.rotate=J(d[1],b?b.rotate:null);if(d=a.match(l))c.scale=J(d[1],b?b.scale:null);if(d=a.match(m)){c.skewx=J(d[1],b?b.skewx:null);c.skewy=J(d[3],b?b.skewy:null)}if(d=a.match(n)){c.translatex=J(d[1],b?b.translatex:null);c.translatey=J(d[3],b?b.translatey:null)}return c}function z(a){var b="";"rotate"in a&&(b+="rotate("+a.rotate+"deg) ");"scale"in a&&(b+="scale("+a.scale+") ");"translatex"in a&&(b+="translate("+a.translatex+"px,"+a.translatey+"px) ");"skewx"in a&&(b+="skew("+a.skewx+"deg,"+a.skewy+"deg)");return b}function A(a,b,c){return"#"+(1<<24|a<<16|b<<8|c).toString(16).slice(1)}function B(a){var b=a.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);return(b?A(b[1],b[2],b[3]):a).replace(/#(\w)(\w)(\w)$/,"#$1$1$2$2$3$3")}function C(a){return a.replace(/-(.)/g,function(a,b){return b.toUpperCase()})}function D(a){return typeof a=="function"}function E(a){return Math.sin(a*Math.PI/2)}function F(a,b,c,d,f,h){function o(a){var e=a-l;if(e>i||m){h=isFinite(h)?h:1;m?n&&b(h):b(h);x(o);return c&&c.apply(j)}isFinite(h)?b(k*d(e/i)+f):b(d(e/i))}d=D(d)?d:K.easings[d]||E;var i=a||g,j=this,k=h-f,l=e(),m=0,n=0;w(o);return{stop:function(a){m=1;n=a;a||(c=null)}}}function G(a,b){var c=a.length,d=[],e,f;for(e=0;e<c;++e)d[e]=[a[e][0],a[e][1]];for(f=1;f<c;++f)for(e=0;e<c-f;++e){d[e][0]=(1-b)*d[e][0]+b*d[parseInt(e+1,10)][0];d[e][1]=(1-b)*d[e][1]+b*d[parseInt(e+1,10)][1]}return[d[0][0],d[0][1]]}function H(a,b,c){var d=[],e,f,g,h;for(e=0;e<6;e++){g=Math.min(15,parseInt(b.charAt(e),16));h=Math.min(15,parseInt(c.charAt(e),16));f=Math.floor((h-g)*a+g);f=f>15?15:f<0?0:f;d[e]=f.toString(16)}return"#"+d.join("")}function I(a,b,c,d,e,f,h){if(e=="transform"){h={};for(var i in c[f][e])h[i]=i in d[f][e]?Math.round(((d[f][e][i]-c[f][e][i])*a+c[f][e][i])*g)/g:c[f][e][i];return h}if(typeof c[f][e]=="string")return H(a,c[f][e],d[f][e]);h=Math.round(((d[f][e]-c[f][e])*a+c[f][e])*g)/g;e in o||(h+=b[f][e]||"px");return h}function J(a,b,c,d,e){return(c=i.exec(a))?(e=parseFloat(c[2]))&&b+(c[1]=="+"?1:-1)*e:parseFloat(a)}function K(a,b){var c=a?c=isFinite(a.length)?a:[a]:[],d,e=b.complete,f=b.duration,g=b.easing,i=b.bezier,k=[],l=[],m=[],n=[],o,s;if(i){o=b.left;s=b.top;delete b.right;delete b.bottom;delete b.left;delete b.top}for(d=c.length;d--;){k[d]={};l[d]={};m[d]={};if(i){var t=r(c[d],"left"),u=r(c[d],"top"),v=[J(D(o)?o(c[d]):o||0,parseFloat(t)),J(D(s)?s(c[d]):s||0,parseFloat(u))];n[d]=D(i)?i(c[d],v):i;n[d].push(v);n[d].unshift([parseInt(t,10),parseInt(u,10)])}for(var w in b){switch(w){case"complete":case"duration":case"easing":case"bezier":continue}var x=r(c[d],w),A,E=D(b[w])?b[w](c[d]):b[w];if(typeof E=="string"&&h.test(E)&&!h.test(x)){delete b[w];continue}k[d][w]=w=="transform"?y(x):typeof E=="string"&&h.test(E)?B(x).slice(1):parseFloat(x);l[d][w]=w=="transform"?y(E,k[d][w]):typeof E=="string"&&E.charAt(0)=="#"?B(E).slice(1):J(E,parseFloat(x));typeof E=="string"&&(A=E.match(j))&&(m[d][w]=A[1])}}return F.apply(c,[f,function(a,e,f){for(d=c.length;d--;){if(i){f=G(n[d],a);c[d].style.left=f[0]+"px";c[d].style.top=f[1]+"px"}for(var g in b){e=I(a,m,k,l,g,d);g=="transform"?c[d].style[p]=z(e):g=="opacity"&&!q?c[d].style.filter="alpha(opacity="+e*100+")":c[d].style[C(g)]=e}}},e,g])}var a=document,b=window,c=b.performance,d=c&&(c.now||c.webkitNow||c.msNow||c.mozNow),e=d?function(){return d.call(c)}:function(){return+(new Date)},f=a.documentElement,g=1e3,h=/^rgb\(|#/,i=/^([+\-])=([\d\.]+)/,j=/^(?:[\+\-]=)?\d+(?:\.\d+)?(%|in|cm|mm|em|ex|pt|pc|px)$/,k=/rotate\(((?:[+\-]=)?([\-\d\.]+))deg\)/,l=/scale\(((?:[+\-]=)?([\d\.]+))\)/,m=/skew\(((?:[+\-]=)?([\-\d\.]+))deg, ?((?:[+\-]=)?([\-\d\.]+))deg\)/,n=/translate\(((?:[+\-]=)?([\-\d\.]+))px, ?((?:[+\-]=)?([\-\d\.]+))px\)/,o={lineHeight:1,zoom:1,zIndex:1,opacity:1,transform:1},p=function(){var b=a.createElement("a").style,c=["webkitTransform","MozTransform","OTransform","msTransform","Transform"],d;for(d=0;d<c.length;d++)if(c[d]in b)return c[d]}(),q=function(){return typeof a.createElement("a").style.opacity!="undefined"}(),r=a.defaultView&&a.defaultView.getComputedStyle?function(b,c){c=c=="transform"?p:c;var d=null,e=a.defaultView.getComputedStyle(b,"");e&&(d=e[C(c)]);return b.style[c]||d}:f.currentStyle?function(a,b){b=C(b);if(b=="opacity"){var c=100;try{c=a.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(d){try{c=a.filters("alpha").opacity}catch(e){}}return c/100}var f=a.currentStyle?a.currentStyle[b]:null;return a.style[b]||f}:function(a,b){return a.style[C(b)]},s=function(){return b.requestAnimationFrame||b.webkitRequestAnimationFrame||b.mozRequestAnimationFrame||b.msRequestAnimationFrame||b.oRequestAnimationFrame||function(a){b.setTimeout(function(){a(+(new Date))},17)}}(),t=[];K.tween=F;K.getStyle=r;K.bezier=G;K.transform=p;K.parseTransform=y;K.formatTransform=z;K.easings={};return K});provide("morpheus",a.exports);var c=require("morpheus");!function(a){a.ender({animate:function(a){return c(this,a)},fadeIn:function(a,b){return c(this,{duration:a,opacity:1,complete:b})},fadeOut:function(a,b){return c(this,{duration:a,opacity:0,complete:b})}},!0);a.ender({tween:c.tween})}(ender)})();(function(){var a={exports:{}},b=a.exports;
Beispiel #9
0
!function(b,c,d){typeof a!="undefined"?a.exports=d(b,c):typeof define=="function"&&typeof define.amd=="object"?define(d):c[b]=d(b,c)}("bean",this,function(a,b){var c=window,d=b[a],e=/over|out/,f=/[^\.]*(?=\..*)\.|.*/,g=/\..*/,h="addEventListener",i="attachEvent",j="removeEventListener",k="detachEvent",l=document||{},m=l.documentElement||{},n=m[h],o=n?h:i,p=Array.prototype.slice,q=/click|mouse(?!(.*wheel|scroll))|menu|drag|drop/i,r=/mouse.*(wheel|scroll)/i,s=/^text/i,t=/^touch|^gesture/i,u={one:1},v=function(a,b,c){for(c=0;c<b.length;c++)a[b[c]]=1;return a}({},("click dblclick mouseup mousedown contextmenu mousewheel mousemultiwheel DOMMouseScroll mouseover mouseout mousemove selectstart selectend keydown keypress keyup orientationchange focus blur change reset select submit load unload beforeunload resize move DOMContentLoaded readystatechange error abort scroll "+(n?"show input invalid touchstart touchmove touchend touchcancel gesturestart gesturechange gestureend message readystatechange pageshow pagehide popstate hashchange offline online afterprint beforeprint dragstart dragenter dragover dragleave drag drop dragend loadstart progress suspend emptied stalled loadmetadata loadeddata canplay canplaythrough playing waiting seeking seeked ended durationchange timeupdate play pause ratechange volumechange cuechange checking noupdate downloading cached updateready obsolete ":"")).split(" ")),w=function(){function c(a){var c=a.relatedTarget;return c?c!==this&&c.prefix!=="xul"&&!/document/.test(this.toString())&&!b(c,this):c===null}var a="compareDocumentPosition",b=a in m?function(b,c){return c[a]&&(c[a](b)&16)===16}:"contains"in m?function(a,b){return b=b.nodeType===9||b===window?m:b,b!==a&&b.contains(a)}:function(a,b){while(a=a.parentNode)if(a===b)return 1;return 0};return{mouseenter:{base:"mouseover",condition:c},mouseleave:{base:"mouseout",condition:c},mousewheel:{base:/Firefox/.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel"}}}(),x=function(){var a="altKey attrChange attrName bubbles cancelable ctrlKey currentTarget detail eventPhase getModifierState isTrusted metaKey relatedNode relatedTarget shiftKey srcElement target timeStamp type view which".split(" "),b=a.concat("button buttons clientX clientY dataTransfer fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" ")),c=b.concat("wheelDelta wheelDeltaX wheelDeltaY wheelDeltaZ axis".split(" ")),d=a.concat("char charCode key keyCode keyIdentifier keyLocation".split(" ")),f=a.concat(["data"]),g=a.concat("touches targetTouches changedTouches scale rotation".split(" ")),h="preventDefault",i=function(a){return function(){a[h]?a[h]():a.returnValue=!1}},j="stopPropagation",k=function(a){return function(){a[j]?a[j]():a.cancelBubble=!0}},n=function(a){return function(){a[h](),a[j](),a.stopped=!0}},o=function(a,b,c){var d,e;for(d=c.length;d--;)e=c[d],!(e in b)&&e in a&&(b[e]=a[e])};return function(p,u){var v={originalEvent:p,isNative:u};if(!p)return v;var w,x=p.type,y=p.target||p.srcElement;v[h]=i(p),v[j]=k(p),v.stop=n(v),v.target=y&&y.nodeType===3?y.parentNode:y;if(u){if(x.indexOf("key")!==-1)w=d,v.keyCode=p.which||p.keyCode;else if(q.test(x)){w=b,v.rightClick=p.which===3||p.button===2,v.pos={x:0,y:0};if(p.pageX||p.pageY)v.clientX=p.pageX,v.clientY=p.pageY;else if(p.clientX||p.clientY)v.clientX=p.clientX+l.body.scrollLeft+m.scrollLeft,v.clientY=p.clientY+l.body.scrollTop+m.scrollTop;e.test(x)&&(v.relatedTarget=p.relatedTarget||p[(x==="mouseover"?"from":"to")+"Element"])}else t.test(x)?w=g:r.test(x)?w=c:s.test(x)&&(w=f);o(p,v,w||a)}return v}}(),y=function(a,b){return!n&&!b&&(a===l||a===c)?m:a},z=function(){function a(a,b,c,d,e){this.element=a,this.type=b,this.handler=c,this.original=d,this.namespaces=e,this.custom=w[b],this.isNative=v[b]&&a[o],this.eventType=n||this.isNative?b:"propertychange",this.customType=!n&&!this.isNative&&b,this.target=y(a,this.isNative),this.eventSupport=this.target[o]}return a.prototype={inNamespaces:function(a){var b,c;if(!a)return!0;if(!this.namespaces)return!1;for(b=a.length;b--;)for(c=this.namespaces.length;c--;)if(a[b]===this.namespaces[c])return!0;return!1},matches:function(a,b,c){return this.element===a&&(!b||this.original===b)&&(!c||this.handler===c)}},a}(),A=function(){var a={},b=function(c,d,e,f,g){if(!d||d==="*")for(var h in a)h.charAt(0)==="$"&&b(c,h.substr(1),e,f,g);else{var i=0,j,k=a["$"+d],l=c==="*";if(!k)return;for(j=k.length;i<j;i++)if(l||k[i].matches(c,e,f))if(!g(k[i],k,i,d))return}},c=function(b,c,d){var e,f=a["$"+c];if(f)for(e=f.length;e--;)if(f[e].matches(b,d,null))return!0;return!1},d=function(a,c,d){var e=[];return b(a,c,d,null,function(a){return e.push(a)}),e},e=function(b){return(a["$"+b.type]||(a["$"+b.type]=[])).push(b),b},f=function(c){b(c.element,c.type,null,c.handler,function(b,c,d){return c.splice(d,1),c.length===0&&delete a["$"+b.type],!1})},g=function(){var b,c=[];for(b in a)b.charAt(0)==="$"&&(c=c.concat(a[b]));return c};return{has:c,get:d,put:e,del:f,entries:g}}(),B=n?function(a,b,c,d){a[d?h:j](b,c,!1)}:function(a,b,c,d,e){e&&d&&a["_on"+e]===null&&(a["_on"+e]=0),a[d?i:k]("on"+b,c)},C=function(a,b,d){var e=b.__beanDel,f=function(f){return f=x(f||((this.ownerDocument||this.document||this).parentWindow||c).event,!0),e&&(f.currentTarget=e.ft(f.target,a)),b.apply(a,[f].concat(d))};return f.__beanDel=e,f},D=function(a,b,d,e,f,g){var h=b.__beanDel,i=function(i){var j=h?h.ft(i.target,a):this;if(e?e.apply(j,arguments):n?!0:i&&i.propertyName==="_on"+d||!i)i&&(i=x(i||((this.ownerDocument||this.document||this).parentWindow||c).event,g),i.currentTarget=j),b.apply(a,i&&(!f||f.length===0)?arguments:p.call(arguments,i?0:1).concat(f))};return i.__beanDel=h,i},E=function(a,b,c,d,e){return function(){a(b,c,e),d.apply(this,arguments)}},F=function(a,b,c,d){var e,f,h,i=b&&b.replace(g,""),j=A.get(a,i,c);for(e=0,f=j.length;e<f;e++)j[e].inNamespaces(d)&&((h=j[e]).eventSupport&&B(h.target,h.eventType,h.handler,!1,h.type),A.del(h))},G=function(a,b,c,d,e){var h,i=b.replace(g,""),j=b.replace(f,"").split(".");if(A.has(a,i,c))return a;i==="unload"&&(c=E(F,a,i,c,d)),w[i]&&(w[i].condition&&(c=D(a,c,i,w[i].condition,e,!0)),i=w[i].base||i),h=A.put(new z(a,i,c,d,j[0]&&j)),h.handler=h.isNative?C(a,h.handler,e):D(a,h.handler,i,!1,e,!1),h.eventSupport&&B(h.target,h.eventType,h.handler,!0,h.customType)},H=function(a,b,c){var d=function(b,d){var e,f=typeof a=="string"?c(a,d):a;for(;b&&b!==d;b=b.parentNode)for(e=f.length;e--;)if(f[e]===b)return b},e=function(a){var c=d(a.target,this);c&&b.apply(c,arguments)};return e.__beanDel={ft:d,selector:a,$:c},e},I=function(a,b,c){var d,e,h,i,j,k=F,l=b&&typeof b=="string";if(l&&b.indexOf(" ")>0){b=b.split(" ");for(j=b.length;j--;)I(a,b[j],c);return a}h=l&&b.replace(g,""),h&&w[h]&&(h=w[h].type);if(!b||l){if(i=l&&b.replace(f,""))i=i.split(".");k(a,h,c,i)}else if(typeof b=="function")k(a,null,b);else for(d in b)b.hasOwnProperty(d)&&I(a,d,b[d]);return a},J=function(a,b,c,d,e){var f,g,h,i,j=c,k=c&&typeof c=="string";if(b&&!c&&typeof b=="object")for(f in b)b.hasOwnProperty(f)&&J.apply(this,[a,f,b[f]]);else{i=arguments.length>3?p.call(arguments,3):[],g=(k?c:b).split(" "),k&&(c=H(b,j=d,e))&&(i=p.call(i,1)),this===u&&(c=E(I,a,b,c,j));for(h=g.length;h--;)G(a,g[h],c,j,i)}return a},K=function(){return J.apply(u,arguments)},L=n?function(a,b,d){var e=l.createEvent(a?"HTMLEvents":"UIEvents");e[a?"initEvent":"initUIEvent"](b,!0,!0,c,1),d.dispatchEvent(e)}:function(a,b,c){c=y(c,a),a?c.fireEvent("on"+b,l.createEventObject()):c["_on"+b]++},M=function(a,b,c){var d,e,h,i,j,k=b.split(" ");for(d=k.length;d--;){b=k[d].replace(g,"");if(i=k[d].replace(f,""))i=i.split(".");if(!i&&!c&&a[o])L(v[b],b,a);else{j=A.get(a,b),c=[!1].concat(c);for(e=0,h=j.length;e<h;e++)j[e].inNamespaces(i)&&j[e].handler.apply(a,c)}}return a},N=function(a,b,c){var d=0,e=A.get(b,c),f=e.length,g,h;for(;d<f;d++)e[d].original&&(h=e[d].handler.__beanDel,h?g=[a,h.selector,e[d].type,e[d].original,h.$]:g=[a,e[d].type,e[d].original],J.apply(null,g));return a},O={add:J,one:K,remove:I,clone:N,fire:M,noConflict:function(){return b[a]=d,this}};if(c[i]){var P=function(){var a,b=A.entries();for(a in b)b[a].type&&b[a].type!=="unload"&&I(b[a].element,b[a].type);c[k]("onunload",P),c.CollectGarbage&&c.CollectGarbage()};c[i]("onunload",P)}return O}),provide("bean",a.exports),!function(a){var b=require("bean"),c=function(c,d,e){var f=d?[d]:[];return function(){for(var e,g=0,h=this.length;g<h;g++)e=[this[g]].concat(f,Array.prototype.slice.call(arguments,0)),e.length==4&&e.push(a),!arguments.length&&c=="add"&&d&&(c="fire"),b[c].apply(this,e);return this}},d=c("add"),e=c("remove"),f=c("fire"),g={on:d,addListener:d,bind:d,listen:d,delegate:d,one:c("one"),off:e,unbind:e,unlisten:e,removeListener:e,undelegate:e,emit:f,trigger:f,cloneEvents:c("clone"),hover:function(a,c,d){for(d=this.length;d--;)b.add.call(this,this[d],"mouseenter",a),b.add.call(this,this[d],"mouseleave",c);return this}},h=["blur","change","click","dblclick","error","focus","focusin","focusout","keydown","keypress","keyup","load","mousedown","mouseenter","mouseleave","mouseout","mouseover","mouseup","mousemove","resize","scroll","select","submit","unload"];for(var i=h.length;i--;)g[h[i]]=c("add",h[i]);a.ender(g,!0)}(ender)}(),!function(){var a={exports:{}},b=a.exports;!function(b,c){typeof define=="function"?define(c):typeof a!="undefined"?a.exports=c():this[b]=this.domReady=c()}("domready",function(a){function l(a){k=1;while(a=b.shift())a()}var b=[],c,d=!1,e=document,f=e.documentElement,g=f.doScroll,h="DOMContentLoaded",i="addEventListener",j="onreadystatechange",k=/^loade|c/.test(e.readyState);return e[i]&&e[i](h,c=function(){e.removeEventListener(h,c,d),l()},d),g&&e.attachEvent(j,c=function(){/^c/.test(e.readyState)&&(e.detachEvent(j,c),l())}),a=g?function(c){self!=top?k?c():b.push(c):function(){try{f.doScroll("left")}catch(b){return setTimeout(function(){a(c)},50)}c()}()}:function(a){k?a():b.push(a)}}),provide("domready",a.exports),!function(a){var b=require("domready");a.ender({domReady:b}),a.ender({ready:function(a){return b(a),this}},!0)}(ender)}()
Beispiel #10
0
!function(b,c){typeof a!="undefined"?a.exports=c():typeof define=="function"&&define.amd?define(b,c):this[b]=c()}("bonzo",function(){function E(a){return new RegExp("(^|\\s+)"+a+"(\\s+|$)")}function F(a,b,c){for(var d=0,e=a.length;d<e;d++)b.call(c||a[d],a[d],d,a);return a}function G(a,b,c){for(var d=0,e=a.length;d<e;d++)M(a[d])&&(G(a[d].childNodes,b,c),b.call(c||a[d],a[d],d,a));return a}function H(a){return a.replace(/-(.)/g,function(a,b){return b.toUpperCase()})}function I(a){return a?a.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase():a}function J(a){return a[y]("data-node-uid")||a[x]("data-node-uid",++t),uid=a[y]("data-node-uid"),s[uid]||(s[uid]={})}function K(a){uid=a[y]("data-node-uid"),uid&&delete s[uid]}function L(a){try{return a==="true"?!0:a==="false"?!1:a==="null"?null:isNaN(a)?a:parseFloat(a)}catch(b){}return undefined}function M(a){return a&&a.nodeName&&a.nodeType==1}function N(a,b,c,d){for(d=0,j=a.length;d<j;++d)if(b.call(c,a[d],d,a))return!0;return!1}function O(a){return a=="transform"&&(a=A.transform)||/^transform-?[Oo]rigin$/.test(a)&&(a=A.transform+"Origin")||a=="float"&&(a=A.cssFloat),a?H(a):null}function Q(a,b,c){var d=0,g=b||this,h=[],i=f&&typeof a=="string"&&a.charAt(0)!="<"?f(a):a;return F(U(i),function(a){F(g,function(b){var f=!b[e]||b[e]&&!b[e][e]?function(){var a=b.cloneNode(!0);return g.$&&g.cloneEvents&&g.$(a).cloneEvents(b),a}():b;c(a,f),h[d]=f,d++})},this),F(h,function(a,b){g[b]=a}),g.length=d,g}function R(a,b,c){var d=Y(a),e=d.css("position"),f=d.offset(),g="relative",h=e==g,i=[parseInt(d.css("left"),10),parseInt(d.css("top"),10)];e=="static"&&(d.css("position",g),e=g),isNaN(i[0])&&(i[0]=h?0:a.offsetLeft),isNaN(i[1])&&(i[1]=h?0:a.offsetTop),b!=null&&(a.style.left=b-f.left+i[0]+w),c!=null&&(a.style.top=c-f.top+i[1]+w)}function S(a,b){return typeof b=="function"?b(a):b}function T(a){this.length=0;if(a){a=typeof a!="string"&&!a.nodeType&&typeof a.length!="undefined"?a:[a],this.length=a.length;for(var b=0;b<a.length;b++)this[b]=a[b]}}function U(a){return typeof a=="string"?Y.create(a):M(a)?[a]:a}function V(a,c,d){var e=this[0];return a==null&&c==null?(W(e)?X():{x:e.scrollLeft,y:e.scrollTop})[d]:(W(e)?b.scrollTo(a,c):(a!=null&&(e.scrollLeft=a),c!=null&&(e.scrollTop=c)),this)}function W(a){return a===b||/^(?:body|html)$/i.test(a.tagName)}function X(){return{x:b.pageXOffset||d.scrollLeft,y:b.pageYOffset||d.scrollTop}}function Y(a,b){return new T(a,b)}var a=this,b=window,c=b.document,d=c.documentElement,e="parentNode",f=null,g=/^checked|value|selected$/,h=/select|fieldset|table|tbody|tfoot|td|tr|colgroup/i,i=["<table>","</table>",1],k=["<table><tbody><tr>","</tr></tbody></table>",3],l=["<select>","</select>",1],m={thead:i,tbody:i,tfoot:i,colgroup:i,caption:i,tr:["<table><tbody>","</tbody></table>",2],th:k,td:k,col:["<table><colgroup>","</colgroup></table>",2],fieldset:["<form>","</form>",1],legend:["<form><fieldset>","</fieldset></form>",2],option:l,optgroup:l},n=/^checked|selected$/,o=/msie/i.test(navigator.userAgent),p,q,r,s={},t=0,u=/^-?[\d\.]+$/,v=/^data-(.+)$/,w="px",x="setAttribute",y="getAttribute",z="getElementsByTagName",A=function(){var a=c.createElement("p");return a.innerHTML='<a href="#x">x</a><table style="float:left;"></table>',{hrefExtended:a[z]("a")[0][y]("href")!="#x",autoTbody:a[z]("tbody").length!==0,computedStyle:c.defaultView&&c.defaultView.getComputedStyle,cssFloat:a[z]("table")[0].style.styleFloat?"styleFloat":"cssFloat",transform:function(){var b=["webkitTransform","MozTransform","OTransform","msTransform","Transform"],c;for(c=0;c<b.length;c++)if(b[c]in a.style)return b[c]}(),classList:"classList"in a}}(),B=/(^\s*|\s*$)/g,C={lineHeight:1,zoom:1,zIndex:1,opacity:1},D=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(B,"")},P=A.computedStyle?function(a,b){var d=null,e=c.defaultView.getComputedStyle(a,"");return e&&(d=e[b]),a.style[b]||d}:o&&d.currentStyle?function(a,b){if(b=="opacity"){var c=100;try{c=a.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(d){try{c=a.filters("alpha").opacity}catch(e){}}return c/100}var f=a.currentStyle?a.currentStyle[b]:null;return a.style[b]||f}:function(a,b){return a.style[b]};return A.classList?(p=function(a,b){return N(b.toString().split(" "),function(b){return a.classList.contains(b)})},q=function(a,b){F(b.toString().split(" "),function(b){a.classList.add(b)})},r=function(a,b){a.classList.remove(b)}):(p=function(a,b){return E(b).test(a.className)},q=function(a,b){a.className=D(a.className+" "+b)},r=function(a,b){a.className=D(a.className.replace(E(b)," "))}),T.prototype={get:function(a){return this[a]||null},each:function(a,b){return F(this,a,b)},deepEach:function(a,b){return G(this,a,b)},map:function(a,b){var c=[],d,e;for(e=0;e<this.length;e++)d=a.call(this,this[e],e),b?b(d)&&c.push(d):c.push(d);return c},html:function(a,b){function f(b){F(U(a),function(a){b.appendChild(a)})}var c=b?d.textContent===undefined?"innerText":"textContent":"innerHTML",e;return typeof a!="undefined"?this.empty().each(function(d){!b&&(e=d.tagName.match(h))?f(d,e[0]):!function(){try{d[c]=a}catch(b){f(d)}}()}):this[0]?this[0][c]:""},text:function(a){return this.html(a,1)},append:function(a){return this.each(function(b){F(U(a),function(a){b.appendChild(a)})})},prepend:function(a){return this.each(function(b){var c=b.firstChild;F(U(a),function(a){b.insertBefore(a,c)})})},appendTo:function(a,b){return Q.call(this,a,b,function(a,b){a.appendChild(b)})},prependTo:function(a,b){return Q.call(this,a,b,function(a,b){a.insertBefore(b,a.firstChild)})},before:function(a){return this.each(function(b){F(Y.create(a),function(a){b[e].insertBefore(a,b)})})},after:function(a){return this.each(function(b){F(Y.create(a),function(a){b[e].insertBefore(a,b.nextSibling)})})},insertBefore:function(a,b){return Q.call(this,a,b,function(a,b){a[e].insertBefore(b,a)})},insertAfter:function(a,b){return Q.call(this,a,b,function(a,b){var c=a.nextSibling;c?a[e].insertBefore(b,c):a[e].appendChild(b)})},replaceWith:function(a){return this.deepEach(K),this.each(function(b){b.parentNode.replaceChild(Y.create(a)[0],b)})},addClass:function(a){return this.each(function(b){p(b,S(b,a))||q(b,S(b,a))})},removeClass:function(a){return this.each(function(b){p(b,S(b,a))&&r(b,S(b,a))})},hasClass:function(a){return N(this,function(b){return p(b,a)})},toggleClass:function(a,b){return this.each(function(c){typeof b!="undefined"?b?q(c,a):r(c,a):p(c,a)?r(c,a):q(c,a)})},show:function(a){return this.each(function(b){b.style.display=a||""})},hide:function(){return this.each(function(a){a.style.display="none"})},toggle:function(a,b){return this.each(function(a){a.style.display=a.offsetWidth||a.offsetHeight?"none":b||""}),a&&a(),this},first:function(){return Y(this.length?this[0]:[])},last:function(){return Y(this.length?this[this.length-1]:[])},next:function(){return this.related("nextSibling")},previous:function(){return this.related("previousSibling")},parent:function(){return this.related("parentNode")},related:function(a){return this.map(function(b){b=b[a];while(b&&b.nodeType!==1)b=b[a];return b||0},function(a){return a})},focus:function(){return this.length>0?this[0].focus():null},blur:function(){return this.each(function(a){a.blur()})},css:function(a,d,e){function g(a,b,c){for(var d in f)f.hasOwnProperty(d)&&(c=f[d],(b=O(d))&&u.test(c)&&!(b in C)&&(c+=w),a.style[b]=S(a,c))}if(d===undefined&&typeof a=="string")return d=this[0],d?d===c||d===b?(e=d===c?Y.doc():Y.viewport(),a=="width"?e.width:a=="height"?e.height:""):(a=O(a))?P(d,a):null:null;var f=a;return typeof a=="string"&&(f={},f[a]=d),o&&f.opacity&&(f.filter="alpha(opacity="+f.opacity*100+")",f.zoom=a.zoom||1,delete f.opacity),this.each(g)},offset:function(a,b){if(typeof a=="number"||typeof b=="number")return this.each(function(c){R(c,a,b)});if(!this[0])return{top:0,left:0,height:0,width:0};var c=this[0],d=c.offsetWidth,e=c.offsetHeight,f=c.offsetTop,g=c.offsetLeft;while(c=c.offsetParent)f+=c.offsetTop,g+=c.offsetLeft;return{top:f,left:g,height:e,width:d}},dim:function(){var a=this[0],b=!a.offsetWidth&&!a.offsetHeight?function(b,c){return c={position:a.style.position||"",visibility:a.style.visibility||"",display:a.style.display||""},b.first().css({position:"absolute",visibility:"hidden",display:"block"}),c}(this):null,c=a.offsetWidth,d=a.offsetHeight;return b&&this.first().css(b),{height:d,width:c}},attr:function(a,b){var c=this[0];if(typeof a=="string"||a instanceof String)return typeof b=="undefined"?g.test(a)?n.test(a)&&typeof c[a]=="string"?!0:c[a]:a!="href"&&a!="src"||!A.hrefExtended?c[y](a):c[y](a,2):this.each(function(c){g.test(a)?c[a]=S(c,b):c[x](a,S(c,b))});for(var d in a)a.hasOwnProperty(d)&&this.attr(d,a[d]);return this},removeAttr:function(a){return this.each(function(b){n.test(a)?b[a]=!1:b.removeAttribute(a)})},val:function(a){return typeof a=="string"?this.attr("value",a):this[0].value},data:function(a,b){var c=this[0],d,e,f;return typeof b=="undefined"?(e=J(c),typeof a=="undefined"?(F(c.attributes,function(a){(f=(""+a.name).match(v))&&(e[H(f[1])]=L(a.value))}),e):typeof e[a]=="undefined"?e[a]=L(this.attr("data-"+I(a))):e[a]):this.each(function(c){J(c)[a]=b})},remove:function(){return this.deepEach(K),this.each(function(a){a[e]&&a[e].removeChild(a)})},empty:function(){return this.each(function(a){G(a.childNodes,K);while(a.firstChild)a.removeChild(a.firstChild)})},detach:function(){return this.map(function(a){return a[e].removeChild(a)})},scrollTop:function(a){return V.call(this,null,a,"y")},scrollLeft:function(a){return V.call(this,a,null,"x")}},Y.setQueryEngine=function(a){f=a,delete Y.setQueryEngine},Y.aug=function(a,b){for(var c in a)a.hasOwnProperty(c)&&((b||T.prototype)[c]=a[c])},Y.create=function(a){return typeof a=="string"&&a!==""?function(){var b=/^\s*<([^\s>]+)/.exec(a),d=c.createElement("div"),f=[],g=b?m[b[1].toLowerCase()]:null,h=g?g[2]+1:1,i=e,j=A.autoTbody&&g&&g[0]=="<table>"&&!/<tbody/i.test(a);d.innerHTML=g?g[0]+a+g[1]:a;while(h--)d=d.firstChild;do(!b||d.nodeType==1)&&(!j||d.tagName.toLowerCase()!="tbody")&&f.push(d);while(d=d.nextSibling);return F(f,function(a){a[i]&&a[i].removeChild(a)}),f}():M(a)?[a.cloneNode(!0)]:[]},Y.doc=function(){var a=Y.viewport();return{width:Math.max(c.body.scrollWidth,d.scrollWidth,a.width),height:Math.max(c.body.scrollHeight,d.scrollHeight,a.height)}},Y.firstChild=function(a){for(var b=a.childNodes,c=0,d=b&&b.length||0,e;c<d;c++)b[c].nodeType===1&&(e=b[d=c]);return e},Y.viewport=function(){return{width:o?d.clientWidth:self.innerWidth,height:o?d.clientHeight:self.innerHeight}},Y.isAncestor="compareDocumentPosition"in d?function(a,b){return(a.compareDocumentPosition(b)&16)==16}:"contains"in d?function(a,b){return a!==b&&a.contains(b)}:function(a,b){while(b=b[e])if(b===a)return!0;return!1},Y}),provide("bonzo",a.exports),!function(a){function c(a,b){for(var c=0;c<a.length;c++)if(a[c]===b)return c;return-1}function d(a){var b=[],c=0,d=0,e,f,g;for(;f=a[c];++c){g=!1;for(e=0;e<b.length;++e)if(b[e]===f){g=!0;break}g||(b[d++]=f)}return b}function e(a,b,c){return a?b.css(c,a):function(a){return b[0]?(a=parseInt(b.css(c),10),isNaN(a)?b[0]["offset"+c.replace(/^\w/,function(a){return a.toUpperCase()})]:a):0}()}var b=require("bonzo");b.setQueryEngine(a),a.ender(b),a.ender(b(),!0),a.ender({create:function(c){return a(b.create(c))}}),a.id=function(b){return a([document.getElementById(b)])},a.ender({parents:function(b,e){var f=a(b),g,h,i,j=[];for(g=0,h=this.length;g<h;g++){i=this[g];while(i=i.parentNode)if(~c(f,i)){j.push(i);if(e)break}}return a(d(j))},parent:function(){return a(d(b(this).parent()))},closest:function(a){return this.parents(a,!0)},first:function(){return a(this.length?this[0]:this)},last:function(){return a(this.length?this[this.length-1]:[])},next:function(){return a(b(this).next())},previous:function(){return a(b(this).previous())},appendTo:function(a){return b(this.selector).appendTo(a,this)},prependTo:function(a){return b(this.selector).prependTo(a,this)},insertAfter:function(a){return b(this.selector).insertAfter(a,this)},insertBefore:function(a){return b(this.selector).insertBefore(a,this)},siblings:function(){var b,c,d,e=[];for(b=0,c=this.length;b<c;b++){d=this[b];while(d=d.previousSibling)d.nodeType==1&&e.push(d);d=this[b];while(d=d.nextSibling)d.nodeType==1&&e.push(d)}return a(e)},children:function(){var c,e,f=[];for(c=0,l=this.length;c<l;c++){if(!(e=b.firstChild(this[c])))continue;f.push(e);while(e=e.nextSibling)e.nodeType==1&&f.push(e)}return a(d(f))},height:function(a){return e(a,this,"height")},width:function(a){return e(a,this,"width")}},!0)}(ender)}(),!function(){var a={exports:{}},b=a.exports;
Beispiel #11
0
!function(b,c){typeof a!="undefined"?a.exports=c():typeof define=="function"&&typeof define.amd=="object"?define(c):this[b]=c()}("qwery",function(){function C(){this.c={}}function H(a){return D.g(a)||D.s(a,"(^|\\s+)"+a+"(\\s+|$)",1)}function I(a,b){var c=0,d=a.length;for(;c<d;c++)b(a[c])}function J(a){for(var b=[],c=0,d=a.length;c<d;++c)V(a[c])?b=b.concat(a[c]):b[b.length]=a[c];return b}function K(a){var b=0,c=a.length,d=[];for(;b<c;b++)d[b]=a[b];return d}function L(a){while(a=a.previousSibling)if(a[h]==1)break;return a}function M(a){return a.match(A)}function N(a,b,c,d,e,f,i,l,m,n,o){var p,q,r,s,t;if(this[h]!==1)return!1;if(b&&b!=="*"&&this[g]&&this[g].toLowerCase()!==b)return!1;if(c&&(q=c.match(j))&&q[1]!==this.id)return!1;if(c&&(t=c.match(k)))for(p=t.length;p--;)if(!H(t[p].slice(1)).test(this.className))return!1;if(m&&Y.pseudos[m]&&!Y.pseudos[m](this,o))return!1;if(d&&!i){s=this.attributes;for(r in s)if(Object.prototype.hasOwnProperty.call(s,r)&&(s[r].name||r)==e)return this}return d&&!P(f,_(this,e)||"",i)?!1:this}function O(a){return E.g(a)||E.s(a,a.replace(t,"\\$1"))}function P(a,b,c){switch(a){case"=":return b==c;case"^=":return b.match(F.g("^="+c)||F.s("^="+c,"^"+O(c),1));case"$=":return b.match(F.g("$="+c)||F.s("$="+c,O(c)+"$",1));case"*=":return b.match(F.g(c)||F.s(c,O(c),1));case"~=":return b.match(F.g("~="+c)||F.s("~="+c,"(?:^|\\s+)"+O(c)+"(?:\\s+|$)",1));case"|=":return b.match(F.g("|="+c)||F.s("|="+c,"^"+O(c)+"(-|$)",1))}return 0}function Q(a,b){var c=[],e=[],f,i,j,k,m,n,o,p,q=b,r=G.g(a)||G.s(a,a.split(z)),s=a.match(y);if(!r.length)return c;k=(r=r.slice(0)).pop(),r.length&&(j=r[r.length-1].match(l))&&(q=X(b,j[1]));if(!q)return c;o=M(k),n=q!==b&&q[h]!==9&&s&&/^[+~]$/.test(s[s.length-1])?function(a){while(q=q.nextSibling)q[h]==1&&(o[1]?o[1]==q[g].toLowerCase():1)&&(a[a.length]=q);return a}([]):q[d](o[1]||"*");for(f=0,i=n.length;f<i;f++)if(p=N.apply(n[f],o))c[c.length]=p;return r.length?(I(c,function(a){S(a,r,s)&&(e[e.length]=a)}),e):c}function R(a,b,c){if(T(b))return a==b;if(V(b))return!!~J(b).indexOf(a);var d=b.split(","),e,f;while(b=d.pop()){e=G.g(b)||G.s(b,b.split(z)),f=b.match(y),e=e.slice(0);if(N.apply(a,M(e.pop()))&&(!e.length||S(a,e,f,c)))return!0}return!1}function S(a,b,c,d){function f(a,d,g){while(g=B[c[d]](g,a))if(T(g)&&N.apply(g,M(b[d]))){if(!d)return g;if(e=f(g,d-1,g))return e}}var e;return(e=f(a,b.length-1,a))&&(!d||$(e,d))}function T(a,b){return a&&typeof a=="object"&&(b=a[h])&&(b==1||b==9)}function U(a){var b=[],c,d;a:for(c=0;c<a.length;++c){for(d=0;d<b.length;++d)if(b[d]==a[c])continue a;b[b.length]=a[c]}return b}function V(a){return typeof a=="object"&&isFinite(a.length)}function W(b){return b?typeof b=="string"?Y(b)[0]:!b[h]&&V(b)?b[0]:b:a}function X(a,b,c){return a[h]===9?a.getElementById(b):a.ownerDocument&&((c=a.ownerDocument.getElementById(b))&&$(c,a)&&c||!$(a,a.ownerDocument)&&i('[id="'+b+'"]',a)[0])}function Y(a,b){var e,f,g=W(b);if(!g||!a)return[];if(a===window||T(a))return!b||a!==window&&T(g)&&$(a,g)?[a]:[];if(a&&V(a))return J(a);if(e=a.match(x)){if(e[1])return(f=X(g,e[1]))?[f]:[];if(e[2])return K(g[d](e[2]));if(ba&&e[3])return K(g[c](e[3]))}return i(a,g)}function Z(a,b){return function(c){var d,e;if(p.test(c)){a[h]!==9&&((e=d=a.getAttribute("id"))||a.setAttribute("id",e="__qwerymeupscotty"),c='[id="'+e+'"]'+c,b(a.parentNode||a,c,!0),d||a.removeAttribute("id"));return}c.length&&b(a,c,!1)}}var a=document,b=a.documentElement,c="getElementsByClassName",d="getElementsByTagName",e="querySelectorAll",f="useNativeQSA",g="tagName",h="nodeType",i,j=/#([\w\-]+)/,k=/\.[\w\-]+/g,l=/^#([\w\-]+)$/,m=/^\.([\w\-]+)$/,n=/^([\w\-]+)$/,o=/^([\w]+)?\.([\w\-]+)$/,p=/(^|,)\s*[>~+]/,q=/^\s+|\s*([,\s\+\~>]|$)\s*/g,r=/[\s\>\+\~]/,s=/(?![\s\w\-\/\?\&\=\:\.\(\)\!,@#%<>\{\}\$\*\^'"]*\]|[\s\w\+\-]*\))/,t=/([.*+?\^=!:${}()|\[\]\/\\])/g,u=/^(\*|[a-z0-9]+)?(?:([\.\#]+[\w\-\.#]+)?)/,v=/\[([\w\-]+)(?:([\|\^\$\*\~]?\=)['"]?([ \w\-\/\?\&\=\:\.\(\)\!,@#%<>\{\}\$\*\^]+)["']?)?\]/,w=/:([\w\-]+)(\(['"]?([^()]+)['"]?\))?/,x=new RegExp(l.source+"|"+n.source+"|"+m.source),y=new RegExp("("+r.source+")"+s.source,"g"),z=new RegExp(r.source+s.source),A=new RegExp(u.source+"("+v.source+")?"+"("+w.source+")?"),B={" ":function(a){return a&&a!==b&&a.parentNode},">":function(a,b){return a&&a.parentNode==b.parentNode&&a.parentNode},"~":function(a){return a&&a.previousSibling},"+":function(a,b,c,d){return a?(c=L(a))&&(d=L(b))&&c==d&&c:!1}};C.prototype={g:function(a){return this.c[a]||undefined},s:function(a,b,c){return b=c?new RegExp(b):b,this.c[a]=b}};var D=new C,E=new C,F=new C,G=new C,$="compareDocumentPosition"in b?function(a,b){return(b.compareDocumentPosition(a)&16)==16}:"contains"in b?function(a,c){return c=c[h]===9||c==window?b:c,c!==a&&c.contains(a)}:function(a,b){while(a=a.parentNode)if(a===b)return 1;return 0},_=function(){var b=a.createElement("p");return(b.innerHTML='<a href="#x">x</a>')&&b.firstChild.getAttribute("href")!="#x"?function(a,b){return b==="class"?a.className:b==="href"||b==="src"?a.getAttribute(b,2):a.getAttribute(b)}:function(a,b){return a.getAttribute(b)}}(),ba=!!a[c],bb=a.querySelector&&a[e],bc=function(a,b){var c=[],d,f;try{return b[h]===9||!p.test(a)?K(b[e](a)):(I(d=a.split(","),Z(b,function(a,b){f=a[e](b),f.length==1?c[c.length]=f.item(0):f.length&&(c=c.concat(K(f)))})),d.length>1&&c.length>1?U(c):c)}catch(g){}return bd(a,b)},bd=function(a,b){var c=[],e,f,g,i,j,k;a=a.replace(q,"$1");if(f=a.match(o)){j=H(f[2]),e=b[d](f[1]||"*");for(g=0,i=e.length;g<i;g++)j.test(e[g].className)&&(c[c.length]=e[g]);return c}return I(k=a.split(","),Z(b,function(a,d,e){j=Q(d,a);for(g=0,i=j.length;g<i;g++)if(a[h]===9||e||$(j[g],b))c[c.length]=j[g]})),k.length>1&&c.length>1?U(c):c},be=function(a){typeof a[f]!="undefined"&&(i=a[f]?bb?bc:bd:bd)};return be({useNativeQSA:!0}),Y.configure=be,Y.uniq=U,Y.is=R,Y.pseudos={},Y}),provide("qwery",a.exports),!function(a,b){var c=require("qwery");b.pseudos=c.pseudos,b._select=function(a,d){return(b._select=function(a){try{return a=require("bonzo"),function(b,d){return/^\s*</.test(b)?a.create(b,d):c(b,d)}}catch(b){}return c}())(a,d)},b.ender({find:function(a){var d=[],e,f,g,h,i;for(e=0,f=this.length;e<f;e++){i=c(a,this[e]);for(g=0,h=i.length;g<h;g++)d.push(i[g])}return b(c.uniq(d))},and:function(a){var c=b(a);for(var d=this.length,e=0,f=this.length+c.length;d<f;d++,e++)this[d]=c[e];return this},is:function(a,b){var d,e;for(d=0,e=this.length;d<e;d++)if(c.is(this[d],a,b))return!0;return!1}},!0)}(document,ender)}(),!function(){var a={exports:{}},b=a.exports;
Beispiel #12
0
!function(a){function c(){var a,d,e,f,g,h=arguments[0],i=1,j=arguments.length;for(;i<j;i++)if((a=arguments[i])!==null)for(d in a){e=h[d],f=a[d];if(h===f)continue;f&&b.obj(f)?(g=e&&b.obj(e)?e:{},h[d]=c(g,f)):f!==undefined&&(h[d]=f)}return h}function d(a){if(null==a||"object"!=typeof a)return a;var b=a.constructor();for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b}function e(a,b){this.init(a,b)}function f(a){this.init(a)}var b={fun:function(a){return typeof a=="function"},arr:function(a){return a instanceof Array},obj:function(a){return a instanceof Object&&!b.fun(a)&&!b.arr(a)}};e.prototype={init:function(a,b){this.options={top:80,position:"absolute",cssClass:"ender-overlay",close:".close",trigger:null,zIndex:9999,showMask:!0,closeOnEsc:!0,closeOnMaskClick:!0,autoOpen:!1,allowMultipleDisplay:!1,animation:!0,startAnimationCss:{opacity:.01},animationIn:{opacity:1,duration:250},animationOut:{opacity:0,duration:250},mask:{},onBeforeOpen:function(){},onBeforeClose:function(){},onOpen:function(){},onClose:function(){}},this.setOptions(b),this.$overlay=a,this.options.showMask&&this.initMask(),this.$overlay.attr("data-overlayloaded")||(this.attachEvents(),this.$overlay.attr("data-overlayloaded",1)),this.options.animation&&!a.animate&&(this.options.animation=!1),this.options.autoOpen&&this.open()},attachEvents:function(){var b=this,c=this.options;c.trigger&&a(c.trigger).length&&a(c.trigger).click(function(a){a.preventDefault(),b.open()}),this.$overlay.delegate(c.close,"click",function(a){a.preventDefault(),b.close()}),a(document).bind("ender-overlay.close",function(){b.close()}),a(document).bind("ender-overlay.closeOverlay",function(){b.close(!0)}),c.closeOnEsc&&a(document).keyup(function(a){b.onKeyUp(a)}),this.mask&&c.closeOnMaskClick&&this.mask.getMask().click(function(){b.close()})},initMask:function(){this.options.mask.durationIn||(this.options.mask.durationIn=this.options.animationIn.duration),this.options.mask.durationOut||(this.options.mask.durationOut=this.options.animationOut.duration),typeof this.options.mask.animation!="boolean"&&(this.options.mask.animation=this.options.animation),this.mask=new f(this.options.mask)},setupOverlay:function(){var b=this.options.top,c=a(window).scrollTop(),d=this.$overlay.width();this.$overlay.addClass(this.options.cssClass).appendTo("body"),this.options.position==="absolute"&&(b+=c),d===0&&(this.$overlay.css({display:"block",position:"absolute",left:-9999}),d=this.$overlay.width()),this.$overlay.css({display:"none",position:this.options.position,top:b,left:"50%",zIndex:this.options.zIndex,marginLeft:d/2*-1})},open:function(b){var e=this.options,f=this,g=d(e.animationIn);if(this.$overlay.css("display")==="block"||e.onBeforeOpen(this)===!1)return;this.setupOverlay(),e.allowMultipleDisplay||a(document).trigger("ender-overlay.closeOverlay"),e.animation?(e.startAnimationCss.opacity===0&&(e.startAnimationCss.opacity=.01),this.$overlay.css(c({display:"block"},e.startAnimationCss)),this.$overlay.animate(c(g,{complete:function(){g.opacity===1&&f.$overlay.css({filter:""}),f.options.onOpen(f)}}))):(this.$overlay.css({display:"block"}),e.onOpen(this)),this.mask&&typeof b=="undefined"&&this.mask.show()},close:function(a){var b=this.options;if(b.onBeforeClose(this)===!1||this.$overlay.css("display")==="none")return;if(b.animation){var e=this,f=d(b.animationOut);this.$overlay.animate(c(f,{complete:function(){e.$overlay.css({display:"none"}),e.options.onClose(e)}}))}else this.$overlay.css({display:"none"}),b.onClose(this);this.mask&&typeof a=="undefined"&&this.mask.hide()},onKeyUp:function(a){a.keyCode===27&&this.$overlay.css("display")!=="none"&&this.close()},getOverlay:function(){return this.$overlay},getOptions:function(){return this.options},setOptions:function(a){c(this.options,a||{})}},f.prototype={init:function(b){this.options={id:"ender-overlay-mask",zIndex:9998,opacity:.6,color:"#777"},c(this.options,b||{});var d=a("#"+this.options.id);d.length||(d=a("<div></div>").attr("id",this.options.id).css({display:"none",position:"absolute",top:0,left:0}).appendTo("body")),this.options.animation&&!d.animate&&(this.options.animation=!1),this.$mask=d},show:function(){var b=this.options;this.$mask.css({zIndex:b.zIndex,backgroundColor:b.color,width:a(document).width(),height:a(document).height()}),this.options.animation?this.$mask.css({opacity:.01,display:"block"}).animate({opacity:b.opacity,duration:b.durationIn}):this.$mask.css({display:"block",opacity:b.opacity})},hide:function(){if(this.options.animation){var a=this;this.$mask.animate({opacity:0,duration:this.options.durationOut,complete:function(){a.$mask.css({display:"none"})}})}else this.$mask.css({display:"none"})},getMask:function(){return this.$mask}},a.ender({overlay:function(b){var c=a(this).first();return new e(c,b)}},!0)}(ender),provide("ender-overlay",a.exports)}(),!function(){var a={exports:{}},b=a.exports;
Beispiel #13
0
!function(b,c){typeof define=="function"?define(c):typeof a!="undefined"?a.exports=c():this[b]=c()}("morpheus",function(){function q(a,b){var c={},d;if(d=a.match(h))c.rotate=A(d[1],b?b.rotate:null);if(d=a.match(i))c.scale=A(d[1],b?b.scale:null);if(d=a.match(j))c.skewx=A(d[1],b?b.skewx:null),c.skewy=A(d[3],b?b.skewy:null);if(d=a.match(k))c.translatex=A(d[1],b?b.translatex:null),c.translatey=A(d[3],b?b.translatey:null);return c}function r(a){var b="";return"rotate"in a&&(b+="rotate("+a.rotate+"deg) "),"scale"in a&&(b+="scale("+a.scale+") "),"translatex"in a&&(b+="translate("+a.translatex+"px,"+a.translatey+"px) "),"skewx"in a&&(b+="skew("+a.skewx+"deg,"+a.skewy+"deg)"),b}function s(a,b,c){return"#"+(1<<24|a<<16|b<<8|c).toString(16).slice(1)}function t(a){var b=/rgba?\((\d+),\s*(\d+),\s*(\d+)/.exec(a);return(b?s(b[1],b[2],b[3]):a).replace(/#(\w)(\w)(\w)$/,"#$1$1$2$2$3$3")}function u(a){return a.replace(/-(.)/g,function(a,b){return b.toUpperCase()})}function v(a){return typeof a=="function"}function w(a,b,c,d,e,f){function l(a){var m=a-i;if(m>g||j)return f=isFinite(f)?f:1,j?k&&b(f):b(f),c&&c();isFinite(f)?b(h*d(m/g)+e):b(d(m/g)),p(l)}d=v(d)?d:B.easings[d]||function(a){return Math.sin(a*Math.PI/2)};var g=a||1e3,h=f-e,i=+(new Date),j=0,k=0;return p(l),{stop:function(a){j=1,k=a,a||(c=null)}}}function x(a,b){var c=a.length,d=[],e,f;for(e=0;e<c;++e)d[e]=[a[e][0],a[e][1]];for(f=1;f<c;++f)for(e=0;e<c-f;++e)d[e][0]=(1-b)*d[e][0]+b*d[parseInt(e+1,10)][0],d[e][1]=(1-b)*d[e][1]+b*d[parseInt(e+1,10)][1];return[d[0][0],d[0][1]]}function y(a,b,c){var d=[],e,f;for(e=0;e<6;e++)from=Math.min(15,parseInt(b.charAt(e),16)),to=Math.min(15,parseInt(c.charAt(e),16)),f=Math.floor((to-from)*a+from),f=f>15?15:f<0?0:f,d[e]=f.toString(16);return"#"+d.join("")}function z(a,b,c,d,e,f,g){if(e=="transform"){g={};for(var h in c[f][e])g[h]=h in d[f][e]?Math.round(((d[f][e][h]-c[f][e][h])*a+c[f][e][h])*1e3)/1e3:c[f][e][h];return g}return typeof c[f][e]=="string"?y(a,c[f][e],d[f][e]):(g=Math.round(((d[f][e]-c[f][e])*a+c[f][e])*1e3)/1e3,e in l||(g+=b[f][e]||"px"),g)}function A(a,b,c,d,e){return(c=f.exec(a))?(e=parseFloat(c[2]))&&b+(c[1]=="+"?1:-1)*e:parseFloat(a)}function B(a,b){var c=a?c=isFinite(a.length)?a:[a]:[],d,f=b.complete,h=b.duration,i=b.easing,j=b.bezier,k=[],l=[],p=[],s=[],y,B;delete b.complete,delete b.duration,delete b.easing,delete b.bezier,j&&(y=b.left,B=b.top,delete b.right,delete b.bottom,delete b.left,delete b.top);for(d=c.length;d--;){k[d]={},l[d]={},p[d]={};if(j){var C=o(c[d],"left"),D=o(c[d],"top"),E=[A(v(y)?y(c[d]):y||0,parseFloat(C)),A(v(B)?B(c[d]):B||0,parseFloat(D))];s[d]=v(j)?j(c[d],E):j,s[d].push(E),s[d].unshift([parseInt(C,10),parseInt(D,10)])}for(var F in b){var G=o(c[d],F),H,I=v(b[F])?b[F](c[d]):b[F];if(typeof I=="string"&&e.test(I)&&!e.test(G)){delete b[F];continue}k[d][F]=F=="transform"?q(G):typeof I=="string"&&e.test(I)?t(G).slice(1):parseFloat(G),l[d][F]=F=="transform"?q(I,k[d][F]):typeof I=="string"&&I.charAt(0)=="#"?t(I).slice(1):A(I,parseFloat(G)),typeof I=="string"&&(H=I.match(g))&&(p[d][F]=H[1])}}return w(h,function(a,e,f){for(d=c.length;d--;){j&&(f=x(s[d],a),c[d].style.left=f[0]+"px",c[d].style.top=f[1]+"px");for(var g in b)e=z(a,p,k,l,g,d),g=="transform"?c[d].style[m]=r(e):g=="opacity"&&!n?c[d].style.filter="alpha(opacity="+e*100+")":c[d].style[u(g)]=e}},f,i)}var a=this,b=document,c=window,d=b.documentElement,e=/^rgb\(|#/,f=/^([+\-])=([\d\.]+)/,g=/^(?:[\+\-]=)?\d+(?:\.\d+)?(%|in|cm|mm|em|ex|pt|pc|px)$/,h=/rotate\(((?:[+\-]=)?([\-\d\.]+))deg\)/,i=/scale\(((?:[+\-]=)?([\d\.]+))\)/,j=/skew\(((?:[+\-]=)?([\-\d\.]+))deg, ?((?:[+\-]=)?([\-\d\.]+))deg\)/,k=/translate\(((?:[+\-]=)?([\-\d\.]+))px, ?((?:[+\-]=)?([\-\d\.]+))px\)/,l={lineHeight:1,zoom:1,zIndex:1,opacity:1,transform:1},m=function(){var a=b.createElement("a").style,c=["webkitTransform","MozTransform","OTransform","msTransform","Transform"],d;for(d=0;d<c.length;d++)if(c[d]in a)return c[d]}(),n=function(){return typeof b.createElement("a").style.opacity!="undefined"}(),o=b.defaultView&&b.defaultView.getComputedStyle?function(a,c){c=c=="transform"?m:c;var d=null,e=b.defaultView.getComputedStyle(a,"");return e&&(d=e[u(c)]),a.style[c]||d}:d.currentStyle?function(a,b){b=u(b);if(b=="opacity"){var c=100;try{c=a.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(d){try{c=a.filters("alpha").opacity}catch(e){}}return c/100}var f=a.currentStyle?a.currentStyle[b]:null;return a.style[b]||f}:function(a,b){return a.style[u(b)]},p=function(){return c.requestAnimationFrame||c.webkitRequestAnimationFrame||c.mozRequestAnimationFrame||c.oRequestAnimationFrame||c.msRequestAnimationFrame||function(a){c.setTimeout(function(){a(+(new Date))},10)}}();return B.tween=w,B.getStyle=o,B.bezier=x,B.transform=m,B.parseTransform=q,B.formatTransform=r,B.easings={},B}),provide("morpheus",a.exports);var c=require("morpheus");!function(a){a.ender({animate:function(a){return c(this,a)},fadeIn:function(a,b){return c(this,{duration:a,opacity:1,complete:b})},fadeOut:function(a,b){return c(this,{duration:a,opacity:0,complete:b})}},!0),a.ender({tween:c.tween})}(ender)}(),!function(){var a={exports:{}},b=a.exports;
Beispiel #14
0
!function(a,b){typeof module!="undefined"?module.exports=b():typeof define=="function"&&define.amd?define(a,b):this[a]=b()}("reqwest",function(){function handleReadyState(a,b,c){return function(){a&&a[readyState]==4&&(twoHundo.test(a.status)?b(a):c(a))}}function setHeaders(a,b){var c=b.headers||{};c.Accept=c.Accept||defaultHeaders.accept[b.type]||defaultHeaders.accept["*"],!b.crossOrigin&&!c[requestedWith]&&(c[requestedWith]=defaultHeaders.requestedWith),c[contentType]||(c[contentType]=b.contentType||defaultHeaders.contentType);for(var d in c)c.hasOwnProperty(d)&&a.setRequestHeader(d,c[d])}function generalCallback(a){lastValue=a}function urlappend(a,b){return a+(/\?/.test(a)?"&":"?")+b}function handleJsonp(a,b,c,d){var e=uniqid++,f=a.jsonpCallback||"callback",g=a.jsonpCallbackName||"reqwest_"+e,h=new RegExp("((^|\\?|&)"+f+")=([^&]+)"),i=d.match(h),j=doc.createElement("script"),k=0;i?i[3]==="?"?d=d.replace(h,"$1="+g):g=i[3]:d=urlappend(d,f+"="+g),win[g]=generalCallback,j.type="text/javascript",j.src=d,j.async=!0,typeof j.onreadystatechange!="undefined"&&(j.event="onclick",j.htmlFor=j.id="_reqwest_"+e),j.onload=j.onreadystatechange=function(){if(j[readyState]&&j[readyState]!=="complete"&&j[readyState]!=="loaded"||k)return!1;j.onload=j.onreadystatechange=null,j.onclick&&j.onclick(),a.success&&a.success(lastValue),lastValue=undefined,head.removeChild(j),k=1},head.appendChild(j)}function getRequest(a,b,c){var d=(a.method||"GET").toUpperCase(),e=typeof a=="string"?a:a.url,f=a.processData!==!1&&a.data&&typeof a.data!="string"?reqwest.toQueryString(a.data):a.data||null;(a.type=="jsonp"||d=="GET")&&f&&(e=urlappend(e,f))&&(f=null);if(a.type=="jsonp")return handleJsonp(a,b,c,e);var g=xhr();return g.open(d,e,!0),setHeaders(g,a),g.onreadystatechange=handleReadyState(g,b,c),a.before&&a.before(g),g.send(f),g}function Reqwest(a,b){this.o=a,this.fn=b,init.apply(this,arguments)}function setType(a){var b=a.match(/\.(json|jsonp|html|xml)(\?|$)/);return b?b[1]:"js"}function init(o,fn){function complete(a){o.timeout&&clearTimeout(self.timeout),self.timeout=null,o.complete&&o.complete(a)}function success(resp){var r=resp.responseText;if(r)switch(type){case"json":try{resp=win.JSON?win.JSON.parse(r):eval("("+r+")")}catch(err){return error(resp,"Could not parse JSON in response",err)}break;case"js":resp=eval(r);break;case"html":resp=r}fn(resp),o.success&&o.success(resp),complete(resp)}function error(a,b,c){o.error&&o.error(a,b,c),complete(a)}this.url=typeof o=="string"?o:o.url,this.timeout=null;var type=o.type||setType(this.url),self=this;fn=fn||function(){},o.timeout&&(this.timeout=setTimeout(function(){self.abort()},o.timeout)),this.request=getRequest(o,success,error)}function reqwest(a,b){return new Reqwest(a,b)}function normalize(a){return a?a.replace(/\r?\n/g,"\r\n"):""}function serial(a,b){var c=a.name,d=a.tagName.toLowerCase(),e=function(a){a&&!a.disabled&&b(c,normalize(a.attributes.value&&a.attributes.value.specified?a.value:a.text))};if(a.disabled||!c)return;switch(d){case"input":if(!/reset|button|image|file/i.test(a.type)){var f=/checkbox/i.test(a.type),g=/radio/i.test(a.type),h=a.value;(!f&&!g||a.checked)&&b(c,normalize(f&&h===""?"on":h))}break;case"textarea":b(c,normalize(a.value));break;case"select":if(a.type.toLowerCase()==="select-one")e(a.selectedIndex>=0?a.options[a.selectedIndex]:null);else for(var i=0;a.length&&i<a.length;i++)a.options[i].selected&&e(a.options[i])}}function eachFormElement(){var a=this,b,c,d,e=function(b,c){for(var e=0;e<c.length;e++){var f=b[byTag](c[e]);for(d=0;d<f.length;d++)serial(f[d],a)}};for(c=0;c<arguments.length;c++)b=arguments[c],/input|select|textarea/i.test(b.tagName)&&serial(b,a),e(b,["input","select","textarea"])}function serializeQueryString(){return reqwest.toQueryString(reqwest.serializeArray.apply(null,arguments))}function serializeHash(){var a={};return eachFormElement.apply(function(b,c){b in a?(a[b]&&!isArray(a[b])&&(a[b]=[a[b]]),a[b].push(c)):a[b]=c},arguments),a}var context=this,win=window,doc=document,old=context.reqwest,twoHundo=/^20\d$/,byTag="getElementsByTagName",readyState="readyState",contentType="Content-Type",requestedWith="X-Requested-With",head=doc[byTag]("head")[0],uniqid=0,lastValue,xmlHttpRequest="XMLHttpRequest",defaultHeaders={contentType:"application/x-www-form-urlencoded",accept:{"*":"text/javascript, text/html, application/xml, text/xml, */*",xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript",js:"application/javascript, text/javascript"},requestedWith:xmlHttpRequest},xhr=xmlHttpRequest in win?function(){return new XMLHttpRequest}:function(){return new ActiveXObject("Microsoft.XMLHTTP")};Reqwest.prototype={abort:function(){this.request.abort()},retry:function(){init.call(this,this.o,this.fn)}};var isArray=typeof Array.isArray=="function"?Array.isArray:function(a){return a instanceof Array};return reqwest.serializeArray=function(){var a=[];return eachFormElement.apply(function(b,c){a.push({name:b,value:c})},arguments),a},reqwest.serialize=function(){if(arguments.length===0)return"";var a,b,c=Array.prototype.slice.call(arguments,0);return a=c.pop(),a&&a.nodeType&&c.push(a)&&(a=null),a&&(a=a.type),a=="map"?b=serializeHash:a=="array"?b=reqwest.serializeArray:b=serializeQueryString,b.apply(null,c)},reqwest.toQueryString=function(a){var b="",c,d=encodeURIComponent,e=function(a,c){b+=d(a)+"="+d(c)+"&"};if(isArray(a))for(c=0;a&&c<a.length;c++)e(a[c].name,a[c].value);else for(var f in a){if(!Object.hasOwnProperty.call(a,f))continue;var g=a[f];if(isArray(g))for(c=0;c<g.length;c++)e(f,g[c]);else e(f,a[f])}return b.replace(/&$/,"").replace(/%20/g,"+")},reqwest.compat=function(a,b){return a&&(a.type&&(a.method=a.type)&&delete a.type,a.dataType&&(a.type=a.dataType),a.jsonpCallback&&(a.jsonpCallbackName=a.jsonpCallback)&&delete a.jsonpCallback,a.jsonp&&(a.jsonpCallback=a.jsonp)),new Reqwest(a,b)},reqwest.noConflict=function(){return context.reqwest=old,this},reqwest}),provide("reqwest",module.exports),!function(a){var b=require("reqwest"),c=function(a){return function(){var c=(this&&this.length>0?this:[]).concat(Array.prototype.slice.call(arguments,0));return b[a].apply(null,c)}},d=c("serialize"),e=c("serializeArray");a.ender({ajax:b,serialize:d,serializeArray:e,toQueryString:b.toQueryString}),a.ender({serialize:d,serializeArray:e},!0)}(ender)}(),!function(){var a={exports:{}},b=a.exports;
Beispiel #15
0
 animate: function (options) {
   return morpheus(this, options)
 }
Beispiel #16
0
!function(b,c){typeof define=="function"?define(c):typeof a!="undefined"?a.exports=c():this[b]=c()}("morpheus",function(){function s(a,b,c){if(Array.prototype.indexOf)return a.indexOf(b);for(c=0;c<a.length;++c)if(a[c]===b)return c}function t(a){var b,c,d=r.length;for(b=d;b--;)r[b](a),c=!0;c&&q(t)}function u(a){r.push(a)===1&&t()}function v(a){var b,c,d=s(r,a);d>=0&&(c=r.slice(d+1),r.length=d,r=r.concat(c))}function w(a,b){var c={},d;if(d=a.match(i))c.rotate=G(d[1],b?b.rotate:null);if(d=a.match(j))c.scale=G(d[1],b?b.scale:null);if(d=a.match(k))c.skewx=G(d[1],b?b.skewx:null),c.skewy=G(d[3],b?b.skewy:null);if(d=a.match(l))c.translatex=G(d[1],b?b.translatex:null),c.translatey=G(d[3],b?b.translatey:null);return c}function x(a){var b="";return"rotate"in a&&(b+="rotate("+a.rotate+"deg) "),"scale"in a&&(b+="scale("+a.scale+") "),"translatex"in a&&(b+="translate("+a.translatex+"px,"+a.translatey+"px) "),"skewx"in a&&(b+="skew("+a.skewx+"deg,"+a.skewy+"deg)"),b}function y(a,b,c){return"#"+(1<<24|a<<16|b<<8|c).toString(16).slice(1)}function z(a){var b=/rgba?\((\d+),\s*(\d+),\s*(\d+)/.exec(a);return(b?y(b[1],b[2],b[3]):a).replace(/#(\w)(\w)(\w)$/,"#$1$1$2$2$3$3")}function A(a){return a.replace(/-(.)/g,function(a,b){return b.toUpperCase()})}function B(a){return typeof a=="function"}function C(a,b,c,d,f,g){function n(a){var e=a-k;if(e>h||l)return g=isFinite(g)?g:1,l?m&&b(g):b(g),v(n),c&&c.apply(i);isFinite(g)?b(j*d(e/h)+f):b(d(e/h))}d=B(d)?d:H.easings[d]||function(a){return Math.sin(a*Math.PI/2)};var h=a||e,i=this,j=g-f,k=+(new Date),l=0,m=0;return u(n),{stop:function(a){l=1,m=a,a||(c=null)}}}function D(a,b){var c=a.length,d=[],e,f;for(e=0;e<c;++e)d[e]=[a[e][0],a[e][1]];for(f=1;f<c;++f)for(e=0;e<c-f;++e)d[e][0]=(1-b)*d[e][0]+b*d[parseInt(e+1,10)][0],d[e][1]=(1-b)*d[e][1]+b*d[parseInt(e+1,10)][1];return[d[0][0],d[0][1]]}function E(a,b,c){var d=[],e,f,g,h;for(e=0;e<6;e++)g=Math.min(15,parseInt(b.charAt(e),16)),h=Math.min(15,parseInt(c.charAt(e),16)),f=Math.floor((h-g)*a+g),f=f>15?15:f<0?0:f,d[e]=f.toString(16);return"#"+d.join("")}function F(a,b,c,d,f,g,h){if(f=="transform"){h={};for(var i in c[g][f])h[i]=i in d[g][f]?Math.round(((d[g][f][i]-c[g][f][i])*a+c[g][f][i])*e)/e:c[g][f][i];return h}return typeof c[g][f]=="string"?E(a,c[g][f],d[g][f]):(h=Math.round(((d[g][f]-c[g][f])*a+c[g][f])*e)/e,f in m||(h+=b[g][f]||"px"),h)}function G(a,b,c,d,e){return(c=g.exec(a))?(e=parseFloat(c[2]))&&b+(c[1]=="+"?1:-1)*e:parseFloat(a)}function H(a,b){var c=a?c=isFinite(a.length)?a:[a]:[],d,e=b.complete,g=b.duration,i=b.easing,j=b.bezier,k=[],l=[],m=[],q=[],r,s;delete b.complete,delete b.duration,delete b.easing,delete b.bezier,j&&(r=b.left,s=b.top,delete b.right,delete b.bottom,delete b.left,delete b.top);for(d=c.length;d--;){k[d]={},l[d]={},m[d]={};if(j){var t=p(c[d],"left"),u=p(c[d],"top"),v=[G(B(r)?r(c[d]):r||0,parseFloat(t)),G(B(s)?s(c[d]):s||0,parseFloat(u))];q[d]=B(j)?j(c[d],v):j,q[d].push(v),q[d].unshift([parseInt(t,10),parseInt(u,10)])}for(var y in b){var E=p(c[d],y),H,I=B(b[y])?b[y](c[d]):b[y];if(typeof I=="string"&&f.test(I)&&!f.test(E)){delete b[y];continue}k[d][y]=y=="transform"?w(E):typeof I=="string"&&f.test(I)?z(E).slice(1):parseFloat(E),l[d][y]=y=="transform"?w(I,k[d][y]):typeof I=="string"&&I.charAt(0)=="#"?z(I).slice(1):G(I,parseFloat(E)),typeof I=="string"&&(H=I.match(h))&&(m[d][y]=H[1])}}return C.apply(c,[g,function(a,e,f){for(d=c.length;d--;){j&&(f=D(q[d],a),c[d].style.left=f[0]+"px",c[d].style.top=f[1]+"px");for(var g in b)e=F(a,m,k,l,g,d),g=="transform"?c[d].style[n]=x(e):g=="opacity"&&!o?c[d].style.filter="alpha(opacity="+e*100+")":c[d].style[A(g)]=e}},e,i])}var a=this,b=document,c=window,d=b.documentElement,e=1e3,f=/^rgb\(|#/,g=/^([+\-])=([\d\.]+)/,h=/^(?:[\+\-]=)?\d+(?:\.\d+)?(%|in|cm|mm|em|ex|pt|pc|px)$/,i=/rotate\(((?:[+\-]=)?([\-\d\.]+))deg\)/,j=/scale\(((?:[+\-]=)?([\d\.]+))\)/,k=/skew\(((?:[+\-]=)?([\-\d\.]+))deg, ?((?:[+\-]=)?([\-\d\.]+))deg\)/,l=/translate\(((?:[+\-]=)?([\-\d\.]+))px, ?((?:[+\-]=)?([\-\d\.]+))px\)/,m={lineHeight:1,zoom:1,zIndex:1,opacity:1,transform:1},n=function(){var a=b.createElement("a").style,c=["webkitTransform","MozTransform","OTransform","msTransform","Transform"],d;for(d=0;d<c.length;d++)if(c[d]in a)return c[d]}(),o=function(){return typeof b.createElement("a").style.opacity!="undefined"}(),p=b.defaultView&&b.defaultView.getComputedStyle?function(a,c){c=c=="transform"?n:c;var d=null,e=b.defaultView.getComputedStyle(a,"");return e&&(d=e[A(c)]),a.style[c]||d}:d.currentStyle?function(a,b){b=A(b);if(b=="opacity"){var c=100;try{c=a.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(d){try{c=a.filters("alpha").opacity}catch(e){}}return c/100}var f=a.currentStyle?a.currentStyle[b]:null;return a.style[b]||f}:function(a,b){return a.style[A(b)]},q=function(){return c.requestAnimationFrame||c.webkitRequestAnimationFrame||c.mozRequestAnimationFrame||c.oRequestAnimationFrame||c.msRequestAnimationFrame||function(a){c.setTimeout(function(){a(+(new Date))},11)}}(),r=[];return H.tween=C,H.getStyle=p,H.bezier=D,H.transform=n,H.parseTransform=w,H.formatTransform=x,H.easings={},H}),provide("morpheus",a.exports);var c=require("morpheus");!function(a){a.ender({animate:function(a){return c(this,a)},fadeIn:function(a,b){return c(this,{duration:a,opacity:1,complete:b})},fadeOut:function(a,b){return c(this,{duration:a,opacity:0,complete:b})}},!0),a.ender({tween:c.tween})}(ender)}(),!function(){var a={exports:{}},b=a.exports;