You are viewing a plain text version of this content. The canonical link for it is here.
Posted to photark-commits@incubator.apache.org by lr...@apache.org on 2012/06/02 23:34:05 UTC

svn commit: r1345605 [8/8] - in /incubator/photark/mobile/trunk: ./ assets/www/ assets/www/css/ assets/www/scripts/ res/layout/ res/values/ res/xml/ src/org/ src/org/apache/ src/org/apache/photark/

Added: incubator/photark/mobile/trunk/assets/www/scripts/mobiscroll-2.0.full.min.js
URL: http://svn.apache.org/viewvc/incubator/photark/mobile/trunk/assets/www/scripts/mobiscroll-2.0.full.min.js?rev=1345605&view=auto
==============================================================================
--- incubator/photark/mobile/trunk/assets/www/scripts/mobiscroll-2.0.full.min.js (added)
+++ incubator/photark/mobile/trunk/assets/www/scripts/mobiscroll-2.0.full.min.js Sat Jun  2 23:34:04 2012
@@ -0,0 +1,36 @@
+(function(b){function j(a,d){function m(){var b=document.body,a=document.documentElement;return Math.max(b.scrollHeight,b.offsetHeight,a.clientHeight,a.scrollHeight,a.offsetHeight)}function n(a){e=b("li.dw-v",a).eq(0).index();c=b("li.dw-v",a).eq(-1).index();f=h.height;A=k}function l(a){var b=h.headerText;return b?"function"==typeof b?b.call(C,a):b.replace(/{value}/i,a):""}function r(){k.temp=J&&null!==k.val&&k.val!=a.val()||null===k.values?h.parseValue(a.val()?a.val():"",k):k.values.slice(0);k.setValue(!0)}
+function y(a,d,n,e,f){h.validate.call(C,z,n);b(".dww ul",z).each(function(e){var h=b(this),c=b('li[data-val="'+k.temp[e]+'"]',h),h=c.index(),l=c,c=h;if(!l.hasClass("dw-v")){for(var g=l,i=0,m=0;g.prev().length&&!g.hasClass("dw-v");)g=g.prev(),i++;for(;l.next().length&&!l.hasClass("dw-v");)l=l.next(),m++;(m<i&&m&&1==!f||!i||!g.hasClass("dw-v")||1==f)&&l.hasClass("dw-v")?c+=m:(l=g,c-=i);k.temp[e]=l.data("val")}g=e==n||void 0===n;if(h!=c||g)k.scroll(b(this),c,g?a:0,d,e)});k.change(e)}function j(){var a=
+0,d=0,e=b(window).width(),n=b(window).height(),c=b(window).scrollTop(),h=b(".dwo",z),f=b(".dw",z),l,g;b(".dwc",z).each(function(){l=b(this).outerWidth(!0);a+=l;d=l>d?l:d});l=a>e?d:a;f.width(l);l=f.outerWidth();g=f.outerHeight();f.css({left:(e-l)/2,top:c+(n-g)/2});h.height(0).height(m())}function x(a){var b=+a.data("pos")+1;q(a,b>c?e:b,1)}function F(a){var b=+a.data("pos")-1;q(a,b<e?c:b,2)}var k=this,C=a,a=b(C),M,h=b.extend({},E),O,z,N={},P={},J=a.is("input"),K=!1;k.enable=function(){h.disabled=!1;
+J&&a.prop("disabled",!1)};k.disable=function(){h.disabled=!0;J&&a.prop("disabled",!0)};k.scroll=function(a,b,d,e,n){var l=(O-b)*h.height;a.attr("style",(d?H+"-transition:all "+d.toFixed(1)+"s ease-out;":"")+(I?H+"-transform:translate3d(0,"+l+"px,0);":"top:"+l+"px;"));if(d){var c=0;clearInterval(N[n]);N[n]=setInterval(function(){c+=0.1;a.data("pos",Math.round((b-e)*Math.sin(c/d*(Math.PI/2))+e));c>=d&&(clearInterval(N[n]),a.data("pos",b))},100);clearTimeout(P[n]);P[n]=setTimeout(function(){"mixed"==
+h.mode&&!a.hasClass("dwa")&&a.closest(".dwwl").find(".dwwb").fadeIn("fast")},1E3*d)}else a.data("pos",b)};k.setValue=function(b,d,n){var e=h.formatResult(k.temp);k.val=e;k.values=k.temp.slice(0);K&&b&&y(n);d&&J&&a.val(e).trigger("change")};k.validate=function(a,b,d,n){y(a,b,d,!0,n)};k.change=function(a){var d=h.formatResult(k.temp);"inline"==h.display?k.setValue(!1,a):b(".dwv",z).html(l(d));a&&h.onChange.call(C,d,k)};k.hide=function(){if(!1===h.onClose.call(C,k.val,k))return!1;b(".dwtd").prop("disabled",
+!1).removeClass("dwtd");a.blur();z&&z.remove();K=!1;b(window).unbind(".dw")};k.show=function(){if(h.disabled||K)return!1;var d=h.height,e=h.rows*d;r();for(var c='<div class="'+h.theme+'">'+("inline"==h.display?'<div class="dw dwbg dwi"><div class="dwwr">':'<div class="dwo"></div><div class="dw dwbg"><div class="dwwr">'+(h.headerText?'<div class="dwv"></div>':"")),l=0;l<h.wheels.length;l++){var c=c+('<div class="dwc'+("scroller"!=h.mode?" dwpm":" dwsc")+(h.showLabel?"":" dwhl")+'"><div class="dwwc dwrc"><table cellpadding="0" cellspacing="0"><tr>'),
+f;for(f in h.wheels[l]){var c=c+('<td><div class="dwwl dwrc">'+("scroller"!=h.mode?'<div class="dwwb dwwbp" style="height:'+d+"px;line-height:"+d+'px;"><span>+</span></div><div class="dwwb dwwbm" style="height:'+d+"px;line-height:"+d+'px;"><span>&ndash;</span></div>':"")+'<div class="dwl">'+f+'</div><div class="dww dwrc" style="height:'+e+"px;min-width:"+h.width+'px;"><ul>'),i;for(i in h.wheels[l][f])c+='<li class="dw-v" data-val="'+i+'" style="height:'+d+"px;line-height:"+d+'px;">'+h.wheels[l][f][i]+
+"</li>";c+='</ul><div class="dwwo"></div></div><div class="dwwol"></div></div></td>'}c+="</tr></table></div></div>"}c+=("inline"!=h.display?'<div class="dwbc"><span class="dwbw dwb-s"><a href="#" class="dwb">'+h.setText+'</a></span><span class="dwbw dwb-c"><a href="#" class="dwb">'+h.cancelText+"</a></span></div>":'<div class="dwcc"></div>')+"</div></div></div>";z=b(c);y();"inline"!=h.display?z.appendTo("body"):a.is("div")?a.html(z):z.insertAfter(a);K=!0;M.init(z,k);"inline"!=h.display&&(b(".dwb-s a",
+z).click(function(){k.setValue(!1,!0);k.hide();h.onSelect.call(C,k.val,k);return!1}),b(".dwb-c a",z).click(function(){k.hide();h.onCancel.call(C,k.val,k);return!1}),b("input,select").each(function(){b(this).prop("disabled")||b(this).addClass("dwtd")}),b("input,select").prop("disabled",!0),j(),b(window).bind("resize.dw",j));z.delegate(".dwwl","DOMMouseScroll mousewheel",function(a){if(!h.readonly){a.preventDefault();var a=a.originalEvent,a=a.wheelDelta?a.wheelDelta/120:a.detail?-a.detail/3:0,d=b("ul",
+this),c=+d.data("pos"),c=Math.round(c-a);n(d);q(d,c,a<0?1:2)}}).delegate(".dwb, .dwwb",G,function(){b(this).addClass("dwb-a")}).delegate(".dwwb",G,function(a){if(!h.readonly){a.preventDefault();a.stopPropagation();var d=b(this).closest(".dwwl").find("ul");func=b(this).hasClass("dwwbp")?x:F;n(d);clearInterval(g);g=setInterval(function(){func(d)},h.delay);func(d)}}).delegate(".dwwl",G,function(a){if(!t&&h.mode!="clickpick"&&!h.readonly){a.preventDefault();t=true;v=b("ul",this).addClass("dwa");h.mode==
+"mixed"&&b(".dwwb",this).fadeOut("fast");w=+v.data("pos");n(v);u=p(a);B=new Date;s=u;k.scroll(v,w)}});h.onShow.call(C,z,k)};k.init=function(c){M=b.extend({defaults:{},init:o},b.scroller.themes[c.theme?c.theme:h.theme]);b.extend(h,M.defaults,d,c);k.settings=h;O=Math.floor(h.rows/2);var n=b.scroller.presets[h.preset];a.unbind(".dw");n&&(n=n.call(C,k),b.extend(h,n,d,c),b.extend(D,n.methods));void 0!==a.data("dwro")&&(C.readOnly=i(a.data("dwro")));K&&k.hide();"inline"==h.display?k.show():(r(),J&&h.showOnFocus&&
+(a.data("dwro",C.readOnly),C.readOnly=!0,a.bind("focus.dw",k.show)))};k.values=null;k.val=null;k.temp=null;k.init(d)}function x(a){for(var b in a)if(void 0!==y[a[b]])return!0;return!1}function p(a){return F?a.originalEvent?a.originalEvent.changedTouches[0].pageY:a.changedTouches[0].pageY:a.pageY}function i(a){return!0===a||"true"==a}function q(a,d,f,n,l){var g=a.closest(".dwwr").find("ul").index(a),d=d>c?c:d,d=d<e?e:d,a=b("li",a).eq(d);A.temp[g]=a.data("val");A.validate(n?d==l?0.1:Math.abs(0.1*(d-
+l)):0,l,g,f)}var m={},g,o=function(){},f,e,c,A,r=(new Date).getTime(),t=!1,v=null,u,s,B,w,y=document.createElement(y).style,I=x(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"])&&"webkitPerspective"in document.documentElement.style,H=function(){var a=["Webkit","Moz","O","ms"],b;for(b in a)if(x([a[b]+"Transform"]))return"-"+a[b].toLowerCase();return""}(),F="ontouchstart"in window,G=F?"touchstart":"mousedown",L=F?"touchend":"mouseup",E={width:70,height:40,
+rows:3,delay:300,disabled:!1,readonly:!1,showOnFocus:!0,showLabel:!0,wheels:[],theme:"",headerText:"{value}",display:"modal",mode:"scroller",preset:"",setText:"Set",cancelText:"Cancel",onShow:o,onClose:o,onSelect:o,onCancel:o,onChange:o,formatResult:function(a){for(var b="",c=0;c<a.length;c++)b+=(0<c?" ":"")+a[c];return b},parseValue:function(a,b){for(var c=b.settings.wheels,a=a.split(" "),n=[],e=0,f=0;f<c.length;f++)for(var g in c[f]){if(void 0!==c[f][g][a[e]])n.push(a[e]);else for(var i in c[f][g]){n.push(i);
+break}e++}return n},validate:o},D={init:function(a){void 0===a&&(a={});return this.each(function(){this.id||(r+=1,this.id="scoller"+r);m[this.id]=new j(this,a)})},enable:function(){return this.each(function(){var a=m[this.id];a&&a.enable()})},disable:function(){return this.each(function(){var a=m[this.id];a&&a.disable()})},isDisabled:function(){var a=m[this[0].id];if(a)return a.settings.disabled},option:function(a,b){return this.each(function(){var c=m[this.id];if(c){var n={};"object"===typeof a?
+n=a:n[a]=b;c.init(n)}})},setValue:function(a,b,c){return this.each(function(){var n=m[this.id];n&&(n.temp=a,n.setValue(!0,b,c))})},getInst:function(){return m[this[0].id]},getValue:function(){var a=m[this[0].id];if(a)return a.values},show:function(){var a=m[this[0].id];if(a)return a.show()},hide:function(){return this.each(function(){var a=m[this.id];a&&a.hide()})},destroy:function(){return this.each(function(){var a=m[this.id];a&&(a.hide(),b(this).unbind(".dw"),delete m[this.id],b(this).is("input")&&
+(this.readOnly=i(b(this).data("dwro"))))})}};b(document).bind(F?"touchmove":"mousemove",function(a){t&&(a.preventDefault(),s=p(a),a=w+(u-s)/f,a=a>c+1?c+1:a,a=a<e-1?e-1:a,A.scroll(v,a))});b(document).bind(L,function(a){if(t){a.preventDefault();v.removeClass("dwa");var d=new Date-B,a=w+(u-s)/f,a=a>c+1?c+1:a,a=a<e-1?e-1:a;300>d?(d=(s-u)/d,d=d*d/0.0012,0>s-u&&(d=-d)):d=s-u;q(v,Math.round(w-d/f),0,!0,Math.round(a));t=!1;v=null}clearInterval(g);b(".dwb-a").removeClass("dwb-a")});b.fn.scroller=function(a){if(D[a])return D[a].apply(this,
+Array.prototype.slice.call(arguments,1));if("object"===typeof a||!a)return D.init.apply(this,arguments);b.error("Unknown method")};b.scroller={setDefaults:function(a){b.extend(E,a)},presets:{},themes:{}}})(jQuery);(function(b){var j=new Date,x={dateFormat:"mm/dd/yy",dateOrder:"mmddy",timeWheels:"hhiiA",timeFormat:"hh:ii A",startYear:j.getFullYear()-100,endYear:j.getFullYear()+1,monthNames:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthNamesShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),dayNames:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),dayNamesShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),shortYearCutoff:"+10",
+monthText:"Month",dayText:"Day",yearText:"Year",hourText:"Hours",minuteText:"Minutes",secText:"Seconds",ampmText:"&nbsp;",stepHour:1,stepMinute:1,stepSecond:1,separator:" "},j=function(p){function i(a,b,c){return void 0!==r[b]?+a[r[b]]:void 0!==c?c:H[t[b]]?H[t[b]]():t[b](H)}function q(a,b){return Math.floor(a/b)*b}function m(a){var b=i(a,"h",0);return new Date(i(a,"y"),i(a,"m"),i(a,"d"),i(a,"ap")?b+12:b,i(a,"i",0),i(a,"s",0))}var g=b(this),o;if(g.is("input")){switch(g.attr("type")){case "date":o=
+"yy-mm-dd";break;case "datetime":o="yy-mm-ddTHH:ii:ssZ";break;case "datetime-local":o="yy-mm-ddTHH:ii:ss";break;case "month":o="yy-mm";x.dateOrder="mmyy";break;case "time":o="HH:ii:ss"}var f=g.attr("min"),g=g.attr("max");f&&(x.minDate=b.scroller.parseDate(o,f));g&&(x.maxDate=b.scroller.parseDate(o,g))}var e=b.extend({},x,p.settings),c=0,f=[],j=[],r={},t={y:"getFullYear",m:"getMonth",d:"getDate",h:function(a){a=a.getHours();a=y&&12<=a?a-12:a;return q(a,F)},i:function(a){return q(a.getMinutes(),G)},
+s:function(a){return q(a.getSeconds(),L)},ap:function(a){return w&&11<a.getHours()?1:0}},v=e.preset,u=e.dateOrder,s=e.timeWheels,B=u.match(/D/),w=s.match(/a/i),y=s.match(/h/),I="datetime"==v?e.dateFormat+e.separator+e.timeFormat:"time"==v?e.timeFormat:e.dateFormat,H=new Date,F=e.stepHour,G=e.stepMinute,L=e.stepSecond,E=e.minDate,D=e.maxDate;o=o?o:I;if(v.match(/date/i)){b.each(["y","m","d"],function(a,b){a=u.search(RegExp(b,"i"));-1<a&&j.push({o:a,v:b})});j.sort(function(a,b){return a.o>b.o?1:-1});
+b.each(j,function(a,b){r[b.v]=a});for(var g={},a=0;3>a;a++)if(a==r.y){c++;g[e.yearText]={};for(var d=E?E.getFullYear():e.startYear,Q=D?D.getFullYear():e.endYear;d<=Q;d++)g[e.yearText][d]=u.match(/yy/i)?d:(d+"").substr(2,2)}else if(a==r.m){c++;g[e.monthText]={};for(d=0;12>d;d++)g[e.monthText][d]=u.match(/MM/)?e.monthNames[d]:u.match(/M/)?e.monthNamesShort[d]:u.match(/mm/)&&9>d?"0"+(d+1):d+1}else if(a==r.d){c++;g[e.dayText]={};for(d=1;32>d;d++)g[e.dayText][d]=u.match(/dd/i)&&10>d?"0"+d:d}f.push(g)}if(v.match(/time/i)){g=
+{};if(s.match(/h/i)){r.h=c++;g[e.hourText]={};for(d=0;d<(y?12:24);d+=F)g[e.hourText][d]=y&&0==d?12:s.match(/hh/i)&&10>d?"0"+d:d}if(s.match(/i/)){r.i=c++;g[e.minuteText]={};for(d=0;60>d;d+=G)g[e.minuteText][d]=s.match(/ii/)&&10>d?"0"+d:d}if(s.match(/s/)){r.s=c++;g[e.secText]={};for(d=0;60>d;d+=L)g[e.secText][d]=s.match(/ss/)&&10>d?"0"+d:d}w&&(r.ap=c++,c=s.match(/A/),g[e.ampmText]={"0":c?"AM":"am",1:c?"PM":"pm"});f.push(g)}p.setDate=function(a,b,c){for(var d in r)this.temp[r[d]]=a[t[d]]?a[t[d]]():t[d](a);
+this.setValue(!0,b,c)};p.getDate=function(a){return m(a)};return{wheels:f,headerText:function(){return b.scroller.formatDate(I,m(p.temp),e)},formatResult:function(a){return b.scroller.formatDate(o,m(a),e)},parseValue:function(a){var c=new Date,d=[];try{c=b.scroller.parseDate(o,a,e)}catch(f){}for(var g in r)d[r[g]]=c[t[g]]?c[t[g]]():t[g](c);return d},validate:function(a,c){var d=p.temp,f={m:0,d:1,h:0,i:0,s:0,ap:0},g={m:11,d:31,h:q(y?11:23,F),i:q(59,G),s:q(59,L),ap:1},m=!0,o=!0;b.each(E||D?"y,m,d,ap,h,i,s".split(","):
+c==r.y||c==r.m||void 0===c?["d"]:[],function(c,l){if(void 0!==r[l]){var p=f[l],h=g[l],q=31,y=i(d,l),j=b("ul",a).eq(r[l]),v,s;"d"==l&&(v=i(d,"y"),s=i(d,"m"),h=q=32-(new Date(v,s,32)).getDate(),B&&b("li",j).each(function(){var a=b(this),c=a.data("val"),d=(new Date(v,s,c)).getDay();a.html(u.replace(/[my]/gi,"").replace(/dd/,10>c?"0"+c:c).replace(/d/,c).replace(/DD/,e.dayNames[d]).replace(/D/,e.dayNamesShort[d]))}));m&&E&&(p=E[t[l]]?E[t[l]]():t[l](E));o&&D&&(h=D[t[l]]?D[t[l]]():t[l](D));if("y"!=l){var A=
+b('li[data-val="'+p+'"]',j).index(),x=b('li[data-val="'+h+'"]',j).index();b("li",j).removeClass("dw-v").slice(A,x+1).addClass("dw-v");"d"==l&&b("li",j).removeClass("dw-h").slice(q).addClass("dw-h");y<p&&(y=p);y>h&&(y=h)}m&&(m=y==p);o&&(o=y==h);if(e.invalid&&"d"==l){var w=[];e.invalid.dates&&b.each(e.invalid.dates,function(a,b){b.getFullYear()==v&&b.getMonth()==s&&w.push(b.getDate()-1)});if(e.invalid.daysOfWeek){var I=(new Date(v,s,1)).getDay();b.each(e.invalid.daysOfWeek,function(a,b){for(var c=b-
+I;c<q;c=c+7)c>=0&&w.push(c)})}e.invalid.daysOfMonth&&b.each(e.invalid.daysOfMonth,function(a,b){b=(b+"").split("/");b[1]?b[0]-1==s&&w.push(b[1]-1):w.push(b[0]-1)});b.each(w,function(a,c){b("li",j).eq(c).removeClass("dw-v")})}}})},methods:{getDate:function(a){var c=b(this).scroller("getInst");if(c)return c.getDate(a?c.temp:c.values)},setDate:function(a,c,d){void 0==c&&(c=!1);return this.each(function(){var e=b(this).scroller("getInst");e&&e.setDate(a,c,d)})}}}};b.scroller.presets.date=j;b.scroller.presets.datetime=
+j;b.scroller.presets.time=j;b.scroller.formatDate=function(p,i,j){if(!i)return null;for(var j=b.extend({},x,j),m=function(b){for(var e=0;c+1<p.length&&p.charAt(c+1)==b;)e++,c++;return e},g=function(b,c,e){c=""+c;if(m(b))for(;c.length<e;)c="0"+c;return c},o=function(b,c,e,f){return m(b)?f[c]:e[c]},f="",e=!1,c=0;c<p.length;c++)if(e)"'"==p.charAt(c)&&!m("'")?e=!1:f+=p.charAt(c);else switch(p.charAt(c)){case "d":f+=g("d",i.getDate(),2);break;case "D":f+=o("D",i.getDay(),j.dayNamesShort,j.dayNames);break;
+case "o":f+=g("o",(i.getTime()-(new Date(i.getFullYear(),0,0)).getTime())/864E5,3);break;case "m":f+=g("m",i.getMonth()+1,2);break;case "M":f+=o("M",i.getMonth(),j.monthNamesShort,j.monthNames);break;case "y":f+=m("y")?i.getFullYear():(10>i.getYear()%100?"0":"")+i.getYear()%100;break;case "h":var A=i.getHours(),f=f+g("h",12<A?A-12:0==A?12:A,2);break;case "H":f+=g("H",i.getHours(),2);break;case "i":f+=g("i",i.getMinutes(),2);break;case "s":f+=g("s",i.getSeconds(),2);break;case "a":f+=11<i.getHours()?
+"pm":"am";break;case "A":f+=11<i.getHours()?"PM":"AM";break;case "'":m("'")?f+="'":e=!0;break;default:f+=p.charAt(c)}return f};b.scroller.parseDate=function(j,i,q){var m=new Date;if(!j||!i)return m;for(var i="object"==typeof i?i.toString():i+"",g=b.extend({},x,q),q=m.getFullYear(),o=m.getMonth()+1,f=m.getDate(),e=-1,c=m.getHours(),m=m.getMinutes(),A=0,r=-1,t=!1,v=function(b){(b=w+1<j.length&&j.charAt(w+1)==b)&&w++;return b},u=function(b){v(b);b=i.substr(B).match(RegExp("^\\d{1,"+("@"==b?14:"!"==b?
+20:"y"==b?4:"o"==b?3:2)+"}"));if(!b)return 0;B+=b[0].length;return parseInt(b[0],10)},s=function(b,c,e){b=v(b)?e:c;for(c=0;c<b.length;c++)if(i.substr(B,b[c].length).toLowerCase()==b[c].toLowerCase())return B+=b[c].length,c+1;return 0},B=0,w=0;w<j.length;w++)if(t)"'"==j.charAt(w)&&!v("'")?t=!1:B++;else switch(j.charAt(w)){case "d":f=u("d");break;case "D":s("D",g.dayNamesShort,g.dayNames);break;case "o":e=u("o");break;case "m":o=u("m");break;case "M":o=s("M",g.monthNamesShort,g.monthNames);break;case "y":q=
+u("y");break;case "H":c=u("H");break;case "h":c=u("h");break;case "i":m=u("i");break;case "s":A=u("s");break;case "a":r=s("a",["am","pm"],["am","pm"])-1;break;case "A":r=s("A",["am","pm"],["am","pm"])-1;break;case "'":v("'")?B++:t=!0;break;default:B++}100>q&&(q+=(new Date).getFullYear()-(new Date).getFullYear()%100+(q<=g.shortYearCutoff?0:-100));if(-1<e){o=1;f=e;do{g=32-(new Date(q,o-1,32)).getDate();if(f<=g)break;o++;f-=g}while(1)}c=new Date(q,o-1,f,-1==r?c:r&&12>c?c+12:!r&&12==c?0:c,m,A);if(c.getFullYear()!=
+q||c.getMonth()+1!=o||c.getDate()!=f)throw"Invalid date";return c}})(jQuery);(function(b){var j={inputClass:""};b.scroller.presets.select=function(x){var p=b.extend({},j,x.settings),i=b(this),q=this.id+"_dummy";b('label[for="'+this.id+'"]').attr("for",q);var m=b('label[for="'+q+'"]'),m=m.length?m.text():i.attr("name"),g=[],o=[{}];o[0][m]={};var f=o[0][m];b("option",i).each(function(){var c=b(this).attr("value");f["_"+c]=b(this).text();b(this).prop("disabled")&&g.push(c)});b("#"+q).remove();var e=b('<input type="text" id="'+q+'" value="'+f["_"+i.val()]+'" class="'+p.inputClass+
+'" readonly />').insertBefore(i);p.showOnFocus&&e.focus(function(){x.show()});i.hide().closest(".ui-field-contain").trigger("create");return{width:200,wheels:o,headerText:!1,formatResult:function(b){return f[b[0]]},parseValue:function(){return["_"+i.val()]},validate:function(c){b.each(g,function(e,f){b('li[data-val="_'+f+'"]',c).removeClass("dw-v")})},onSelect:function(b,f){e.val(b);i.val(f.values[0].replace(/_/,"")).trigger("change")},onChange:function(b,f){"inline"==p.display&&(e.val(b),i.val(f.temp[0].replace(/_/,
+"")).trigger("change"))},onClose:function(){e.blur()}}}})(jQuery);(function(b){b.scroller.themes.android={defaults:{dateOrder:"Mddyy",mode:"clickpick",height:50}}})(jQuery);(function(b){var j={defaults:{dateOrder:"Mddyy",mode:"mixed",rows:5,width:70,showLabel:!1}};b.scroller.themes["android-ics"]=j;b.scroller.themes["android-ics light"]=j})(jQuery);(function(b){b.scroller.themes.ios={defaults:{dateOrder:"MMdyy",rows:5,height:30,width:55,headerText:!1,showLabel:!1}}})(jQuery);(function(b){b.scroller.themes.jqm={defaults:{jqmBody:"c",jqmHeader:"b",jqmWheel:"d",jqmClickPick:"c",jqmSet:"b",jqmCancel:"c"},init:function(j,x){var p=x.settings;b(".dw",j).removeClass("dwbg").addClass("ui-overlay-shadow ui-corner-all ui-body-a");b(".dwb-s a",j).attr("data-role","button").attr("data-theme",p.jqmSet);b(".dwb-c a",j).attr("data-role","button").attr("data-theme",p.jqmCancel);b(".dwwb",j).attr("data-role","button").attr("data-theme",p.jqmClickPick);b(".dwv",j).addClass("ui-header ui-bar-"+
+p.jqmHeader);b(".dwwr",j).addClass("ui-body-"+p.jqmBody);b(".dwpm .dww",j).addClass("ui-body-"+p.jqmWheel);"inline"!=p.display&&b(".dw",j).addClass("pop in");j.trigger("create");b(".dwo",j).click(function(){x.hide()})}}})(jQuery);

