Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fixed Zepto framework #267

Closed
wants to merge 6 commits into from

3 participants

@zQueal

Fixed Zepto v1.0rc1 folder name as requested: #261 (comment)

Also to be sure, I lowercase'd zepto to coincide with the case on the main folder, to be safe.

@zQueal

Found another package.json "name": error for xuijs. Fixed. Going to be adding more mobile frameworks the right way. lol

@ryankirkman
Owner

@Xanza, could you please split each library into its own pull request?

It makes it much easier for me to review.

@ryankirkman
Owner

The main reason is that if there is a problem with one or two package.json files or scripts, it doesn't hold all of the others up.

Additionally, we can discuss each of the libraries independently.

@thomasdavis
Owner

Closing due to inactivity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
View
1  ajax/libs/iui/0.40b2/iui.min.js
@@ -0,0 +1 @@
+(function(){var d=20;var b=0;var L=30000;var j=null;var m=null;var g=null;var w=0;var p=0;var a=location.hash;var s="#_";var c=[];var I=0;var C;var F=false;var e="portrait";var r="landscape";window.iui={logging:false,busy:false,animOn:true,ajaxErrHandler:null,httpHeaders:{"X-Requested-With":"XMLHttpRequest"},showPage:function(P,O){if(P){if(P==m){h("page = currentPage = "+P.id);iui.busy=false;return}if(g){g.removeAttribute("selected");A("blur",g);g=null}if(J(P,"dialog")){iui.busy=false;A("focus",P);z(P)}else{A("load",P);var Q=m;A("blur",m);m=P;A("focus",P);if(Q){setTimeout(o,0,Q,P,O)}else{l(P,Q)}}}},showPageById:function(P){var R=E(P);if(R){if(!iui.busy){iui.busy=true;var Q=c.indexOf(P);var O=Q!=-1;if(O){c.splice(Q)}iui.showPage(R,O)}}},goBack:function(){if(!iui.busy){iui.busy=true;c.pop();var O=c.pop();var P=E(O);iui.showPage(P,true)}},replacePage:function(P){var R=E(P);if(R){if(!iui.busy){iui.busy=true;var Q=c.indexOf(P);var O=Q!=-1;if(O){h("error: can't replace page with ancestor")}c.pop();iui.showPage(R,false)}}},showPageByHrefExt:function(P,Q,S,R,O){if(!iui.busy){iui.busy=true;iui.showPageByHref(P,Q,S,R,O)}},showPageByHref:function(P,Q,T,S,O){function R(U){h("xhr.readyState = "+U.readyState);if(U.readyState==4){if((U.status==200||U.status==0)&&!U.aborted){var V=document.createElement("div");V.innerHTML=U.responseText;A("beforeinsert",document.body,{fragment:V});if(S){B(S,V);iui.busy=false}else{iui.insertPages(V)}}else{iui.busy=false;if(iui.ajaxErrHandler){iui.ajaxErrHandler("Error contacting server, please try again later")}}if(O){setTimeout(O,1000,true)}}}iui.ajax(P,Q,T,R)},ajax:function(Q,P,V,O){var T=new XMLHttpRequest();V=V?V.toUpperCase():"GET";if(P&&V=="GET"){Q=Q+"?"+iui.param(P)}T.open(V,Q,true);if(O){T.onreadystatechange=function(){O(T)}}var S=null;if(P&&V!="GET"){T.setRequestHeader("Content-Type","application/x-www-form-urlencoded");S=iui.param(P)}for(var U in iui.httpHeaders){T.setRequestHeader(U,iui.httpHeaders[U])}T.send(S);T.requestTimer=setTimeout(R,L);return T;function R(){try{T.abort();T.aborted=true}catch(W){h(W)}}},param:function(Q){var P=[];for(var O in Q){P[P.length]=encodeURIComponent(O)+"="+encodeURIComponent(Q[O])}return P.join("&").replace(/%20/g,"+")},insertPages:function(U){var P=U.childNodes;var R;for(var Q=0;Q<P.length;++Q){var T=P[Q];if(T.nodeType==1){if(!T.id){T.id="__"+(++I)+"__"}var S=E(T.id);var O;if(S){S.parentNode.replaceChild(T,S);O=E(T.id)}else{O=document.body.appendChild(T)}A("afterinsert",document.body,{insertedNode:O});if(T.getAttribute("selected")=="true"||!R){R=T}--Q}}A("afterinsertend",document.body,{fragment:U});if(R){iui.showPage(R)}},getSelectedPage:function(){for(var O=document.body.firstChild;O;O=O.nextSibling){if(O.nodeType==1&&O.getAttribute("selected")=="true"){return O}}},getAllViews:function(){return document.querySelectorAll("body > *:not(.toolbar)")},isNativeUrl:function(O){for(var P=0;P<iui.nativeUrlPatterns.length;P++){if(O.match(iui.nativeUrlPatterns[P])){return true}}return false},nativeUrlPatterns:[new RegExp("^http://maps.google.com/maps?"),new RegExp("^mailto:"),new RegExp("^tel:"),new RegExp("^http://www.youtube.com/watch\\?v="),new RegExp("^http://www.youtube.com/v/"),new RegExp("^javascript:"),],hasClass:function(O,P){var Q=new RegExp("(^|\\s)"+P+"($|\\s)");return Q.exec(O.getAttribute("class"))!=null},addClass:function(O,P){if(!iui.hasClass(O,P)){O.className+=" "+P}},removeClass:function(O,P){if(iui.hasClass(O,P)){var Q=new RegExp("(\\s|^)"+P+"(\\s|$)");O.className=O.className.replace(Q," ")}}};addEventListener("load",function(P){var Q=iui.getSelectedPage();var O=D();if(Q){j=Q;iui.showPage(Q)}if(O&&(O!=Q)){iui.showPage(O)}setTimeout(f,0);if(typeof window.onorientationchange=="object"){window.onorientationchange=k;F=true;setTimeout(k,0)}setTimeout(u,0);C=setInterval(u,300)},false);addEventListener("unload",function(O){return},false);addEventListener("click",function(R){var Q=y(R.target,"a");if(Q){function O(){Q.removeAttribute("selected")}if(Q.href&&Q.hash&&Q.hash!="#"&&!Q.target){v(Q)}else{if(Q==E("backButton")){iui.goBack()}else{if(Q.getAttribute("type")=="submit"){var P=y(Q,"form");if(P.target=="_self"){P.submit();return}G(P)}else{if(Q.getAttribute("type")=="cancel"){n(y(Q,"form"))}else{if(Q.target=="_replace"){t(Q,Q)}else{if(iui.isNativeUrl(Q.href)){return}else{if(Q.target=="_webapp"){location.href=Q.href}else{if(!Q.target&&Q.href){t(Q,null)}else{return}}}}}}}}R.preventDefault()}},true);addEventListener("click",function(O){var P=y(O.target,"div");if(P&&J(P,"toggle")){P.setAttribute("toggled",P.getAttribute("toggled")!="true");O.preventDefault()}},true);function v(P){function O(){P.removeAttribute("selected")}if(!iui.busy){iui.busy=true;P.setAttribute("selected","true");iui.showPage(E(P.hash.substr(1)));setTimeout(O,500)}}function t(P,Q){function O(){P.removeAttribute("selected")}if(!iui.busy){iui.busy=true;P.setAttribute("selected","progress");iui.showPageByHref(P.href,null,"GET",Q,O)}}function A(P,R,O){if(R){var Q=document.createEvent("UIEvent");Q.initEvent(P,false,false);if(O){for(i in O){Q[i]=O[i]}}R.dispatchEvent(Q)}}function D(){var P;var O=location.hash.match(/#_([^\?_]+)/);if(O){P=O[1]}if(P){P=E(P)}return P}function k(){var O=window.orientation;switch(O){case 0:H(e);break;case 90:case -90:H(r);break}}function u(){if(!F){if((window.innerWidth!=w)||(window.innerHeight!=p)){w=window.innerWidth;p=window.innerHeight;var P=(w<p)?e:r;H(P)}}if(location.hash!=a){var O=location.hash.substr(s.length);if((O=="")&&j){O=j.id}iui.showPageById(O)}}function H(O){document.body.setAttribute("orient",O);if(O==e){iui.removeClass(document.body,r);iui.addClass(document.body,e)}else{if(O==r){iui.removeClass(document.body,e);iui.addClass(document.body,r)}else{iui.removeClass(document.body,e);iui.removeClass(document.body,r)}}setTimeout(scrollTo,100,0,1)}function z(O){g=O;O.setAttribute("selected","true");if(J(O,"dialog")){x(O)}}function x(O){O.onsubmit=function(P){P.preventDefault();G(O)};O.onclick=function(P){if(P.target==O&&J(O,"dialog")){n(O)}}}function n(O){O.removeAttribute("selected")}function l(T,U){if(!T.id){T.id="__"+(++I)+"__"}a=s+T.id;if(!U){location.replace(a)}else{location.assign(a)}c.push(T.id);var S=E("pageTitle");if(T.title){S.innerHTML=T.title}var P=T.getAttribute("ttlclass");S.className=P?P:"";if(T.localName.toLowerCase()=="form"&&!T.target){x(T)}var Q=E("backButton");if(Q){var O=E(c[c.length-2]);if(O&&!T.getAttribute("hideBackButton")){Q.style.display="inline";Q.innerHTML=O.title?O.title:"Back";var R=O.getAttribute("bbclass");Q.className=(R)?"button "+R:"button"}else{Q.style.display="none"}}iui.busy=false}function o(S,R,P){var Q=(P?S:R).getAttribute("axis");clearInterval(C);A("beforetransition",S,{out:true});A("beforetransition",R,{out:false});if(K()&&Q!="y"){M(S,R,P,O)}else{N(S,R,P,Q,O)}function O(){if(!J(R,"dialog")){S.removeAttribute("selected")}C=setInterval(u,300);setTimeout(l,0,R,S);S.removeEventListener("webkitTransitionEnd",O,false);A("aftertransition",S,{out:true});A("aftertransition",R,{out:false});if(P){A("unload",S)}}}function K(){return(iui.animOn)&&(typeof WebKitCSSMatrix=="object")}function N(U,T,Q,R,P){if(R=="y"){(Q?U:T).style.top="100%"}else{T.style.left="100%"}scrollTo(0,1);T.setAttribute("selected","true");var S=100;O();var V=setInterval(O,b);function O(){S-=d;if(S<=0){S=0;clearInterval(V);P()}if(R=="y"){Q?U.style.top=(100-S)+"%":T.style.top=S+"%"}else{U.style.left=(Q?(100-S):(S-100))+"%";T.style.left=(Q?-S:S)+"%"}}}function M(T,S,P,O){S.style.webkitTransitionDuration="0ms";var Q="translateX("+(P?"-":"")+window.innerWidth+"px)";var R="translateX("+(P?"100%":"-100%")+")";S.style.webkitTransform=Q;S.setAttribute("selected","true");S.style.webkitTransitionDuration="";function U(){T.style.webkitTransform=R;S.style.webkitTransform="translateX(0%)"}T.addEventListener("webkitTransitionEnd",O,false);setTimeout(U,0)}function f(){var O=document.createElement("div");O.id="preloader";document.body.appendChild(O)}function G(P){if(!iui.busy){iui.busy=true;iui.addClass(P,"progress");iui.showPageByHref(P.action,q(P),P.method||"GET",null,O)}function O(){iui.removeClass(P,"progress")}}function q(Q){function P(R){for(var S=0;S<R.length;++S){if(R[S].name){O[R[S].name]=R[S].value}}}var O={};P(Q.getElementsByTagName("input"));P(Q.getElementsByTagName("textarea"));P(Q.getElementsByTagName("select"));P(Q.getElementsByTagName("button"));return O}function y(P,O){while(P&&(P.nodeType!=1||P.localName.toLowerCase()!=O)){P=P.parentNode}return P}function J(O,P){return iui.hasClass(O,P)}function B(P,S){var R=P.parentNode;var Q=P;while(R.parentNode!=document.body){R=R.parentNode;Q=Q.parentNode}R.removeChild(Q);var O;while(S.firstChild){O=R.appendChild(S.firstChild);A("afterinsert",document.body,{insertedNode:O})}A("afterinsertend",document.body,{fragment:S})}function E(O){return document.getElementById(O)}function h(){if((window.console!=undefined)&&iui.logging){console.log.apply(console,arguments)}}})();
View
30 ajax/libs/iui/package.json
@@ -0,0 +1,30 @@
+{
+ "name": "iui",
+ "filename": "iui.min.js",
+ "description": "iUI is a framework consisting of a JavaScript library, CSS, and images for developing advanced mobile webapps. Made with only iPhone in mind in the first place (reason of i UI), we now supports most smartphones & tablets.",
+ "version": "0.40b2",
+ "homepage": "http://iui-js.org",
+ "keywords": [
+ "mobile",
+ "tablet",
+ "framework"
+ ],
+ "maintainers": [
+ {
+ "name": "Sean Gilligan"
+ }
+ ],
+ "repository": {
+ "type": "git",
+ "url": "http://code.google.com/p/iui/source/browse/"
+ },
+ "bugs": {
+ "url": "http://code.google.com/p/iui/issues/list"
+ },
+ "licenses": [
+ {
+ "type": "MIT",
+ "url": "http://code.google.com/p/iui/source/browse/LICENSE.txt"
+ }
+ ]
+}
View
1  ajax/libs/iwebkit/5.04/iwebkit.min.js
@@ -0,0 +1 @@
+var iWebkit;if(!iWebkit){iWebkit=window.onload=function(){function fullscreen(){var a=document.getElementsByTagName("a");for(var i=0;i<a.length;i++){if(a[i].className.match("noeffect")){}else{a[i].onclick=function(){window.location=this.getAttribute("href");return false}}}}function hideURLbar(){window.scrollTo(0,0.9)}iWebkit.init=function(){fullscreen();hideURLbar()};iWebkit.init()}}
View
29 ajax/libs/iwebkit/package.json
@@ -0,0 +1,29 @@
+{
+ "name": "iwebkit",
+ "filename": "iwebkit.min.js",
+ "description": "iWebKit is a web toolkit designed to create iPhone and iPod touch compatible websites and webapps. It is very easy to use, extremely fast, compatible and extensible.",
+ "version": "5.04",
+ "homepage": "http://iwebkit.net",
+ "keywords": [
+ "mobile",
+ "framework"
+ ],
+ "maintainers": [
+ {
+ "name": "Christopher Plieger"
+ }
+ ],
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/sumitk/iwebkit.git"
+ },
+ "bugs": {
+ "url": "https://github.com/sumitk/iwebkit/issues"
+ },
+ "licenses": [
+ {
+ "type": "GNU GPLv3",
+ "url": "http://www.gnu.org/licenses/quick-guide-gplv3.html"
+ }
+ ]
+}
View
18 ajax/libs/jqtouch/1.0b4/jqtouch.min.js
@@ -0,0 +1,18 @@
+(function(){jQTouchCore=function(j){function n(a){"string"===typeof a.selector&&"string"===typeof a.name&&l.push(a)}function v(a,b){k.unshift({page:a,animation:b,hash:"#"+a.attr("id"),id:a.attr("id")})}function C(a){var b=c(a.target);b.is(h.join(", "))||(b=c(a.target).closest(h.join(", ")));b&&b.attr("href")&&!b.isExternalLink()&&a.preventDefault();c.support.touch||c(a.target).trigger("tap",a)}function w(a,b,d,g){function s(){var h=D;c.support.animationEvents&&d&&e.useAnimations?(a.unbind("webkitAnimationEnd",
+s),a.removeClass("current "+f+" out"),b.removeClass(f),i.removeClass("animating animating3d"),!0===e.trackScrollPositions&&(b.css("top",-b.data("lastScroll")),setTimeout(function(){b.css("top",0);window.scroll(0,b.data("lastScroll"));c(".scroll",b).each(function(){this.scrollTop=-c(this).data("lastScroll")})},0))):(a.removeClass(f+" out current"),h+=260);setTimeout(function(){b.removeClass("in")},h);m=b;g?k.shift():v(m,d);a.unselect();x(m.attr("id"));b.trigger("pageAnimationEnd",{direction:"in",animation:d});
+a.trigger("pageAnimationEnd",{direction:"out",animation:d})}g=g?g:!1;if(void 0===b||0===b.length||b.hasClass("current"))return c.fn.unselect(),!1;c(":focus").trigger("blur");a.trigger("pageAnimationStart",{direction:"out",back:g});b.trigger("pageAnimationStart",{direction:"in",back:g});if(c.support.animationEvents&&d&&e.useAnimations){if(!c.support.transform3d&&d.is3d)d.name=e.defaultAnimation;var f=d.name,h=d.is3d?"animating3d":"";g&&(f=f.replace(/left|right|up|down|in|out/,E));a.bind("webkitAnimationEnd",
+s);i.addClass("animating "+h);h=window.pageYOffset;!0===e.trackScrollPositions&&b.css("top",window.pageYOffset-(b.data("lastScroll")||0));b.addClass(f+" in current");a.addClass(f+" out");!0===e.trackScrollPositions&&(a.data("lastScroll",h),c(".scroll",a).each(function(){c(this).data("lastScroll",this.scrollTop)}))}else b.addClass("current in"),s();return!0}function E(a){return{up:"down",down:"up",left:"right",right:"left","in":"out",out:"in"}[a]||a}function q(){1===k.length&&window.history.go(-1);
+var a=k[0];return w(a.page,k[1].page,a.animation,!0)?o:!1}function p(a,b){var d=k[0].page;if("string"===typeof b)for(var g=0,e=l.length;g<e;g++)if(l[g].name===b){b=l[g];break}if("string"===typeof a){g=c(a);if(1>g.length){t(a,{animation:b});return}a=g}return w(d,a,b)?o:!1}function F(){if(location.hash===k[0].hash)return!0;if(""===location.hash||k[1]&&location.hash===k[1].hash)return q(),!0;p(c(location.hash),e.defaultAnimation)}function y(a){for(var b,d=0,c=l.length;d<c;d++)if(a.is(l[d].selector)){b=
+l[d];break}if(!b)b=e.defaultAnimation;return b}function z(a,b){var d=null,e=document.createElement("div");e.innerHTML=a;c(e).children().each(function(){var a=c(this);a.attr("id")||a.attr("id","page-"+ ++G);c("#"+a.attr("id")).remove();i.append(a);i.trigger("pageInserted",{page:a});if(a.hasClass("current")||!d)d=a});return null!==d?(p(d,b),d):!1}function H(){i.css("minHeight",1E3);scrollTo(0,0);i.css("minHeight",window.innerHeight);r=90==Math.abs(window.orientation)?"landscape":"portrait";i.removeClass("portrait landscape").addClass(r).trigger("turn",
+{orientation:r})}function x(a){location.hash="#"+a.replace(/^#/,"")}function t(a,b){var d=c.extend({},{data:null,method:"GET",animation:null,callback:null,$referrer:null},b);"#"!=a?c.ajax({url:a,data:d.data,type:d.method,success:function(a){if(a=z(a,d.animation))"GET"==d.method&&!0===e.cacheGetRequests&&d.$referrer&&d.$referrer.attr("href","#"+a.attr("id")),d.callback&&d.callback(!0)},error:function(){d.$referrer&&d.$referrer.unselect();d.callback&&d.callback(!1)}}):d.$referrer&&d.$referrer.unselect()}
+function A(a,b){c(":focus").trigger("blur");a.preventDefault();var d="string"===typeof a?c(a).eq(0):a.target?c(a.target):c(a);return d.length&&d.is(e.formSelector)&&d.attr("action")?(t(d.attr("action"),{data:d.serialize(),method:d.attr("method")||"POST",animation:y(d),callback:b}),!1):!0}function I(a){a=a.closest("form");return 0!==a.length?(a.trigger("submit"),!1):!0}function J(){var a,b,d,c;a=document.getElementsByTagName("head")[0];b=document.body;d=document.createElement("style");d.textContent=
+"@media (transform-3d),(-o-transform-3d),(-moz-transform-3d),(-webkit-transform-3d){#jqt-3dtest{height:3px}}";c=document.createElement("div");c.id="jqt-3dtest";a.appendChild(d);b.appendChild(c);a=3===c.offsetHeight;d.parentNode.removeChild(d);c.parentNode.removeChild(c);return a}function K(a){var b=c(a.target),a=h.join(", ");b.is(a)||(b=b.closest(a));b.length&&b.attr("href")&&b.addClass("active");b.on(c.support.touch?"touchmove":"mousemove",function(){b.removeClass("active")});b.on("touchend",function(){b.unbind("touchmove mousemove")})}
+function L(a){var b=c(a.target);b.is(h.join(", "))||(b=b.closest(h.join(", ")));if(!b.length||!b.attr("href"))return!1;var a=b.attr("target"),d=b.prop("hash"),g=b.attr("href"),f=null;if(b.isExternalLink())return b.unselect(),!0;if(b.is(e.backSelector))q(d);else if(b.is(e.submitSelector))I(b);else{if("_webapp"===a)return window.location=g,!1;if("#"===g)return b.unselect(),!0;f=y(b);d&&"#"!==d?(b.addClass("active"),p(c(d).data("referrer",b),f,b.hasClass("reverse"))):(b.addClass("loading active"),t(b.attr("href"),
+{animation:f,callback:function(){b.removeClass("loading");setTimeout(c.fn.unselect,250,b)},$referrer:b}));return!1}}var c=j.framework,i,M=c("head"),k=[],G=0,e={},m="",r="portrait",h=[],o={},D=100,B=jQTouchCore.prototype.extensions,l=[],f="",u={addGlossToIcon:!0,backSelector:".back, .cancel, .goback",cacheGetRequests:!0,debug:!0,defaultAnimation:"slideleft",fixedViewport:!0,formSelector:"form",fullScreen:!0,fullScreenClass:"fullscreen",icon:null,icon4:null,preloadImages:!1,startupScreen:null,statusBar:"default",
+submitSelector:".submit",touchSelector:"a, .touch",trackScrollPositions:!0,useAnimations:!0,useFastTouch:!0,useTouchScroll:!0,animations:[{name:"cubeleft",selector:".cubeleft, .cube",is3d:!0},{name:"cuberight",selector:".cuberight",is3d:!0},{name:"dissolve",selector:".dissolve"},{name:"fade",selector:".fade"},{name:"flipleft",selector:".flipleft, .flip",is3d:!0},{name:"flipright",selector:".flipright",is3d:!0},{name:"pop",selector:".pop",is3d:!0},{name:"swapleft",selector:".swap",is3d:!0},{name:"slidedown",
+selector:".slidedown"},{name:"slideright",selector:".slideright"},{name:"slideup",selector:".slideup"},{name:"slideleft",selector:".slideleft, .slide, #jqt > * > ul li a"}]};(function(a){e=c.extend({},u,a);if(e.preloadImages)for(a=e.preloadImages.length-1;0<=a;a--)(new Image).src=e.preloadImages[a];a=e.addGlossToIcon?"":"-precomposed";e.icon&&(f+='<link rel="apple-touch-icon'+a+'" href="'+e.icon+'" />');e.icon4&&(f+='<link rel="apple-touch-icon'+a+'" sizes="114x114" href="'+e.icon4+'" />');e.startupScreen&&
+(f+='<link rel="apple-touch-startup-image" href="'+e.startupScreen+'" />');e.fixedViewport&&(f+='<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>');e.fullScreen&&(f+='<meta name="apple-mobile-web-app-capable" content="yes" />',e.statusBar&&(f+='<meta name="apple-mobile-web-app-status-bar-style" content="'+e.statusBar+'" />'));f&&M.prepend(f)})(j);c(document).ready(function(){if(!c.support)c.support={};c.support.animationEvents="undefined"!=
+typeof window.WebKitAnimationEvent;c.support.touch="undefined"!=typeof window.TouchEvent&&-1<window.navigator.userAgent.indexOf("Mobile")&&e.useFastTouch;c.support.transform3d=J();c.support.ios5=/OS (5(_\d+)*) like Mac OS X/i.test(window.navigator.userAgent);c.fn.isExternalLink=function(){var a=c(this);return"_blank"==a.attr("target")||"external"==a.attr("rel")||a.is('a[href^="http://maps.google.com"], a[href^="mailto:"], a[href^="tel:"], a[href^="javascript:"], a[href*="youtube.com/v"], a[href*="youtube.com/watch"]')};
+c.fn.makeActive=function(){return c(this).addClass("active")};c.fn.unselect=function(a){a?a.removeClass("active"):c(".active").removeClass("active")};for(var a=0,b=B.length;a<b;a++){var d=B[a];c.isFunction(d)&&c.extend(o,d(o))}a=0;for(b=u.animations.length;a<b;a++){d=u.animations[a];if(void 0!==e[d.name+"Selector"])d.selector=e[d.name+"Selector"];n(d)}h.push(e.touchSelector);h.push(e.backSelector);h.push(e.submitSelector);c(h.join(", ")).css("-webkit-touch-callout","none");i=c("#jqt");a=[];0===i.length&&
+(i=c(document.body).attr("id","jqt"));c.support.transform3d&&a.push("supports3d");c.support.ios5&&e.useTouchScroll&&a.push("touchscroll");e.fullScreenClass&&!0===window.navigator.standalone&&a.push(e.fullScreenClass,e.statusBar);i.addClass(a.join(" ")).bind("click",C).bind("orientationchange",H).bind("submit",A).bind("tap",L).bind(c.support.touch?"touchstart":"mousedown",K).trigger("orientationchange");c(window).bind("hashchange",F);a=location.hash;m=0===c("#jqt > .current").length?c("#jqt > *:first-child").addClass("current"):
+c("#jqt > .current");x(m.attr("id"));v(m);1===c(a).length&&p(a)});return o={addAnimation:n,animations:l,getOrientation:function(){return r},goBack:q,insertPages:z,goTo:p,history:k,settings:e,submitForm:A}};jQTouchCore.prototype.extensions=[];window.Zepto&&function(j){j.jQTouch=function(n){n.framework=j;return jQTouchCore(n)};j.fn.prop=j.fn.attr;j.jQTouch.addExtension=function(j){jQTouchCore.prototype.extensions.push(j)}}(Zepto)})();
View
31 ajax/libs/jqtouch/package.json
@@ -0,0 +1,31 @@
+{
+ "name": "jqtouch",
+ "filename": "jqtouch.min.js",
+ "description": "jQTouch is a JavaScript plugin which works with either Zepto.js or jQuery, and comes with smooth animations, navigation, and themes for mobile WebKit browsers (as found in iOS, Android, BlackBerry, and WebOS).",
+ "version": "1.0b4",
+ "homepage": "http://jqtouch.com",
+ "keywords": [
+ "mobile",
+ "framework",
+ "jQuery"
+ ],
+ "maintainers": [
+ {
+ "name": "David Kaneda",
+ "name": "Jonathan Stark"
+ }
+ ],
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/senchalabs/jQTouch.git"
+ },
+ "bugs": {
+ "url": "https://github.com/senchalabs/jQTouch/issues"
+ },
+ "licenses": [
+ {
+ "type": "MIT",
+ "url": "https://raw.github.com/senchalabs/jQTouch/master/LICENSE.txt"
+ }
+ ]
+}
View
51 ajax/libs/wink/1.4.1/wink.min.js
@@ -0,0 +1,51 @@
+define=function(){if(typeof wink=="undefined")wink={};var a=arguments,h=a.length;return(h==1?a[0]:h==2?a[1]:a[2])(wink)};define.amd={vendor:"winktoolkit.org"};define(function(){if(typeof wink=="undefined")wink={};return wink});
+define(["../../_kernel/js/kernel"],function(a){a.version="1.4.1";a.api={};a.mm={};a.net={};a.plugins={};a.ui={form:{},layout:{},xy:{},xyz:{}};a.ux={};var h=Array.prototype.slice,j=window;a.byId=function(d){return a.isString(d)?document.getElementById(d):d};a.query=function(d,e){return h.call((e||document).querySelectorAll(d))};var n="en_EN";a.setLocale=function(d){n=d};a.translate=function(d,e){var i=d,f=window.i18n||{};if(a.isSet(e)&&a.isSet(e.i18n))f=e.i18n;var k=f[n];if(a.isUndefined(k))k=f;f=
+k[d];a.isUndefined(f)||(i=f);return i};a.isUndefined=function(d){return d===undefined};a.isNull=function(d){return d===null};a.isSet=function(d){return!a.isUndefined(d)&&!a.isNull(d)};a.isCallback=function(d){return!!(d&&d.method)};a.isString=function(d){return typeof d=="string"||d instanceof String};a.isInteger=function(d){return parseInt(d)===d};a.isNumber=function(d){return typeof d=="number"||d instanceof Number};a.isArray=function(d){return typeof d=="array"||d instanceof Array};a.isBoolean=
+function(d){return typeof d=="boolean"||d instanceof Boolean};a.isFunction=function(d){return Object.prototype.toString.call(d)==="[object Function]"};a.trim=function(d){return d.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};a.bind=function(d,e){var i=h.call(arguments,2);return function(){var f=i.concat(h.call(arguments,0));return d.apply(e,f)}};a.call=function(d,e){var i=j,f=d.method,k=[];if(a.isSet(d.context))i=d.context;if(arguments.length==2)k=[e];if(a.isSet(d.arguments)){var q=d.arguments;a.isArray(q)||
+(q=[d.arguments]);k=k.concat(q)}return i[f].apply(i,k)};a.connect=function(d,e,i){if(!a.isSet(i.context))i.context=j;var f=d[e];if(a.isNull(f)||a.isUndefined(f.cbs)){var k=function(){var g=arguments.callee.target,l=[],c,b=arguments.length;for(c=0;c<b;c++){var o=arguments[c];l=a.isArray(o)?l.concat([o]):l.concat(o)}g&&g.apply(d,l);g=d[e].cbs;for(var p in g)a.isArray(g[p].arguments)?a.call({context:g[p].context,method:g[p].method,arguments:l.concat(g[p].arguments)}):a.call({context:g[p].context,method:g[p].method,
+arguments:l.concat([g[p].arguments])})};k.target=f;k.cbs=[];f=d[e]=k}for(var q in f.cbs)if(f.cbs[q].context==i.context&&f.cbs[q].method==i.method)return;f.cbs.push(i)};a.disconnect=function(d,e,i){if(!a.isSet(i.context))i.context=j;d=d[e];if(!a.isUndefined(d.cbs))for(var f in d.cbs)d.cbs[f].context==i.context&&d.cbs[f].method==i.method&&delete d.cbs[f]};a.setTimeout=function(d,e,i){var f=h.call(arguments,3);return setTimeout(function(){d[e].apply(d,f)},i)};a.setInterval=function(d,e,i){var f=h.call(arguments,
+3);return setInterval(function(){d[e].apply(d,f)},i)};var m=100;a.getUId=function(){return m+=1};if(a.isUndefined(j._))_=a.bind(a.translate,a);if(a.isUndefined(j.$$))$$=a.bind(a.query,a);if(a.isUndefined(j.$))$=a.bind(a.byId,a);return a});
+define(["../../../_base/_base/js/base"],function(a){var h=HTMLElement.prototype,j=a.isUndefined,n=function(g,l){for(var c={x:0,y:0},b=this;b&&b!=g;){c.x+=b.offsetLeft;c.y+=b.offsetTop;if(l){c.x+=a.fx.getTransformPosition(b).x;c.y+=a.fx.getTransformPosition(b).y}b=b.offsetParent}return c},m=function(g,l){return this.getPosition(g,l).y},d=function(g,l){return this.getPosition(g,l).x},e=function(g,l,c){a.fx.applyTranslate(this,g,l,c)},i=function(g,l){a.fx.applyScale(this,g,l)},f=function(g){a.fx.applyRotate(this,
+g)},k=function(g,l,c){a.ux.gesture.listenTo(this,g,l,c)},q=function(g,l){a.ux.gesture.unlistenTo(this,g,l)};h.winkGetPosition=n;h.winkGetTopPosition=m;h.winkGetLeftPosition=d;h.winkTranslate=e;h.winkScale=i;h.winkRotate=f;h.winkListenToGesture=k;h.winkUnlistenToGesture=q;if(j(h.getPosition))h.getPosition=n;if(j(h.getTopPosition))h.getTopPosition=m;if(j(h.getLeftPosition))h.getLeftPosition=d;if(j(h.rotate))h.rotate=f;if(j(h.scale))h.scale=i;if(j(h.translate))h.translate=e;if(j(h.listenToGesture))h.listenToGesture=
+k;if(j(h.unlistenToGesture))h.unlistenToGesture=q;return a});define(["../../../_base/_base/js/base"],function(a){a.error={logLevel:0,log:function(h){if(this.logLevel==1)typeof console!="undefined"?console.log(h):alert(h)}};a.log=a.bind(a.error.log,a.error);return a.error});
+define(["../../../_base/_base/js/base"],function(a){var h=window.JSON;a.json={parse:function(j){if(a.isSet(h)&&a.isSet(h.parse))return h.parse(j);else{var n=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;j=String(j);n.lastIndex=0;if(n.test(j))j=j.replace(n,function(d){return"\\u"+("0000"+d.charCodeAt(0).toString(16)).slice(-4)});if(/^[\],:{}\s]*$/.test(j.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
+"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))var m=eval("("+j+")");return m}},concat:function(j,n){for(var m in n)j[m]=n[m];return j}};a.parseJSON=a.bind(a.json.parse,a.json);a.mixin=a.bind(a.json.concat,a.json);return a.json});
+define(["../../../_base/_base/js/base","../../error/js/error"],function(a){function h(d,e){if(a.isCallback(e)){var i=[d.toLowerCase(),e];m.push(i)}}function j(d,e){var i=d.toLowerCase(),f,k=m.length;for(f=0;f<k;f++){var q=m[f];if(q[0]==i&&q[1].method==e.method&&q[1].context==e.context){m.splice(f,1);break}}}function n(d,e){var i=d.toLowerCase(),f,k=m.length;for(f=0;f<k;f++){var q=m[f];q&&q[0]==i&&a.isSet(q[1])&&a.call(q[1],e)}}var m=[];a.topics={_getTopics:function(){return m}};a.topics.subscribe=
+h;a.topics.unsubscribe=j;a.topics.publish=n;a.publish=n;a.subscribe=h;a.unsubscribe=j;return a.topics});
+define(["../../../_base/_base/js/base"],function(a){var h,j,n,m,d,e,i,f,k,q,g,l,c,b,o,p,s,r,t,u,x,C,D,E;h=j=n=m=d=e=i=f=x=C=D=E=false;k=q=g=l=c=b=o=p=s=0;var A=a.isSet;j=function(v,z){return RegExp(v).test(z)};var y=function(v,z,w){var B={v:0,r:0,u:0};v=RegExp(z).exec(v);if(A(v)&&v.length>1){v=v[2];z=RegExp("[^\\"+w+"0-9]").exec(v);if(A(z))v=v.slice(0,z.index);w=v.split(w);if(w.length>0)B.v=w[0];if(w.length>1)B.r=w[1];if(w.length>2)B.u=w[2];if(w.length>3)B.u+="."+w[3]}return B};h=navigator||{};r=
+h.userAgent;t=h.platform;u=h.appVersion;h=j(" AppleWebKit/",r);C=j(/bada/gi,r);D=j(/Opera/gi,r);if(A(t)){if(j(/iphone/i,t))n=true;if(j(/ipod/i,t))m=true;if(j(/ipad/i,t))d=true;if(j(/blackberry/i,t))x=true}if(A(u)){if(j(/android/i,u))e=true;if(j(/safari/i,u)){i=true;t=y(u,"( Version/)([^ ]+)",".");l=t.v;c=t.r;b=t.u}if(j(/MSIE/i,u)){E=true;t=y(u,"( MSIE )([^ ]+)",".");l=t.v;c=t.r}}if(!i&&!h)f=j(/mozilla/i,r);j=n||m||e||x||C||j(" Mobile/",r);if(h){t=y(r,"( AppleWebKit/)([^ ]+)",".");k=t.v;q=t.r;g=t.u}if(j&&
+A(u)){o=e?["( Android )([^ ]+)","."]:["( OS )([^ ]+)","_"];if(x)o=["( BlackBerry )([^ ]+)","."];y=y(u,o[0],o[1]);o=y.v;p=y.r;s=y.u}a.ua={isWebkit:h,isMobile:j,isIPhone:n,isIPod:m,isIPad:d,isIOS:n||m||d,isAndroid:e,isBlackBerry:x,isBada:C,isOpera:D,isSafari:i,isMozilla:f,isIE:E,webkitVersion:k,webkitMinorVersion:q,webkitUpdateVersion:g,browserVersion:l,browserMinorVersion:c,browserUpdateVersion:b,osVersion:o,osMinorVersion:p,osUpdateVersion:s};return a.ua});
+define(["../../../_base/_base/js/base"],function(a){function h(e){if(d(n[e]))n[e]=n[e]();return n[e]}function j(e,i,f){if(typeof n[e]=="undefined"){var k=i;if(f&&d(i))k=i();n[e]=k}}var n={},m={},d=a.isFunction;a.has=h;a.has.prefixes=["-webkit-","-moz-","-o-","ms-","-khtml-"];a.has.prefix=null;a.has.inquire=j;a.has.inquireMap=function(e,i){if(!(!e||e.length==0))for(var f in e)j(f,e[f],i)};a.has.setProp=function(e,i){m[e]=i};a.has.deferProp=function(e,i){m[e]=d(i)?i:function(){h(i)}};a.has.prop=function(e){var i=
+m[e];if(d(i)){i();i=m[e];if(d(i))i=e}return i||e};return a.has});define(["../../../_base/_base/js/base","./feat"],function(a){a=a.has;var h=a.inquire,j=window;h("json-parse",function(){var n;n=false;if(j.JSON&&typeof JSON.parse=="function"){n=JSON.parse('{"w":1}');n=!!(n&&n.w)}return n});return a});
+define(["../../../_base/_base/js/base","./feat"],function(a){function h(b){var o=false;if(typeof q[b]==l){d(b,b);o=true}else{var p=n.prefix;p=p!=null?[p]:g;var s,r=p.length;for(s=0;s<r;s++){var t,u=p[s]+b;t=u;var x=/(-)([a-z])/;for(u=u.match(x);u!=null;){t=t.replace(x,RegExp.$2.toUpperCase());u=t.match(x)}t=t;if(typeof q[t]==l){n.prefix=p[s];d(b,t);o=true;break}}}return o}function j(b){return function(){h(b)}}var n=a.has,m=n.inquireMap,d=n.setProp,e=n.deferProp,i=window,f=i.document,k=f.createElement("div"),
+q=k.style,g=n.prefixes,l="string",c={a:"transform-property",b:"transition-property",c:"transition-duration",d:"transition-delay",e:"transition-timing-function",f:"border-radius",g:"text-shadow",h:"box-shadow",i:"gradient",j:"perspective",k:"transform-origin",l:"transform-style",m:"transform",n:"css-transition",o:"css-perspective",p:"css-transform",q:"perspective-origin",r:"backface-visibility",s:"tap-highlight-color",t:"user-select",bg:"background-image"};e(c.a,c.p);e(c.m,c.p);e(c.b,c.n);e(c.c,c.n);
+e(c.d,c.n);e(c.e,c.n);e(c.f,"css-border-radius");e(c.g,"css-text-shadow");e(c.h,"css-box-shadow");e(c.i,"css-gradient");e(c.j,c.o);e(c.k,c.o);e(c.l,c.o);e(c.q,c.o);e(c.r,j(c.r));e(c.s,j(c.s));e(c.t,j(c.t));m({"css-transform":function(){var b=h(c.m),o=n.prefix,p=c.m;if(o!=null)p=o+p;b?d(c.a,n.prop(c.m)):d(c.a,c.m);d(c.m,p);return b},"css-transition":function(){var b=true;return b=(b=(b=(b=b&&h(c.b))&&h(c.c))&&h(c.d))&&h(c.e)},"css-translate3d":function(){return n("css-matrix")},"css-border-radius":function(){return h(c.f)},
+"css-text-shadow":function(){return h(c.g)},"css-box-shadow":function(){return h(c.h)},"css-gradient":function(){var b=c.i,o=c.bg,p=n.prefix;p=p!=null?["",p]:[""].concat(g);var s,r=p.length;for(s=0;s<r;s++){var t=p[s]+b;q.cssText=o+":"+(t+"(linear,left top,right bottom,from(#9f9),to(white));");if(q[o]&&q[o].indexOf(b)!=-1){d(b,t);return true}}return false},"css-perspective":function(){var b=h(c.j)&&h(c.k)&&h(c.l)&&h(c.q);b=b&&h(c.k+"-x")&&h(c.k+"-y")&&h(c.k+"-z");if(!b)return false;var o=n.prefix||
+"";b=f.createElement("style");b.textContent="@media ("+o+"transform-3d){#wink_has{height:2px}}";f.getElementsByTagName("head")[0].appendChild(b);k.id="wink_has";f.documentElement.appendChild(k);o=k.offsetHeight===2;b.parentNode.removeChild(b);k.parentNode.removeChild(k);return o},"css-matrix":function(){var b=i.WebKitCSSMatrix;if(typeof b=="undefined")return false;var o=new b("matrix(1,0,0,1,6,7)"),p=o.m41==6&&o.m42==7&&o.m41==o.e&&o.m42==o.f;if(p){b=new b("matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,6,7,8,1)");
+p=p&&o.m41==b.m41&&o.m42==b.m42&&b.m43==8}return p},"css-matrix-stack-inversed":function(){var b=a.ua;if(!n("css-matrix")||!b)return false;var o=b.isIOS?parseInt(""+b.osVersion+b.osMinorVersion+b.osUpdateVersion):500;b=b.isAndroid?parseInt(""+b.osVersion+b.osMinorVersion+b.osUpdateVersion):300;return o<421||b<300},"css-position-fixed":function(){var b=a.ua;if(b.isAndroid&&b.osVersion==2&&b.osMinorVersion==1||b.isBada)return false;if(b.isIOS)return b.osVersion<5?false:true;b=document.body;if(document.createElement&&
+b&&b.appendChild&&b.removeChild){if(!k.getBoundingClientRect)return null;k.innerHTML="x";k.style.cssText="position:fixed;top:100px;";b.appendChild(k);var o=b.style.height,p=b.scrollTop;b.style.height="3000px";b.scrollTop=500;var s=k.getBoundingClientRect().top;b.style.height=o;o=s===100;b.removeChild(k);b.scrollTop=p;return o}return false}});return n});
+define(["../../../_base/_base/js/base","./feat"],function(a){function h(i){return"on"+e[i]in d}var j=a.has;a=j.inquireMap;var n=j.setProp,m=j.deferProp,d=window.document.documentElement,e={ts:"touchstart",tm:"touchmove",te:"touchend",gs:"gesturestart",gc:"gesturechange",ge:"gestureend",tre:"transitionend"};m(e.ts,e.ts);m(e.tm,e.tm);m(e.te,e.te);m(e.tre,e.tre);a({touchstart:function(){var i=h("ts");n(e.ts,i?e.ts:"mousedown");return i},touchmove:function(){var i=h("tm");n(e.tm,i?e.tm:"mousemove");return i},
+touchend:function(){var i=h("te");n(e.te,i?e.te:"mouseup");return i},touch:function(){return j(e.ts)&&j(e.tm)&&j(e.te)},gesturestart:function(){return h("gs")},gesturechange:function(){return h("gc")},gestureend:function(){return h("ge")},gesture:function(){return j(e.gs)&&j(e.gc)&&j(e.ge)},transitionend:function(){if(j("css-transition")){var i=j.prefix,f=e.tre;if(i=="-webkit-")f="webkitTransitionEnd";else if(i=="-o-")f="oTransitionEnd";n(e.tre,f);return true}return false}});return j});
+define(["../../../_base/_base/js/base","./feat"],function(a){return a.has});
+define(["../../../_base/_base/js/base","../../../_base/_feat/js/feat_css"],function(a){function h(g,l){var c=g.className;if((" "+c+" ").indexOf(" "+l+" ")<0)g.className=c+(c?" ":"")+l}function j(g,l){var c=a.trim((" "+g.className+" ").replace(" "+l+" "," "));if(g.className!=c)g.className=c}function n(g,l){var c,b=g.style;for(c in l){var o=f(c);b[o]=l[c]}}function m(g,l,c,b,o){var p=l;if(l.indexOf(",")==-1)p=f(l);else{l=l.split(",");var s=l.length;for(p=0;p<s;p++)l[p]=f(a.trim(l[p]));p=l.join(",")}n(g,
+{"transition-property":p,"transition-duration":c,"transition-delay":b,"transition-timing-function":o})}function d(g){return window.getComputedStyle(g)[f("transform-property")]}function e(g,l){n(g,{"transform-property":l})}var i=a.isSet,f=a.has.prop,k={u:undefined};a.fx={};a.fx.addClass=h;a.fx.removeClass=j;a.fx.apply=n;a.fx.applyTransition=m;a.fx.applyTransformTransition=function(g,l,c,b){m(g,"transform",l,c,b)};a.fx.onTransitionEnd=function(g,l,c){var b=f("transitionend"),o=function(p){c!==true&&
+g.removeEventListener(b,o,false);l(p)};g.addEventListener(b,o,false);return o};a.fx.getTransformPosition=function(g){var l={x:null,y:null};g=d(g);if(a.has("css-matrix")){if(g=="none")g="";g=new WebKitCSSMatrix(g);l.x=g.m41;l.y=g.m42}else{var c=RegExp(/matrix/i);if(c.test(g)){c=RegExp("[, ()]+","g");g=g.split(c);if(g.length>6&&g[0]=="matrix"){l.x=parseInt(g[5]);l.y=parseInt(g[6])}}}return l};a.fx.applyTranslate=function(g,l,c,b){q(g,l,c,k.u,k.u,k.u,b)};a.fx.applyScale=function(g,l,c){q(g,k.u,k.u,l,
+c,k.u,k.u)};a.fx.applyRotate=function(g,l){q(g,k.u,k.u,k.u,k.u,l,k.u)};a.fx.getTransform=d;a.fx.setTransform=e;var q=function(g,l,c,b,o,p,s){var r=g._cssT||{};r=g._cssT={t:i(l)||i(c)?{tx:l,ty:c}:r.t,s:i(b)||i(o)?{sx:b,sy:o}:r.s,r:i(p)?{a:p}:r.r};b=r.t&&(i(r.t.tx)||i(r.t.ty));c=r.s&&(i(r.s.sx)||i(r.s.sy));l=r.r&&i(r.r.a);if(!a.has("css-translate3d")||a.ua.isAndroid&&(c||l))s=true;if(b){o=r.t.ty;s=s;b="";b=r.t.tx;i(b)||(b=0);o=o;i(o)||(o=0);p="0";var t=false;t=(t=t||a.isString(b)&&b.indexOf("%",0)!=
+-1)||a.isString(o)&&o.indexOf("%",0)!=-1;if(!t){b+="px";o+="px";p+="px"}s=b=s?"translate("+b+", "+o+")":"translate3d("+b+", "+o+", "+p+")"}else s="";s=s;if(c){c=r.s.sy;b="";b=r.s.sx;i(b)||(b=1);c=c;i(c)||(c=1);c=b=a.has("css-perspective")?"scale3d("+b+", "+c+", 1)":"scale("+b+", "+c+")"}else c="";c=c;if(l){l="";r=r.r.a;i(r)||(r=0);r=l="rotate("+r+"deg)"}else r="";r=a.trim(s+" "+c+" "+r);e(g,r)};a.addClass=h;a.removeClass=j;return a.fx});
+define(["../../../_base/_base/js/base"],function(a){a.math={round:function(h,j){a.isSet(j)||(j=0);var n=Math.pow(10,j);return Math.round(h*n)/n}};return a.math});
+define(["../../../_base/_base/js/base","../../../_base/error/js/error","../../../_base/json/js/json"],function(a){var h=a.isSet;a.ux.Event=function(j){this.uId=a.getUId();this.multitouch=this.srcEvent=this.target=this.timestamp=this.y=this.x=this.type=null;a.mixin(this,j);this._validateProperties()};a.ux.Event.prototype={preventDefault:function(){this.srcEvent.preventDefault()},stopPropagation:function(){this.srcEvent.stopPropagation()},dispatch:function(j,n){var m=this.srcEvent,d=m.type;if(h(n))d=
+n;d=d;var e="HTMLEvents";if(/blur|focus|resize|scroll/i.test(d))e="UIEvent";else if(/click|mouse(down|move|up)/i.test(d))e="MouseEvent";else if(/touch(start|move|end|cancel)/i.test(d))e="TouchEvent";var i=document.createEvent(e),f=m.changedTouches;if(e=="HTMLEvents")i.initEvent(d,m.bubbles,m.cancelable);else if(e=="UIEvent")i.initUIEvent(d,m.bubbles,m.cancelable,window,m.detail);else if(e=="MouseEvent"){e=m.screenX;var k=m.screenY,q=m.clientX,g=m.clientY;if(m.initTouchEvent&&f&&f.length>0){f=f[0];
+e=f.screenX;k=f.screenY;q=f.clientX;g=f.clientY}i.initMouseEvent(d,m.bubbles,m.cancelable,document.defaultView,m.detail,e,k,q,g,m.ctrlKey,m.altKey,m.shiftKey,m.metaKey,m.button,m.relatedTarget)}else e=="TouchEvent"&&i.initTouchEvent(d,m.bubbles,m.cancelable,window,m.detail,m.screenX,m.screenY,m.clientX,m.clientY,m.ctrlKey,m.altKey,m.shiftKey,m.metaKey,m.touches,m.targetTouches,f,m.scale,m.rotation);j.dispatchEvent(i)},_validateProperties:function(){return true}};return a.ux.Event});
+define(["../../../_base/_base/js/base","../../../_base/error/js/error","../../../_base/_feat/js/feat_event","../../event/js/event"],function(a){function h(f){var k={};k.x=f.pageX;k.y=f.pageY;k.target=f.target;return k}var j=[],n=a.has.prop,m={start:n("touchstart"),move:n("touchmove"),end:n("touchend"),gesturestart:n("gesturestart"),gesturechange:n("gesturechange"),gestureend:n("gestureend")},d={};for(var e in m)d[m[e]]=e;a.ux.touch={};a.ux.touch.addListener=function(f,k,q,g){if(a.isUndefined(m[k])){a.log("[touch] Cannot add listener for unknown eventType: "+
+k);return false}a.isSet(g)||(g={});if(g===true)g={preventDefault:true};g={preventDefault:g.preventDefault===true?true:false,tracking:g.tracking===false?false:true,captureFlow:g.captureFlow===true?true:false};var l=null,c=i(f);if(c==null){l=new a.ux.touch.Element({domNode:f,tracking:g.tracking});j.push(l)}else l=j[c];if(!l.isListening(k)){if(l.eventHandler==null)l.eventHandler=function(b){var o=l,p=d[b.type],s={};s.type=p;s.srcEvent=b;s.timestamp=b.timeStamp;s.multitouch=false;if(!s.timestamp)s.timestamp=
+(new Date).getTime();if(a.has("touch"))if(p=="gesturestart"||p=="gesturechange"||p=="gestureend"){s.target=b.target;s.x=0;s.y=0}else{var r=null;if(p=="end"){if(b.changedTouches&&b.changedTouches.length>0)r=b.changedTouches[0]}else if(b.targetTouches&&b.targetTouches.length>0)r=b.targetTouches[0];else if(b.changedTouches&&b.changedTouches.length>0)r=b.changedTouches[0];if(r!=null){r=h(r);s.x=r.x;s.y=r.y;s.target=r.target;if(b.touches&&b.touches.length>1)s.multitouch=true}}else{r=h(b);s.x=r.x;s.y=r.y;
+s.target=r.target}b=new a.ux.Event(s);if(!o.isListening("start")||o.tracking==false)o.tracked=true;else if(p=="start")o.tracked=true;if(o.tracked==true){if(p=="end")o.tracked=false;o.notifyEvent(b)}};l.eventCaptures[k]=g.captureFlow;l.domNode.addEventListener(m[k],l.eventHandler,l.eventCaptures[k])}l.addEventCallback(k,q,g.preventDefault)};a.ux.touch.removeListener=function(f,k,q){f=i(f);if(f!=null){f=j[f];f.removeEventCallback(k,q);f.isListening(k)||f.domNode.removeEventListener(m[k],f.eventHandler,
+f.eventCaptures[k])}};a.ux.touch.getTouchProperties=h;var i=function(f){var k,q=j.length;for(k=0;k<q;k++)if(j[k].domNode==f)return k;return null};a.ux.touch.Element=function(f){this.uId=a.getUId();this.domNode=null;this.tracked=this.tracking=false;this.eventHandler=null;this.eventCaptures={};this._els={};a.mixin(this,f);this._validateProperties()};a.ux.touch.Element.prototype={addEventCallback:function(f,k,q){if(!a.isCallback(k))return false;var g=this._els[f];if(g){f=g.callbacks;var l=f.length;for(q=
+0;q<l;q++){var c=f[q];if(k.context==c.context&&k.method==c.method)return false}}else{g={preventDefault:q,callbacks:[]};this._els[f]=g}g.callbacks.push(k);return true},removeEventCallback:function(f,k){if(!a.isCallback(k))return false;var q=this._els[f];if(!q)return false;var g=q.callbacks,l,c=g.length;for(l=0;l<c;l++){var b=g[l];if(k.context==b.context&&k.method==b.method){q.callbacks.splice(l,1);break}}return true},isListening:function(f){if((f=this._els[f])&&f.callbacks.length>0)return true;return false},
+notifyEvent:function(f){var k=this._els[f.type];if(k){k.preventDefault==true&&f.preventDefault();k=k.callbacks;for(var q=0;q<k.length;q++)a.call(k[q],f)}},_validateProperties:function(){return true}};return a.ux.touch});
+define(["../../../_base/_base/js/base","../../../_base/error/js/error"],function(a){var h=a.isSet,j=a.isArray;a.net.Xhr=function(n){this.uId=a.getUId();this.request={xhrObject:null,params:n};this._create()};a.net.Xhr.prototype={sendData:function(n,m,d,e,i,f){var k=this.request,q=k.xhrObject,g=encodeURIComponent;d=d.toUpperCase();if(!(h(m)&&!j(m))){if(q){var l=null;if(h(m)){var c,b=m.length;for(c=0;c<b;c++){var o=m[c],p=o.name;o=o.value;if(d=="GET")n+=c==0&&n.indexOf("?")==-1?"?"+g(p)+"="+g(o):"&"+
+g(p)+"="+g(o);else if(c==0)l=g(p)+"="+g(o);else l+="&"+g(p)+"="+g(o)}}try{q.open(d,n,true);q.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=utf-8");if(h(f))if(j(f)){b=f.length;for(c=0;c<b;c++){var s=f[c];q.setRequestHeader(s.name,s.value)}}q.send(l)}catch(r){return false}q.onreadystatechange=function(){if(q.readyState==4){var t=q.status;if(t>=200&&t<400||t==0)h(e)&&a.call(e,k);else h(i)&&a.call(i,k)}}}else return false;return true}},_create:function(){var n=window.XMLHttpRequest;
+if(n){var m;try{m=new n}catch(d){m=false}this.request.xhrObject=m}}};a.Xhr=a.net.Xhr;return a.Xhr});
+define(["../../../../_base/_base/js/base","../../../../fx/_xy/js/2dfx"],function(a){var h=a.fx.apply,j=null,n=null,m=false;a.ui.xy.layer={visible:false,color:"#000",opacity:0.3,zIndex:998,show:function(){m||this._initDom();j.onclick=function(){var d=a.ui.xy.layer.onclick;a.isSet(d)&&d()};if(!this.visible){h(n,{height:document.body.scrollHeight+"px"});h(j,{display:"block"});this.visible=true}},hide:function(){if(m&&this.visible){h(j,{display:"none"});this.visible=false}},refresh:function(){m&&this.visible&&
+h(n,{height:document.body.scrollHeight+"px"})},update:function(){m||this._initDom();h(j,{"z-index":this.zIndex});h(n,{backgroundColor:this.color,opacity:this.opacity})},_initDom:function(){var d=document;j=d.createElement("div");h(j,{position:"absolute",display:"none",top:0,width:"100%","z-index":this.zIndex,"tap-highlight-color":"rgba(0, 0, 0, 0)"});n=d.createElement("div");h(n,{width:"100%",backgroundColor:this.color,opacity:this.opacity});j.appendChild(n);d.body.appendChild(j);m=true}};a.layer=
+a.ui.xy.layer;return a.layer});
View
29 ajax/libs/wink/package.json
@@ -0,0 +1,29 @@
+{
+ "name": "wink",
+ "filename": "wink.min.js",
+ "description": "Wink Toolkit is a lightweight JavaScript toolkit which will help you build great mobile web apps. It is designed and developed to meet the specific constraints of the mobile environment.",
+ "version": "1.4.1",
+ "homepage": "http://winktoolkit.org",
+ "keywords": [
+ "mobile",
+ "framework"
+ ],
+ "maintainers": [
+ {
+ "name": "@winktoolkit"
+ }
+ ],
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/winktoolkit/wink.git"
+ },
+ "bugs": {
+ "url": "https://github.com/winktoolkit/wink/issues"
+ },
+ "licenses": [
+ {
+ "type": "Simplified BSD",
+ "url": "https://github.com/winktoolkit/wink/raw/master/licence.txt"
+ }
+ ]
+}
View
2  ajax/libs/xuijs/package.json
@@ -1,5 +1,5 @@
{
- "name": "XUI",
+ "name": "xuijs",
"filename": "xui.min.js",
"description": "A lightweight, dead simple, micro-tiny, super modular JavaScript framework for building mobile web applications. Its true: the minified code is super tiny.",
"version": "2.3.2",
View
2  ajax/libs/zepto/1.0rc1/zepto.min.js
@@ -0,0 +1,2 @@
+/* Zepto v1.0rc1 - polyfill zepto event detect fx ajax form touch - zeptojs.com/license */
+(function(a){String.prototype.trim===a&&(String.prototype.trim=function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")}),Array.prototype.reduce===a&&(Array.prototype.reduce=function(b){if(this===void 0||this===null)throw new TypeError;var c=Object(this),d=c.length>>>0,e=0,f;if(typeof b!="function")throw new TypeError;if(d==0&&arguments.length==1)throw new TypeError;if(arguments.length>=2)f=arguments[1];else do{if(e in c){f=c[e++];break}if(++e>=d)throw new TypeError}while(!0);while(e<d)e in c&&(f=b.call(a,f,c[e],e,c)),e++;return f})})();var Zepto=function(){function A(a){return v.call(a)=="[object Function]"}function B(a){return a instanceof Object}function C(b){var c,d;if(v.call(b)!=="[object Object]")return!1;d=A(b.constructor)&&b.constructor.prototype;if(!d||!hasOwnProperty.call(d,"isPrototypeOf"))return!1;for(c in b);return c===a||hasOwnProperty.call(b,c)}function D(a){return a instanceof Array}function E(a){return typeof a.length=="number"}function F(b){return b.filter(function(b){return b!==a&&b!==null})}function G(a){return a.length>0?[].concat.apply([],a):a}function H(a){return a.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function I(a){return a in i?i[a]:i[a]=new RegExp("(^|\\s)"+a+"(\\s|$)")}function J(a,b){return typeof b=="number"&&!k[H(a)]?b+"px":b}function K(a){var b,c;return h[a]||(b=g.createElement(a),g.body.appendChild(b),c=j(b,"").getPropertyValue("display"),b.parentNode.removeChild(b),c=="none"&&(c="block"),h[a]=c),h[a]}function L(b,d){return d===a?c(b):c(b).filter(d)}function M(a,b,c,d){return A(b)?b.call(a,c,d):b}function N(a,b,d){var e=a%2?b:b.parentNode;e?e.insertBefore(d,a?a==1?e.firstChild:a==2?b:null:b.nextSibling):c(d).remove()}function O(a,b){b(a);for(var c in a.childNodes)O(a.childNodes[c],b)}var a,b,c,d,e=[],f=e.slice,g=window.document,h={},i={},j=g.defaultView.getComputedStyle,k={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},l=/^\s*<(\w+|!)[^>]*>/,m=[1,3,8,9,11],n=["after","prepend","before","append"],o=g.createElement("table"),p=g.createElement("tr"),q={tr:g.createElement("tbody"),tbody:o,thead:o,tfoot:o,td:p,th:p,"*":g.createElement("div")},r=/complete|loaded|interactive/,s=/^\.([\w-]+)$/,t=/^#([\w-]+)$/,u=/^[\w-]+$/,v={}.toString,w={},x,y,z=g.createElement("div");return w.matches=function(a,b){if(!a||a.nodeType!==1)return!1;var c=a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.matchesSelector;if(c)return c.call(a,b);var d,e=a.parentNode,f=!e;return f&&(e=z).appendChild(a),d=~w.qsa(e,b).indexOf(a),f&&z.removeChild(a),d},x=function(a){return a.replace(/-+(.)?/g,function(a,b){return b?b.toUpperCase():""})},y=function(a){return a.filter(function(b,c){return a.indexOf(b)==c})},w.fragment=function(b,d){d===a&&(d=l.test(b)&&RegExp.$1),d in q||(d="*");var e=q[d];return e.innerHTML=""+b,c.each(f.call(e.childNodes),function(){e.removeChild(this)})},w.Z=function(a,b){return a=a||[],a.__proto__=arguments.callee.prototype,a.selector=b||"",a},w.isZ=function(a){return a instanceof w.Z},w.init=function(b,d){if(!b)return w.Z();if(A(b))return c(g).ready(b);if(w.isZ(b))return b;var e;if(D(b))e=F(b);else if(C(b))e=[c.extend({},b)],b=null;else if(m.indexOf(b.nodeType)>=0||b===window)e=[b],b=null;else if(l.test(b))e=w.fragment(b.trim(),RegExp.$1),b=null;else{if(d!==a)return c(d).find(b);e=w.qsa(g,b)}return w.Z(e,b)},c=function(a,b){return w.init(a,b)},c.extend=function(c){return f.call(arguments,1).forEach(function(d){for(b in d)d[b]!==a&&(c[b]=d[b])}),c},w.qsa=function(a,b){var c;return a===g&&t.test(b)?(c=a.getElementById(RegExp.$1))?[c]:e:a.nodeType!==1&&a.nodeType!==9?e:f.call(s.test(b)?a.getElementsByClassName(RegExp.$1):u.test(b)?a.getElementsByTagName(b):a.querySelectorAll(b))},c.isFunction=A,c.isObject=B,c.isArray=D,c.isPlainObject=C,c.inArray=function(a,b,c){return e.indexOf.call(b,a,c)},c.trim=function(a){return a.trim()},c.uuid=0,c.map=function(a,b){var c,d=[],e,f;if(E(a))for(e=0;e<a.length;e++)c=b(a[e],e),c!=null&&d.push(c);else for(f in a)c=b(a[f],f),c!=null&&d.push(c);return G(d)},c.each=function(a,b){var c,d;if(E(a)){for(c=0;c<a.length;c++)if(b.call(a[c],c,a[c])===!1)return a}else for(d in a)if(b.call(a[d],d,a[d])===!1)return a;return a},c.fn={forEach:e.forEach,reduce:e.reduce,push:e.push,indexOf:e.indexOf,concat:e.concat,map:function(a){return c.map(this,function(b,c){return a.call(b,c,b)})},slice:function(){return c(f.apply(this,arguments))},ready:function(a){return r.test(g.readyState)?a(c):g.addEventListener("DOMContentLoaded",function(){a(c)},!1),this},get:function(b){return b===a?f.call(this):this[b]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){this.parentNode!=null&&this.parentNode.removeChild(this)})},each:function(a){return this.forEach(function(b,c){a.call(b,c,b)}),this},filter:function(a){return c([].filter.call(this,function(b){return w.matches(b,a)}))},add:function(a,b){return c(y(this.concat(c(a,b))))},is:function(a){return this.length>0&&w.matches(this[0],a)},not:function(b){var d=[];if(A(b)&&b.call!==a)this.each(function(a){b.call(this,a)||d.push(this)});else{var e=typeof b=="string"?this.filter(b):E(b)&&A(b.item)?f.call(b):c(b);this.forEach(function(a){e.indexOf(a)<0&&d.push(a)})}return c(d)},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){var a=this[0];return a&&!B(a)?a:c(a)},last:function(){var a=this[this.length-1];return a&&!B(a)?a:c(a)},find:function(a){var b;return this.length==1?b=w.qsa(this[0],a):b=this.map(function(){return w.qsa(this,a)}),c(b)},closest:function(a,b){var d=this[0];while(d&&!w.matches(d,a))d=d!==b&&d!==g&&d.parentNode;return c(d)},parents:function(a){var b=[],d=this;while(d.length>0)d=c.map(d,function(a){if((a=a.parentNode)&&a!==g&&b.indexOf(a)<0)return b.push(a),a});return L(b,a)},parent:function(a){return L(y(this.pluck("parentNode")),a)},children:function(a){return L(this.map(function(){return f.call(this.children)}),a)},siblings:function(a){return L(this.map(function(a,b){return f.call(b.parentNode.children).filter(function(a){return a!==b})}),a)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(a){return this.map(function(){return this[a]})},show:function(){return this.each(function(){this.style.display=="none"&&(this.style.display=null),j(this,"").getPropertyValue("display")=="none"&&(this.style.display=K(this.nodeName))})},replaceWith:function(a){return this.before(a).remove()},wrap:function(a){return this.each(function(){c(this).wrapAll(c(a)[0].cloneNode(!1))})},wrapAll:function(a){return this[0]&&(c(this[0]).before(a=c(a)),a.append(this)),this},unwrap:function(){return this.parent().each(function(){c(this).replaceWith(c(this).children())}),this},clone:function(){return c(this.map(function(){return this.cloneNode(!0)}))},hide:function(){return this.css("display","none")},toggle:function(b){return(b===a?this.css("display")=="none":b)?this.show():this.hide()},prev:function(){return c(this.pluck("previousElementSibling"))},next:function(){return c(this.pluck("nextElementSibling"))},html:function(b){return b===a?this.length>0?this[0].innerHTML:null:this.each(function(a){var d=this.innerHTML;c(this).empty().append(M(this,b,a,d))})},text:function(b){return b===a?this.length>0?this[0].textContent:null:this.each(function(){this.textContent=b})},attr:function(c,d){var e;return typeof c=="string"&&d===a?this.length==0||this[0].nodeType!==1?a:c=="value"&&this[0].nodeName=="INPUT"?this.val():!(e=this[0].getAttribute(c))&&c in this[0]?this[0][c]:e:this.each(function(a){if(this.nodeType!==1)return;if(B(c))for(b in c)this.setAttribute(b,c[b]);else this.setAttribute(c,M(this,d,a,this.getAttribute(c)))})},removeAttr:function(a){return this.each(function(){this.nodeType===1&&this.removeAttribute(a)})},prop:function(b,c){return c===a?this[0]?this[0][b]:a:this.each(function(a){this[b]=M(this,c,a,this[b])})},data:function(b,c){var d=this.attr("data-"+H(b),c);return d!==null?d:a},val:function(b){return b===a?this.length>0?this[0].value:a:this.each(function(a){this.value=M(this,b,a,this.value)})},offset:function(){if(this.length==0)return null;var a=this[0].getBoundingClientRect();return{left:a.left+window.pageXOffset,top:a.top+window.pageYOffset,width:a.width,height:a.height}},css:function(c,d){if(d===a&&typeof c=="string")return this.length==0?a:this[0].style[x(c)]||j(this[0],"").getPropertyValue(c);var e="";for(b in c)typeof c[b]=="string"&&c[b]==""?this.each(function(){this.style.removeProperty(H(b))}):e+=H(b)+":"+J(b,c[b])+";";return typeof c=="string"&&(d==""?this.each(function(){this.style.removeProperty(H(c))}):e=H(c)+":"+J(c,d)),this.each(function(){this.style.cssText+=";"+e})},index:function(a){return a?this.indexOf(c(a)[0]):this.parent().children().indexOf(this[0])},hasClass:function(a){return this.length<1?!1:I(a).test(this[0].className)},addClass:function(a){return this.each(function(b){d=[];var e=this.className,f=M(this,a,b,e);f.split(/\s+/g).forEach(function(a){c(this).hasClass(a)||d.push(a)},this),d.length&&(this.className+=(e?" ":"")+d.join(" "))})},removeClass:function(b){return this.each(function(c){if(b===a)return this.className="";d=this.className,M(this,b,c,d).split(/\s+/g).forEach(function(a){d=d.replace(I(a)," ")}),this.className=d.trim()})},toggleClass:function(b,d){return this.each(function(e){var f=M(this,b,e,this.className);(d===a?!c(this).hasClass(f):d)?c(this).addClass(f):c(this).removeClass(f)})}},["width","height"].forEach(function(b){c.fn[b]=function(d){var e,f=b.replace(/./,function(a){return a[0].toUpperCase()});return d===a?this[0]==window?window["inner"+f]:this[0]==g?g.documentElement["offset"+f]:(e=this.offset())&&e[b]:this.each(function(a){var e=c(this);e.css(b,M(this,d,a,e[b]()))})}}),n.forEach(function(a,b){c.fn[a]=function(){var a=c.map(arguments,function(a){return B(a)?a:w.fragment(a)});if(a.length<1)return this;var d=this.length,e=d>1,f=b<2;return this.each(function(c,g){for(var h=0;h<a.length;h++){var i=a[f?a.length-h-1:h];O(i,function(a){a.nodeName!=null&&a.nodeName.toUpperCase()==="SCRIPT"&&(!a.type||a.type==="text/javascript")&&window.eval.call(window,a.innerHTML)}),e&&c<d-1&&(i=i.cloneNode(!0)),N(b,g,i)}})},c.fn[b%2?a+"To":"insert"+(b?"Before":"After")]=function(b){return c(b)[a](this),this}}),w.Z.prototype=c.fn,w.camelize=x,w.uniq=y,c.zepto=w,c}();window.Zepto=Zepto,"$"in window||(window.$=Zepto),function(a){function f(a){return a._zid||(a._zid=d++)}function g(a,b,d,e){b=h(b);if(b.ns)var g=i(b.ns);return(c[f(a)]||[]).filter(function(a){return a&&(!b.e||a.e==b.e)&&(!b.ns||g.test(a.ns))&&(!d||f(a.fn)===f(d))&&(!e||a.sel==e)})}function h(a){var b=(""+a).split(".");return{e:b[0],ns:b.slice(1).sort().join(" ")}}function i(a){return new RegExp("(?:^| )"+a.replace(" "," .* ?")+"(?: |$)")}function j(b,c,d){a.isObject(b)?a.each(b,d):b.split(/\s/).forEach(function(a){d(a,c)})}function k(b,d,e,g,i,k){k=!!k;var l=f(b),m=c[l]||(c[l]=[]);j(d,e,function(c,d){var e=i&&i(d,c),f=e||d,j=function(a){var c=f.apply(b,[a].concat(a.data));return c===!1&&a.preventDefault(),c},l=a.extend(h(c),{fn:d,proxy:j,sel:g,del:e,i:m.length});m.push(l),b.addEventListener(l.e,j,k)})}function l(a,b,d,e){var h=f(a);j(b||"",d,function(b,d){g(a,b,d,e).forEach(function(b){delete c[h][b.i],a.removeEventListener(b.e,b.proxy,!1)})})}function p(b){var c=a.extend({originalEvent:b},b);return a.each(o,function(a,d){c[a]=function(){return this[d]=m,b[a].apply(b,arguments)},c[d]=n}),c}function q(a){if(!("defaultPrevented"in a)){a.defaultPrevented=!1;var b=a.preventDefault;a.preventDefault=function(){this.defaultPrevented=!0,b.call(this)}}}var b=a.zepto.qsa,c={},d=1,e={};e.click=e.mousedown=e.mouseup=e.mousemove="MouseEvents",a.event={add:k,remove:l},a.proxy=function(b,c){if(a.isFunction(b)){var d=function(){return b.apply(c,arguments)};return d._zid=f(b),d}if(typeof c=="string")return a.proxy(b[c],b);throw new TypeError("expected function")},a.fn.bind=function(a,b){return this.each(function(){k(this,a,b)})},a.fn.unbind=function(a,b){return this.each(function(){l(this,a,b)})},a.fn.one=function(a,b){return this.each(function(c,d){k(this,a,b,null,function(a,b){return function(){var c=a.apply(d,arguments);return l(d,b,a),c}})})};var m=function(){return!0},n=function(){return!1},o={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};a.fn.delegate=function(b,c,d){var e=!1;if(c=="blur"||c=="focus")a.iswebkit?c=c=="blur"?"focusout":c=="focus"?"focusin":c:e=!0;return this.each(function(f,g){k(g,c,d,b,function(c){return function(d){var e,f=a(d.target).closest(b,g).get(0);if(f)return e=a.extend(p(d),{currentTarget:f,liveFired:g}),c.apply(f,[e].concat([].slice.call(arguments,1)))}},e)})},a.fn.undelegate=function(a,b,c){return this.each(function(){l(this,b,c,a)})},a.fn.live=function(b,c){return a(document.body).delegate(this.selector,b,c),this},a.fn.die=function(b,c){return a(document.body).undelegate(this.selector,b,c),this},a.fn.on=function(b,c,d){return c==undefined||a.isFunction(c)?this.bind(b,c):this.delegate(c,b,d)},a.fn.off=function(b,c,d){return c==undefined||a.isFunction(c)?this.unbind(b,c):this.undelegate(c,b,d)},a.fn.trigger=function(b,c){return typeof b=="string"&&(b=a.Event(b)),q(b),b.data=c,this.each(function(){"dispatchEvent"in this&&this.dispatchEvent(b)})},a.fn.triggerHandler=function(b,c){var d,e;return this.each(function(f,h){d=p(typeof b=="string"?a.Event(b):b),d.data=c,d.target=h,a.each(g(h,b.type||b),function(a,b){e=b.proxy(d);if(d.isImmediatePropagationStopped())return!1})}),e},"focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout change select keydown keypress keyup error".split(" ").forEach(function(b){a.fn[b]=function(a){return this.bind(b,a)}}),["focus","blur"].forEach(function(b){a.fn[b]=function(a){if(a)this.bind(b,a);else if(this.length)try{this.get(0)[b]()}catch(c){}return this}}),a.Event=function(a,b){var c=document.createEvent(e[a]||"Events"),d=!0;if(b)for(var f in b)f=="bubbles"?d=!!b[f]:c[f]=b[f];return c.initEvent(a,d,!0,null,null,null,null,null,null,null,null,null,null,null,null),c}}(Zepto),function(a){function b(a){var b=this.os={},c=this.browser={},d=a.match(/WebKit\/([\d.]+)/),e=a.match(/(Android)\s+([\d.]+)/),f=a.match(/(iPad).*OS\s([\d_]+)/),g=!f&&a.match(/(iPhone\sOS)\s([\d_]+)/),h=a.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),i=h&&a.match(/TouchPad/),j=a.match(/Kindle\/([\d.]+)/),k=a.match(/Silk\/([\d._]+)/),l=a.match(/(BlackBerry).*Version\/([\d.]+)/);if(c.webkit=!!d)c.version=d[1];e&&(b.android=!0,b.version=e[2]),g&&(b.ios=b.iphone=!0,b.version=g[2].replace(/_/g,".")),f&&(b.ios=b.ipad=!0,b.version=f[2].replace(/_/g,".")),h&&(b.webos=!0,b.version=h[2]),i&&(b.touchpad=!0),l&&(b.blackberry=!0,b.version=l[2]),j&&(b.kindle=!0,b.version=j[1]),k&&(c.silk=!0,c.version=k[1]),!k&&b.android&&a.match(/Kindle Fire/)&&(c.silk=!0)}b.call(a,navigator.userAgent),a.__detect=b}(Zepto),function(a,b){function l(a){return a.toLowerCase()}function m(a){return d?d+a:l(a)}var c="",d,e,f,g={Webkit:"webkit",Moz:"",O:"o",ms:"MS"},h=window.document,i=h.createElement("div"),j=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i,k={};a.each(g,function(a,e){if(i.style[a+"TransitionProperty"]!==b)return c="-"+l(a)+"-",d=e,!1}),k[c+"transition-property"]=k[c+"transition-duration"]=k[c+"transition-timing-function"]=k[c+"animation-name"]=k[c+"animation-duration"]="",a.fx={off:d===b&&i.style.transitionProperty===b,cssPrefix:c,transitionEnd:m("TransitionEnd"),animationEnd:m("AnimationEnd")},a.fn.animate=function(b,c,d,e){return a.isObject(c)&&(d=c.easing,e=c.complete,c=c.duration),c&&(c/=1e3),this.anim(b,c,d,e)},a.fn.anim=function(d,e,f,g){var h,i={},l,m=this,n,o=a.fx.transitionEnd;e===b&&(e=.4),a.fx.off&&(e=0);if(typeof d=="string")i[c+"animation-name"]=d,i[c+"animation-duration"]=e+"s",o=a.fx.animationEnd;else{for(l in d)j.test(l)?(h||(h=[]),h.push(l+"("+d[l]+")")):i[l]=d[l];h&&(i[c+"transform"]=h.join(" ")),!a.fx.off&&typeof d=="object"&&(i[c+"transition-property"]=Object.keys(d).join(", "),i[c+"transition-duration"]=e+"s",i[c+"transition-timing-function"]=f||"linear")}return n=function(b){if(typeof b!="undefined"){if(b.target!==b.currentTarget)return;a(b.target).unbind(o,arguments.callee)}a(this).css(k),g&&g.call(this)},e>0&&this.bind(o,n),setTimeout(function(){m.css(i),e<=0&&setTimeout(function(){m.each(function(){n.call(this)})},0)},0),this},i=null}(Zepto),function($){function triggerAndReturn(a,b,c){var d=$.Event(b);return $(a).trigger(d,c),!d.defaultPrevented}function triggerGlobal(a,b,c,d){if(a.global)return triggerAndReturn(b||document,c,d)}function ajaxStart(a){a.global&&$.active++===0&&triggerGlobal(a,null,"ajaxStart")}function ajaxStop(a){a.global&&!--$.active&&triggerGlobal(a,null,"ajaxStop")}function ajaxBeforeSend(a,b){var c=b.context;if(b.beforeSend.call(c,a,b)===!1||triggerGlobal(b,c,"ajaxBeforeSend",[a,b])===!1)return!1;triggerGlobal(b,c,"ajaxSend",[a,b])}function ajaxSuccess(a,b,c){var d=c.context,e="success";c.success.call(d,a,e,b),triggerGlobal(c,d,"ajaxSuccess",[b,c,a]),ajaxComplete(e,b,c)}function ajaxError(a,b,c,d){var e=d.context;d.error.call(e,c,b,a),triggerGlobal(d,e,"ajaxError",[c,d,a]),ajaxComplete(b,c,d)}function ajaxComplete(a,b,c){var d=c.context;c.complete.call(d,b,a),triggerGlobal(c,d,"ajaxComplete",[b,c]),ajaxStop(c)}function empty(){}function mimeToDataType(a){return a&&(a==htmlType?"html":a==jsonType?"json":scriptTypeRE.test(a)?"script":xmlTypeRE.test(a)&&"xml")||"text"}function appendQuery(a,b){return(a+"&"+b).replace(/[&?]{1,2}/,"?")}function serializeData(a){isObject(a.data)&&(a.data=$.param(a.data)),a.data&&(!a.type||a.type.toUpperCase()=="GET")&&(a.url=appendQuery(a.url,a.data))}function serialize(a,b,c,d){var e=$.isArray(b);$.each(b,function(b,f){d&&(b=c?d:d+"["+(e?"":b)+"]"),!d&&e?a.add(f.name,f.value):(c?$.isArray(f):isObject(f))?serialize(a,f,c,b):a.add(b,f)})}var jsonpID=0,isObject=$.isObject,document=window.document,key,name,rscript=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,scriptTypeRE=/^(?:text|application)\/javascript/i,xmlTypeRE=/^(?:text|application)\/xml/i,jsonType="application/json",htmlType="text/html",blankRE=/^\s*$/;$.active=0,$.ajaxJSONP=function(a){var b="jsonp"+ ++jsonpID,c=document.createElement("script"),d=function(){$(c).remove(),b in window&&(window[b]=empty),ajaxComplete("abort",e,a)},e={abort:d},f;return a.error&&(c.onerror=function(){e.abort(),a.error()}),window[b]=function(d){clearTimeout(f),$(c).remove(),delete window[b],ajaxSuccess(d,e,a)},serializeData(a),c.src=a.url.replace(/=\?/,"="+b),$("head").append(c),a.timeout>0&&(f=setTimeout(function(){e.abort(),ajaxComplete("timeout",e,a)},a.timeout)),e},$.ajaxSettings={type:"GET",beforeSend:empty,success:empty,error:empty,complete:empty,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript",json:jsonType,xml:"application/xml, text/xml",html:htmlType,text:"text/plain"},crossDomain:!1,timeout:0},$.ajax=function(options){var settings=$.extend({},options||{});for(key in $.ajaxSettings)settings[key]===undefined&&(settings[key]=$.ajaxSettings[key]);ajaxStart(settings),settings.crossDomain||(settings.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(settings.url)&&RegExp.$2!=window.location.host);var dataType=settings.dataType,hasPlaceholder=/=\?/.test(settings.url);if(dataType=="jsonp"||hasPlaceholder)return hasPlaceholder||(settings.url=appendQuery(settings.url,"callback=?")),$.ajaxJSONP(settings);settings.url||(settings.url=window.location.toString()),serializeData(settings);var mime=settings.accepts[dataType],baseHeaders={},protocol=/^([\w-]+:)\/\//.test(settings.url)?RegExp.$1:window.location.protocol,xhr=$.ajaxSettings.xhr(),abortTimeout;settings.crossDomain||(baseHeaders["X-Requested-With"]="XMLHttpRequest"),mime&&(baseHeaders.Accept=mime,mime.indexOf(",")>-1&&(mime=mime.split(",",2)[0]),xhr.overrideMimeType&&xhr.overrideMimeType(mime));if(settings.contentType||settings.data&&settings.type.toUpperCase()!="GET")baseHeaders["Content-Type"]=settings.contentType||"application/x-www-form-urlencoded";settings.headers=$.extend(baseHeaders,settings.headers||{}),xhr.onreadystatechange=function(){if(xhr.readyState==4){clearTimeout(abortTimeout);var result,error=!1;if(xhr.status>=200&&xhr.status<300||xhr.status==304||xhr.status==0&&protocol=="file:"){dataType=dataType||mimeToDataType(xhr.getResponseHeader("content-type")),result=xhr.responseText;try{dataType=="script"?(1,eval)(result):dataType=="xml"?result=xhr.responseXML:dataType=="json"&&(result=blankRE.test(result)?null:JSON.parse(result))}catch(e){error=e}error?ajaxError(error,"parsererror",xhr,settings):ajaxSuccess(result,xhr,settings)}else ajaxError(null,"error",xhr,settings)}};var async="async"in settings?settings.async:!0;xhr.open(settings.type,settings.url,async);for(name in settings.headers)xhr.setRequestHeader(name,settings.headers[name]);return ajaxBeforeSend(xhr,settings)===!1?(xhr.abort(),!1):(settings.timeout>0&&(abortTimeout=setTimeout(function(){xhr.onreadystatechange=empty,xhr.abort(),ajaxError(null,"timeout",xhr,settings)},settings.timeout)),xhr.send(settings.data?settings.data:null),xhr)},$.get=function(a,b){return $.ajax({url:a,success:b})},$.post=function(a,b,c,d){return $.isFunction(b)&&(d=d||c,c=b,b=null),$.ajax({type:"POST",url:a,data:b,success:c,dataType:d})},$.getJSON=function(a,b){return $.ajax({url:a,success:b,dataType:"json"})},$.fn.load=function(a,b){if(!this.length)return this;var c=this,d=a.split(/\s/),e;return d.length>1&&(a=d[0],e=d[1]),$.get(a,function(a){c.html(e?$(document.createElement("div")).html(a.replace(rscript,"")).find(e).html():a),b&&b.call(c)}),this};var escape=encodeURIComponent;$.param=function(a,b){var c=[];return c.add=function(a,b){this.push(escape(a)+"="+escape(b))},serialize(c,a,b),c.join("&").replace("%20","+")}}(Zepto),function(a){a.fn.serializeArray=function(){var b=[],c;return a(Array.prototype.slice.call(this.get(0).elements)).each(function(){c=a(this);var d=c.attr("type");this.nodeName.toLowerCase()!="fieldset"&&!this.disabled&&d!="submit"&&d!="reset"&&d!="button"&&(d!="radio"&&d!="checkbox"||this.checked)&&b.push({name:c.attr("name"),value:c.val()})}),b},a.fn.serialize=function(){var a=[];return this.serializeArray().forEach(function(b){a.push(encodeURIComponent(b.name)+"="+encodeURIComponent(b.value))}),a.join("&")},a.fn.submit=function(b){if(b)this.bind("submit",b);else if(this.length){var c=a.Event("submit");this.eq(0).trigger(c),c.defaultPrevented||this.get(0).submit()}return this}}(Zepto),function(a){function d(a){return"tagName"in a?a:a.parentNode}function e(a,b,c,d){var e=Math.abs(a-b),f=Math.abs(c-d);return e>=f?a-b>0?"Left":"Right":c-d>0?"Up":"Down"}function h(){g=null,b.last&&(b.el.trigger("longTap"),b={})}function i(){g&&clearTimeout(g),g=null}var b={},c,f=750,g;a(document).ready(function(){var j,k;a(document.body).bind("touchstart",function(e){j=Date.now(),k=j-(b.last||j),b.el=a(d(e.touches[0].target)),c&&clearTimeout(c),b.x1=e.touches[0].pageX,b.y1=e.touches[0].pageY,k>0&&k<=250&&(b.isDoubleTap=!0),b.last=j,g=setTimeout(h,f)}).bind("touchmove",function(a){i(),b.x2=a.touches[0].pageX,b.y2=a.touches[0].pageY}).bind("touchend",function(a){i(),b.isDoubleTap?(b.el.trigger("doubleTap"),b={}):b.x2&&Math.abs(b.x1-b.x2)>30||b.y2&&Math.abs(b.y1-b.y2)>30?(b.el.trigger("swipe")&&b.el.trigger("swipe"+e(b.x1,b.x2,b.y1,b.y2)),b={}):"last"in b&&(b.el.trigger("tap"),c=setTimeout(function(){c=null,b.el.trigger("singleTap"),b={}},250))}).bind("touchcancel",function(){c&&clearTimeout(c),g&&clearTimeout(g),g=c=null,b={}})}),["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap","singleTap","longTap"].forEach(function(b){a.fn[b]=function(a){return this.bind(b,a)}})}(Zepto);
View
2  ajax/libs/zepto/package.json
@@ -1,5 +1,5 @@
{
- "name": "Zepto",
+ "name": "zepto",
"filename": "zepto.min.js",
"description": "Zepto.js is a minimalist JavaScript library for modern browsers, with a jQuery-compatible API",
"version": "1.0rc1",
Something went wrong with that request. Please try again.