jqmobi-rails 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. data/.gitignore +17 -0
  2. data/Gemfile +8 -0
  3. data/LICENSE +22 -0
  4. data/README.md +29 -0
  5. data/Rakefile +68 -0
  6. data/jqmobi-rails.gemspec +17 -0
  7. data/lib/jqmobi/rails/engine.rb +6 -0
  8. data/lib/jqmobi/rails/version.rb +7 -0
  9. data/lib/jqmobi/rails.rb +7 -0
  10. data/lib/jqmobi-rails.rb +1 -0
  11. data/vendor/assets/javascripts/jq.mobi.js +1894 -0
  12. data/vendor/assets/javascripts/jq.mobi_ujs.js +393 -0
  13. data/vendor/assets/javascripts/jq.ui.js +3396 -0
  14. data/vendor/assets/javascripts/plugins/jq.actionsheet.js +99 -0
  15. data/vendor/assets/javascripts/plugins/jq.alphatable.js +136 -0
  16. data/vendor/assets/javascripts/plugins/jq.carousel.js +415 -0
  17. data/vendor/assets/javascripts/plugins/jq.css3animate.js +155 -0
  18. data/vendor/assets/javascripts/plugins/jq.drawer.js +224 -0
  19. data/vendor/assets/javascripts/plugins/jq.fx.js +110 -0
  20. data/vendor/assets/javascripts/plugins/jq.passwordBox.js +45 -0
  21. data/vendor/assets/javascripts/plugins/jq.popup.js +201 -0
  22. data/vendor/assets/javascripts/plugins/jq.scroller.js +540 -0
  23. data/vendor/assets/javascripts/plugins/jq.selectBox.js +315 -0
  24. data/vendor/assets/javascripts/plugins/jq.shake.js +39 -0
  25. data/vendor/assets/javascripts/plugins/jq.social.js +113 -0
  26. data/vendor/assets/javascripts/plugins/jq.swipe.js +121 -0
  27. data/vendor/assets/javascripts/plugins/jq.template.js +26 -0
  28. data/vendor/assets/javascripts/plugins/jq.web.min.js +66 -0
  29. data/vendor/assets/stylesheets/plugins/jq.actionsheet.css +57 -0
  30. data/vendor/assets/stylesheets/plugins/jq.popup.css +73 -0
  31. data/vendor/assets/stylesheets/plugins/jq.scroller.css +10 -0
  32. data/vendor/assets/stylesheets/plugins/jq.selectBox.css +35 -0
  33. metadata +77 -0