Modified: incubator/photark/mobile/trunk/default.properties
URL: http://svn.apache.org/viewvc/incubator/photark/mobile/trunk/default.properties?rev=1345605&r1=1345604&r2=1345605&view=diff
==============================================================================
--- incubator/photark/mobile/trunk/default.properties (original)
+++ incubator/photark/mobile/trunk/default.properties Sat Jun  2 23:34:04 2012
@@ -1,3 +0,0 @@
-# File used by Eclipse to determine the target system
-# Project target.
-target=android-8
\ No newline at end of file

Added: incubator/photark/mobile/trunk/project.properties
URL: http://svn.apache.org/viewvc/incubator/photark/mobile/trunk/project.properties?rev=1345605&view=auto
==============================================================================
--- incubator/photark/mobile/trunk/project.properties (added)
+++ incubator/photark/mobile/trunk/project.properties Sat Jun  2 23:34:04 2012
@@ -0,0 +1,14 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system edit
+# "ant.properties", and override values to adapt the script to your
+# project structure.
+#
+# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
+#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
+
+# Project target.
+target=Google Inc.:Google APIs:15

Modified: incubator/photark/mobile/trunk/res/layout/main.xml
URL: http://svn.apache.org/viewvc/incubator/photark/mobile/trunk/res/layout/main.xml?rev=1345605&r1=1345604&r2=1345605&view=diff
==============================================================================
--- incubator/photark/mobile/trunk/res/layout/main.xml (original)
+++ incubator/photark/mobile/trunk/res/layout/main.xml Sat Jun  2 23:34:04 2012
@@ -1,5 +1,17 @@
 <?xml version="1.0" encoding="utf-8"?>
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="fill_parent"
+    android:layout_height="fill_parent"
+    android:orientation="vertical" >
+
+    <TextView
+        android:layout_width="fill_parent"
+        android:layout_height="wrap_content"
+        android:text="@string/hello" />
+
+</LinearLayout>
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
               android:layout_width="fill_parent"
               android:layout_height="fill_parent"
               android:orientation="vertical" >

Modified: incubator/photark/mobile/trunk/res/values/strings.xml
URL: http://svn.apache.org/viewvc/incubator/photark/mobile/trunk/res/values/strings.xml?rev=1345605&r1=1345604&r2=1345605&view=diff
==============================================================================
--- incubator/photark/mobile/trunk/res/values/strings.xml (original)
+++ incubator/photark/mobile/trunk/res/values/strings.xml Sat Jun  2 23:34:04 2012
@@ -1,6 +1,13 @@
 <?xml version="1.0" encoding="utf-8"?>
 <resources>
 
+    <string name="hello">Hello World, Photark_MobileActivity!</string>
+    <string name="app_name">Photark_Mobile</string>
+
+</resources>
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
     <string name="hello">Hello World, PhotArkMobileActivity!</string>
     <string name="app_name">PhotArkMobile</string>
 

Modified: incubator/photark/mobile/trunk/res/xml/cordova.xml
URL: http://svn.apache.org/viewvc/incubator/photark/mobile/trunk/res/xml/cordova.xml?rev=1345605&r1=1345604&r2=1345605&view=diff
==============================================================================
--- incubator/photark/mobile/trunk/res/xml/cordova.xml (original)
+++ incubator/photark/mobile/trunk/res/xml/cordova.xml Sat Jun  2 23:34:04 2012
@@ -35,3 +35,40 @@
 
 
 