@@ -0,0 +1,66 @@
1
+ (function(i){var e=[];i.fn.carousel=function(b){if(b===void 0&&this.length>0)return e[this[0].id]?e[this[0].id]:null;for(var d,h=0;h<this.length;h++)d=new c(this[h],b),this[h].id&&(e[this[h].id]=d);return this.length===1?d:this};var c=function(){if(window.WebKitCSSMatrix){var b="m11"in new WebKitCSSMatrix?"3d(":"(",d="m11"in new WebKitCSSMatrix?",0)":")",c=function(a,f){if(this.container=typeof a==="string"||a instanceof String?document.getElementById(a):a){if(this instanceof c)for(var g in f)f.hasOwnProperty(g)&&
2
+ (this[g]=f[g]);else return new c(a,f);try{var k=this;this.pagingDiv=this.pagingDiv?document.getElementById(this.pagingDiv):null;this.container.style.overflow="hidden";this.container.style["-webkit-box-orient"]="vertical";this.container.style.display="-webkit-box";this.container.style["-webkit-box-orient"]="vertical";if(this.vertical)this.horizontal=!1;var d=this.container.innerHTML;this.container.innerHTML="";var b=document.createElement("div");b.innerHTML=d;this.horizontal?(b.style.display="-webkit-box",
3
+ b.style["-webkit-box-flex"]=1):b.style.display="block";this.container.appendChild(b);this.el=b;this.refreshItems();b.addEventListener("touchmove",function(a){k.touchMove(a)},!1);b.addEventListener("touchend",function(a){k.touchEnd(a)},!1);b.addEventListener("touchstart",function(a){k.touchStart(a)},!1);k=this;window.addEventListener("orientationchange",function(){k.onMoveIndex(k.carouselIndex,0)},!1)}catch(e){console.log("error adding carousel "+e)}}else alert("Error finding container for carousel "+
4
+ a)};c.prototype={startX:0,startY:0,dx:0,dy:0,myDivWidth:0,myDivHeight:0,cssMoveStart:0,childrenCount:0,carouselIndex:0,vertical:!1,horizontal:!0,el:null,movingElement:!1,container:null,pagingDiv:null,pagingCssName:"carousel_paging",pagingCssNameSelected:"carousel_paging_selected",pagingFunction:null,lockMove:!1,touchStart:function(a){this.myDivWidth=numOnly(this.container.clientWidth);this.myDivHeight=numOnly(this.container.clientHeight);this.lockMove=!1;if(event.touches[0].target&&event.touches[0].target.type!==
5
+ void 0){var f=event.touches[0].target.tagName.toLowerCase();if(f==="select"||f==="input"||f==="button")return}if(a.touches.length===1)if(this.movingElement=!0,this.startY=a.touches[0].pageY,this.startX=a.touches[0].pageX,this.vertical)try{this.cssMoveStart=numOnly((new WebKitCSSMatrix(window.getComputedStyle(this.el,null).webkitTransform)).f)}catch(g){this.cssMoveStart=0}else try{this.cssMoveStart=numOnly((new WebKitCSSMatrix(window.getComputedStyle(this.el,null).webkitTransform)).e)}catch(k){this.cssMoveStart=
6
+ 0}},touchMove:function(a){if(this.movingElement){if(a.touches.length>1)return this.touchEnd(a);var f={x:a.touches[0].pageX-this.startX,y:a.touches[0].pageY-this.startY};if(this.vertical)f={x:0,y:0},this.dy=a.touches[0].pageY-this.startY,this.dy+=this.cssMoveStart,f.y=this.dy,a.preventDefault(),a.stopPropagation();else{var g;if(g=!this.lockMove)f=Math.round(Math.atan2(f.y,f.x)*180/Math.PI),f<0&&(f=360-Math.abs(f)),g=f<=215&&f>=155||f<=45&&f>=0||f<=360&&f>=315?!0:!1;if(g)f={x:0,y:0},this.dx=a.touches[0].pageX-
7
+ this.startX,this.dx+=this.cssMoveStart,a.preventDefault(),a.stopPropagation(),f.x=this.dx;else return this.lockMove=!0}f&&this.moveCSS3(this.el,f)}},touchEnd:function(){if(this.movingElement){var a=!1;try{var f=this.vertical?numOnly((new WebKitCSSMatrix(window.getComputedStyle(this.el,null).webkitTransform)).f):numOnly((new WebKitCSSMatrix(window.getComputedStyle(this.el,null).webkitTransform)).e);if(f>0)this.moveCSS3(this.el,{x:0,y:0},"300");else{var g=this.vertical?this.dy%this.myDivHeight/this.myDivHeight*
8
+ -100:this.dx%this.myDivWidth/this.myDivWidth*-100,k=this.carouselIndex;f<this.cssMoveStart&&g>3?k++:f>this.cssMoveStart&&g<97&&k--;k>this.childrenCount-1&&(k=this.childrenCount-1);k<0&&(k=0);f={x:0,y:0};this.vertical?f.y=k*this.myDivHeight*-1:f.x=k*this.myDivWidth*-1;this.moveCSS3(this.el,f,"150");if(this.pagingDiv&&this.carouselIndex!==k)document.getElementById(this.container.id+"_"+this.carouselIndex).className=this.pagingCssName,document.getElementById(this.container.id+"_"+k).className=this.pagingCssNameSelected;
9
+ this.carouselIndex!=k&&(a=!0);this.carouselIndex=k}}catch(b){console.log(b)}this.dx=0;this.movingElement=!1;this.startY=this.dy=this.startX=0;a&&this.pagingFunction&&typeof this.pagingFunction=="function"&&this.pagingFunction(this.carouselIndex)}},onMoveIndex:function(a,f){this.myDivWidth=numOnly(this.container.clientWidth);this.myDivHeight=numOnly(this.container.clientHeight);var g=!1;try{document.getElementById(this.container.id+"_"+this.carouselIndex).className=this.pagingCssName;var k=Math.abs(a-
10
+ this.carouselIndex),b=a;b<0&&(b=0);b>this.childrenCount-1&&(b=this.childrenCount-1);var d={x:0,y:0};this.vertical?d.y=b*this.myDivHeight*-1:d.x=b*this.myDivWidth*-1;var c=f?f:50+parseInt(k*20);this.moveCSS3(this.el,d,c);this.carouselIndex!=b&&(g=!0);this.carouselIndex=b;if(this.pagingDiv)document.getElementById(this.container.id+"_"+this.carouselIndex).className=this.pagingCssNameSelected}catch(h){console.log("Error "+h)}g&&this.pagingFunction&&typeof this.pagingFunction=="function"&&this.pagingFunction(currInd)},
11
+ moveCSS3:function(a,f,g,k){g=g?parseInt(g):0;k||(k="linear");a.style.webkitTransform="translate"+b+f.x+"px,"+f.y+"px"+d;a.style.webkitTransitionDuration=g+"ms";a.style.webkitBackfaceVisiblity="hidden";a.style.webkitTransformStyle="preserve-3d";a.style.webkitTransitionTimingFunction=k},addItem:function(a){a&&a.nodeType&&(this.container.childNodes[0].appendChild(a),this.refreshItems())},refreshItems:function(){var a=0,f=this,g=this.el;n=g.childNodes[0];for(var b,d=[];n;n=n.nextSibling)n.nodeType===
12
+ 1&&(d.push(n),a++);this.childrenCount=a;b=parseFloat(100/this.childrenCount)+"%";for(a=0;a<d.length;a++)this.horizontal?(d[a].style.width=b,d[a].style.height="100%"):(d[a].style.height=b,d[a].style.width="100%",d[a].style.display="block");this.moveCSS3(g,{x:0,y:0});this.horizontal?(g.style.width=Math.ceil(this.childrenCount*100)+"%",g.style.height="100%",g.style["min-height"]="100%"):(g.style.width="100%",g.style.height=Math.ceil(this.childrenCount*100)+"%",g.style["min-height"]=Math.ceil(this.childrenCount*
13
+ 100)+"%");if(this.pagingDiv){this.pagingDiv.innerHTML="";for(a=0;a<this.childrenCount;a++)g=document.createElement("div"),g.id=this.container.id+"_"+a,g.pageId=a,g.className=a!==0?this.pagingCssName:this.pagingCssNameSelected,g.onclick=function(){f.onMoveIndex(this.pageId)},d=document.createElement("div"),d.style.width="20px",this.horizontal?(d.style.cssFloat="left",d.innerHTML="&nbsp;"):(d.innerHTML="&nbsp;",d.style.display="block"),this.pagingDiv.appendChild(g),a+1<this.childrenCount&&this.pagingDiv.appendChild(d),
14
+ d=g=null;this.pagingDiv.style.width=this.childrenCount*50+"px";this.pagingDiv.style.height="25px"}this.onMoveIndex(this.carouselIndex)}};return c}}()})(jq);(function(i){i.fn.css3Animate=function(c){for(var b,d=0;d<this.length;d++)b=new e(this[d],c);return this.length==1?b:this};i.css3AnimateQueue=function(){return new e.queue};var e=function(){if(window.WebKitCSSMatrix){var c="m11"in new WebKitCSSMatrix?"3d(":"(",b="m11"in new WebKitCSSMatrix?",0)":")",d=function(h,a){this.el=typeof h=="string"||h instanceof String?document.getElementById(h):h;if(!(this instanceof d))return new d(h,a);if(this.el){var f=this;if(a){a.time===void 0&&(a.time=0);if(a.callback){if(this.callback=
15
+ a.callback,this.moving=!0,a.time!=0)this.timeout=window.setTimeout(function(){if(f.moving==!0&&f.callback&&typeof(f.callback=="function"))f.moving=!1,f.callback(),delete this.callback},numOnly(a.time)+50)}else this.moving=!1;a.y||(a.y=0);a.x||(a.x=0);a.previous&&(a.y+=numOnly((new WebKitCSSMatrix(window.getComputedStyle(this.el).webkitTransform)).f),a.x+=numOnly((new WebKitCSSMatrix(window.getComputedStyle(this.el).webkitTransform)).e));if(!a.origin)a.origin="0% 0%";if(!a.scale)a.scale="1";if(!a.rotateY)a.rotateY=
16
+ "0";if(!a.rotateX)a.rotateX="0";if(!a.skewY)a.skewY="0";if(!a.skewX)a.skewX="0";a.timingFunction||(a.timingFunction="linear");if(typeof a.x=="number"||a.x.indexOf("%")==-1&&a.x.toLowerCase().indexOf("px")==-1&&a.x.toLowerCase().indexOf("deg")==-1)a.x=parseInt(a.x)+"px";if(typeof a.y=="number"||a.y.indexOf("%")==-1&&a.y.toLowerCase().indexOf("px")==-1&&a.y.toLowerCase().indexOf("deg")==-1)a.y=parseInt(a.y)+"px";this.el.style.webkitTransform="translate"+c+a.x+","+a.y+b+" scale("+parseFloat(a.scale)+
17
+ ") rotate("+a.rotateX+") rotateY("+a.rotateY+") skew("+a.skewX+","+a.skewY+")";this.el.style.webkitBackfaceVisiblity="hidden";var g="-webkit-transform";if(a.opacity!==void 0)this.el.style.opacity=a.opacity,g+=", opacity";if(a.width)this.el.style.width=a.width,g="all";if(a.height)this.el.style.height=a.height,g="all";this.el.style.webkitTransitionProperty=g;this.el.style.webkitTransitionDuration=(""+a.time).indexOf("s")==-1?a.time+"ms":a.time;this.el.style.webkitTransitionTimingFunction=a.timingFunction;
18
+ this.el.style.webkitTransformOrigin=a.origin;a.time==0&&a.callback?setTimeout(function(){f.finishAnimation()},0):this.el.addEventListener("webkitTransitionEnd",f.finishAnimation,!1)}else alert("Please provide configuration options for animation of "+h)}};d.prototype={finishAnimation:function(d){d&&d.preventDefault();if(this.moving)this.moving=!1,this.el.removeEventListener("webkitTransitionEnd",this.finishAnimation,!1),this.callback&&typeof(this.callback=="function")&&(this.timeout&&window.clearTimeout(this.timeout),
19
+ this.callback(),delete this.callback)}};return d}}();e.queue=function(){return{elements:[],push:function(c){this.elements.push(c)},pop:function(){return this.elements.pop()},run:function(){var c=this;if(this.elements.length!=0&&(typeof this.elements[0]=="function"&&this.shift()(),this.elements.length!=0)){var b=this.shift();if(this.elements.length>0)b.callback=function(){c.run()};e(b.id,b)}},shift:function(){return this.elements.shift()}}}})(jq);(function(i){i.fn.drawer=function(c){for(var b,d=0;d<this.length;d++)b=new e(this[d],c);return this.length==1?b:this};var e=function(){if(window.WebKitCSSMatrix){var c="m11"in new WebKitCSSMatrix?"3d(":"(",b="m11"in new WebKitCSSMatrix?",0)":")",d=!1,h=function(a,f){if(this.el=typeof a=="string"||a instanceof String?document.getElementById(a):a){if(this instanceof h)for(j in f)this[j]=f[j];else return new h(a,f);this.direction=this.direction.toLowerCase();try{this.handle=this.el.querySelectorAll(".drawer_handle")[0];
20
+ if(!this.handle)return alert("Could not find handle for drawer - "+a);var g=this;this.handle.addEventListener("touchmove",function(a){g.touchMove(a)},!1);this.handle.addEventListener("touchend",function(a){g.touchEnd(a)},!1)}catch(d){alert("error adding drawer"+d)}this.zIndex=i(this.el).css("zIndex")}else alert("Could not find element for drawer "+a)};h.prototype={lockY:0,lockX:0,boolScrollLock:!1,currentDrawer:null,maxTop:0,startTop:0,maxLeft:0,startLeft:0,timeMoved:0,vdistanceMoved:0,hdistanceMoved:0,
21
+ direction:"down",prevTime:0,handle:null,zIndex:1,touchMove:function(a){try{if(d||(d=!0,this.touchStart(a)),this.currentDrawer!=null){a.preventDefault();var f={x:0,y:0};if(this.direction=="down"||this.direction=="up"){var g=0,b=0,c=this.lockY-a.touches[0].pageY,c=-c,g=this.startTop+c;try{b=numOnly((new WebKitCSSMatrix(window.getComputedStyle(this.el).webkitTransform)).f)}catch(h){b=0}f.y=g;this.vdistanceMoved+=Math.abs(b)-Math.abs(g)}else{b=c=0;g=this.lockX-a.touches[0].pageX;g=-g;c=this.startLeft+
22
+ g;try{b=numOnly((new WebKitCSSMatrix(window.getComputedStyle(this.el).webkitTransform)).e)}catch(e){b=0}f.x=c;this.hdistanceMoved+=Math.abs(b)-Math.abs(c)}this.drawerMove(this.currentDrawer,f,0)}}catch(i){alert("error in scrollMove: "+i)}},touchStart:function(a){var f=this.el;if(this.handle)try{if(a.touches[0].target&&a.touches[0].target.type!=void 0){var g=a.touches[0].target.tagName.toLowerCase();if(g=="select"||g=="input"||g=="button")return}this.hdistanceMoved=this.vdistanceMoved=0;this.maxTop=
23
+ numOnly(this.el.style.height)-numOnly(this.handle.style.height);this.maxLeft=numOnly(this.el.style.width)-numOnly(this.handle.style.width);this.direction=="up"&&(this.maxTop*=-1);this.direction=="left"&&(this.maxLeft*=-1);if(a.touches.length==1&&this.boolScrollLock==!1){try{this.startTop=numOnly((new WebKitCSSMatrix(window.getComputedStyle(f).webkitTransform)).f),this.startLeft=numOnly((new WebKitCSSMatrix(window.getComputedStyle(f).webkitTransform)).e)}catch(d){this.startLeft=this.startTop=0,console.log("error drawer touchstart "+
24
+ d)}this.lockY=a.touches[0].pageY;this.lockX=a.touches[0].pageX;this.currentDrawer=f;a.preventDefault()}}catch(b){alert("error in drawer start: "+b)}},touchEnd:function(a){if(this.currentDrawer!=null){a.preventDefault();a.stopPropagation();a={x:0,y:0};if(this.direction=="up"||this.direction=="down"){var f=-this.vdistanceMoved,g=Math.ceil(Math.abs(f)/Math.abs(this.maxTop)*100),b=numOnly((new WebKitCSSMatrix(window.getComputedStyle(this.el).webkitTransform)).f);a.y=g>17?f>0?this.maxTop:0:Math.floor(this.maxTop/
25
+ b)>2?0:this.maxTop}else f=-this.hdistanceMoved,g=Math.ceil(Math.abs(f)/Math.abs(this.maxLeft)*100),b=numOnly((new WebKitCSSMatrix(window.getComputedStyle(this.el).webkitTransform)).e),g>17?a.x=f>0?this.maxLeft:0:Math.floor(this.maxLeft/b)>2?a.y=0:a.x=this.maxLeft;this.el.zIndex=a.y>0||a.x>0?"9999":this.zIndex;this.drawerMove(this.currentDrawer,a,300,"ease-out");this.currentDrawer=null}this.vdistanceMoved=0;d=!1},drawerMove:function(a,f,g,d){g||(g=0);d||(d="linear");a.style.webkitTransform="translate"+
26
+ c+f.x+"px,"+f.y+"px"+b;a.style.webkitTransitionDuration=g+"ms";a.style.webkitBackfaceVisiblity="hidden";a.style.webkitTransitionTimingFunction=d}};return h}}()})(jq);(function(i){i.passwordBox=function(){return new e};var e=function(){this.oldPasswords={}};e.prototype={showPasswordPlainText:!1,getOldPasswords:function(c){var b=c&&document.getElementById(c)?document.getElementById(c):document;if(b){c=b.getElementsByTagName("input");for(b=0;b<c.length;b++)if(c[b].type=="password")c[b].type="text",c[b].style["-webkit-text-security"]="disc"}else alert("Could not find container element for passwordBox "+c)},changePasswordVisiblity:function(c,b){c=parseInt(c);document.getElementById(b).style["-webkit-text-security"]=
27
+ c==1?"none":"disc"}}})(jq);(function(i){var e=[];i.fn.scroller=function(b){var d;if(b===void 0&&this.length>0)return e[this[0].id]?e[this[0].id]:null;for(var h=0;h<this.length;h++)d=new c(this[h],b),this[h].id&&(e[this[h].id]=d);return this.length==1?d:this};var c=function(){function b(a,d){var b=document.createElement("div");b.style.position="absolute";b.style.width=a+"px";b.style.height=d+"px";b.style.webkitBorderRadius="2px";b.style.opacity=0;b.className="scrollBar";b.style.background="black";return b}if(window.WebKitCSSMatrix){var d=
28
+ "m11"in new WebKitCSSMatrix?"3d(":"(",c="m11"in new WebKitCSSMatrix?",0)":")",a=function(f,d){if(this.el=typeof f=="string"||f instanceof String?document.getElementById(f):f){if(this instanceof a)for(j in d)this[j]=d[j];else return new a(f,d);try{this.container=this.el.parentNode;this.initEvents();if(this.verticalScroll&&this.verticalScroll==!0&&this.scrollBars==!0){var c=b(5,20);c.style.top="0px";if(this.vScrollCSS)c.className=this.vScrollCSS;c.style.opacity="0";this.container.appendChild(c);this.vscrollBar=
29
+ c;c=null}if(this.horizontalScroll&&this.horizontalScroll==!0&&this.scrollBars==!0){c=b(20,5);c.style.bottom="0px";if(this.hScrollCSS)c.className=this.hScrollCSS;c.style.opacity="0";this.container.appendChild(c);this.hscrollBar=c}this.horizontalScroll&&(this.el.style["float"]="left");i(this.el).addClass("jq-scrollable");this.el.hasScroller=!0}catch(h){alert("error adding scroller"+h)}}else alert("Could not find element for scroller "+f)};a.prototype={lockX:0,lockY:0,boolScrollLock:!1,currentScrollingObject:null,
30
+ bottomMargin:0,maxTop:0,startTop:0,verticalScroll:!0,horizontalScroll:!1,scrollBars:!0,vscrollBar:null,hscrollBar:null,hScrollCSS:"scrollBar",vScrollCSS:"scrollBar",divHeight:0,lastScrollbar:"",timeMoved:0,vdistanceMoved:0,hdistanceMoved:0,prevTime:0,finishScrollingObject:null,container:null,maxLeft:0,startLeft:0,rightMargin:0,divWidth:0,refresh:!1,refreshFunction:null,listeners:{start:"",move:"",end:""},elementScrolling:!1,scrollingFinishCB:!1,handleEvent:function(a){switch(a.type){case "touchstart":this.touchStart(a);
31
+ break;case "touchmove":this.touchMove(a);break;case "touchend":this.touchEnd(a)}},initEvents:function(){this.el.addEventListener("touchstart",this,!1);this.el.addEventListener("touchmove",this,!1);this.el.addEventListener("touchend",this,!1)},removeEvents:function(){this.el.removeEventListener("touchstart",this);this.el.removeEventListener("touchmove",this);this.el.removeEventListener("touchend",this)},hideScrollbars:function(){if(this.hscrollBar)this.hscrollBar.style.opacity=0,this.hscrollBar.style.webkitTransitionDuration=
32
+ "0ms";if(this.vscrollBar)this.vscrollBar.style.opacity=0,this.vscrollBar.style.webkitTransitionDuration="0ms"},touchStart:function(a){var b=this.container,d=this.el;that=this;if(b&&(this.elementScrolling&&clearTimeout(that.scrollingFinishCB),!i(this.el).hasClass("blockscroll")))try{if(a.touches[0].target&&a.touches[0].target.type!=void 0){var c=a.touches[0].target.tagName.toLowerCase();if(c=="select"||c=="input"||c=="button")return}if(this.refresh&&this.refresh==!0&&document.getElementById(this.el.id+
33
+ "_pulldown")==null){var h=jq("<div id='"+this.el.id+"_pulldown' class='jqscroll_refresh' style='border-radius:.6em;border: 1px solid #2A2A2A;background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0,#666666),color-stop(1,#222222));background:#222222;margin:0px;height:60px;top:0px;margin-left:5px;margin-right:5px;position:absolute;-webkit-transform: translate3d(0, -65px, 0);top:0,left:0,right:0;text-align:center;line-height:60px;color:white;'>Pull to Refresh</div>").get();h.style.width=
34
+ this.container.clientWidth+"px";i(this.el).prepend(h)}this.hdistanceMoved=this.vdistanceMoved=this.timeMoved=0;this.finishScrollingObject=this.prevTime=null;var e=i(b);this.bottomMargin=b.clientHeight>window.innerHeight?window.innerHeight:b.clientHeight-numOnly(e.css("marginTop"))-numOnly(e.css("paddingTop"))-numOnly(e.css("marginBottom"))-numOnly(e.css("paddingBottom"));this.maxTop=d.clientHeight-this.bottomMargin;this.divHeight=d.clientHeight;this.rightMargin=b.clientWidth>window.innerWidth?window.innerWidth:
35
+ b.clientWidth-numOnly(e.css("marginLeft"))-numOnly(e.css("paddingLeft"))-numOnly(e.css("marginRight"))-numOnly(e.css("paddingRight"));this.maxLeft=d.clientWidth-this.rightMargin;this.divWidth=d.clientWidth;if(!(this.maxTop<0&&this.maxLeft<0)&&(this.lockX=a.touches[0].pageX,this.lockY=a.touches[0].pageY,a.touches.length==1&&this.boolScrollLock==!1)){try{this.startTop=numOnly((new WebKitCSSMatrix(window.getComputedStyle(d).webkitTransform)).f)-numOnly(this.container.scrollTop),this.startLeft=numOnly((new WebKitCSSMatrix(window.getComputedStyle(d).webkitTransform)).e)-
36
+ numOnly(this.container.scrollLeft)}catch(l){this.startTop=0+this.container.scrollTop,this.startLeft=0+this.container.scrollLeft,console.log("error scroller touchstart "+l)}this.container.scrollTop=this.container.scrollLeft=0;this.currentScrollingObject=d;this.scrollerMoveCSS(d,{x:this.startLeft,y:this.startTop},0);if(this.vscrollBar&&this.maxTop>0){this.vscrollBar.style.height=parseFloat(this.bottomMargin/this.divHeight)*this.bottomMargin+"px";var o=this.bottomMargin-numOnly(this.vscrollBar.style.height)-
37
+ (this.maxTop+this.startTop)/this.maxTop*(this.bottomMargin-numOnly(this.vscrollBar.style.height));this.scrollerMoveCSS(this.vscrollBar,{x:0,y:o},0);this.container.clientWidth>window.innerWidth?this.vscrollBar.style.left=window.innerWidth-numOnly(this.vscrollBar.style.width)*3+"px":this.vscrollBar.style.right="0px";this.vscrollBar.webkitTransition=""}if(this.hscrollBar&&this.maxLeft>0)this.hscrollBar.style.width=parseFloat(this.rightMargin/this.divWidth)*this.rightMargin+"px",o=this.rightMargin-numOnly(this.hscrollBar.style.width)-
38
+ (this.maxTop+this.startLeft)/this.maxtLeft*(this.rightMargin-numOnly(this.hscrollBar.style.width)),this.scrollerMoveCSS(this.hscrollBar,{x:o,y:0},0),this.container.clientHeight>window.innerHeight?this.hscrollBar.style.top=window.innerHeight-numOnly(this.hscrollBar.style.height)+"px":this.hscrollBar.style.bottom=numOnly(this.hscrollBar.style.height),this.vscrollBar.webkitTransition=""}}catch(p){alert("error in scrollStart: "+p)}},touchMove:function(a){try{if(!i(this.el).hasClass("blockscroll")&&this.currentScrollingObject!=
39
+ null){a.preventDefault();var b={x:0,y:0},d=0,c=0,e=0,h=0;if(this.verticalScroll&&this.maxTop>0){var l=this.lockY-a.touches[0].pageY,l=-l,d=this.startTop+l;try{c=numOnly((new WebKitCSSMatrix(window.getComputedStyle(this.el).webkitTransform)).f)}catch(o){c=0}b.y=d}if(this.horizontalScroll&&this.maxLeft>0){var p=this.lockX-a.touches[0].pageX,p=-p,l=e=this.startLeft+p;try{h=-numOnly((new WebKitCSSMatrix(window.getComputedStyle(this.el).webkitTransform)).e)}catch(y){h=0}b.x=l}if(this.maxTop>0&&(b.y>0||
40
+ b.y<-1*this.maxTop)){var r=(this.container.clientHeight-(b.y>0?b.y:-1*(b.y+this.maxTop)))/this.container.clientHeight;r<0.5&&(r=0.5);b.y>0?b.y*=r:b.y-=(b.y+this.maxTop)*r}this.scrollerMoveCSS(this.currentScrollingObject,b,0);if(this.vscrollBar){var s=this.bottomMargin-numOnly(this.vscrollBar.style.height)-(this.maxTop+d)/this.maxTop*(this.bottomMargin-numOnly(this.vscrollBar.style.height));this.scrollerMoveCSS(this.vscrollBar,{x:0,y:s},0);this.vscrollBar.style.opacity=1}if(this.hscrollBar)s=this.rightMargin-
41
+ numOnly(this.hscrollBar.style.width)-(this.maxLeft+e)/this.maxLeft*(this.rightMargin-numOnly(this.hscrollBar.style.width)),this.scrollerMoveCSS(this.hscrollBar,{x:s,y:0},0),this.hscrollBar.style.opacity=1;if(this.prevTime){var v=Math.abs(c)-Math.abs(d),w=Math.abs(h)-Math.abs(e),t=a.timeStamp-this.prevTime;t<500?(this.timeMoved+=t,this.vdistanceMoved+=v,this.hdistanceMoved+=w):this.hdistanceMoved=this.vdistanceMoved=this.timeMoved=0}this.prevTime=a.timeStamp}}catch(x){alert("error in scrollMove: "+
42
+ x)}},touchEnd:function(a){if(this.currentScrollingObject!=null){a.preventDefault();this.finishScrollingObject=this.currentScrollingObject;this.currentScrollingObject=null;var a={x:0,y:0},b=300,d;if(this.verticalScroll&&this.maxTop>0){var c=-this.vdistanceMoved,b=this.timeMoved,e=numOnly((new WebKitCSSMatrix(window.getComputedStyle(this.el).webkitTransform)).f);d=e;c=this.calculateMomentum(c,b);b=c.time;e<0&&(e-=c.dist);e>0&&(e=0,b=200);e<-this.maxTop&&(e=-this.maxTop,b=200);a.y=e}if(this.horizontalScroll&&
43
+ this.maxLeft>0)c=-this.hdistanceMoved,b=this.timeMoved,e=(new WebKitCSSMatrix(window.getComputedStyle(this.el).webkitTransform)).e,c=this.calculateMomentum(c,b),b=c.time,e<0&&(e-=c.dist),e>0&&(e=0,b=200),e<-this.maxLeft&&(e=-this.maxLeft,b=200),a.x=e;var h=this;this.refresh&&d>60&&this.refreshFunction&&this.refreshFunction.call();b<300&&(b=300);this.scrollerMoveCSS(this.finishScrollingObject,a,b,"cubic-bezier(0.33,0.66,0.66,1)");if(this.vscrollBar){d=this.bottomMargin-numOnly(this.vscrollBar.style.height)-
44
+ (this.maxTop+a.y)/this.maxTop*(this.bottomMargin-numOnly(this.vscrollBar.style.height));if(d>this.bottomMargin)d=this.bottomMargin;d<0&&(d=0);this.scrollerMoveCSS(this.vscrollBar,{x:0,y:d},b,"cubic-bezier(0.33,0.66,0.66,1)")}if(this.hscrollBar){d=this.rightMargin-numOnly(this.hscrollBar.style.width)-(this.maxLeft+a.x)/this.maxLeft*(this.rightMargin-numOnly(this.hscrollBar.style.width));if(d>this.rightMargin)d=this.rightMargin;d<0&&(d=0);this.scrollerMoveCSS(this.hscrollBar,{x:d,y:0},b,"cubic-bezier(0.33,0.66,0.66,1)")}isNaN(b)?
45
+ (h.hideScrollbars(),h.elementScrolling=!1):this.scrollingFinishCB=setTimeout(function(){h.hideScrollbars();h.elementScrolling=!1},b);this.elementScrolling=!0}this.vdistanceMoved=this.hdistanceMoved=0},scrollerMoveCSS:function(a,b,e,i){e||(e=0);i||(i="linear");a.style.webkitTransform="translate"+d+b.x+"px,"+b.y+"px"+c;a.style.webkitTransitionDuration=e+"ms";a.style.webkitBackfaceVisiblity="hidden";a.style.webkitTransitionTimingFunction=i},scrollTo:function(a,b){b||(b=0);this.scrollerMoveCSS(this.el,
46
+ a,b);if(this.vscrollBar){a=this.bottomMargin-numOnly(this.vscrollBar.style.height)-(this.maxTop+a.y)/this.maxTop*(this.bottomMargin-numOnly(this.vscrollBar.style.height));if(a>this.bottomMargin)a=this.bottomMargin;a<0&&(a=0);this.scrollerMoveCSS(this.vscrollBar,{x:0,y:a},b,"ease-out");this.vscrollBar.style.opacity="0"}if(this.hscrollBar){a=this.rightMargin-numOnly(this.hscrollBar.style.width)-(this.maxLeft+a.x)/this.maxLeft*(this.rightMargin-numOnly(this.hscrollBar.style.width));if(a>this.rightMargin)a=
47
+ this.rightMargin;a<0&&(a=0);this.scrollerMoveCSS(this.hscrollBar,{x:a,y:0},b,"ease-out");this.hscrollBar.style.opacity="0"}},scrollBy:function(a,b){this.startTop=numOnly((new WebKitCSSMatrix(window.getComputedStyle(this.el).webkitTransform)).f)-numOnly(this.container.scrollTop);this.startLeft=numOnly((new WebKitCSSMatrix(window.getComputedStyle(this.el).webkitTransform)).e)-numOnly(this.container.scrollLeft);this.scrollTo({y:this.startTop-a.y,x:this.startLeft-a.x},b)},calculateMomentum:function(a,
48
+ b){var d=Math.abs(a)/b,c=d*d/0.0024,e=0;c*=a<0?-1:1;return{dist:c,time:d/0.0012}}};return a}}()})(jq);(function(i){i.selectBox={oldSelects:{},scroller:null,getOldSelects:function(e){if(i.os.android!=!1)if(i.fn.scroller){var c=e&&document.getElementById(e)?document.getElementById(e):document;if(c){for(var e=c.getElementsByTagName("select"),b=this,c=0;c<e.length;c++)this.oldSelects[e[c].id]||function(d){var c=document.createElement("div"),a=parseInt(d.style.width)>0?parseInt(d.style.width):100,e=parseInt(d.style.height)>0?parseInt(d.style.height):20;c.style.width=a+"px";c.style.height=e+"px";c.style.position=
49
+ "absolute";c.style.left="0px";c.style.top="0px";c.style.zIndex="1";if(d.value)c.innerHTML=d.options[d.selectedIndex].text;c.style.background="url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAeCAIAAABFWWJ4AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkM1NjQxRUQxNUFEODExRTA5OUE3QjE3NjI3MzczNDAzIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkM1NjQxRUQyNUFEODExRTA5OUE3QjE3NjI3MzczNDAzIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QzU2NDFFQ0Y1QUQ4MTFFMDk5QTdCMTc2MjczNzM0MDMiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QzU2NDFFRDA1QUQ4MTFFMDk5QTdCMTc2MjczNzM0MDMiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6YWbdCAAAAlklEQVR42mIsKChgIBGwAHFPTw/xGkpKSlggrG/fvhGjgYuLC0gyMZAOoPb8//9/0Or59+8f8XrICQN66SEnDOgcp3AgKiqKqej169dY9Hz69AnCuHv3rrKyMrIKoAhcVlBQELt/gIqwstHD4B8quH37NlAQSKKJEwg3iLbBED8kpeshoGcwh5uuri5peoBFMEluAwgwAK+5aXfuRb4gAAAAAElFTkSuQmCC') right top no-repeat";
50
+ c.style.backgroundColor="white";c.className="jqmobiSelect_fakeInput "+d.className;c.id=d.id+"_jqmobiSelect";c.style.border="1px solid gray";c.style.color="black";c.linkId=d.id;c.onclick=function(){b.initDropDown(this.linkId)};d.parentNode.appendChild(c);d.parentNode.style.position="relative";d.style.display="none";d.style.webkitAppearance="none";for(a=0;a<d.options.length;a++){if(d.options[a].selected)c.value=d.options[a].text;d.options[a].watch("selected",function(a,d,c){if(c==!0)b.updateMaskValue(this.parentNode.id,
51
+ this.text,this.value),this.parentNode.value=this.value;return c})}d.watch("selectedIndex",function(a,d,c){if(this.options[c])b.updateMaskValue(this.id,this.options[c].text,this.options[c].value),this.value=this.options[c].value;return c});imageMask=c=null;b.oldSelects[d.id]=1}(e[c]);b.createHtml()}else alert("Could not find container element for jq.web.selectBox "+e)}else alert("This library requires jq.web.Scroller")},updateDropdown:function(e){if(e=document.getElementById(e)){for(var c=0;c<e.options.length;c++){if(e.options[c].selected)fakeInput.value=
52
+ e.options[c].text;e.options[c].watch("selected",function(b,d,c){if(c==!0)that.updateMaskValue(this.parentNode.id,this.text,this.value),this.parentNode.value=this.value;return c})}e=null}},initDropDown:function(e){var c=this,b=document.getElementById(e);if(!b.disabled&&b&&b.options&&b.options.length!=0){var d=0;document.getElementById("jqmobiSelectBoxScroll").innerHTML="";document.getElementById("jqmobiSelectBoxHeaderTitle").innerHTML=b.name!=void 0&&b.name!="undefined"&&b.name!=""?b.name:e;for(var h=
53
+ 0;h<b.options.length;h++){b.options[h].watch("selected",function(a,b,d){if(d==!0)c.updateMaskValue(this.parentNode.id,this.text,this.value),this.parentNode.value=this.value;return d});var a=b.value==b.options[h].value?!0:!1,f="",g=document.createElement("div");g.className="jqmobiSelectRow";a?(f="checked",d=h,a="id='jqmobiSelectBox_found'",g.className="jqmobiSelectRowFound"):a="";g.id=a;g.style.cssText=";line-height:40px;font-size:14px;padding-left:10px;height:40px;width:100%;position:relative;width:100%;border-bottom:1px solid black;background:white;";
54
+ var i=document.createElement("a");i.href="javascript:;";g.tmpValue=h;g.onclick=function(){c.setDropDownValue(e,this.tmpValue)};i.style.cssText="text-decoration:none;color:black;";i.innerHTML=b.options[h].text;var q=document.createElement("span");q.style.cssText="float:right;margin-right:20px;margin-top:-2px";var m=document.createElement("button");a?(m.style.cssText="background: #000;padding: 0px 0px;border-radius:15px;border:3px solid black;",m.className="jqmobiSelectRowButtonFound"):(m.style.cssText=
55
+ "background: #ffffff;padding: 0px 0px;border-radius:15px;border:3px solid black;",m.className="jqmobiSelectRowButton");m.style.width="20px";m.style.height="20px";m.checked=f;i.className="jqmobiSelectRowText";q.appendChild(m);g.appendChild(i);g.appendChild(q);document.getElementById("jqmobiSelectBoxScroll").appendChild(g);i=m=q=null}try{document.getElementById("jqmobiSelectModal").style.display="block"}catch(u){console.log("Error showing div "+u)}try{if(g){var l=numOnly(g.style.height),o=numOnly(document.getElementById("jqmobiSelectBoxHeader").style.height);
56
+ this.scroller.scrollTo({x:0,y:d*l+o>=numOnly(document.getElementById("jqmobiSelectBoxFix").clientHeight)-o?d*-l+o:0})}}catch(p){console.log("error init dropdown"+p)}b=g=null}},updateMaskValue:function(e,c,b){var d=document.getElementById(e+"_jqmobiSelect"),e=document.getElementById(e);if(d)d.innerHTML=c;if(typeof e.onchange=="function")e.onchange(b)},setDropDownValue:function(e,c){var b=document.getElementById(e);if(b)b.selectedIndex=c,i(b).trigger("change");this.scroller.scrollTo({x:0,y:0});this.hideDropDown()},
57
+ hideDropDown:function(){document.getElementById("jqmobiSelectModal").style.display="none";document.getElementById("jqmobiSelectBoxScroll").innerHTML=""},createHtml:function(){var e=this;if(!document.getElementById("jqmobiSelectBoxContainer")){var c=document.createElement("div");c.style.cssText="position:absolute;top:0px;bottom:0px;left:0px;right:0px;background:rgba(0,0,0,.7);z-index:200000;display:none;";c.id="jqmobiSelectModal";var b=document.createElement("div");b.id="jqmobiSelectBoxContainer";
58
+ b.style.cssText="position:absolute;top:8%;bottom:10%;display:block;width:90%;margin:auto;margin-left:5%;height:90%px;background:white;color:black;border:1px solid black;border-radius:6px;";b.innerHTML="<div id='jqmobiSelectBoxHeader' style=\"display:block;font-family:'Eurostile-Bold', Eurostile, Helvetica, Arial, sans-serif;color:#fff;font-weight:bold;font-size:18px;line-height:34px;height:34px; text-transform:uppercase;text-align:left;text-shadow:rgba(0,0,0,.9) 0px -1px 1px; padding: 0px 8px 0px 8px; border-top-left-radius:5px; border-top-right-radius:5px; -webkit-border-top-left-radius:5px; -webkit-border-top-right-radius:5px; background:#39424b; margin:1px;\"><div style='float:left;' id='jqmobiSelectBoxHeaderTitle'></div><div style='float:right;width:60px;margin-top:-5px'><div id='jqmobiSelectClose' class='button' style='width:60px;height:32px;line-height:32px;'>Close</div></div></div>";
59
+ b.innerHTML+='<div id="jqmobiSelectBoxFix" style="position:relative;height:90%;background:white;overflow:hidden;width:100%;"><div id="jqmobiSelectBoxScroll"></div></div>';e=this;c.appendChild(b);i(document).ready(function(){jq("#jQUi")?jq("#jQUi").append(c):document.body.appendChild(c);i("#jqmobiSelectClose").get().onclick=function(){e.hideDropDown()};var d=i("<style>.jqselectscrollBarV{opacity:1 !important;}</style>").get();document.body.appendChild(d);try{e.scroller=i("#jqmobiSelectBoxScroll").scroller({scroller:!1,
60
+ verticalScroll:!0,vScrollCSS:"jqselectscrollBarV"})}catch(h){console.log("Error creating select html "+h)}d=b=c=null})}}};if(!HTMLElement.prototype.watch)HTMLElement.prototype.watch=function(e,c){var b=this[e],d=b,h=function(){return d},a=function(a){b=d;return d=c.call(this,e,b,a)};delete this[e]&&(HTMLElement.defineProperty?HTMLElement.defineProperty(this,e,{get:h,set:a,enumerable:!1,configurable:!0}):HTMLElement.prototype.__defineGetter__&&HTMLElement.prototype.__defineSetter__&&(HTMLElement.prototype.__defineGetter__.call(this,
61
+ e,h),HTMLElement.prototype.__defineSetter__.call(this,e,a)))};if(!HTMLElement.prototype.unwatch)HTMLElement.prototype.unwatch=function(e){var c=this[e];delete this[e];this[e]=c}})(jq);(function(i){var e=[];i.fn.swipeListener=function(b){if(b===void 0&&this.length>0)return e[this[0].id]?e[this[0].id]:null;for(var d=0;d<this.length;d++)tmp=new c(this[d],b),this[d].id&&(e[this[d].id]=tmp);return this.length==1?tmp:this};var c=function(){var b=function(b,c){var a=this;if(this.el=typeof b=="string"?document.getElementById(b):b)for(j in this.el.addEventListener("touchmove",function(b){a.touchMove(b)},!1),this.el.addEventListener("touchend",function(b){a.touchEnd(b)},!1),c)this[j]=c[j];
62
+ else alert("Error adding swipe listener for "+b)};b.prototype={startX:0,startY:0,movingX:0,movingY:0,vthreshold:50,hthreshold:50,movingElement:!1,swipeDirection:{up:!1,down:!1,left:!1,right:!1},callBack:null,cancel:function(){this.movingY=this.movingX=this.startY=this.startX=0;this.movingElement=!1;this.swipeDirection={up:!1,down:!1,left:!1,right:!1}},touchStart:function(b){if(!(b.touches[0].target&&b.touches[0].target.type!=void 0)&&b.touches.length==1)this.movingElement=!0,this.startX=b.touches[0].pageX,
63
+ this.startY=b.touches[0].pageY,b.preventDefault()},touchMove:function(b){this.movingElement==!1&&this.touchStart(b);b.preventDefault();b.touches.length>1||!this.movingElement?this.cancel():(this.movingX=b.touches[0].pageX-this.startX,this.movingY=b.touches[0].pageY-this.startY)},touchEnd:function(b){if(this.movingElement){b.preventDefault();b=!1;if(Math.abs(this.movingX)>this.hthreshold)this.swipeDirection.right=this.movingX>0,this.swipeDirection.left=this.movingX<0,b=!0;if(Math.abs(this.movingY)>
64
+ this.vthreshold)this.swipeDirection.up=this.movingY<0,this.swipeDirection.down=this.movingY>0,b=!0;b&&typeof(this.callBack=="function")&&this.callBack(this.swipeDirection);this.cancel()}}};return b}()})(jq);(function(i){i.template=function(c,b){return e(c,b)};i.tmpl=function(c,b){return i(e(c,b))};var e=function(c,b){b||(b={});return tmpl(c,b)};(function(){var c={};this.tmpl=function d(e,a){var f=!/\W/.test(e)?c[e]=c[e]||d(document.getElementById(e).innerHTML):new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+e.replace(/[\r\t\n]/g," ").replace(/'(?=[^%]*%>)/g,"\t").split("'").join("\\'").split("\t").join("'").replace(/<%=(.+?)%>/g,"',$1,'").split("<%").join("');").split("%>").join("p.push('")+
65
+ "');}return p.join('');");return a?f(a):f}})()})(jq);(function(i){var e=function(){};i.fn.fadeOut=function(c,b,d){if(this.length!=0){c||(c=0);var h=this,a=e;b||(b=e);d||(d=0,a=function(){this.hide()});this.css3Animate({opacity:d,time:c,callback:function(){b.apply(h);a.apply(h)}});return this}};i.fn.fadeIn=function(c,b){c||(c="300ms");this.show();this.css("opacity",".1");var d=this;window.setTimeout(function(){d.fadeOut(c,b,10)},1);return this};i.fn.slideToggle=function(c,b,d){for(var e={time:c?c:"500ms",callback:b?b:null,easing:d?d:"linear"},c=0;c<
66
+ this.length;c++){var d=this.css("display",null,this[c]),a=!1,f=i(this[c]);d=="none"&&(f.show(),a=!0);var g=this.css("height",null,this[c]);a?(f.css("height","0px"),e.height=g):(e.height="0px",b=function(){f.hide();f.css3Animate({height:g,time:"0ms"})});b&&(e.callback=b);window.setTimeout(function(){f.css3Animate(e)},1)}return this}})(jq);
@@ -0,0 +1,57 @@
1
+ #jq_actionsheet {
2
+ position:absolute;
3
+ left:0px;
4
+ right:0px;
5
+ padding-left:10px;
6
+ padding-right:10px;
7
+ padding-top:10px;
8
+ margin:auto;
9
+ background:black;
10
+ float:left;
11
+ z-index:9999;
12
+ border-top:#fff 1px solid;
13
+ background:rgba(71,71,71,.95);
14
+ background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(255,255,255,.4)), to(rgba(255,255,255,0)), color-stop(.08,rgba(255,255,255,.1)), color-stop(.08,rgba(255,255,255,0)));
15
+ background-image:-webkit-linear-gradient(top, rgba(255,255,255,.4) 0%, rgba(255,255,255,.1) 8%, rgba(255,255,255,0) 8%);
16
+ box-shadow:0px -1px 2px rgba(0,0,0,.4);
17
+ }
18
+ #jq_actionsheet a {
19
+ text-decoration:none;
20
+ -webkit-transition:all 0.4s ease;
21
+ text-shadow:0px -1px rgba(0,0,0,.8);
22
+ padding:0px .25em;
23
+ border:1px solid rgba(0,0,0,.8);
24
+ text-overflow:ellipsis;
25
+ -webkit-border-radius:.75em; border-radius:.75em;
26
+ background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(255,255,255,.4)), to(rgba(255,255,255,0)), color-stop(.5,rgba(255,255,255,.1)), color-stop(.5,rgba(255,255,255,0)));
27
+ background-image:-webkit-linear-gradient(top, rgba(255,255,255,.5) 0%, rgba(255,255,255,.2) 50%, rgba(255,255,255,0) 50%);
28
+ -webkit-box-shadow:0px 1px 1px rgba(255,255,255,0.7); box-shadow:0px 1px 1px rgba(255,255,255,0.7);
29
+ display:block;
30
+ color:white;
31
+ text-align:center;
32
+ line-height:36px;
33
+ font-size:20px;
34
+ font-weight:bold;
35
+ margin-bottom:10px;
36
+ background-color:rgba(130,130,130,1);
37
+ }
38
+
39
+ #jq_actionsheet a.selected {
40
+ background-color:rgba(150,150,150,1);
41
+ }
42
+
43
+ #jq_actionsheet a.cancel {
44
+ background-color:rgba(43,43,43,1);
45
+ }
46
+
47
+ #jq_actionsheet a.cancel.selected {
48
+ background-color:rgba(73,73,73,1);
49
+ }
50
+ #jq_actionsheet a.red {
51
+ color:white;
52
+ background-color:rgba(204,0,0,1);
53
+ }
54
+
55
+ #jq_actionsheet a.red.selected {
56
+ background-color:rgba(255,0,0,1);
57
+ }
@@ -0,0 +1,73 @@
1
+
2
+
3
+ BODY>DIV#mask{
4
+ display:block;
5
+ width:100%;
6
+ height:100%;
7
+ background:#000;
8
+ z-index: 999999;
9
+ position:absolute;
10
+ top:0;
11
+ left:0;
12
+ }
13
+
14
+ .jqPopup {
15
+ display: block;
16
+ width: 300px;
17
+ border: solid 1px #72767b;
18
+ -webkit-box-shadow: 0px 4px 6px #555, 0 0 20px rgba(255,255,255,0.5);
19
+ -webkit-border-radius: 10px;
20
+ padding: 10px;
21
+ opacity: 1;
22
+ -webkit-transform: scale(1);
23
+ -webkit-transition: all 0.20s ease-in-out;
24
+ position: absolute;
25
+ z-index: 1000000;
26
+ margin-left: auto!important;
27
+ margin-right: auto!important;
28
+ background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(70,70,70,0.8)), to(rgba(0,20,20,0.8)));
29
+ }
30
+ .jqPopup >* {
31
+ color:white;
32
+ }
33
+
34
+ .jqPopup.hidden {
35
+ opacity: 0;
36
+ -webkit-transform: scale(0);
37
+ top: 50%;
38
+ left: 50%;
39
+ margin: 0px auto;
40
+ }
41
+
42
+ .jqPopup>HEADER{
43
+ font-weight:bold;
44
+ font-size:20px;
45
+ margin:0;
46
+ padding:0;
47
+ }
48
+
49
+ .jqPopup>DIV{
50
+ font-size:12px;
51
+ margin:8px;
52
+ }
53
+
54
+ .jqPopup>FOOTER{
55
+ width:100%;
56
+ text-align:center;
57
+ display:block !important;
58
+ }
59
+
60
+ .jqPopup>FOOTER>A#cancel{
61
+ float:left;
62
+ }
63
+
64
+ .jqPopup>FOOTER>A#action{
65
+ float:right;
66
+ margin-right:4px;
67
+ }
68
+
69
+ .jqPopup>FOOTER>A.center{
70
+ float:none!important;
71
+ width:80%;
72
+ margin:8px;
73
+ }
@@ -0,0 +1,10 @@
1
+ /** This can be your default scrollbar class. You must use !important to override the default inline styles */
2
+ .scrollBar {
3
+ position:absolute !important;
4
+ width:5px !important;
5
+ height:20px !important;
6
+ border-radius:2px !important;
7
+ border:1px soldid black !important;
8
+ background:black !important;
9
+ opacity:0 !important;
10
+ }
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Since the styles are built in, you have to override values with !important
3
+ */
4
+
5
+ /* Row of selected item */
6
+ .jqmobiSelectRowFound {
7
+ }
8
+
9
+ /* Button (radio) for the found item in the list */
10
+ .jqmobiSelectRowButtonFound{
11
+ }
12
+
13
+
14
+ /* Row for items in the list */
15
+ .jqmobiSelectRow{
16
+
17
+ }
18
+
19
+ /* button for the items in the list */
20
+ .jqmobiSelectRowButton{
21
+
22
+ }
23
+
24
+ /* class for the item text displayed */
25
+ .jqmobiSelectRowText{
26
+ }
27
+
28
+ /* Header for select box */
29
+ #jqmobiSelectBoxHeader{
30
+ }
31
+
32
+ /* div that holds the options listed*/
33
+ #jqmobiSelectBoxFix {
34
+
35
+ }
metadata ADDED
@@ -0,0 +1,77 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jqmobi-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - M.Shibuya
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-06-22 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: This gem provides jQMobi and jQMobi-ujs driver for Rails3 application.
15
+ email:
16
+ - mit.shibuya@gmail.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - .gitignore
22
+ - Gemfile
23
+ - LICENSE
24
+ - README.md
25
+ - Rakefile
26
+ - jqmobi-rails.gemspec
27
+ - lib/jqmobi-rails.rb
28
+ - lib/jqmobi/rails.rb
29
+ - lib/jqmobi/rails/engine.rb
30
+ - lib/jqmobi/rails/version.rb
31
+ - vendor/assets/javascripts/jq.mobi.js
32
+ - vendor/assets/javascripts/jq.mobi_ujs.js
33
+ - vendor/assets/javascripts/jq.ui.js
34
+ - vendor/assets/javascripts/plugins/jq.actionsheet.js
35
+ - vendor/assets/javascripts/plugins/jq.alphatable.js
36
+ - vendor/assets/javascripts/plugins/jq.carousel.js
37
+ - vendor/assets/javascripts/plugins/jq.css3animate.js
38
+ - vendor/assets/javascripts/plugins/jq.drawer.js
39
+ - vendor/assets/javascripts/plugins/jq.fx.js
40
+ - vendor/assets/javascripts/plugins/jq.passwordBox.js
41
+ - vendor/assets/javascripts/plugins/jq.popup.js
42
+ - vendor/assets/javascripts/plugins/jq.scroller.js
43
+ - vendor/assets/javascripts/plugins/jq.selectBox.js
44
+ - vendor/assets/javascripts/plugins/jq.shake.js
45
+ - vendor/assets/javascripts/plugins/jq.social.js
46
+ - vendor/assets/javascripts/plugins/jq.swipe.js
47
+ - vendor/assets/javascripts/plugins/jq.template.js
48
+ - vendor/assets/javascripts/plugins/jq.web.min.js
49
+ - vendor/assets/stylesheets/plugins/jq.actionsheet.css
50
+ - vendor/assets/stylesheets/plugins/jq.popup.css
51
+ - vendor/assets/stylesheets/plugins/jq.scroller.css
52
+ - vendor/assets/stylesheets/plugins/jq.selectBox.css
53
+ homepage: https://github.com/mshibuya/jqmobi-rails
54
+ licenses: []
55
+ post_install_message:
56
+ rdoc_options: []
57
+ require_paths:
58
+ - lib
59
+ required_ruby_version: !ruby/object:Gem::Requirement
60
+ none: false
61
+ requirements:
62
+ - - ! '>='
63
+ - !ruby/object:Gem::Version
64
+ version: '0'
65
+ required_rubygems_version: !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - ! '>='
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ requirements: []
72
+ rubyforge_project:
73
+ rubygems_version: 1.8.24
74
+ signing_key:
75
+ specification_version: 3
76
+ summary: jQMobi integration for Rails.
77
+ test_files: []