+<?xml version="1.0" encoding="utf-8"?>
+<!-- 
+       Licensed to the Apache Software Foundation (ASF) under one
+       or more contributor license agreements.  See the NOTICE file
+       distributed with this work for additional information
+       regarding copyright ownership.  The ASF licenses this file
+       to you under the Apache License, Version 2.0 (the
+       "License"); you may not use this file except in compliance
+       with the License.  You may obtain a copy of the License at
+
+         http://www.apache.org/licenses/LICENSE-2.0
+
+       Unless required by applicable law or agreed to in writing,
+       software distributed under the License is distributed on an
+       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+       KIND, either express or implied.  See the License for the
+       specific language governing permissions and limitations
+       under the License.
+-->
+<cordova>
+	<!--  
+	access elements control the Android whitelist.  
+	Domains are assumed blocked unless set otherwise
+	 -->
+
+    <access origin="http://127.0.0.1*"/> <!-- allow local pages -->
+
+	<!-- <access origin="https://example.com" /> allow any secure requests to example.com -->
+	<!-- <access origin="https://example.com" subdomains="true" /> such as above, but including subdomains, such as www -->
+	<!-- <access origin=".*"/> Allow all domains, suggested development use only -->
+
+    <log level="DEBUG"/>
+    <preference name="classicRender" value="true" />
+</cordova>
+
+
+

Modified: incubator/photark/mobile/trunk/res/xml/plugins.xml
URL: http://svn.apache.org/viewvc/incubator/photark/mobile/trunk/res/xml/plugins.xml?rev=1345605&r1=1345604&r2=1345605&view=diff
==============================================================================
--- incubator/photark/mobile/trunk/res/xml/plugins.xml (original)
+++ incubator/photark/mobile/trunk/res/xml/plugins.xml Sat Jun  2 23:34:04 2012
@@ -36,3 +36,41 @@
     <plugin name="Battery" value="org.apache.cordova.BatteryListener"/>
     <plugin name="SplashScreen" value="org.apache.cordova.SplashScreen"/>
 </plugins>
+<?xml version="1.0" encoding="utf-8"?>
+<!-- 
+       Licensed to the Apache Software Foundation (ASF) under one
+       or more contributor license agreements.  See the NOTICE file
+       distributed with this work for additional information
+       regarding copyright ownership.  The ASF licenses this file
+       to you under the Apache License, Version 2.0 (the
+       "License"); you may not use this file except in compliance
+       with the License.  You may obtain a copy of the License at
+
+         http://www.apache.org/licenses/LICENSE-2.0
+
+       Unless required by applicable law or agreed to in writing,
+       software distributed under the License is distributed on an
+       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+       KIND, either express or implied.  See the License for the
+       specific language governing permissions and limitations
+       under the License.
+-->
+<plugins>
+    <plugin name="App" value="org.apache.cordova.App"/>
+    <plugin name="Geolocation" value="org.apache.cordova.GeoBroker"/>
+    <plugin name="Device" value="org.apache.cordova.Device"/>
+    <plugin name="Accelerometer" value="org.apache.cordova.AccelListener"/>
+    <plugin name="Compass" value="org.apache.cordova.CompassListener"/>
+    <plugin name="Media" value="org.apache.cordova.AudioHandler"/>
+    <plugin name="Camera" value="org.apache.cordova.CameraLauncher"/>
+    <plugin name="Contacts" value="org.apache.cordova.ContactManager"/>
+    <plugin name="File" value="org.apache.cordova.FileUtils"/>
+    <plugin name="NetworkStatus" value="org.apache.cordova.NetworkManager"/>
+    <plugin name="Notification" value="org.apache.cordova.Notification"/>
+    <plugin name="Storage" value="org.apache.cordova.Storage"/>
+    <plugin name="Temperature" value="org.apache.cordova.TempListener"/>
+    <plugin name="FileTransfer" value="org.apache.cordova.FileTransfer"/>
+    <plugin name="Capture" value="org.apache.cordova.Capture"/>
+    <plugin name="Battery" value="org.apache.cordova.BatteryListener"/>
+    <plugin name="SplashScreen" value="org.apache.cordova.SplashScreen"/>
+</plugins>

Added: incubator/photark/mobile/trunk/src/org/apache/photark/PhotarkMobileActivity.java
URL: http://svn.apache.org/viewvc/incubator/photark/mobile/trunk/src/org/apache/photark/PhotarkMobileActivity.java?rev=1345605&view=auto
==============================================================================
--- incubator/photark/mobile/trunk/src/org/apache/photark/PhotarkMobileActivity.java (added)
+++ incubator/photark/mobile/trunk/src/org/apache/photark/PhotarkMobileActivity.java Sat Jun  2 23:34:04 2012
@@ -0,0 +1,18 @@
+package org.apache.photark;
+
+import org.apache.cordova.DroidGap;
+
+import android.os.Bundle;
+
+public class PhotarkMobileActivity extends DroidGap {
+    /** Called when the activity is first created. */
+    @Override
+    public void onCreate(Bundle savedInstanceState) {
+    	super.onCreate(savedInstanceState);
+    	super.loadUrl("file:///android_asset/www/index.html");
+    }
+    
+   
+
+	
+}
\ No newline at end of file