compass-jquery-plugin 0.3.2.1 → 0.3.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +13 -6
- data/VERSION.yml +1 -1
- data/lib/handle_attributes.rb +23 -23
- data/lib/handle_js_files.rb +1 -1
- data/lib/jquery/compass_plugin.rb +5 -5
- data/lib/jquery/dynatree.rb +5 -5
- data/lib/jquery/jqtouch.rb +3 -3
- data/lib/jquery/jquery_auto_complete.rb +44 -44
- data/lib/jquery/jquery_selector_assertions.rb +78 -78
- data/lib/jquery/jstree.rb +4 -4
- data/lib/jquery/ribbon.rb +5 -5
- data/templates/jqtouch/jquery.jqtouch.min.js +2 -2
- data/templates/jquery/config/initializers/jquery.rb +2 -0
- data/templates/jquery/jquery.dotimeout.js +285 -0
- data/templates/jquery/jquery.dotimeout.min.js +2 -0
- data/templates/jquery/jquery.dst.js +154 -0
- data/templates/jquery/jquery.dst.min.js +4 -0
- data/templates/jquery/jquery.form.js +48 -36
- data/templates/jquery/jquery.form.min.js +15 -14
- data/templates/jquery/manifest.rb +4 -0
- data/templates/mobile/jquery/mobile/_base.scss +35 -20
- data/templates/mobile/jquery/mobile/default/icons-18-black.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-18-white.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-36-black.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-36-white.png +0 -0
- data/templates/mobile/jquery/mobile/default.scss +8 -2
- data/templates/mobile/jquery/mobile/valencia/icons-18-black.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icons-18-white.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icons-36-black.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icons-36-white.png +0 -0
- data/templates/mobile/jquery.mobile.js +29 -26
- data/templates/mobile/jquery.mobile.min.js +6 -6
- metadata +8 -4
@@ -396,14 +396,6 @@ $(document).bind("mobileinit.htmlclass", function(){
|
|
396
396
|
//add orientation class to HTML element on flip/resize.
|
397
397
|
if(event.orientation){
|
398
398
|
$html.removeClass( "portrait landscape" ).addClass( event.orientation );
|
399
|
-
//Set the min-height to the size of the fullscreen. This is to fix issue #455
|
400
|
-
if( event.orientation === 'portrait' ) {
|
401
|
-
$( '.ui-page' ).css( 'minHeight', ( screen.availHeight >= screen.availWidth ) ? screen.availHeight : screen.availWidth);
|
402
|
-
} else {
|
403
|
-
$( '.ui-page' ).css( 'minHeight', ( screen.availHeight <= screen.availWidth ) ? screen.availHeight : screen.availWidth);
|
404
|
-
}
|
405
|
-
|
406
|
-
$.mobile.silentScroll();
|
407
399
|
}
|
408
400
|
//add classes to HTML element for min/max breakpoints
|
409
401
|
detectResolutionBreakpoints();
|
@@ -1192,12 +1184,6 @@ $.widget( "mobile.page", $.mobile.widget, {
|
|
1192
1184
|
if ( this._trigger( "beforeCreate" ) === false ) {
|
1193
1185
|
return;
|
1194
1186
|
}
|
1195
|
-
|
1196
|
-
if( $( "html" ).hasClass( 'portrait' ) ) {
|
1197
|
-
$elem.css( 'minHeight', ( screen.availHeight >= screen.availWidth ) ? screen.availHeight : screen.availWidth);
|
1198
|
-
} else {
|
1199
|
-
$elem.css( 'minHeight', ( screen.availHeight <= screen.availWidth ) ? screen.availHeight : screen.availWidth);
|
1200
|
-
}
|
1201
1187
|
|
1202
1188
|
//some of the form elements currently rely on the presence of ui-page and ui-content
|
1203
1189
|
// classes so we'll handle page and content roles outside of the main role processing
|
@@ -1418,8 +1404,6 @@ $.widget( "mobile.page", $.mobile.widget, {
|
|
1418
1404
|
//configure meta viewport tag's content attr:
|
1419
1405
|
metaViewportContent: "width=device-width, minimum-scale=1, maximum-scale=1",
|
1420
1406
|
|
1421
|
-
nativeSelectMenus: false,
|
1422
|
-
|
1423
1407
|
//support conditions that must be met in order to proceed
|
1424
1408
|
gradeA: function(){
|
1425
1409
|
return $.support.mediaquery;
|
@@ -1703,12 +1687,6 @@ $.widget( "mobile.page", $.mobile.widget, {
|
|
1703
1687
|
urlHistory.stack = urlHistory.stack.slice( 0, urlHistory.activeIndex + 1 );
|
1704
1688
|
},
|
1705
1689
|
|
1706
|
-
//wipe all urls
|
1707
|
-
clear: function(){
|
1708
|
-
urlHistory.stack = [];
|
1709
|
-
urlHistory.activeIndex = 0;
|
1710
|
-
},
|
1711
|
-
|
1712
1690
|
//disable hashchange event listener internally to ignore one change
|
1713
1691
|
//toggled internally when location.hash is updated to match the url of a successful page load
|
1714
1692
|
ignoreNextHashChange: true
|
@@ -2148,7 +2126,9 @@ $.widget( "mobile.page", $.mobile.widget, {
|
|
2148
2126
|
error: function() {
|
2149
2127
|
$.mobile.pageLoading( true );
|
2150
2128
|
removeActiveLinkClass(true);
|
2151
|
-
base
|
2129
|
+
if(base){
|
2130
|
+
base.set(path.get());
|
2131
|
+
}
|
2152
2132
|
$("<div class='ui-loader ui-overlay-shadow ui-body-e ui-corner-all'><h1>Error Loading Page</h1></div>")
|
2153
2133
|
.css({ "display": "block", "opacity": 0.96, "top": $(window).scrollTop() + 100 })
|
2154
2134
|
.appendTo( $.mobile.pageContainer )
|
@@ -3053,7 +3033,29 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
|
|
3053
3033
|
if( $(this).parent().is('.ui-disabled') ){ return false; }
|
3054
3034
|
},
|
3055
3035
|
|
3056
|
-
"
|
3036
|
+
"touchmove": function( event ){
|
3037
|
+
var oe = event.originalEvent.touches[0];
|
3038
|
+
if( label.data("movestart") ){
|
3039
|
+
if( Math.abs( label.data("movestart")[0] - oe.pageX ) > 10 ||
|
3040
|
+
Math.abs( abel.data("movestart")[1] - oe.pageY ) > 10 ){
|
3041
|
+
label.data("moved", true);
|
3042
|
+
}
|
3043
|
+
}
|
3044
|
+
else{
|
3045
|
+
label.data("movestart", [ parseFloat( oe.pageX ), parseFloat( oe.pageY ) ]);
|
3046
|
+
}
|
3047
|
+
},
|
3048
|
+
|
3049
|
+
"touchend mouseup": function( event ){
|
3050
|
+
label.removeData("movestart");
|
3051
|
+
if( label.data("etype") && label.data("etype") !== event.type || label.data("moved") ){
|
3052
|
+
label.removeData("etype").removeData("moved");
|
3053
|
+
if( label.data("moved") ){
|
3054
|
+
label.removeData("moved");
|
3055
|
+
}
|
3056
|
+
return false;
|
3057
|
+
}
|
3058
|
+
label.data( "etype", event.type );
|
3057
3059
|
self._cacheVals();
|
3058
3060
|
input.attr( "checked", inputtype === "radio" && true || !input.is( ":checked" ) );
|
3059
3061
|
self._updateAll();
|
@@ -3716,7 +3718,7 @@ $.widget( "mobile.slider", $.mobile.widget, {
|
|
3716
3718
|
},
|
3717
3719
|
min = (cType == 'input') ? parseFloat(control.attr('min')) : 0,
|
3718
3720
|
max = (cType == 'input') ? parseFloat(control.attr('max')) : control.find('option').length-1,
|
3719
|
-
step = window.parseFloat(control.attr('
|
3721
|
+
step = window.parseFloat(control.attr('step') || 1),
|
3720
3722
|
slider = $('<div class="ui-slider '+ selectClass +' ui-btn-down-'+ trackTheme+' ui-btn-corner-all" role="application"></div>'),
|
3721
3723
|
handle = $('<a href="#" class="ui-slider-handle"></a>')
|
3722
3724
|
.appendTo(slider)
|
@@ -3989,7 +3991,7 @@ $.widget( "mobile.textinput", $.mobile.widget, {
|
|
3989
3991
|
|
3990
3992
|
//"search" input widget
|
3991
3993
|
if( input.is('[type="search"],[data-type="search"]') ){
|
3992
|
-
focusedEl = input.wrap('<div class="ui-input-search ui-shadow-inset ui-btn-corner-all ui-btn-shadow ui-icon-
|
3994
|
+
focusedEl = input.wrap('<div class="ui-input-search ui-shadow-inset ui-btn-corner-all ui-btn-shadow ui-icon-searchfield'+ themeclass +'"></div>').parent();
|
3993
3995
|
var clearbtn = $('<a href="#" class="ui-input-clear" title="clear text">clear text</a>')
|
3994
3996
|
.tap(function( e ){
|
3995
3997
|
input.val('').focus();
|
@@ -4312,6 +4314,7 @@ $.widget( "mobile.listview", $.mobile.widget, {
|
|
4312
4314
|
splittheme = $list.data( "splittheme" ) || last.data( "theme" ) || o.splitTheme;
|
4313
4315
|
|
4314
4316
|
last
|
4317
|
+
.appendTo(item)
|
4315
4318
|
.attr( "title", last.text() )
|
4316
4319
|
.addClass( "ui-li-link-alt" )
|
4317
4320
|
.empty()
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
/*!
|
2
2
|
* jQuery UI Widget 1.8.9
|
3
3
|
*
|
4
4
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
@@ -7,8 +7,8 @@
|
|
7
7
|
*
|
8
8
|
* http://docs.jquery.com/UI/Widget
|
9
9
|
*/
|
10
|
-
(function(b,d){if(b.cleanData){var c=b.cleanData;b.cleanData=function(e){for(var f=0,g;(g=e[f])!=null;f++){b(g).triggerHandler("remove")}c(e)}}else{var a=b.fn.remove;b.fn.remove=function(e,f){return this.each(function(){if(!f){if(!e||b.filter(e,[this]).length){b("*",this).add([this]).each(function(){b(this).triggerHandler("remove")})}}return a.call(b(this),e,f)})}}b.widget=function(f,h,e){var g=f.split(".")[0],j;f=f.split(".")[1];j=g+"-"+f;if(!e){e=h;h=b.Widget}b.expr[":"][j]=function(k){return !!b.data(k,f)};b[g]=b[g]||{};b[g][f]=function(k,l){if(arguments.length){this._createWidget(k,l)}};var i=new h();i.options=b.extend(true,{},i.options);b[g][f].prototype=b.extend(true,i,{namespace:g,widgetName:f,widgetEventPrefix:b[g][f].prototype.widgetEventPrefix||f,widgetBaseClass:j},e);b.widget.bridge(f,b[g][f])};b.widget.bridge=function(f,e){b.fn[f]=function(i){var g=typeof i==="string",h=Array.prototype.slice.call(arguments,1),j=this;i=!g&&h.length?b.extend.apply(null,[true,i].concat(h)):i;if(g&&i.charAt(0)==="_"){return j}if(g){this.each(function(){var k=b.data(this,f),l=k&&b.isFunction(k[i])?k[i].apply(k,h):k;if(l!==k&&l!==d){j=l;return false}})}else{this.each(function(){var k=b.data(this,f);if(k){k.option(i||{})._init()}else{b.data(this,f,new e(i,this))}})}return j}};b.Widget=function(e,f){if(arguments.length){this._createWidget(e,f)}};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(f,g){b.data(g,this.widgetName,this);this.element=b(g);this.options=b.extend(true,{},this.options,this._getCreateOptions(),f);var e=this;this.element.bind("remove."+this.widgetName,function(){e.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(f,g){var e=f;if(arguments.length===0){return b.extend({},this.options)}if(typeof f==="string"){if(g===d){return this.options[f]}e={};e[f]=g}this._setOptions(e);return this},_setOptions:function(f){var e=this;b.each(f,function(g,h){e._setOption(g,h)});return this},_setOption:function(e,f){this.options[e]=f;if(e==="disabled"){this.widget()[f?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",f)}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(f,g,h){var k=this.options[f];g=b.Event(g);g.type=(f===this.widgetEventPrefix?f:this.widgetEventPrefix+f).toLowerCase();h=h||{};if(g.originalEvent){for(var e=b.event.props.length,j;e;){j=b.event.props[--e];g[j]=g.originalEvent[j]}}this.element.trigger(g,h);return !(b.isFunction(k)&&k.call(this.element[0],g,h)===false||g.isDefaultPrevented())}}})(jQuery);(function(a,b){a.widget("mobile.widget",{_getCreateOptions:function(){var d=this.element,c={};a.each(this.options,function(e){var f=d.data(e.replace(/[A-Z]/g,function(g){return"-"+g.toLowerCase()}));if(f!==b){c[e]=f}});return c}})})(jQuery);(function(c,f){var e=c(window),a=c("html"),b=[320,480,768,1024];c.mobile.media=(function(){var g={},h=c("<div id='jquery-mediatest'>"),i=c("<body>").append(h);return function(l){if(!(l in g)){var j=document.createElement("style"),k="@media "+l+" { #jquery-mediatest { position:absolute; } }";j.type="text/css";if(j.styleSheet){j.styleSheet.cssText=k}else{j.appendChild(document.createTextNode(k))}a.prepend(i).prepend(j);g[l]=h.css("position")==="absolute";i.add(j).remove()}return g[l]}})();function d(){var g=e.width(),k="min-width-",i="max-width-",m=[],j=[],l="px",h;a.removeClass(k+b.join(l+" "+k)+l+" "+i+b.join(l+" "+i)+l);c.each(b,function(n,o){if(g>=o){m.push(k+o+l)}if(g<=o){j.push(i+o+l)}});if(m.length){h=m.join(" ")}if(j.length){h+=" "+j.join(" ")}a.addClass(h)}c.mobile.addResolutionBreakpoints=function(g){if(c.type(g)==="array"){b=b.concat(g)}else{b.push(g)}b.sort(function(i,h){return i-h});d()};c(document).bind("mobileinit.htmlclass",function(){e.bind("orientationchange.htmlclass resize.htmlclass",function(g){if(g.orientation){a.removeClass("portrait landscape").addClass(g.orientation)
|
11
|
-
|
10
|
+
(function(b,d){if(b.cleanData){var c=b.cleanData;b.cleanData=function(e){for(var f=0,g;(g=e[f])!=null;f++){b(g).triggerHandler("remove")}c(e)}}else{var a=b.fn.remove;b.fn.remove=function(e,f){return this.each(function(){if(!f){if(!e||b.filter(e,[this]).length){b("*",this).add([this]).each(function(){b(this).triggerHandler("remove")})}}return a.call(b(this),e,f)})}}b.widget=function(f,h,e){var g=f.split(".")[0],j;f=f.split(".")[1];j=g+"-"+f;if(!e){e=h;h=b.Widget}b.expr[":"][j]=function(k){return !!b.data(k,f)};b[g]=b[g]||{};b[g][f]=function(k,l){if(arguments.length){this._createWidget(k,l)}};var i=new h();i.options=b.extend(true,{},i.options);b[g][f].prototype=b.extend(true,i,{namespace:g,widgetName:f,widgetEventPrefix:b[g][f].prototype.widgetEventPrefix||f,widgetBaseClass:j},e);b.widget.bridge(f,b[g][f])};b.widget.bridge=function(f,e){b.fn[f]=function(i){var g=typeof i==="string",h=Array.prototype.slice.call(arguments,1),j=this;i=!g&&h.length?b.extend.apply(null,[true,i].concat(h)):i;if(g&&i.charAt(0)==="_"){return j}if(g){this.each(function(){var k=b.data(this,f),l=k&&b.isFunction(k[i])?k[i].apply(k,h):k;if(l!==k&&l!==d){j=l;return false}})}else{this.each(function(){var k=b.data(this,f);if(k){k.option(i||{})._init()}else{b.data(this,f,new e(i,this))}})}return j}};b.Widget=function(e,f){if(arguments.length){this._createWidget(e,f)}};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(f,g){b.data(g,this.widgetName,this);this.element=b(g);this.options=b.extend(true,{},this.options,this._getCreateOptions(),f);var e=this;this.element.bind("remove."+this.widgetName,function(){e.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(f,g){var e=f;if(arguments.length===0){return b.extend({},this.options)}if(typeof f==="string"){if(g===d){return this.options[f]}e={};e[f]=g}this._setOptions(e);return this},_setOptions:function(f){var e=this;b.each(f,function(g,h){e._setOption(g,h)});return this},_setOption:function(e,f){this.options[e]=f;if(e==="disabled"){this.widget()[f?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",f)}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(f,g,h){var k=this.options[f];g=b.Event(g);g.type=(f===this.widgetEventPrefix?f:this.widgetEventPrefix+f).toLowerCase();h=h||{};if(g.originalEvent){for(var e=b.event.props.length,j;e;){j=b.event.props[--e];g[j]=g.originalEvent[j]}}this.element.trigger(g,h);return !(b.isFunction(k)&&k.call(this.element[0],g,h)===false||g.isDefaultPrevented())}}})(jQuery);(function(a,b){a.widget("mobile.widget",{_getCreateOptions:function(){var d=this.element,c={};a.each(this.options,function(e){var f=d.data(e.replace(/[A-Z]/g,function(g){return"-"+g.toLowerCase()}));if(f!==b){c[e]=f}});return c}})})(jQuery);(function(c,f){var e=c(window),a=c("html"),b=[320,480,768,1024];c.mobile.media=(function(){var g={},h=c("<div id='jquery-mediatest'>"),i=c("<body>").append(h);return function(l){if(!(l in g)){var j=document.createElement("style"),k="@media "+l+" { #jquery-mediatest { position:absolute; } }";j.type="text/css";if(j.styleSheet){j.styleSheet.cssText=k}else{j.appendChild(document.createTextNode(k))}a.prepend(i).prepend(j);g[l]=h.css("position")==="absolute";i.add(j).remove()}return g[l]}})();function d(){var g=e.width(),k="min-width-",i="max-width-",m=[],j=[],l="px",h;a.removeClass(k+b.join(l+" "+k)+l+" "+i+b.join(l+" "+i)+l);c.each(b,function(n,o){if(g>=o){m.push(k+o+l)}if(g<=o){j.push(i+o+l)}});if(m.length){h=m.join(" ")}if(j.length){h+=" "+j.join(" ")}a.addClass(h)}c.mobile.addResolutionBreakpoints=function(g){if(c.type(g)==="array"){b=b.concat(g)}else{b.push(g)}b.sort(function(i,h){return i-h});d()};c(document).bind("mobileinit.htmlclass",function(){e.bind("orientationchange.htmlclass resize.htmlclass",function(g){if(g.orientation){a.removeClass("portrait landscape").addClass(g.orientation)}d()})});c(function(){e.trigger("orientationchange.htmlclass")})})(jQuery);(function(e,c){var d=e("<body>").prependTo("html"),g=d[0].style,h=["webkit","moz","o"],i=window.palmGetResource||window.PalmServiceBridge,f=window.blackberry;function b(m){var l=m.charAt(0).toUpperCase()+m.substr(1),k=(m+" "+h.join(l+" ")+l).split(" ");for(var j in k){if(g[j]!==c){return true}}}function a(){var n=location.protocol+"//"+location.host+location.pathname+"ui-dir/",m=e("head base"),o=null,j="";if(!m.length){m=o=e("<base>",{href:n}).appendTo("head")}else{j=m.attr("href")}var l=e("<a href='testurl'></a>").prependTo(d),k=l[0].href;m[0].href=j?j:location.pathname;if(o){o.remove()}return k.indexOf(n)===0}e.extend(e.support,{orientation:"orientation" in window,touch:"ontouchend" in document,cssTransitions:"WebKitTransitionEvent" in window,pushState:!!history.pushState,mediaquery:e.mobile.media("only all"),cssPseudoElement:!!b("content"),boxShadow:!!b("boxShadow")&&!f,scrollTop:("pageXOffset" in window||"scrollTop" in document.documentElement||"scrollTop" in d[0])&&!i,dynamicBaseTag:a()});d.remove();if(!e.support.boxShadow){e("html").addClass("ui-mobile-nosupport-boxshadow")}})(jQuery);(function(e,g){e.each("touchstart touchmove touchend orientationchange tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(j,h){e.fn[h]=function(i){return i?this.bind(h,i):this.trigger(h)};e.attrFn[h]=true});var d=e.support.touch,c="touchmove scroll",a=d?"touchstart":"mousedown",f=d?"touchend":"mouseup",b=d?"touchmove":"mousemove";e.event.special.scrollstart={enabled:true,setup:function(){var h=this,k=e(h),j,l;function i(n,o){j=o;var m=n.type;n.type=j?"scrollstart":"scrollstop";e.event.handle.call(h,n);n.type=m}k.bind(c,function(m){if(!e.event.special.scrollstart.enabled){return}if(!j){i(m,true)}clearTimeout(l);l=setTimeout(function(){i(m,false)},50)})}};e.event.special.tap={setup:function(){var h=this,i=e(h);i.bind("mousedown touchstart",function(j){if(j.which&&j.which!==1||i.data("prevEvent")&&i.data("prevEvent")!==j.type){return false}i.data("prevEvent",j.type);setTimeout(function(){i.removeData("prevEvent")},800);var p=false,n=true,o=j.target,q=j.originalEvent,r=j.type=="touchstart"?[q.touches[0].pageX,q.touches[0].pageY]:[j.pageX,j.pageY],l,k;function m(t){if(t.type=="scroll"){p=true;return}var s=t.type=="touchmove"?t.originalEvent.touches[0]:t;if((Math.abs(r[0]-s.pageX)>10)||(Math.abs(r[1]-s.pageY)>10)){p=true}}k=setTimeout(function(){if(n&&!p){l=j.type;j.type="taphold";e.event.handle.call(h,j);j.type=l}},750);e(window).one("scroll",m);i.bind("mousemove touchmove",m).one("mouseup touchend",function(s){i.unbind("mousemove touchmove",m);e(window).unbind("scroll",m);clearTimeout(k);n=false;if(!p&&(o==s.target)){l=s.type;s.type="tap";e.event.handle.call(h,s);s.type=l}})})}};e.event.special.swipe={setup:function(){var h=this,i=e(h);i.bind(a,function(k){var m=k.originalEvent.touches?k.originalEvent.touches[0]:k,n={time:(new Date).getTime(),coords:[m.pageX,m.pageY],origin:e(k.target)},j;function l(o){if(!n){return}var p=o.originalEvent.touches?o.originalEvent.touches[0]:o;j={time:(new Date).getTime(),coords:[p.pageX,p.pageY]};if(Math.abs(n.coords[0]-j.coords[0])>10){o.preventDefault()}}i.bind(b,l).one(f,function(o){i.unbind(b,l);if(n&&j){if(j.time-n.time<1000&&Math.abs(n.coords[0]-j.coords[0])>30&&Math.abs(n.coords[1]-j.coords[1])<75){n.origin.trigger("swipe").trigger(n.coords[0]>j.coords[0]?"swipeleft":"swiperight")}}n=j=g})})}};(function(l){var m=l(window),h,k,j;l.event.special.orientationchange=h={setup:function(){if(l.support.orientation){return false}j=k();m.bind("resize",i)},teardown:function(){if(l.support.orientation){return false}m.unbind("resize",i)},add:function(n){var o=n.handler;n.handler=function(p){p.orientation=k();return o.apply(this,arguments)}}};function i(){var n=k();if(n!==j){j=n;m.trigger("orientationchange")}}h.orientation=k=function(){var n=document.documentElement;return n&&n.clientWidth/n.clientHeight<1.1?"portrait":"landscape"}})(jQuery);e.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe",swiperight:"swipe"},function(i,h){e.event.special[i]={setup:function(){e(this).bind(h,e.noop)}}})})(jQuery);
|
11
|
+
/*!
|
12
12
|
* jQuery hashchange event - v1.3 - 7/21/2010
|
13
13
|
* http://benalman.com/projects/jquery-hashchange-plugin/
|
14
14
|
*
|
@@ -16,8 +16,8 @@
|
|
16
16
|
* Dual licensed under the MIT and GPL licenses.
|
17
17
|
* http://benalman.com/about/license/
|
18
18
|
*/
|
19
|
-
(function($,e,b){var c="hashchange",h=document,f,g=$.event.special,i=h.documentMode,d="on"+c in e&&(i===b||i>7);function a(j){j=j||location.href;return"#"+j.replace(/^[^#]*#?(.*)$/,"$1")}$.fn[c]=function(j){return j?this.bind(c,j):this.trigger(c)};$.fn[c].delay=50;g[c]=$.extend(g[c],{setup:function(){if(d){return false}$(f.start)},teardown:function(){if(d){return false}$(f.stop)}});f=(function(){var j={},p,m=a(),k=function(q){return q},l=k,o=k;j.start=function(){p||n()};j.stop=function(){p&&clearTimeout(p);p=b};function n(){var r=a(),q=o(m);if(r!==m){l(m=r,q);$(e).trigger(c)}else{if(q!==m){location.href=location.href.replace(/#.*/,"")+q}}p=setTimeout(n,$.fn[c].delay)}$.browser.msie&&!d&&(function(){var q,r;j.start=function(){if(!q){r=$.fn[c].src;r=r&&r+a();q=$('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){r||l(a());n()}).attr("src",r||"javascript:0").insertAfter("body")[0].contentWindow;h.onpropertychange=function(){try{if(event.propertyName==="title"){q.document.title=h.title}}catch(s){}}}};j.stop=k;o=function(){return a(q.location.href)};l=function(v,s){var u=q.document,t=$.fn[c].domain;if(v!==s){u.title=h.title;u.open();t&&u.write('<script>document.domain="'+t+'"<\/script>');u.close();q.location.hash=v}}})();return j})()})(jQuery,this);(function(a,b){a.widget("mobile.page",a.mobile.widget,{options:{backBtnText:"Back",addBackBtn:true,degradeInputs:{color:false,date:false,datetime:false,"datetime-local":false,email:false,month:false,number:false,range:"number",search:true,tel:false,time:false,url:false,week:false},keepNative:null},_create:function(){var c=this.element,e=this.options;this.keepNative="[data-role='none'], [data-role='nojs']"+(e.keepNative?", "+e.keepNative:"");if(this._trigger("beforeCreate")===false){return}
|
20
|
-
|
19
|
+
(function($,e,b){var c="hashchange",h=document,f,g=$.event.special,i=h.documentMode,d="on"+c in e&&(i===b||i>7);function a(j){j=j||location.href;return"#"+j.replace(/^[^#]*#?(.*)$/,"$1")}$.fn[c]=function(j){return j?this.bind(c,j):this.trigger(c)};$.fn[c].delay=50;g[c]=$.extend(g[c],{setup:function(){if(d){return false}$(f.start)},teardown:function(){if(d){return false}$(f.stop)}});f=(function(){var j={},p,m=a(),k=function(q){return q},l=k,o=k;j.start=function(){p||n()};j.stop=function(){p&&clearTimeout(p);p=b};function n(){var r=a(),q=o(m);if(r!==m){l(m=r,q);$(e).trigger(c)}else{if(q!==m){location.href=location.href.replace(/#.*/,"")+q}}p=setTimeout(n,$.fn[c].delay)}$.browser.msie&&!d&&(function(){var q,r;j.start=function(){if(!q){r=$.fn[c].src;r=r&&r+a();q=$('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){r||l(a());n()}).attr("src",r||"javascript:0").insertAfter("body")[0].contentWindow;h.onpropertychange=function(){try{if(event.propertyName==="title"){q.document.title=h.title}}catch(s){}}}};j.stop=k;o=function(){return a(q.location.href)};l=function(v,s){var u=q.document,t=$.fn[c].domain;if(v!==s){u.title=h.title;u.open();t&&u.write('<script>document.domain="'+t+'"<\/script>');u.close();q.location.hash=v}}})();return j})()})(jQuery,this);(function(a,b){a.widget("mobile.page",a.mobile.widget,{options:{backBtnText:"Back",addBackBtn:true,degradeInputs:{color:false,date:false,datetime:false,"datetime-local":false,email:false,month:false,number:false,range:"number",search:true,tel:false,time:false,url:false,week:false},keepNative:null},_create:function(){var c=this.element,e=this.options;this.keepNative="[data-role='none'], [data-role='nojs']"+(e.keepNative?", "+e.keepNative:"");if(this._trigger("beforeCreate")===false){return}c.find("[data-role='page'], [data-role='content']").andSelf().each(function(){a(this).addClass("ui-"+a(this).data("role"))});c.find("[data-role='nojs']").addClass("ui-nojs");var d=c.find("[data-role]").andSelf().each(function(){var j=a(this),k=j.data("role"),i=j.data("theme");if(k==="header"||k==="footer"){j.addClass("ui-bar-"+(i||j.parent("[data-role=page]").data("theme")||"a"));j.attr("role",k==="header"?"banner":"contentinfo");var f=j.children("a"),g=f.hasClass("ui-btn-left"),h=f.hasClass("ui-btn-right");if(!g){g=f.eq(0).not(".ui-btn-right").addClass("ui-btn-left").length}if(!h){h=f.eq(1).addClass("ui-btn-right").length}if(e.addBackBtn&&k==="header"&&a(".ui-page").length>1&&c.data("url")!==a.mobile.path.stripHash(location.hash)&&!g&&j.data("backbtn")!==false){a("<a href='#' class='ui-btn-left' data-rel='back' data-icon='arrow-l'>"+e.backBtnText+"</a>").prependTo(j)}j.children("h1, h2, h3, h4, h5, h6").addClass("ui-title").attr({tabindex:"0",role:"heading","aria-level":"1"})}else{if(k==="content"){if(i){j.addClass("ui-body-"+i)}j.attr("role","main")}else{if(k==="page"){j.addClass("ui-body-"+(i||"c"))}}}switch(k){case"header":case"footer":case"page":case"content":j.addClass("ui-"+k);break;case"collapsible":case"fieldcontain":case"navbar":case"listview":case"dialog":j[k]();break}});this._enhanceControls();c.find("[data-role='button'], .ui-bar > a, .ui-header > a, .ui-footer > a").not(".ui-btn").not(this.keepNative).buttonMarkup();c.find("[data-role='controlgroup']").controlgroup();c.find("a:not(.ui-btn):not(.ui-link-inherit)").not(this.keepNative).addClass("ui-link");c.fixHeaderFooter()},_enhanceControls:function(){var d=this.options;this.element.find("input").not(this.keepNative).each(function(){var h=this.getAttribute("type"),g=d.degradeInputs[h]||"text";if(d.degradeInputs[h]){a(this).replaceWith(a("<div>").html(a(this).clone()).html().replace(/type="([a-zA-Z]+)"/,"type="+g+" data-type='$1'"))}});var f=this.element.find("input, textarea, select, button"),c=f.not(this.keepNative);var e=f.filter("input[type=text]");if(e.length&&typeof e[0].autocorrect!=="undefined"){e.each(function(){this.setAttribute("autocorrect","off");this.setAttribute("autocomplete","off")})}c.filter("[type='radio'], [type='checkbox']").checkboxradio();c.filter("button, [type='button'], [type='submit'], [type='reset'], [type='image']").button();c.filter("input, textarea").not("[type='radio'], [type='checkbox'], [type='button'], [type='submit'], [type='reset'], [type='image'], [type='hidden']").textinput();c.filter("input, select").filter("[data-role='slider'], [data-type='range']").slider();c.filter("select:not([data-role='slider'])").selectmenu()}})})(jQuery);
|
20
|
+
/*!
|
21
21
|
* jQuery Mobile v@VERSION
|
22
22
|
* http://jquerymobile.com/
|
23
23
|
*
|
@@ -25,4 +25,4 @@
|
|
25
25
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
26
26
|
* http://jquery.org/license
|
27
27
|
*/
|
28
|
-
(function(e,d,g){e.extend(e.mobile,{subPageUrlKey:"ui-page",nonHistorySelectors:"dialog",activePageClass:"ui-page-active",activeBtnClass:"ui-btn-active",ajaxEnabled:true,hashListeningEnabled:true,ajaxLinksEnabled:true,ajaxFormsEnabled:true,defaultTransition:"slide",loadingMessage:"loading",metaViewportContent:"width=device-width, minimum-scale=1, maximum-scale=1",nativeSelectMenus:false,gradeA:function(){return e.support.mediaquery},autoInitialize:true,keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});e(d.document).trigger("mobileinit");if(!e.mobile.gradeA()){return}var f=e(d),b=e("html"),a=e("head"),c=e.mobile.loadingMessage?e("<div class='ui-loader ui-body-a ui-corner-all'><span class='ui-icon ui-icon-loading spin'></span><h1>"+e.mobile.loadingMessage+"</h1></div>"):g;b.addClass("ui-mobile ui-mobile-rendering");e.mobile.metaViewportContent?e("<meta>",{name:"viewport",content:e.mobile.metaViewportContent}).prependTo(a):g;e.extend(e.mobile,{pageLoading:function(h){if(h){b.removeClass("ui-loading")}else{if(e.mobile.loadingMessage){var i=e("."+e.mobile.activeBtnClass).first();c.appendTo(e.mobile.pageContainer).css({top:e.support.scrollTop&&e(d).scrollTop()+e(d).height()/2||i.length&&i.offset().top||100})}b.addClass("ui-loading")}},silentScroll:function(h){h=h||0;e.event.special.scrollstart.enabled=false;setTimeout(function(){d.scrollTo(0,h);e(document).trigger("silentscroll",{x:0,y:h})},20);setTimeout(function(){e.event.special.scrollstart.enabled=true},150)},initializePage:function(){var h=e("[data-role='page']");h.add("[data-role='dialog']").each(function(){e(this).attr("data-url",e(this).attr("id"))});e.mobile.firstPage=h.first();e.mobile.pageContainer=h.first().parent().addClass("ui-mobile-viewport");e.mobile.pageLoading();if(!e.mobile.hashListeningEnabled||!e.mobile.path.stripHash(location.hash)){e.mobile.changePage(e.mobile.firstPage,false,true,false,true)}else{f.trigger("hashchange",[true])}}});if(e.mobile.autoInitialize){e(e.mobile.initializePage)}f.load(e.mobile.silentScroll)})(jQuery,this);(function(c,e){var k=c(window),m=c("html"),i=c("head"),l={get:function(u){if(u==e){u=location.hash}return l.stripHash(u).replace(/[^\/]*\.[^\/*]+$/,"")},getFilePath:function(v){var u="&"+c.mobile.subPageUrlKey;return v&&v.split(u)[0].split(s)[0]},set:function(u){location.hash=u},origin:"",setOrigin:function(){l.origin=l.get(location.protocol+"//"+location.host+location.pathname)},makeAbsolute:function(u){return l.get()+u},clean:function(u){return u.replace(location.protocol+"//"+location.host,"")},stripHash:function(u){return u.replace(/^#/,"")},isExternal:function(u){return l.hasProtocol(l.clean(u))},hasProtocol:function(u){return/^(:?\w+:)/.test(u)},isRelative:function(u){return/^[^\/|#]/.test(u)&&!l.hasProtocol(u)},isEmbeddedPage:function(u){return/^#/.test(u)}},t=null,b={stack:[],activeIndex:0,getActive:function(){return b.stack[b.activeIndex]},getPrev:function(){return b.stack[b.activeIndex-1]},getNext:function(){return b.stack[b.activeIndex+1]},addNew:function(u,v){if(b.getNext()){b.clearForward()}b.stack.push({url:u,transition:v});b.activeIndex=b.stack.length-1},clearForward:function(){b.stack=b.stack.slice(0,b.activeIndex+1)},clear:function(){b.stack=[];b.activeIndex=0},ignoreNextHashChange:true},n="[tabindex],a,button:visible,select:visible,input",a=null,j=[],p=false,s="&ui-state=dialog";var h=i.children("base"),r=location.protocol+"//"+location.host,g=l.get(r+location.pathname),d=g;if(h.length){var o=h.attr("href");if(o){if(o.search(/^[^:/]+:\/\/[^/]+\/?/)==-1){if(o.charAt(0)=="/"){d=r+o}else{d=g+o}}else{d=o}}d=d+(d.charAt(d.length-1)=="/"?" ":"/")}base=c.support.dynamicBaseTag?{element:(h.length?h:c("<base>",{href:d}).prependTo(i)),set:function(u){base.element.attr("href",d+l.get(u))},reset:function(){base.element.attr("href",d)}}:e;l.setOrigin();function f(v){var u=v.find(".ui-title:eq(0)");if(u.length){u.focus()}else{v.find(n).eq(0).focus()}}function q(u){if(!!t&&(!t.closest(".ui-page-active").length||u)){t.removeClass(c.mobile.activeBtnClass)}t=null}c.fn.animationComplete=function(u){if(c.support.cssTransitions){return c(this).one("webkitAnimationEnd",u)}else{setTimeout(u,0)}};c.mobile.updateHash=l.set;c.mobile.path=l;c.mobile.base=base;c.mobile.urlstack=b.stack;c.mobile.urlHistory=b;c.mobile.changePage=function(v,M,C,E,w){var y=c.type(v)==="array",L=c.type(v)==="object",J=y?v[0]:c.mobile.activePage,v=y?v[1]:v,z=fileUrl=c.type(v)==="string"?l.stripHash(v):"",O=e,x="get",F=false,B=null,H=b.getActive(),G=false,D=false;if(H&&b.stack.length>1&&H.url===z&&!y&&!L){return}else{if(p){j.unshift(arguments);return}}p=true;if(w){c.each(b.stack,function(P){if(this.url==z){urlIndex=P;G=P<b.activeIndex;D=!G;b.activeIndex=P}});if(G){C=true;M=M||H.transition}else{if(D){M=M||b.getActive().transition}}}if(L&&v.url){z=v.url,O=v.data,x=v.type,F=true;if(O&&x=="get"){if(c.type(O)=="object"){O=c.param(O)}z+="?"+O;O=e}}if(base){base.reset()}c(window.document.activeElement).add("input:focus, textarea:focus, select:focus").blur();function A(){if(M===e){M=c.mobile.defaultTransition}}function K(){c.mobile.silentScroll();var Q=k.scrollTop(),U=["flip"],R=[];if(z.indexOf("&"+c.mobile.subPageUrlKey)>-1){v=c("[data-url='"+z+"']")}if(J){J.data("lastScroll",Q);J.data("page")._trigger("beforehide",{nextPage:v})}v.data("page")._trigger("beforeshow",{prevPage:J||c("")});function P(){if(E!==false&&z){b.ignoreNextHashChange=false;l.set(z)}if(!G&&!D){b.addNew(z,M)}q();c.mobile.silentScroll(v.data("lastScroll"));f(v);if(J){J.data("page")._trigger("hide",null,{nextPage:v})}v.data("page")._trigger("show",null,{prevPage:J||c("")});c.mobile.activePage=v;if(B!=null){B.remove()}m.removeClass("ui-mobile-rendering");p=false;if(j.length>0){c.mobile.changePage.apply(c.mobile,j.pop())}}function T(V){c.mobile.pageContainer.addClass(V);R.push(V)}function S(){c.mobile.pageContainer.removeClass(R.join(" "));R=[]}if(M&&(M!=="none")){c.mobile.pageLoading(true);if(c.inArray(M,U)>=0){T("ui-mobile-viewport-perspective")}T("ui-mobile-viewport-transitioning");if(J){J.addClass(M+" out "+(C?"reverse":""))}v.addClass(c.mobile.activePageClass+" "+M+" in "+(C?"reverse":""));v.animationComplete(function(){J.add(v).removeClass("out in reverse "+M);if(J){J.removeClass(c.mobile.activePageClass)}P();S()})}else{c.mobile.pageLoading(true);if(J){J.removeClass(c.mobile.activePageClass)}v.addClass(c.mobile.activePageClass);P()}}function I(){if(a||v.data("role")=="dialog"){z=b.getActive().url+s;if(a){v.attr("data-role",a);a=null}}v.page()}if(z){v=c("[data-url='"+z+"']");fileUrl=l.getFilePath(z)}else{var u=v.attr("data-url"),N=l.getFilePath(u);if(u!=N){fileUrl=N}}A();if(v.length&&!F){if(fileUrl&&base){base.set(fileUrl)}I();K()}else{if(v.length){B=v}c.mobile.pageLoading();c.ajax({url:fileUrl,type:x,data:O,success:function(Q){var P=/ data-url="(.*)"/.test(Q)&&RegExp.$1;if(P){if(base){base.set(P)}z=fileUrl=l.getFilePath(P)}else{if(base){base.set(fileUrl)}}var R=c("<div></div>");R.get(0).innerHTML=Q;v=R.find('[data-role="page"], [data-role="dialog"]').first();if(!c.support.dynamicBaseTag){var S=l.get(fileUrl);v.find("[src],link[href]").each(function(){var U=c(this).is("[href]")?"href":"src",T=c(this).attr(U);T.replace(location.protocol+"//"+location.host+location.pathname,"");if(!/^(\w+:|#|\/)/.test(T)){c(this).attr(U,S+T)}})}v.attr("data-url",fileUrl).appendTo(c.mobile.pageContainer);I();setTimeout(function(){K()},0)},error:function(){c.mobile.pageLoading(true);q(true);base.set(l.get());c("<div class='ui-loader ui-overlay-shadow ui-body-e ui-corner-all'><h1>Error Loading Page</h1></div>").css({display:"block",opacity:0.96,top:c(window).scrollTop()+100}).appendTo(c.mobile.pageContainer).delay(800).fadeOut(400,function(){c(this).remove()})}})}};c("form[data-ajax!='false']").live("submit",function(w){if(!c.mobile.ajaxEnabled||!c.mobile.ajaxFormsEnabled){return}var v=c(this).attr("method"),u=l.clean(c(this).attr("action"));if(l.isExternal(u)){return}if(l.isRelative(u)){u=l.makeAbsolute(u)}c.mobile.changePage({url:u,type:v,data:c(this).serialize()},e,e,true);w.preventDefault()});c("a").live("click",function(u){var D=c(this),x=D.attr("href")||"#",w=l.clean(x),y=D.is("[rel='external']"),E=l.isEmbeddedPage(w),v=l.isExternal(w)||y&&!E,C=D.is("[target]"),z=D.is("[data-ajax='false']");if(D.is("[data-rel='back']")){window.history.back();return false}if(w==="#"){return false}t=D.closest(".ui-btn").addClass(c.mobile.activeBtnClass);if(v||z||C||!c.mobile.ajaxEnabled||!c.mobile.ajaxLinksEnabled){q(true);if(C){window.open(w)}else{if(z){return}else{location.href=w}}}else{var B=D.data("transition"),F=D.data("direction"),A=F&&F=="reverse"||D.data("back");a=D.attr("data-rel");if(l.isRelative(w)){w=l.makeAbsolute(w)}w=l.stripHash(w);c.mobile.changePage(w,B,A)}u.preventDefault()});k.bind("hashchange",function(v,u){var x=l.stripHash(location.hash),w=c.mobile.urlHistory.stack.length===0?false:e;if(!c.mobile.hashListeningEnabled||!b.ignoreNextHashChange||b.stack.length>1&&x.indexOf(s)>-1&&!c.mobile.activePage.is(".ui-dialog")){if(!b.ignoreNextHashChange){b.ignoreNextHashChange=true}return}if(x){c.mobile.changePage(x,w,e,false,true)}else{c.mobile.changePage(c.mobile.firstPage,w,true,false,true)}})})(jQuery);(function(b,c){b.fn.buttonMarkup=function(d){return this.each(function(){var j=b(this),k=b.extend({},b.fn.buttonMarkup.defaults,j.data(),d),f,h="ui-btn-inner",e;if(a){a()}if(!k.theme){var g=j.closest("[class*='ui-bar-'],[class*='ui-body-']");k.theme=g.length?/ui-(bar|body)-([a-z])/.exec(g.attr("class"))[2]:"c"}f="ui-btn ui-btn-up-"+k.theme;if(k.inline){f+=" ui-btn-inline"}if(k.icon){k.icon="ui-icon-"+k.icon;k.iconpos=k.iconpos||"left";e="ui-icon "+k.icon;if(k.shadow){e+=" ui-icon-shadow"}}if(k.iconpos){f+=" ui-btn-icon-"+k.iconpos;if(k.iconpos=="notext"&&!j.attr("title")){j.attr("title",j.text())}}if(k.corners){f+=" ui-btn-corner-all";h+=" ui-btn-corner-all"}if(k.shadow){f+=" ui-shadow"}j.attr("data-theme",k.theme).addClass(f);var i=("<D class='"+h+"'><D class='ui-btn-text'></D>"+(k.icon?"<span class='"+e+"'></span>":"")+"</D>").replace(/D/g,k.wrapperEls);j.wrapInner(i)})};b.fn.buttonMarkup.defaults={corners:true,shadow:true,iconshadow:true,wrapperEls:"span"};var a=function(){b(".ui-btn:not(.ui-disabled)").live({"touchstart mousedown":function(){var d=b(this).attr("data-theme");b(this).removeClass("ui-btn-up-"+d).addClass("ui-btn-down-"+d)},"touchmove touchend mouseup":function(){var d=b(this).attr("data-theme");b(this).removeClass("ui-btn-down-"+d).addClass("ui-btn-up-"+d)},"mouseover focus":function(){var d=b(this).attr("data-theme");b(this).removeClass("ui-btn-up-"+d).addClass("ui-btn-hover-"+d)},"mouseout blur":function(){var d=b(this).attr("data-theme");b(this).removeClass("ui-btn-hover-"+d).addClass("ui-btn-up-"+d)}});a=null}})(jQuery);(function(a,b){a.widget("mobile.collapsible",a.mobile.widget,{options:{expandCueText:" click to expand contents",collapseCueText:" click to collapse contents",collapsed:false,heading:">:header,>legend",theme:null,iconTheme:"d"},_create:function(){var e=this.element,f=this.options,c=e.addClass("ui-collapsible-contain"),d=e.find(f.heading).eq(0),i=c.wrapInner('<div class="ui-collapsible-content"></div>').find(".ui-collapsible-content"),h=e.closest('[data-role="collapsible-set"]').addClass("ui-collapsible-set");if(d.is("legend")){d=a('<div role="heading">'+d.html()+"</div>").insertBefore(d);d.next().remove()}d.insertBefore(i);d.addClass("ui-collapsible-heading").append('<span class="ui-collapsible-heading-status"></span>').wrapInner('<a href="#" class="ui-collapsible-heading-toggle"></a>').find("a:eq(0)").buttonMarkup({shadow:!!!h.length,corners:false,iconPos:"left",icon:"plus",theme:f.theme}).find(".ui-icon").removeAttr("class").buttonMarkup({shadow:true,corners:true,iconPos:"notext",icon:"plus",theme:f.iconTheme});if(!h.length){d.find("a:eq(0)").addClass("ui-corner-all").find(".ui-btn-inner").addClass("ui-corner-all")}else{if(c.data("collapsible-last")){d.find("a:eq(0), .ui-btn-inner").addClass("ui-corner-bottom")}}c.bind("collapse",function(j){if(!j.isDefaultPrevented()){j.preventDefault();d.addClass("ui-collapsible-heading-collapsed").find(".ui-collapsible-heading-status").text(f.expandCueText);d.find(".ui-icon").removeClass("ui-icon-minus").addClass("ui-icon-plus");i.addClass("ui-collapsible-content-collapsed").attr("aria-hidden",true);if(c.data("collapsible-last")){d.find("a:eq(0), .ui-btn-inner").addClass("ui-corner-bottom")}}}).bind("expand",function(j){if(!j.isDefaultPrevented()){j.preventDefault();d.removeClass("ui-collapsible-heading-collapsed").find(".ui-collapsible-heading-status").text(f.collapseCueText);d.find(".ui-icon").removeClass("ui-icon-plus").addClass("ui-icon-minus");i.removeClass("ui-collapsible-content-collapsed").attr("aria-hidden",false);if(c.data("collapsible-last")){d.find("a:eq(0), .ui-btn-inner").removeClass("ui-corner-bottom")}}}).trigger(f.collapsed?"collapse":"expand");if(h.length&&!h.data("collapsiblebound")){h.data("collapsiblebound",true).bind("expand",function(j){a(this).find(".ui-collapsible-contain").not(a(j.target).closest(".ui-collapsible-contain")).not("> .ui-collapsible-contain .ui-collapsible-contain").trigger("collapse")});var g=h.find("[data-role=collapsible]");g.first().find("a:eq(0)").addClass("ui-corner-top").find(".ui-btn-inner").addClass("ui-corner-top");g.last().data("collapsible-last",true)}d.bind(a.support.touch?"touchstart":"click",function(){if(d.is(".ui-collapsible-heading-collapsed")){c.trigger("expand")}else{c.trigger("collapse")}return false})}})})(jQuery);(function(a,b){a.fn.controlgroup=function(c){return this.each(function(){var g=a.extend({direction:a(this).data("type")||"vertical",shadow:false},c);var h=a(this).find(">legend"),d=g.direction=="horizontal"?["ui-corner-left","ui-corner-right"]:["ui-corner-top","ui-corner-bottom"],e=a(this).find("input:eq(0)").attr("type");if(h.length){a(this).wrapInner('<div class="ui-controlgroup-controls"></div>');a('<div role="heading" class="ui-controlgroup-label">'+h.html()+"</div>").insertBefore(a(this).children(0));h.remove()}a(this).addClass("ui-corner-all ui-controlgroup ui-controlgroup-"+g.direction);function f(i){i.removeClass("ui-btn-corner-all ui-shadow").eq(0).addClass(d[0]).end().filter(":last").addClass(d[1]).addClass("ui-controlgroup-last")}f(a(this).find(".ui-btn"));f(a(this).find(".ui-btn-inner"));if(g.shadow){a(this).addClass("ui-shadow")}})}})(jQuery);(function(a,b){a.widget("mobile.dialog",a.mobile.widget,{options:{},_create:function(){var c=this,d=c.element;this.element.attr("role","dialog").addClass("ui-page ui-dialog ui-body-a").find("[data-role=header]").addClass("ui-corner-top ui-overlay-shadow").prepend('<a href="#" data-icon="delete" data-rel="back" data-iconpos="notext">Close</a>').end().find('.ui-content:not([class*="ui-body-"])').addClass("ui-body-c").end().find(".ui-content,[data-role=footer]").last().addClass("ui-corner-bottom ui-overlay-shadow");this.element.bind("click submit",function(g){var f;if(g.type=="click"){f=a(g.target).closest("a")}else{f=a(g.target).closest("form")}if(f.length&&!f.data("transition")){f.attr("data-transition",a.mobile.urlHistory.getActive().transition).attr("data-direction","reverse")}})},close:function(){window.history.back()}})})(jQuery);(function(a,b){a.fn.fieldcontain=function(c){return this.addClass("ui-field-contain ui-body ui-br")}})(jQuery);(function(a,b){a.fn.fixHeaderFooter=function(c){if(!a.support.scrollTop){return this}return this.each(function(){var d=a(this);if(d.data("fullscreen")){d.addClass("ui-page-fullscreen")}d.find('.ui-header[data-position="fixed"]').addClass("ui-header-fixed ui-fixed-inline fade");d.find('.ui-footer[data-position="fixed"]').addClass("ui-footer-fixed ui-fixed-inline fade")})};a.fixedToolbars=(function(){if(!a.support.scrollTop){return}var g="inline",o=false,d=100,e,n="a,input,textarea,select,button,label,.ui-header-fixed,.ui-footer-fixed",p=".ui-header-fixed:first, .ui-footer-fixed:not(.ui-footer-duplicate):last",m,i=a.support.touch,q=i?"touchstart":"mousedown",k=i?"touchend":"mouseup",h=null,j=false,c=true;function f(s){if(!o&&g=="overlay"){if(!e){a.fixedToolbars.hide(true)}a.fixedToolbars.startShowTimer()}}a(function(){a(document).bind(q,function(s){if(c){if(a(s.target).closest(n).length){return}h=g}}).bind(k,function(s){if(c){if(a(s.target).closest(n).length){return}if(!j){a.fixedToolbars.toggle(h);h=null}}}).bind("scrollstart",function(t){if(a(t.target).closest(n).length){return}j=true;if(h==null){h=g}var s=h=="overlay";o=s||!!e;if(o){a.fixedToolbars.clearShowTimer();if(s){a.fixedToolbars.hide(true)}}}).bind("scrollstop",function(s){if(a(s.target).closest(n).length){return}j=false;if(o){o=false;a.fixedToolbars.startShowTimer()}h=null}).bind("silentscroll",f);a(window).bind("resize",f)});a(".ui-page").live("pagebeforeshow",function(s,u){var t=a(s.target),w=t.find('[data-role="footer"]:not(.ui-sticky-footer)'),v=w.data("id");m=null;if(v){m=a('.ui-footer[data-id="'+v+'"].ui-sticky-footer');if(m.length==0){m=w;w=m.clone();m.addClass("ui-sticky-footer").before(w)}w.addClass("ui-footer-duplicate");m.appendTo(a.pageContainer).css("top",0);r(m)}});a(".ui-page").live("pageshow",function(s,t){if(m&&m.length){m.appendTo(s.target).css("top",0)}a.fixedToolbars.show(true,this)});function l(t){var u=0;if(t){var v=t.offsetParent,s=document.body;u=t.offsetTop;while(t&&t!=s){u+=t.scrollTop||0;if(t==v){u+=v.offsetTop;v=t.offsetParent}t=t.parentNode}}return u}function r(w){var s=a(window).scrollTop(),x=l(w[0]),v=w.css("top")=="auto"?0:parseFloat(w.css("top")),z=window.innerHeight,y=w.outerHeight(),u=w.parents(".ui-page:not(.ui-page-fullscreen)").length,t;if(w.is(".ui-header-fixed")){t=s-x+v;if(t<x){t=0}return w.css("top",(u)?t:s)}else{t=s+z-y-(x-v);return w.css("top",(u)?t:s+z-y)}}return{show:function(s,u){a.fixedToolbars.clearShowTimer();g="overlay";var t=u?a(u):(a.mobile.activePage?a.mobile.activePage:a(".ui-page-active"));return t.children(p).each(function(){var x=a(this),v=a(window).scrollTop(),y=l(x[0]),A=window.innerHeight,z=x.outerHeight(),w=(x.is(".ui-header-fixed")&&v<=y+z)||(x.is(".ui-footer-fixed")&&y<=v+A);x.addClass("ui-fixed-overlay").removeClass("ui-fixed-inline");if(!w&&!s){x.animationComplete(function(){x.removeClass("in")}).addClass("in")}r(x)})},hide:function(s){g="inline";var t=a.mobile.activePage?a.mobile.activePage:a(".ui-page-active");return t.children(p).each(function(){var w=a(this);var v=w.css("top");v=v=="auto"?0:parseFloat(v);w.addClass("ui-fixed-inline").removeClass("ui-fixed-overlay");if(v<0||(w.is(".ui-header-fixed")&&v!=0)){if(s){w.css("top",0)}else{if(w.css("top")!=="auto"&&parseFloat(w.css("top"))!==0){var u="out reverse";w.animationComplete(function(){w.removeClass(u);w.css("top",0)}).addClass(u)}}}})},startShowTimer:function(){a.fixedToolbars.clearShowTimer();var s=a.makeArray(arguments);e=setTimeout(function(){e=b;a.fixedToolbars.show.apply(null,s)},d)},clearShowTimer:function(){if(e){clearTimeout(e)}e=b},toggle:function(s){if(s){g=s}return(g=="overlay")?a.fixedToolbars.hide():a.fixedToolbars.show()},setTouchToggleEnabled:function(s){c=s}}})()})(jQuery);(function(a,b){a.widget("mobile.button",a.mobile.widget,{options:{theme:null,icon:null,iconpos:null,inline:null,corners:true,shadow:true,iconshadow:true},_create:function(){var c=this.element,d=this.options;this.button=a("<div></div>").text(c.text()||c.val()).buttonMarkup({theme:d.theme,icon:d.icon,iconpos:d.iconpos,inline:d.inline,corners:d.corners,shadow:d.shadow,iconshadow:d.iconshadow}).insertBefore(c).append(c.addClass("ui-btn-hidden"));if(c.attr("type")!=="reset"){c.click(function(){var e=a("<input>",{type:"hidden",name:c.attr("name"),value:c.attr("value")}).insertBefore(c);a(document).submit(function(){e.remove()})})}},enable:function(){this.element.attr("disabled",false);this.button.removeClass("ui-disabled").attr("aria-disabled",false);return this._setOption("disabled",false)},disable:function(){this.element.attr("disabled",true);this.button.addClass("ui-disabled").attr("aria-disabled",true);return this._setOption("disabled",true)}})})(jQuery);(function(a,b){a.widget("mobile.checkboxradio",a.mobile.widget,{options:{theme:null},_create:function(){var d=this,c=this.element,f=c.closest("form,fieldset,[data-role='page']").find("label[for='"+c.attr("id")+"']"),h=c.attr("type"),g="ui-icon-"+h+"-on",e="ui-icon-"+h+"-off";if(h!="checkbox"&&h!="radio"){return}if(!this.options.theme){this.options.theme=this.element.data("theme")}f.buttonMarkup({theme:this.options.theme,icon:this.element.parents("[data-type='horizontal']").length?b:e,shadow:false});c.add(f).wrapAll("<div class='ui-"+h+"'></div>");f.bind({mouseover:function(){if(a(this).parent().is(".ui-disabled")){return false}},tap:function(i){d._cacheVals();c.attr("checked",h==="radio"&&true||!c.is(":checked"));d._updateAll();i.preventDefault()},click:false});c.bind({mousedown:function(){this._cacheVals()},click:function(){d._updateAll()},focus:function(){f.addClass("ui-focus")},blur:function(){f.removeClass("ui-focus")}});this.refresh()},_cacheVals:function(){this._getInputSet().each(function(){a(this).data("cacheVal",a(this).is(":checked"))})},_getInputSet:function(){return this.element.closest("form,fieldset,[data-role='page']").find("input[name='"+this.element.attr("name")+"'][type='"+this.element.attr("type")+"']")},_updateAll:function(){this._getInputSet().each(function(){var c=a(this).data("cacheVal");if(c&&c!==a(this).is(":checked")||a(this).is("[type='checkbox']")){a(this).trigger("change")}}).checkboxradio("refresh")},refresh:function(){var c=this.element,e=c.closest("form,fieldset,[data-role='page']").find("label[for='"+c.attr("id")+"']"),h=c.attr("type"),g=e.find(".ui-icon"),f="ui-icon-"+h+"-on",d="ui-icon-"+h+"-off";if(c[0].checked){e.addClass("ui-btn-active");g.addClass(f);g.removeClass(d)}else{e.removeClass("ui-btn-active");g.removeClass(f);g.addClass(d)}if(c.is(":disabled")){this.disable()}else{this.enable()}},disable:function(){this.element.attr("disabled",true).parent().addClass("ui-disabled")},enable:function(){this.element.attr("disabled",false).parent().removeClass("ui-disabled")}})})(jQuery);(function(a,b){a.widget("mobile.selectmenu",a.mobile.widget,{options:{theme:null,disabled:false,icon:"arrow-d",iconpos:"right",inline:null,corners:true,shadow:true,iconshadow:true,menuPageTheme:"b",overlayTheme:"a",hidePlaceholderMenuItems:true,closeText:"Close",nativeMenu:false},_create:function(){var q=this,t=this.options,s=this.element.wrap("<div class='ui-select'>"),w=s.attr("id"),m=a("label[for="+w+"]").addClass("ui-select"),d=(q.options.nativeMenu?a("<div/>"):a("<a>",{href:"#",role:"button",id:l,"aria-haspopup":"true","aria-owns":n})).text(a(s[0].options.item(s[0].selectedIndex)).text()).insertBefore(s).buttonMarkup({theme:t.theme,icon:t.icon,iconpos:t.iconpos,inline:t.inline,corners:t.corners,shadow:t.shadow,iconshadow:t.iconshadow}),j=q.isMultiple=s[0].multiple;if(t.nativeMenu&&window.opera&&window.opera.version){s.addClass("ui-select-nativeonly")}if(!t.nativeMenu){var h=s.find("option"),l=w+"-button",n=w+"-menu",c=s.closest(".ui-page"),y=/ui-btn-up-([a-z])/.exec(d.attr("class"))[1],r=a("<div data-role='dialog' data-theme='"+t.menuPageTheme+"'><div data-role='header'><div class='ui-title'>"+m.text()+"</div></div><div data-role='content'></div></div>").appendTo(a.mobile.pageContainer).page(),i=r.find(".ui-content"),g=r.find(".ui-header a"),f=a("<div>",{"class":"ui-selectmenu-screen ui-screen-hidden"}).appendTo(c),e=a("<div>",{"class":"ui-selectmenu ui-selectmenu-hidden ui-overlay-shadow ui-corner-all pop ui-body-"+t.overlayTheme}).insertAfter(f),x=a("<ul>",{"class":"ui-selectmenu-list",id:n,role:"listbox","aria-labelledby":l,"data-theme":y}).appendTo(e),v=a("<div>",{"class":"ui-header ui-bar-"+y}).prependTo(e),u=a("<h1>",{"class":"ui-title"}).appendTo(v),k=a("<a>",{"data-iconpos":"notext","data-icon":"delete",text:t.closeText,href:"#","class":"ui-btn-left"}).appendTo(v).buttonMarkup(),p}if(j){q.buttonCount=a("<span>").addClass("ui-li-count ui-btn-up-c ui-btn-corner-all").hide().appendTo(d)}if(t.disabled){this.disable()}s.change(function(){q.refresh()});a.extend(q,{select:s,optionElems:h,selectID:w,label:m,buttonId:l,menuId:n,thisPage:c,button:d,menuPage:r,menuPageContent:i,screen:f,listbox:e,list:x,menuType:p,header:v,headerClose:k,headerTitle:u,placeholder:""});if(t.nativeMenu){s.appendTo(d).bind("touchstart mousedown",function(o){d.addClass(a.mobile.activeBtnClass)}).bind("focus mouseover",function(){d.trigger("mouseover")}).bind("touchmove",function(){d.removeClass(a.mobile.activeBtnClass)}).bind("change blur mouseout",function(){d.trigger("mouseout").removeClass(a.mobile.activeBtnClass)});d.attr("tabindex","-1")}else{q.refresh();s.attr("tabindex","-1").focus(function(){a(this).blur();d.focus()});d.bind("touchstart",function(o){a(this).data("startTouches",a.extend({},o.originalEvent.touches[0]))}).bind(a.support.touch?"touchend":"mouseup",function(o){if(a(this).data("moved")){a(this).removeData("moved")}else{q.open()}o.preventDefault()}).bind("touchmove",function(A){var C=A.originalEvent.touches[0],B=a(this).data("startTouches"),z=Math.abs(C.pageX-B.pageX),o=Math.abs(C.pageY-B.pageY);if(z>10||o>10){a(this).data("moved",true)}});x.delegate("li:not(.ui-disabled, .ui-li-divider)","click",function(A){if(!a(A.target).is("a")){return}var o=x.find("li:not(.ui-li-divider)").index(this),z=q.optionElems.eq(o)[0];z.selected=j?!z.selected:true;if(j){a(this).find(".ui-icon").toggleClass("ui-icon-checkbox-on",z.selected).toggleClass("ui-icon-checkbox-off",!z.selected)}s.trigger("change");if(!j){q.close()}A.preventDefault()});f.add(k).add(g).bind("click",function(o){q.close();o.preventDefault();if(a.contains(g[0],o.target)){o.stopImmediatePropagation()}})}},_buildList:function(){var e=this,h=this.options,g=this.placeholder,c=[],f=[],d=e.isMultiple?"checkbox-off":"false";e.list.empty().filter(".ui-listview").listview("destroy");e.select.find("option").each(function(m){var p=a(this),o=p.parent(),q=p.text(),j="<a href='#'>"+q+"</a>",l=[],n=[];if(o.is("optgroup")){var k=o.attr("label");if(a.inArray(k,c)===-1){f.push("<li data-role='list-divider'>"+k+"</li>");c.push(k)}}if(!this.getAttribute("value")||q.length==0||p.data("placeholder")){if(h.hidePlaceholderMenuItems){l.push("ui-selectmenu-placeholder")}g=e.placeholder=q}if(this.disabled){l.push("ui-disabled");n.push("aria-disabled='true'")}f.push("<li data-icon='"+d+"' class='"+l.join(" ")+"' "+n.join(" ")+">"+j+"</li>")});e.list.html(f.join(" "));if(!this.isMultiple){this.headerClose.hide()}if(!this.isMultiple&&!g.length){this.header.hide()}else{this.headerTitle.text(this.placeholder)}e.list.listview()},refresh:function(g){var d=this,c=this.element,h=this.isMultiple,e=this.optionElems=c.find("option"),f=e.filter(":selected"),i=f.map(function(){return e.index(this)}).get();if(!d.options.nativeMenu&&(g||c[0].options.length>d.list.find("li").length)){d._buildList()}d.button.find(".ui-btn-text").text(function(){if(!h){return f.text()}return f.length?f.map(function(){return a(this).text()}).get().join(", "):d.placeholder});if(h){d.buttonCount[f.length>1?"show":"hide"]().text(f.length)}if(!d.options.nativeMenu){d.list.find("li:not(.ui-li-divider)").removeClass(a.mobile.activeBtnClass).attr("aria-selected",false).each(function(j){if(a.inArray(j,i)>-1){var k=a(this).addClass(a.mobile.activeBtnClass);k.find("a").attr("aria-selected",true);if(h){k.find(".ui-icon").removeClass("ui-icon-checkbox-off").addClass("ui-icon-checkbox-on")}}})}},open:function(){if(this.options.disabled||this.options.nativeMenu){return}var p=this,g=p.list.outerHeight(),l=p.list.outerWidth(),f=a(window).scrollTop(),o=p.button.offset().top,d=window.innerHeight,c=window.innerWidth,e=p.list.parents(".ui-dialog").length;p.button.addClass(a.mobile.activeBtnClass);function h(){p.list.find(".ui-btn-active").focus()}if(e||g>d-80||!a.support.scrollTop){if(f==0&&o>d){p.thisPage.one("pagehide",function(){a(this).data("lastScroll",o)})}p.menuPage.one("pageshow",function(){a(window).one("silentscroll",function(){h()})});p.menuType="page";p.menuPageContent.append(p.list);a.mobile.changePage(p.menuPage,"pop",false,true)}else{p.menuType="overlay";p.screen.height(a(document).height()).removeClass("ui-screen-hidden");var k=o-f,i=f+d-o,n=g/2,m,j;if(k>g/2&&i>g/2){m=o+(p.button.outerHeight()/2)-n}else{m=k>i?f+d-g-30:f+30}j=p.button.offset().left+p.button.outerWidth()/2-l/2;p.listbox.append(p.list).removeClass("ui-selectmenu-hidden").css({top:m,left:j}).addClass("in");h()}setTimeout(function(){p.isOpen=true},400)},close:function(){if(this.options.disabled||!this.isOpen||this.options.nativeMenu){return}var c=this;function d(){setTimeout(function(){c.button.focus();c.button.removeClass(a.mobile.activeBtnClass)},40);c.listbox.removeAttr("style").append(c.list)}if(c.menuType=="page"){a.mobile.changePage([c.menuPage,c.thisPage],"pop",true,false);c.menuPage.one("pagehide",d)}else{c.screen.addClass("ui-screen-hidden");c.listbox.addClass("ui-selectmenu-hidden").removeAttr("style").removeClass("in");d()}this.isOpen=false},disable:function(){this.element.attr("disabled",true);this.button.addClass("ui-disabled").attr("aria-disabled",true);return this._setOption("disabled",true)},enable:function(){this.element.attr("disabled",false);this.button.removeClass("ui-disabled").attr("aria-disabled",false);return this._setOption("disabled",false)}})})(jQuery);(function(a,b){a.widget("mobile.slider",a.mobile.widget,{options:{theme:null,trackTheme:null,disabled:false},_create:function(){var r=this,j=this.element,f=j.parents("[class*=ui-bar-],[class*=ui-body-]").eq(0),f=f.length?f.attr("class").match(/ui-(bar|body)-([a-z])/)[2]:"c",k=this.options.theme?this.options.theme:f,g=this.options.trackTheme?this.options.trackTheme:f,l=j[0].nodeName.toLowerCase(),n=(l=="select")?"ui-slider-switch":"",h=j.attr("id"),m=h+"-label",q=a("[for="+h+"]").attr("id",m),e=function(){return(l=="input")?parseFloat(j.val()):j[0].selectedIndex},i=(l=="input")?parseFloat(j.attr("min")):0,p=(l=="input")?parseFloat(j.attr("max")):j.find("option").length-1,d=window.parseFloat(j.attr("data-step")||1),c=a('<div class="ui-slider '+n+" ui-btn-down-"+g+' ui-btn-corner-all" role="application"></div>'),o=a('<a href="#" class="ui-slider-handle"></a>').appendTo(c).buttonMarkup({corners:true,theme:k,shadow:true}).attr({role:"slider","aria-valuemin":i,"aria-valuemax":p,"aria-valuenow":e(),"aria-valuetext":e(),title:e(),"aria-labelledby":m});a.extend(this,{slider:c,handle:o,dragging:false,beforeStart:null});if(l=="select"){c.wrapInner('<div class="ui-slider-inneroffset"></div>');var s=j.find("option");j.find("option").each(function(v){var u=(v==0)?"b":"a",t=(v==0)?"right":"left",w=(v==0)?" ui-btn-down-"+g:" ui-btn-active";a('<div class="ui-slider-labelbg ui-slider-labelbg-'+u+w+" ui-btn-corner-"+t+'"></div>').prependTo(c);a('<span class="ui-slider-label ui-slider-label-'+u+w+" ui-btn-corner-"+t+'" role="img">'+a(this).text()+"</span>").prependTo(o)})}q.addClass("ui-slider");j.addClass((l=="input")?"ui-slider-input":"ui-slider-switch").change(function(){r.refresh(e(),true)}).keyup(function(){r.refresh(e(),true,true)}).blur(function(){r.refresh(e(),true)});a(document).bind("touchmove mousemove",function(t){if(r.dragging){r.refresh(t);return false}});c.bind("touchstart mousedown",function(t){r.dragging=true;if(l==="select"){r.beforeStart=j[0].selectedIndex}r.refresh(t);return false});c.add(document).bind("touchend mouseup",function(){if(r.dragging){r.dragging=false;if(l==="select"){if(r.beforeStart===j[0].selectedIndex){r.refresh(r.beforeStart===0?1:0)}var u=e();var t=Math.round(u/(p-i)*100);o.addClass("ui-slider-handle-snapping").css("left",t+"%").animationComplete(function(){o.removeClass("ui-slider-handle-snapping")})}return false}});c.insertAfter(j);this.handle.bind("touchstart mousedown",function(){a(this).focus()});this.handle.bind("keydown",function(u){var t=e();if(r.options.disabled){return}switch(u.keyCode){case a.mobile.keyCode.HOME:case a.mobile.keyCode.END:case a.mobile.keyCode.PAGE_UP:case a.mobile.keyCode.PAGE_DOWN:case a.mobile.keyCode.UP:case a.mobile.keyCode.RIGHT:case a.mobile.keyCode.DOWN:case a.mobile.keyCode.LEFT:u.preventDefault();if(!r._keySliding){r._keySliding=true;a(this).addClass("ui-state-active")}break}switch(u.keyCode){case a.mobile.keyCode.HOME:r.refresh(i);break;case a.mobile.keyCode.END:r.refresh(p);break;case a.mobile.keyCode.PAGE_UP:case a.mobile.keyCode.UP:case a.mobile.keyCode.RIGHT:r.refresh(t+d);break;case a.mobile.keyCode.PAGE_DOWN:case a.mobile.keyCode.DOWN:case a.mobile.keyCode.LEFT:r.refresh(t-d);break}}).keyup(function(t){if(r._keySliding){r._keySliding=false;a(this).removeClass("ui-state-active")}});this.refresh()},refresh:function(e,c,m){if(this.options.disabled){return}var h=this.element,j,i=h[0].nodeName.toLowerCase(),f=(i==="input")?parseFloat(h.attr("min")):0,k=(i==="input")?parseFloat(h.attr("max")):h.find("option").length-1;if(typeof e==="object"){var g=e.originalEvent.touches?e.originalEvent.touches[0]:e,l=8;if(!this.dragging||g.pageX<this.slider.offset().left-l||g.pageX>this.slider.offset().left+this.slider.width()+l){return}j=Math.round(((g.pageX-this.slider.offset().left)/this.slider.width())*100)}else{if(e==null){e=(i==="input")?parseFloat(h.val()):h[0].selectedIndex}j=(parseFloat(e)-f)/(k-f)*100}if(isNaN(j)){return}if(j<0){j=0}if(j>100){j=100}var d=Math.round((j/100)*(k-f))+f;if(d<f){d=f}if(d>k){d=k}if(j>60&&i==="select"){}this.handle.css("left",j+"%");this.handle.attr({"aria-valuenow":(i==="input")?d:h.find("option").eq(d).attr("value"),"aria-valuetext":(i==="input")?d:h.find("option").eq(d).text(),title:d});if(i==="select"){if(d===0){this.slider.addClass("ui-slider-switch-a").removeClass("ui-slider-switch-b")}else{this.slider.addClass("ui-slider-switch-b").removeClass("ui-slider-switch-a")}}if(!m){if(i==="input"){h.val(d)}else{h[0].selectedIndex=d}if(!c){h.trigger("change")}}},enable:function(){this.element.attr("disabled",false);this.slider.removeClass("ui-disabled").attr("aria-disabled",false);return this._setOption("disabled",false)},disable:function(){this.element.attr("disabled",true);this.slider.addClass("ui-disabled").attr("aria-disabled",true);return this._setOption("disabled",true)}})})(jQuery);(function(a,b){a.widget("mobile.textinput",a.mobile.widget,{options:{theme:null},_create:function(){var k=this.element,e=this.options,h=e.theme,n;if(!h){var f=this.element.closest("[class*='ui-bar-'],[class*='ui-body-']");h=f.length?/ui-(bar|body)-([a-z])/.exec(f.attr("class"))[2]:"c"}n=" ui-body-"+h;a("label[for="+k.attr("id")+"]").addClass("ui-input-text");k.addClass("ui-input-text ui-body-"+e.theme);var i=k;if(k.is('[type="search"],[data-type="search"]')){i=k.wrap('<div class="ui-input-search ui-shadow-inset ui-btn-corner-all ui-btn-shadow ui-icon-search'+n+'"></div>').parent();var l=a('<a href="#" class="ui-input-clear" title="clear text">clear text</a>').tap(function(o){k.val("").focus();k.trigger("change");l.addClass("ui-input-clear-hidden");o.preventDefault()}).appendTo(i).buttonMarkup({icon:"delete",iconpos:"notext",corners:true,shadow:true});function d(){if(k.val()==""){l.addClass("ui-input-clear-hidden")}else{l.removeClass("ui-input-clear-hidden")}}d();k.keyup(d)}else{k.addClass("ui-corner-all ui-shadow-inset"+n)}k.focus(function(){i.addClass("ui-focus")}).blur(function(){i.removeClass("ui-focus")});if(k.is("textarea")){var g=15,j=100,c=function(){var p=k[0].scrollHeight,o=k[0].clientHeight;if(o<p){k.css({height:(p+g)})}},m;k.keyup(function(){clearTimeout(m);m=setTimeout(c,j)})}},disable:function(){(this.element.attr("disabled",true).is('[type="search"],[data-type="search"]')?this.element.parent():this.element).addClass("ui-disabled")},enable:function(){(this.element.attr("disabled",false).is('[type="search"],[data-type="search"]')?this.element.parent():this.element).removeClass("ui-disabled")}})})(jQuery);(function(a,b){a.fn.grid=function(c){return this.each(function(){var h=a.extend({grid:null},c);var i=a(this).children(),f={a:2,b:3,c:4,d:5},d=h.grid,e;if(!d){if(i.length<=5){for(var g in f){if(f[g]==i.length){d=g}}}else{d="a"}}e=f[d];a(this).addClass("ui-grid-"+d);i.filter(":nth-child("+e+"n+1)").addClass("ui-block-a");i.filter(":nth-child("+e+"n+2)").addClass("ui-block-b");if(e>2){i.filter(":nth-child(3n+3)").addClass("ui-block-c")}if(e>3){i.filter(":nth-child(4n+4)").addClass("ui-block-d")}if(e>4){i.filter(":nth-child(5n+5)").addClass("ui-block-e")}})}})(jQuery);(function(a,b){a.widget("mobile.listview",a.mobile.widget,{options:{theme:"c",countTheme:"c",headerTheme:"b",dividerTheme:"b",splitIcon:"arrow-r",splitTheme:"b",inset:false},_create:function(){var c=this.element,d=this.options;c.addClass("ui-listview").attr("role","listbox");if(d.inset){c.addClass("ui-listview-inset ui-corner-all ui-shadow")}c.delegate(".ui-li","focusin",function(){a(this).attr("tabindex","0")});this._itemApply(c,c);this.refresh(true);c.keydown(function(k){var j=a(k.target),f=j.closest("li");switch(k.keyCode){case 38:var i=f.prev();if(i.length){j.blur().attr("tabindex","-1");i.find("a").first().focus()}return false;break;case 40:var h=f.next();if(h.length){j.blur().attr("tabindex","-1");h.find("a").first().focus()}return false;break;case 39:var g=f.find("a.ui-li-link-alt");if(g.length){j.blur();g.first().focus()}return false;break;case 37:var g=f.find("a.ui-link-inherit");if(g.length){j.blur();g.first().focus()}return false;break;case 13:case 32:j.trigger("click");return false;break}});c.delegate("li","click",function(e){if(!a(e.target).closest("a").length){a(this).find("a").first().trigger("click");return false}})},_itemApply:function(d,e){e.find(".ui-li-count").addClass("ui-btn-up-"+(d.data("counttheme")||this.options.countTheme)+" ui-btn-corner-all");e.find("h1, h2, h3, h4, h5, h6").addClass("ui-li-heading");e.find("p, dl").addClass("ui-li-desc");e.find("li").find("img:eq(0)").addClass("ui-li-thumb").each(function(){a(this).closest("li").addClass(a(this).is(".ui-li-icon")?"ui-li-has-icon":"ui-li-has-thumb")});var c=e.find(".ui-li-aside");if(c.length){c.each(function(f,g){a(g).prependTo(a(g).parent())})}if(a.support.cssPseudoElement||!a.nodeName(e[0],"ol")){return}},_removeCorners:function(c){c.add(c.find(".ui-btn-inner, .ui-li-link-alt, .ui-li-thumb")).removeClass("ui-corner-top ui-corner-bottom ui-corner-br ui-corner-bl ui-corner-tr ui-corner-tl")},refresh:function(g){this._createSubPages();var i=this.options,f=this.element,e=this,h=f.data("dividertheme")||i.dividerTheme,c=f.children("li"),d=a.support.cssPseudoElement||!a.nodeName(f[0],"ol")?0:1;if(d){f.find(".ui-li-dec").remove()}c.attr({role:"option",tabindex:"-1"});c.first().attr("tabindex","0");c.each(function(q){var n=a(this),o="ui-li";if(!g&&n.hasClass("ui-li")){return}var p=n.data("theme")||i.theme;var j=n.find("a");if(j.length){var l=n.data("icon");n.buttonMarkup({wrapperEls:"div",shadow:false,corners:false,iconpos:"right",icon:j.length>1||l===false?false:l||"arrow-r",theme:p});j.first().addClass("ui-link-inherit");if(j.length>1){o+=" ui-li-has-alt";var m=j.last(),k=f.data("splittheme")||m.data("theme")||i.splitTheme;m.attr("title",m.text()).addClass("ui-li-link-alt").empty().buttonMarkup({shadow:false,corners:false,theme:p,icon:false,iconpos:false}).find(".ui-btn-inner").append(a("<span>").buttonMarkup({shadow:true,corners:true,theme:k,iconpos:"notext",icon:f.data("spliticon")||m.data("icon")||i.splitIcon}))}}else{if(n.data("role")==="list-divider"){o+=" ui-li-divider ui-btn ui-bar-"+h;n.attr("role","heading");if(d){d=1}}else{o+=" ui-li-static ui-btn-up-"+p}}if(i.inset){if(q===0){o+=" ui-corner-top";n.add(n.find(".ui-btn-inner")).find(".ui-li-link-alt").addClass("ui-corner-tr").end().find(".ui-li-thumb").addClass("ui-corner-tl");if(n.next().next().length){e._removeCorners(n.next())}}if(q===c.length-1){o+=" ui-corner-bottom";n.add(n.find(".ui-btn-inner")).find(".ui-li-link-alt").addClass("ui-corner-br").end().find(".ui-li-thumb").addClass("ui-corner-bl");if(n.prev().prev().length){e._removeCorners(n.prev())}}}if(d&&o.indexOf("ui-li-divider")<0){n.find(".ui-link-inherit").first().addClass("ui-li-jsnumbering").prepend("<span class='ui-li-dec'>"+(d++)+". </span>")}n.addClass(o);if(!g){e._itemApply(f,n)}})},_idStringEscape:function(c){return c.replace(/[^a-zA-Z0-9]/g,"-")},_createSubPages:function(){var d=this.element,c=d.closest(".ui-page"),h=c.data("url"),g=this.options,e=this,f=c.find("[data-role='footer']").data("id");a(d.find("ul, ol").toArray().reverse()).each(function(o){var p=a(this),r=p.parent(),q=a.trim(r.contents()[0].nodeValue)||r.find("a:first").text(),j=h+"&"+a.mobile.subPageUrlKey+"="+e._idStringEscape(q+" "+o),n=p.data("theme")||g.theme,k=p.data("counttheme")||d.data("counttheme")||g.countTheme,l=p.wrap("<div data-role='page'><div data-role='content'></div></div>").parent().before("<div data-role='header' data-theme='"+g.headerTheme+"'><div class='ui-title'>"+q+"</div></div>").after(f?a("<div>",{"data-role":"footer","data-id":f,"class":"ui-footer-duplicate"}):"").parent().attr({"data-url":j,"data-theme":n,"data-count-theme":k}).appendTo(a.mobile.pageContainer);l.page();var m=r.find("a:first");if(!m.length){m=a("<a></a>").html(q).prependTo(r.empty())}m.attr("href","#"+j)}).listview()}})})(jQuery);(function(a,b){a.mobile.listview.prototype.options.filter=false;a("[data-role='listview']").live("listviewcreate",function(){var e=a(this),d=e.data("listview");if(!d.options.filter){return}var f=a("<form>",{"class":"ui-listview-filter ui-bar-c",role:"search"}),c=a("<input>",{placeholder:"Filter results...","data-type":"search"}).bind("keyup change",function(){var g=this.value.toLowerCase();e.children().show();if(g){e.children().filter(function(){return a(this).text().toLowerCase().indexOf(g)===-1}).hide()}}).appendTo(f).textinput();f.insertBefore(e)})})(jQuery);(function(a,b){a.widget("mobile.navbar",a.mobile.widget,{options:{iconpos:"top",grid:null},_create:function(){var e=this.element,c=e.find("a"),d=c.filter("[data-icon]").length?this.options.iconpos:b;e.addClass("ui-navbar").attr("role","navigation").find("ul").grid({grid:this.options.grid});if(!d){e.addClass("ui-navbar-noicons")}c.buttonMarkup({corners:false,shadow:false,iconpos:d});e.delegate("a","click",function(f){c.removeClass("ui-btn-active");a(this).addClass("ui-btn-active")})}})})(jQuery);(function(a){a.themeswitcher=function(){if(a("[data-url=themeswitcher]").length){return}var c="/stylesheets/compiled/jquery/mobile/",b=["default","valencia"],d=a.mobile.activePage,e=a("<div data-url=\"themeswitcher\" data-role='dialog' data-theme='a'><div data-role='header' data-theme='b'><div class='ui-title'>Switch Theme:</div></div><div data-role='content' data-theme='c'><ul data-role='listview' data-inset='true'></ul></div></div>").appendTo(a.mobile.pageContainer),g=e.find("ul");a.each(b,function(h){a('<li><a href="#" data-rel="back">'+b[h].charAt(0).toUpperCase()+b[h].substr(1)+"</a></li>").click(function(){f(b[h]);return false}).appendTo(g)});function f(h){a("head").append("<link rel='stylesheet' href='"+c+h+".css' />")}e.page()}})(jQuery);
|
28
|
+
(function(e,d,g){e.extend(e.mobile,{subPageUrlKey:"ui-page",nonHistorySelectors:"dialog",activePageClass:"ui-page-active",activeBtnClass:"ui-btn-active",ajaxEnabled:true,hashListeningEnabled:true,ajaxLinksEnabled:true,ajaxFormsEnabled:true,defaultTransition:"slide",loadingMessage:"loading",metaViewportContent:"width=device-width, minimum-scale=1, maximum-scale=1",gradeA:function(){return e.support.mediaquery},autoInitialize:true,keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});e(d.document).trigger("mobileinit");if(!e.mobile.gradeA()){return}var f=e(d),b=e("html"),a=e("head"),c=e.mobile.loadingMessage?e("<div class='ui-loader ui-body-a ui-corner-all'><span class='ui-icon ui-icon-loading spin'></span><h1>"+e.mobile.loadingMessage+"</h1></div>"):g;b.addClass("ui-mobile ui-mobile-rendering");e.mobile.metaViewportContent?e("<meta>",{name:"viewport",content:e.mobile.metaViewportContent}).prependTo(a):g;e.extend(e.mobile,{pageLoading:function(h){if(h){b.removeClass("ui-loading")}else{if(e.mobile.loadingMessage){var i=e("."+e.mobile.activeBtnClass).first();c.appendTo(e.mobile.pageContainer).css({top:e.support.scrollTop&&e(d).scrollTop()+e(d).height()/2||i.length&&i.offset().top||100})}b.addClass("ui-loading")}},silentScroll:function(h){h=h||0;e.event.special.scrollstart.enabled=false;setTimeout(function(){d.scrollTo(0,h);e(document).trigger("silentscroll",{x:0,y:h})},20);setTimeout(function(){e.event.special.scrollstart.enabled=true},150)},initializePage:function(){var h=e("[data-role='page']");h.add("[data-role='dialog']").each(function(){e(this).attr("data-url",e(this).attr("id"))});e.mobile.firstPage=h.first();e.mobile.pageContainer=h.first().parent().addClass("ui-mobile-viewport");e.mobile.pageLoading();if(!e.mobile.hashListeningEnabled||!e.mobile.path.stripHash(location.hash)){e.mobile.changePage(e.mobile.firstPage,false,true,false,true)}else{f.trigger("hashchange",[true])}}});if(e.mobile.autoInitialize){e(e.mobile.initializePage)}f.load(e.mobile.silentScroll)})(jQuery,this);(function(c,e){var k=c(window),m=c("html"),i=c("head"),l={get:function(u){if(u==e){u=location.hash}return l.stripHash(u).replace(/[^\/]*\.[^\/*]+$/,"")},getFilePath:function(v){var u="&"+c.mobile.subPageUrlKey;return v&&v.split(u)[0].split(s)[0]},set:function(u){location.hash=u},origin:"",setOrigin:function(){l.origin=l.get(location.protocol+"//"+location.host+location.pathname)},makeAbsolute:function(u){return l.get()+u},clean:function(u){return u.replace(location.protocol+"//"+location.host,"")},stripHash:function(u){return u.replace(/^#/,"")},isExternal:function(u){return l.hasProtocol(l.clean(u))},hasProtocol:function(u){return/^(:?\w+:)/.test(u)},isRelative:function(u){return/^[^\/|#]/.test(u)&&!l.hasProtocol(u)},isEmbeddedPage:function(u){return/^#/.test(u)}},t=null,b={stack:[],activeIndex:0,getActive:function(){return b.stack[b.activeIndex]},getPrev:function(){return b.stack[b.activeIndex-1]},getNext:function(){return b.stack[b.activeIndex+1]},addNew:function(u,v){if(b.getNext()){b.clearForward()}b.stack.push({url:u,transition:v});b.activeIndex=b.stack.length-1},clearForward:function(){b.stack=b.stack.slice(0,b.activeIndex+1)},ignoreNextHashChange:true},n="[tabindex],a,button:visible,select:visible,input",a=null,j=[],p=false,s="&ui-state=dialog";var h=i.children("base"),r=location.protocol+"//"+location.host,g=l.get(r+location.pathname),d=g;if(h.length){var o=h.attr("href");if(o){if(o.search(/^[^:/]+:\/\/[^/]+\/?/)==-1){if(o.charAt(0)=="/"){d=r+o}else{d=g+o}}else{d=o}}d=d+(d.charAt(d.length-1)=="/"?" ":"/")}base=c.support.dynamicBaseTag?{element:(h.length?h:c("<base>",{href:d}).prependTo(i)),set:function(u){base.element.attr("href",d+l.get(u))},reset:function(){base.element.attr("href",d)}}:e;l.setOrigin();function f(v){var u=v.find(".ui-title:eq(0)");if(u.length){u.focus()}else{v.find(n).eq(0).focus()}}function q(u){if(!!t&&(!t.closest(".ui-page-active").length||u)){t.removeClass(c.mobile.activeBtnClass)}t=null}c.fn.animationComplete=function(u){if(c.support.cssTransitions){return c(this).one("webkitAnimationEnd",u)}else{setTimeout(u,0)}};c.mobile.updateHash=l.set;c.mobile.path=l;c.mobile.base=base;c.mobile.urlstack=b.stack;c.mobile.urlHistory=b;c.mobile.changePage=function(v,M,C,E,w){var y=c.type(v)==="array",L=c.type(v)==="object",J=y?v[0]:c.mobile.activePage,v=y?v[1]:v,z=fileUrl=c.type(v)==="string"?l.stripHash(v):"",O=e,x="get",F=false,B=null,H=b.getActive(),G=false,D=false;if(H&&b.stack.length>1&&H.url===z&&!y&&!L){return}else{if(p){j.unshift(arguments);return}}p=true;if(w){c.each(b.stack,function(P){if(this.url==z){urlIndex=P;G=P<b.activeIndex;D=!G;b.activeIndex=P}});if(G){C=true;M=M||H.transition}else{if(D){M=M||b.getActive().transition}}}if(L&&v.url){z=v.url,O=v.data,x=v.type,F=true;if(O&&x=="get"){if(c.type(O)=="object"){O=c.param(O)}z+="?"+O;O=e}}if(base){base.reset()}c(window.document.activeElement).add("input:focus, textarea:focus, select:focus").blur();function A(){if(M===e){M=c.mobile.defaultTransition}}function K(){c.mobile.silentScroll();var Q=k.scrollTop(),U=["flip"],R=[];if(z.indexOf("&"+c.mobile.subPageUrlKey)>-1){v=c("[data-url='"+z+"']")}if(J){J.data("lastScroll",Q);J.data("page")._trigger("beforehide",{nextPage:v})}v.data("page")._trigger("beforeshow",{prevPage:J||c("")});function P(){if(E!==false&&z){b.ignoreNextHashChange=false;l.set(z)}if(!G&&!D){b.addNew(z,M)}q();c.mobile.silentScroll(v.data("lastScroll"));f(v);if(J){J.data("page")._trigger("hide",null,{nextPage:v})}v.data("page")._trigger("show",null,{prevPage:J||c("")});c.mobile.activePage=v;if(B!=null){B.remove()}m.removeClass("ui-mobile-rendering");p=false;if(j.length>0){c.mobile.changePage.apply(c.mobile,j.pop())}}function T(V){c.mobile.pageContainer.addClass(V);R.push(V)}function S(){c.mobile.pageContainer.removeClass(R.join(" "));R=[]}if(M&&(M!=="none")){c.mobile.pageLoading(true);if(c.inArray(M,U)>=0){T("ui-mobile-viewport-perspective")}T("ui-mobile-viewport-transitioning");if(J){J.addClass(M+" out "+(C?"reverse":""))}v.addClass(c.mobile.activePageClass+" "+M+" in "+(C?"reverse":""));v.animationComplete(function(){J.add(v).removeClass("out in reverse "+M);if(J){J.removeClass(c.mobile.activePageClass)}P();S()})}else{c.mobile.pageLoading(true);if(J){J.removeClass(c.mobile.activePageClass)}v.addClass(c.mobile.activePageClass);P()}}function I(){if(a||v.data("role")=="dialog"){z=b.getActive().url+s;if(a){v.attr("data-role",a);a=null}}v.page()}if(z){v=c("[data-url='"+z+"']");fileUrl=l.getFilePath(z)}else{var u=v.attr("data-url"),N=l.getFilePath(u);if(u!=N){fileUrl=N}}A();if(v.length&&!F){if(fileUrl&&base){base.set(fileUrl)}I();K()}else{if(v.length){B=v}c.mobile.pageLoading();c.ajax({url:fileUrl,type:x,data:O,success:function(Q){var P=/ data-url="(.*)"/.test(Q)&&RegExp.$1;if(P){if(base){base.set(P)}z=fileUrl=l.getFilePath(P)}else{if(base){base.set(fileUrl)}}var R=c("<div></div>");R.get(0).innerHTML=Q;v=R.find('[data-role="page"], [data-role="dialog"]').first();if(!c.support.dynamicBaseTag){var S=l.get(fileUrl);v.find("[src],link[href]").each(function(){var U=c(this).is("[href]")?"href":"src",T=c(this).attr(U);T.replace(location.protocol+"//"+location.host+location.pathname,"");if(!/^(\w+:|#|\/)/.test(T)){c(this).attr(U,S+T)}})}v.attr("data-url",fileUrl).appendTo(c.mobile.pageContainer);I();setTimeout(function(){K()},0)},error:function(){c.mobile.pageLoading(true);q(true);if(base){base.set(l.get())}c("<div class='ui-loader ui-overlay-shadow ui-body-e ui-corner-all'><h1>Error Loading Page</h1></div>").css({display:"block",opacity:0.96,top:c(window).scrollTop()+100}).appendTo(c.mobile.pageContainer).delay(800).fadeOut(400,function(){c(this).remove()})}})}};c("form[data-ajax!='false']").live("submit",function(w){if(!c.mobile.ajaxEnabled||!c.mobile.ajaxFormsEnabled){return}var v=c(this).attr("method"),u=l.clean(c(this).attr("action"));if(l.isExternal(u)){return}if(l.isRelative(u)){u=l.makeAbsolute(u)}c.mobile.changePage({url:u,type:v,data:c(this).serialize()},e,e,true);w.preventDefault()});c("a").live("click",function(u){var D=c(this),x=D.attr("href")||"#",w=l.clean(x),y=D.is("[rel='external']"),E=l.isEmbeddedPage(w),v=l.isExternal(w)||y&&!E,C=D.is("[target]"),z=D.is("[data-ajax='false']");if(D.is("[data-rel='back']")){window.history.back();return false}if(w==="#"){return false}t=D.closest(".ui-btn").addClass(c.mobile.activeBtnClass);if(v||z||C||!c.mobile.ajaxEnabled||!c.mobile.ajaxLinksEnabled){q(true);if(C){window.open(w)}else{if(z){return}else{location.href=w}}}else{var B=D.data("transition"),F=D.data("direction"),A=F&&F=="reverse"||D.data("back");a=D.attr("data-rel");if(l.isRelative(w)){w=l.makeAbsolute(w)}w=l.stripHash(w);c.mobile.changePage(w,B,A)}u.preventDefault()});k.bind("hashchange",function(v,u){var x=l.stripHash(location.hash),w=c.mobile.urlHistory.stack.length===0?false:e;if(!c.mobile.hashListeningEnabled||!b.ignoreNextHashChange||b.stack.length>1&&x.indexOf(s)>-1&&!c.mobile.activePage.is(".ui-dialog")){if(!b.ignoreNextHashChange){b.ignoreNextHashChange=true}return}if(x){c.mobile.changePage(x,w,e,false,true)}else{c.mobile.changePage(c.mobile.firstPage,w,true,false,true)}})})(jQuery);(function(b,c){b.fn.buttonMarkup=function(d){return this.each(function(){var j=b(this),k=b.extend({},b.fn.buttonMarkup.defaults,j.data(),d),f,h="ui-btn-inner",e;if(a){a()}if(!k.theme){var g=j.closest("[class*='ui-bar-'],[class*='ui-body-']");k.theme=g.length?/ui-(bar|body)-([a-z])/.exec(g.attr("class"))[2]:"c"}f="ui-btn ui-btn-up-"+k.theme;if(k.inline){f+=" ui-btn-inline"}if(k.icon){k.icon="ui-icon-"+k.icon;k.iconpos=k.iconpos||"left";e="ui-icon "+k.icon;if(k.shadow){e+=" ui-icon-shadow"}}if(k.iconpos){f+=" ui-btn-icon-"+k.iconpos;if(k.iconpos=="notext"&&!j.attr("title")){j.attr("title",j.text())}}if(k.corners){f+=" ui-btn-corner-all";h+=" ui-btn-corner-all"}if(k.shadow){f+=" ui-shadow"}j.attr("data-theme",k.theme).addClass(f);var i=("<D class='"+h+"'><D class='ui-btn-text'></D>"+(k.icon?"<span class='"+e+"'></span>":"")+"</D>").replace(/D/g,k.wrapperEls);j.wrapInner(i)})};b.fn.buttonMarkup.defaults={corners:true,shadow:true,iconshadow:true,wrapperEls:"span"};var a=function(){b(".ui-btn:not(.ui-disabled)").live({"touchstart mousedown":function(){var d=b(this).attr("data-theme");b(this).removeClass("ui-btn-up-"+d).addClass("ui-btn-down-"+d)},"touchmove touchend mouseup":function(){var d=b(this).attr("data-theme");b(this).removeClass("ui-btn-down-"+d).addClass("ui-btn-up-"+d)},"mouseover focus":function(){var d=b(this).attr("data-theme");b(this).removeClass("ui-btn-up-"+d).addClass("ui-btn-hover-"+d)},"mouseout blur":function(){var d=b(this).attr("data-theme");b(this).removeClass("ui-btn-hover-"+d).addClass("ui-btn-up-"+d)}});a=null}})(jQuery);(function(a,b){a.widget("mobile.collapsible",a.mobile.widget,{options:{expandCueText:" click to expand contents",collapseCueText:" click to collapse contents",collapsed:false,heading:">:header,>legend",theme:null,iconTheme:"d"},_create:function(){var e=this.element,f=this.options,c=e.addClass("ui-collapsible-contain"),d=e.find(f.heading).eq(0),i=c.wrapInner('<div class="ui-collapsible-content"></div>').find(".ui-collapsible-content"),h=e.closest('[data-role="collapsible-set"]').addClass("ui-collapsible-set");if(d.is("legend")){d=a('<div role="heading">'+d.html()+"</div>").insertBefore(d);d.next().remove()}d.insertBefore(i);d.addClass("ui-collapsible-heading").append('<span class="ui-collapsible-heading-status"></span>').wrapInner('<a href="#" class="ui-collapsible-heading-toggle"></a>').find("a:eq(0)").buttonMarkup({shadow:!!!h.length,corners:false,iconPos:"left",icon:"plus",theme:f.theme}).find(".ui-icon").removeAttr("class").buttonMarkup({shadow:true,corners:true,iconPos:"notext",icon:"plus",theme:f.iconTheme});if(!h.length){d.find("a:eq(0)").addClass("ui-corner-all").find(".ui-btn-inner").addClass("ui-corner-all")}else{if(c.data("collapsible-last")){d.find("a:eq(0), .ui-btn-inner").addClass("ui-corner-bottom")}}c.bind("collapse",function(j){if(!j.isDefaultPrevented()){j.preventDefault();d.addClass("ui-collapsible-heading-collapsed").find(".ui-collapsible-heading-status").text(f.expandCueText);d.find(".ui-icon").removeClass("ui-icon-minus").addClass("ui-icon-plus");i.addClass("ui-collapsible-content-collapsed").attr("aria-hidden",true);if(c.data("collapsible-last")){d.find("a:eq(0), .ui-btn-inner").addClass("ui-corner-bottom")}}}).bind("expand",function(j){if(!j.isDefaultPrevented()){j.preventDefault();d.removeClass("ui-collapsible-heading-collapsed").find(".ui-collapsible-heading-status").text(f.collapseCueText);d.find(".ui-icon").removeClass("ui-icon-plus").addClass("ui-icon-minus");i.removeClass("ui-collapsible-content-collapsed").attr("aria-hidden",false);if(c.data("collapsible-last")){d.find("a:eq(0), .ui-btn-inner").removeClass("ui-corner-bottom")}}}).trigger(f.collapsed?"collapse":"expand");if(h.length&&!h.data("collapsiblebound")){h.data("collapsiblebound",true).bind("expand",function(j){a(this).find(".ui-collapsible-contain").not(a(j.target).closest(".ui-collapsible-contain")).not("> .ui-collapsible-contain .ui-collapsible-contain").trigger("collapse")});var g=h.find("[data-role=collapsible]");g.first().find("a:eq(0)").addClass("ui-corner-top").find(".ui-btn-inner").addClass("ui-corner-top");g.last().data("collapsible-last",true)}d.bind(a.support.touch?"touchstart":"click",function(){if(d.is(".ui-collapsible-heading-collapsed")){c.trigger("expand")}else{c.trigger("collapse")}return false})}})})(jQuery);(function(a,b){a.fn.controlgroup=function(c){return this.each(function(){var g=a.extend({direction:a(this).data("type")||"vertical",shadow:false},c);var h=a(this).find(">legend"),d=g.direction=="horizontal"?["ui-corner-left","ui-corner-right"]:["ui-corner-top","ui-corner-bottom"],e=a(this).find("input:eq(0)").attr("type");if(h.length){a(this).wrapInner('<div class="ui-controlgroup-controls"></div>');a('<div role="heading" class="ui-controlgroup-label">'+h.html()+"</div>").insertBefore(a(this).children(0));h.remove()}a(this).addClass("ui-corner-all ui-controlgroup ui-controlgroup-"+g.direction);function f(i){i.removeClass("ui-btn-corner-all ui-shadow").eq(0).addClass(d[0]).end().filter(":last").addClass(d[1]).addClass("ui-controlgroup-last")}f(a(this).find(".ui-btn"));f(a(this).find(".ui-btn-inner"));if(g.shadow){a(this).addClass("ui-shadow")}})}})(jQuery);(function(a,b){a.widget("mobile.dialog",a.mobile.widget,{options:{},_create:function(){var c=this,d=c.element;this.element.attr("role","dialog").addClass("ui-page ui-dialog ui-body-a").find("[data-role=header]").addClass("ui-corner-top ui-overlay-shadow").prepend('<a href="#" data-icon="delete" data-rel="back" data-iconpos="notext">Close</a>').end().find('.ui-content:not([class*="ui-body-"])').addClass("ui-body-c").end().find(".ui-content,[data-role=footer]").last().addClass("ui-corner-bottom ui-overlay-shadow");this.element.bind("click submit",function(g){var f;if(g.type=="click"){f=a(g.target).closest("a")}else{f=a(g.target).closest("form")}if(f.length&&!f.data("transition")){f.attr("data-transition",a.mobile.urlHistory.getActive().transition).attr("data-direction","reverse")}})},close:function(){window.history.back()}})})(jQuery);(function(a,b){a.fn.fieldcontain=function(c){return this.addClass("ui-field-contain ui-body ui-br")}})(jQuery);(function(a,b){a.fn.fixHeaderFooter=function(c){if(!a.support.scrollTop){return this}return this.each(function(){var d=a(this);if(d.data("fullscreen")){d.addClass("ui-page-fullscreen")}d.find('.ui-header[data-position="fixed"]').addClass("ui-header-fixed ui-fixed-inline fade");d.find('.ui-footer[data-position="fixed"]').addClass("ui-footer-fixed ui-fixed-inline fade")})};a.fixedToolbars=(function(){if(!a.support.scrollTop){return}var g="inline",o=false,d=100,e,n="a,input,textarea,select,button,label,.ui-header-fixed,.ui-footer-fixed",p=".ui-header-fixed:first, .ui-footer-fixed:not(.ui-footer-duplicate):last",m,i=a.support.touch,q=i?"touchstart":"mousedown",k=i?"touchend":"mouseup",h=null,j=false,c=true;function f(s){if(!o&&g=="overlay"){if(!e){a.fixedToolbars.hide(true)}a.fixedToolbars.startShowTimer()}}a(function(){a(document).bind(q,function(s){if(c){if(a(s.target).closest(n).length){return}h=g}}).bind(k,function(s){if(c){if(a(s.target).closest(n).length){return}if(!j){a.fixedToolbars.toggle(h);h=null}}}).bind("scrollstart",function(t){if(a(t.target).closest(n).length){return}j=true;if(h==null){h=g}var s=h=="overlay";o=s||!!e;if(o){a.fixedToolbars.clearShowTimer();if(s){a.fixedToolbars.hide(true)}}}).bind("scrollstop",function(s){if(a(s.target).closest(n).length){return}j=false;if(o){o=false;a.fixedToolbars.startShowTimer()}h=null}).bind("silentscroll",f);a(window).bind("resize",f)});a(".ui-page").live("pagebeforeshow",function(s,u){var t=a(s.target),w=t.find('[data-role="footer"]:not(.ui-sticky-footer)'),v=w.data("id");m=null;if(v){m=a('.ui-footer[data-id="'+v+'"].ui-sticky-footer');if(m.length==0){m=w;w=m.clone();m.addClass("ui-sticky-footer").before(w)}w.addClass("ui-footer-duplicate");m.appendTo(a.pageContainer).css("top",0);r(m)}});a(".ui-page").live("pageshow",function(s,t){if(m&&m.length){m.appendTo(s.target).css("top",0)}a.fixedToolbars.show(true,this)});function l(t){var u=0;if(t){var v=t.offsetParent,s=document.body;u=t.offsetTop;while(t&&t!=s){u+=t.scrollTop||0;if(t==v){u+=v.offsetTop;v=t.offsetParent}t=t.parentNode}}return u}function r(w){var s=a(window).scrollTop(),x=l(w[0]),v=w.css("top")=="auto"?0:parseFloat(w.css("top")),z=window.innerHeight,y=w.outerHeight(),u=w.parents(".ui-page:not(.ui-page-fullscreen)").length,t;if(w.is(".ui-header-fixed")){t=s-x+v;if(t<x){t=0}return w.css("top",(u)?t:s)}else{t=s+z-y-(x-v);return w.css("top",(u)?t:s+z-y)}}return{show:function(s,u){a.fixedToolbars.clearShowTimer();g="overlay";var t=u?a(u):(a.mobile.activePage?a.mobile.activePage:a(".ui-page-active"));return t.children(p).each(function(){var x=a(this),v=a(window).scrollTop(),y=l(x[0]),A=window.innerHeight,z=x.outerHeight(),w=(x.is(".ui-header-fixed")&&v<=y+z)||(x.is(".ui-footer-fixed")&&y<=v+A);x.addClass("ui-fixed-overlay").removeClass("ui-fixed-inline");if(!w&&!s){x.animationComplete(function(){x.removeClass("in")}).addClass("in")}r(x)})},hide:function(s){g="inline";var t=a.mobile.activePage?a.mobile.activePage:a(".ui-page-active");return t.children(p).each(function(){var w=a(this);var v=w.css("top");v=v=="auto"?0:parseFloat(v);w.addClass("ui-fixed-inline").removeClass("ui-fixed-overlay");if(v<0||(w.is(".ui-header-fixed")&&v!=0)){if(s){w.css("top",0)}else{if(w.css("top")!=="auto"&&parseFloat(w.css("top"))!==0){var u="out reverse";w.animationComplete(function(){w.removeClass(u);w.css("top",0)}).addClass(u)}}}})},startShowTimer:function(){a.fixedToolbars.clearShowTimer();var s=a.makeArray(arguments);e=setTimeout(function(){e=b;a.fixedToolbars.show.apply(null,s)},d)},clearShowTimer:function(){if(e){clearTimeout(e)}e=b},toggle:function(s){if(s){g=s}return(g=="overlay")?a.fixedToolbars.hide():a.fixedToolbars.show()},setTouchToggleEnabled:function(s){c=s}}})()})(jQuery);(function(a,b){a.widget("mobile.button",a.mobile.widget,{options:{theme:null,icon:null,iconpos:null,inline:null,corners:true,shadow:true,iconshadow:true},_create:function(){var c=this.element,d=this.options;this.button=a("<div></div>").text(c.text()||c.val()).buttonMarkup({theme:d.theme,icon:d.icon,iconpos:d.iconpos,inline:d.inline,corners:d.corners,shadow:d.shadow,iconshadow:d.iconshadow}).insertBefore(c).append(c.addClass("ui-btn-hidden"));if(c.attr("type")!=="reset"){c.click(function(){var e=a("<input>",{type:"hidden",name:c.attr("name"),value:c.attr("value")}).insertBefore(c);a(document).submit(function(){e.remove()})})}},enable:function(){this.element.attr("disabled",false);this.button.removeClass("ui-disabled").attr("aria-disabled",false);return this._setOption("disabled",false)},disable:function(){this.element.attr("disabled",true);this.button.addClass("ui-disabled").attr("aria-disabled",true);return this._setOption("disabled",true)}})})(jQuery);(function(a,b){a.widget("mobile.checkboxradio",a.mobile.widget,{options:{theme:null},_create:function(){var d=this,c=this.element,f=c.closest("form,fieldset,[data-role='page']").find("label[for='"+c.attr("id")+"']"),h=c.attr("type"),g="ui-icon-"+h+"-on",e="ui-icon-"+h+"-off";if(h!="checkbox"&&h!="radio"){return}if(!this.options.theme){this.options.theme=this.element.data("theme")}f.buttonMarkup({theme:this.options.theme,icon:this.element.parents("[data-type='horizontal']").length?b:e,shadow:false});c.add(f).wrapAll("<div class='ui-"+h+"'></div>");f.bind({mouseover:function(){if(a(this).parent().is(".ui-disabled")){return false}},touchmove:function(i){var j=i.originalEvent.touches[0];if(f.data("movestart")){if(Math.abs(f.data("movestart")[0]-j.pageX)>10||Math.abs(abel.data("movestart")[1]-j.pageY)>10){f.data("moved",true)}}else{f.data("movestart",[parseFloat(j.pageX),parseFloat(j.pageY)])}},"touchend mouseup":function(i){f.removeData("movestart");if(f.data("etype")&&f.data("etype")!==i.type||f.data("moved")){f.removeData("etype").removeData("moved");if(f.data("moved")){f.removeData("moved")}return false}f.data("etype",i.type);d._cacheVals();c.attr("checked",h==="radio"&&true||!c.is(":checked"));d._updateAll();i.preventDefault()},click:false});c.bind({mousedown:function(){this._cacheVals()},click:function(){d._updateAll()},focus:function(){f.addClass("ui-focus")},blur:function(){f.removeClass("ui-focus")}});this.refresh()},_cacheVals:function(){this._getInputSet().each(function(){a(this).data("cacheVal",a(this).is(":checked"))})},_getInputSet:function(){return this.element.closest("form,fieldset,[data-role='page']").find("input[name='"+this.element.attr("name")+"'][type='"+this.element.attr("type")+"']")},_updateAll:function(){this._getInputSet().each(function(){var c=a(this).data("cacheVal");if(c&&c!==a(this).is(":checked")||a(this).is("[type='checkbox']")){a(this).trigger("change")}}).checkboxradio("refresh")},refresh:function(){var c=this.element,e=c.closest("form,fieldset,[data-role='page']").find("label[for='"+c.attr("id")+"']"),h=c.attr("type"),g=e.find(".ui-icon"),f="ui-icon-"+h+"-on",d="ui-icon-"+h+"-off";if(c[0].checked){e.addClass("ui-btn-active");g.addClass(f);g.removeClass(d)}else{e.removeClass("ui-btn-active");g.removeClass(f);g.addClass(d)}if(c.is(":disabled")){this.disable()}else{this.enable()}},disable:function(){this.element.attr("disabled",true).parent().addClass("ui-disabled")},enable:function(){this.element.attr("disabled",false).parent().removeClass("ui-disabled")}})})(jQuery);(function(a,b){a.widget("mobile.selectmenu",a.mobile.widget,{options:{theme:null,disabled:false,icon:"arrow-d",iconpos:"right",inline:null,corners:true,shadow:true,iconshadow:true,menuPageTheme:"b",overlayTheme:"a",hidePlaceholderMenuItems:true,closeText:"Close",nativeMenu:false},_create:function(){var q=this,t=this.options,s=this.element.wrap("<div class='ui-select'>"),w=s.attr("id"),m=a("label[for="+w+"]").addClass("ui-select"),d=(q.options.nativeMenu?a("<div/>"):a("<a>",{href:"#",role:"button",id:l,"aria-haspopup":"true","aria-owns":n})).text(a(s[0].options.item(s[0].selectedIndex)).text()).insertBefore(s).buttonMarkup({theme:t.theme,icon:t.icon,iconpos:t.iconpos,inline:t.inline,corners:t.corners,shadow:t.shadow,iconshadow:t.iconshadow}),j=q.isMultiple=s[0].multiple;if(t.nativeMenu&&window.opera&&window.opera.version){s.addClass("ui-select-nativeonly")}if(!t.nativeMenu){var h=s.find("option"),l=w+"-button",n=w+"-menu",c=s.closest(".ui-page"),y=/ui-btn-up-([a-z])/.exec(d.attr("class"))[1],r=a("<div data-role='dialog' data-theme='"+t.menuPageTheme+"'><div data-role='header'><div class='ui-title'>"+m.text()+"</div></div><div data-role='content'></div></div>").appendTo(a.mobile.pageContainer).page(),i=r.find(".ui-content"),g=r.find(".ui-header a"),f=a("<div>",{"class":"ui-selectmenu-screen ui-screen-hidden"}).appendTo(c),e=a("<div>",{"class":"ui-selectmenu ui-selectmenu-hidden ui-overlay-shadow ui-corner-all pop ui-body-"+t.overlayTheme}).insertAfter(f),x=a("<ul>",{"class":"ui-selectmenu-list",id:n,role:"listbox","aria-labelledby":l,"data-theme":y}).appendTo(e),v=a("<div>",{"class":"ui-header ui-bar-"+y}).prependTo(e),u=a("<h1>",{"class":"ui-title"}).appendTo(v),k=a("<a>",{"data-iconpos":"notext","data-icon":"delete",text:t.closeText,href:"#","class":"ui-btn-left"}).appendTo(v).buttonMarkup(),p}if(j){q.buttonCount=a("<span>").addClass("ui-li-count ui-btn-up-c ui-btn-corner-all").hide().appendTo(d)}if(t.disabled){this.disable()}s.change(function(){q.refresh()});a.extend(q,{select:s,optionElems:h,selectID:w,label:m,buttonId:l,menuId:n,thisPage:c,button:d,menuPage:r,menuPageContent:i,screen:f,listbox:e,list:x,menuType:p,header:v,headerClose:k,headerTitle:u,placeholder:""});if(t.nativeMenu){s.appendTo(d).bind("touchstart mousedown",function(o){d.addClass(a.mobile.activeBtnClass)}).bind("focus mouseover",function(){d.trigger("mouseover")}).bind("touchmove",function(){d.removeClass(a.mobile.activeBtnClass)}).bind("change blur mouseout",function(){d.trigger("mouseout").removeClass(a.mobile.activeBtnClass)});d.attr("tabindex","-1")}else{q.refresh();s.attr("tabindex","-1").focus(function(){a(this).blur();d.focus()});d.bind("touchstart",function(o){a(this).data("startTouches",a.extend({},o.originalEvent.touches[0]))}).bind(a.support.touch?"touchend":"mouseup",function(o){if(a(this).data("moved")){a(this).removeData("moved")}else{q.open()}o.preventDefault()}).bind("touchmove",function(A){var C=A.originalEvent.touches[0],B=a(this).data("startTouches"),z=Math.abs(C.pageX-B.pageX),o=Math.abs(C.pageY-B.pageY);if(z>10||o>10){a(this).data("moved",true)}});x.delegate("li:not(.ui-disabled, .ui-li-divider)","click",function(A){if(!a(A.target).is("a")){return}var o=x.find("li:not(.ui-li-divider)").index(this),z=q.optionElems.eq(o)[0];z.selected=j?!z.selected:true;if(j){a(this).find(".ui-icon").toggleClass("ui-icon-checkbox-on",z.selected).toggleClass("ui-icon-checkbox-off",!z.selected)}s.trigger("change");if(!j){q.close()}A.preventDefault()});f.add(k).add(g).bind("click",function(o){q.close();o.preventDefault();if(a.contains(g[0],o.target)){o.stopImmediatePropagation()}})}},_buildList:function(){var e=this,h=this.options,g=this.placeholder,c=[],f=[],d=e.isMultiple?"checkbox-off":"false";e.list.empty().filter(".ui-listview").listview("destroy");e.select.find("option").each(function(m){var p=a(this),o=p.parent(),q=p.text(),j="<a href='#'>"+q+"</a>",l=[],n=[];if(o.is("optgroup")){var k=o.attr("label");if(a.inArray(k,c)===-1){f.push("<li data-role='list-divider'>"+k+"</li>");c.push(k)}}if(!this.getAttribute("value")||q.length==0||p.data("placeholder")){if(h.hidePlaceholderMenuItems){l.push("ui-selectmenu-placeholder")}g=e.placeholder=q}if(this.disabled){l.push("ui-disabled");n.push("aria-disabled='true'")}f.push("<li data-icon='"+d+"' class='"+l.join(" ")+"' "+n.join(" ")+">"+j+"</li>")});e.list.html(f.join(" "));if(!this.isMultiple){this.headerClose.hide()}if(!this.isMultiple&&!g.length){this.header.hide()}else{this.headerTitle.text(this.placeholder)}e.list.listview()},refresh:function(g){var d=this,c=this.element,h=this.isMultiple,e=this.optionElems=c.find("option"),f=e.filter(":selected"),i=f.map(function(){return e.index(this)}).get();if(!d.options.nativeMenu&&(g||c[0].options.length>d.list.find("li").length)){d._buildList()}d.button.find(".ui-btn-text").text(function(){if(!h){return f.text()}return f.length?f.map(function(){return a(this).text()}).get().join(", "):d.placeholder});if(h){d.buttonCount[f.length>1?"show":"hide"]().text(f.length)}if(!d.options.nativeMenu){d.list.find("li:not(.ui-li-divider)").removeClass(a.mobile.activeBtnClass).attr("aria-selected",false).each(function(j){if(a.inArray(j,i)>-1){var k=a(this).addClass(a.mobile.activeBtnClass);k.find("a").attr("aria-selected",true);if(h){k.find(".ui-icon").removeClass("ui-icon-checkbox-off").addClass("ui-icon-checkbox-on")}}})}},open:function(){if(this.options.disabled||this.options.nativeMenu){return}var p=this,g=p.list.outerHeight(),l=p.list.outerWidth(),f=a(window).scrollTop(),o=p.button.offset().top,d=window.innerHeight,c=window.innerWidth,e=p.list.parents(".ui-dialog").length;p.button.addClass(a.mobile.activeBtnClass);function h(){p.list.find(".ui-btn-active").focus()}if(e||g>d-80||!a.support.scrollTop){if(f==0&&o>d){p.thisPage.one("pagehide",function(){a(this).data("lastScroll",o)})}p.menuPage.one("pageshow",function(){a(window).one("silentscroll",function(){h()})});p.menuType="page";p.menuPageContent.append(p.list);a.mobile.changePage(p.menuPage,"pop",false,true)}else{p.menuType="overlay";p.screen.height(a(document).height()).removeClass("ui-screen-hidden");var k=o-f,i=f+d-o,n=g/2,m,j;if(k>g/2&&i>g/2){m=o+(p.button.outerHeight()/2)-n}else{m=k>i?f+d-g-30:f+30}j=p.button.offset().left+p.button.outerWidth()/2-l/2;p.listbox.append(p.list).removeClass("ui-selectmenu-hidden").css({top:m,left:j}).addClass("in");h()}setTimeout(function(){p.isOpen=true},400)},close:function(){if(this.options.disabled||!this.isOpen||this.options.nativeMenu){return}var c=this;function d(){setTimeout(function(){c.button.focus();c.button.removeClass(a.mobile.activeBtnClass)},40);c.listbox.removeAttr("style").append(c.list)}if(c.menuType=="page"){a.mobile.changePage([c.menuPage,c.thisPage],"pop",true,false);c.menuPage.one("pagehide",d)}else{c.screen.addClass("ui-screen-hidden");c.listbox.addClass("ui-selectmenu-hidden").removeAttr("style").removeClass("in");d()}this.isOpen=false},disable:function(){this.element.attr("disabled",true);this.button.addClass("ui-disabled").attr("aria-disabled",true);return this._setOption("disabled",true)},enable:function(){this.element.attr("disabled",false);this.button.removeClass("ui-disabled").attr("aria-disabled",false);return this._setOption("disabled",false)}})})(jQuery);(function(a,b){a.widget("mobile.slider",a.mobile.widget,{options:{theme:null,trackTheme:null,disabled:false},_create:function(){var r=this,j=this.element,f=j.parents("[class*=ui-bar-],[class*=ui-body-]").eq(0),f=f.length?f.attr("class").match(/ui-(bar|body)-([a-z])/)[2]:"c",k=this.options.theme?this.options.theme:f,g=this.options.trackTheme?this.options.trackTheme:f,l=j[0].nodeName.toLowerCase(),n=(l=="select")?"ui-slider-switch":"",h=j.attr("id"),m=h+"-label",q=a("[for="+h+"]").attr("id",m),e=function(){return(l=="input")?parseFloat(j.val()):j[0].selectedIndex},i=(l=="input")?parseFloat(j.attr("min")):0,p=(l=="input")?parseFloat(j.attr("max")):j.find("option").length-1,d=window.parseFloat(j.attr("step")||1),c=a('<div class="ui-slider '+n+" ui-btn-down-"+g+' ui-btn-corner-all" role="application"></div>'),o=a('<a href="#" class="ui-slider-handle"></a>').appendTo(c).buttonMarkup({corners:true,theme:k,shadow:true}).attr({role:"slider","aria-valuemin":i,"aria-valuemax":p,"aria-valuenow":e(),"aria-valuetext":e(),title:e(),"aria-labelledby":m});a.extend(this,{slider:c,handle:o,dragging:false,beforeStart:null});if(l=="select"){c.wrapInner('<div class="ui-slider-inneroffset"></div>');var s=j.find("option");j.find("option").each(function(v){var u=(v==0)?"b":"a",t=(v==0)?"right":"left",w=(v==0)?" ui-btn-down-"+g:" ui-btn-active";a('<div class="ui-slider-labelbg ui-slider-labelbg-'+u+w+" ui-btn-corner-"+t+'"></div>').prependTo(c);a('<span class="ui-slider-label ui-slider-label-'+u+w+" ui-btn-corner-"+t+'" role="img">'+a(this).text()+"</span>").prependTo(o)})}q.addClass("ui-slider");j.addClass((l=="input")?"ui-slider-input":"ui-slider-switch").change(function(){r.refresh(e(),true)}).keyup(function(){r.refresh(e(),true,true)}).blur(function(){r.refresh(e(),true)});a(document).bind("touchmove mousemove",function(t){if(r.dragging){r.refresh(t);return false}});c.bind("touchstart mousedown",function(t){r.dragging=true;if(l==="select"){r.beforeStart=j[0].selectedIndex}r.refresh(t);return false});c.add(document).bind("touchend mouseup",function(){if(r.dragging){r.dragging=false;if(l==="select"){if(r.beforeStart===j[0].selectedIndex){r.refresh(r.beforeStart===0?1:0)}var u=e();var t=Math.round(u/(p-i)*100);o.addClass("ui-slider-handle-snapping").css("left",t+"%").animationComplete(function(){o.removeClass("ui-slider-handle-snapping")})}return false}});c.insertAfter(j);this.handle.bind("touchstart mousedown",function(){a(this).focus()});this.handle.bind("keydown",function(u){var t=e();if(r.options.disabled){return}switch(u.keyCode){case a.mobile.keyCode.HOME:case a.mobile.keyCode.END:case a.mobile.keyCode.PAGE_UP:case a.mobile.keyCode.PAGE_DOWN:case a.mobile.keyCode.UP:case a.mobile.keyCode.RIGHT:case a.mobile.keyCode.DOWN:case a.mobile.keyCode.LEFT:u.preventDefault();if(!r._keySliding){r._keySliding=true;a(this).addClass("ui-state-active")}break}switch(u.keyCode){case a.mobile.keyCode.HOME:r.refresh(i);break;case a.mobile.keyCode.END:r.refresh(p);break;case a.mobile.keyCode.PAGE_UP:case a.mobile.keyCode.UP:case a.mobile.keyCode.RIGHT:r.refresh(t+d);break;case a.mobile.keyCode.PAGE_DOWN:case a.mobile.keyCode.DOWN:case a.mobile.keyCode.LEFT:r.refresh(t-d);break}}).keyup(function(t){if(r._keySliding){r._keySliding=false;a(this).removeClass("ui-state-active")}});this.refresh()},refresh:function(e,c,m){if(this.options.disabled){return}var h=this.element,j,i=h[0].nodeName.toLowerCase(),f=(i==="input")?parseFloat(h.attr("min")):0,k=(i==="input")?parseFloat(h.attr("max")):h.find("option").length-1;if(typeof e==="object"){var g=e.originalEvent.touches?e.originalEvent.touches[0]:e,l=8;if(!this.dragging||g.pageX<this.slider.offset().left-l||g.pageX>this.slider.offset().left+this.slider.width()+l){return}j=Math.round(((g.pageX-this.slider.offset().left)/this.slider.width())*100)}else{if(e==null){e=(i==="input")?parseFloat(h.val()):h[0].selectedIndex}j=(parseFloat(e)-f)/(k-f)*100}if(isNaN(j)){return}if(j<0){j=0}if(j>100){j=100}var d=Math.round((j/100)*(k-f))+f;if(d<f){d=f}if(d>k){d=k}if(j>60&&i==="select"){}this.handle.css("left",j+"%");this.handle.attr({"aria-valuenow":(i==="input")?d:h.find("option").eq(d).attr("value"),"aria-valuetext":(i==="input")?d:h.find("option").eq(d).text(),title:d});if(i==="select"){if(d===0){this.slider.addClass("ui-slider-switch-a").removeClass("ui-slider-switch-b")}else{this.slider.addClass("ui-slider-switch-b").removeClass("ui-slider-switch-a")}}if(!m){if(i==="input"){h.val(d)}else{h[0].selectedIndex=d}if(!c){h.trigger("change")}}},enable:function(){this.element.attr("disabled",false);this.slider.removeClass("ui-disabled").attr("aria-disabled",false);return this._setOption("disabled",false)},disable:function(){this.element.attr("disabled",true);this.slider.addClass("ui-disabled").attr("aria-disabled",true);return this._setOption("disabled",true)}})})(jQuery);(function(a,b){a.widget("mobile.textinput",a.mobile.widget,{options:{theme:null},_create:function(){var k=this.element,e=this.options,h=e.theme,n;if(!h){var f=this.element.closest("[class*='ui-bar-'],[class*='ui-body-']");h=f.length?/ui-(bar|body)-([a-z])/.exec(f.attr("class"))[2]:"c"}n=" ui-body-"+h;a("label[for="+k.attr("id")+"]").addClass("ui-input-text");k.addClass("ui-input-text ui-body-"+e.theme);var i=k;if(k.is('[type="search"],[data-type="search"]')){i=k.wrap('<div class="ui-input-search ui-shadow-inset ui-btn-corner-all ui-btn-shadow ui-icon-searchfield'+n+'"></div>').parent();var l=a('<a href="#" class="ui-input-clear" title="clear text">clear text</a>').tap(function(o){k.val("").focus();k.trigger("change");l.addClass("ui-input-clear-hidden");o.preventDefault()}).appendTo(i).buttonMarkup({icon:"delete",iconpos:"notext",corners:true,shadow:true});function d(){if(k.val()==""){l.addClass("ui-input-clear-hidden")}else{l.removeClass("ui-input-clear-hidden")}}d();k.keyup(d)}else{k.addClass("ui-corner-all ui-shadow-inset"+n)}k.focus(function(){i.addClass("ui-focus")}).blur(function(){i.removeClass("ui-focus")});if(k.is("textarea")){var g=15,j=100,c=function(){var p=k[0].scrollHeight,o=k[0].clientHeight;if(o<p){k.css({height:(p+g)})}},m;k.keyup(function(){clearTimeout(m);m=setTimeout(c,j)})}},disable:function(){(this.element.attr("disabled",true).is('[type="search"],[data-type="search"]')?this.element.parent():this.element).addClass("ui-disabled")},enable:function(){(this.element.attr("disabled",false).is('[type="search"],[data-type="search"]')?this.element.parent():this.element).removeClass("ui-disabled")}})})(jQuery);(function(a,b){a.fn.grid=function(c){return this.each(function(){var h=a.extend({grid:null},c);var i=a(this).children(),f={a:2,b:3,c:4,d:5},d=h.grid,e;if(!d){if(i.length<=5){for(var g in f){if(f[g]==i.length){d=g}}}else{d="a"}}e=f[d];a(this).addClass("ui-grid-"+d);i.filter(":nth-child("+e+"n+1)").addClass("ui-block-a");i.filter(":nth-child("+e+"n+2)").addClass("ui-block-b");if(e>2){i.filter(":nth-child(3n+3)").addClass("ui-block-c")}if(e>3){i.filter(":nth-child(4n+4)").addClass("ui-block-d")}if(e>4){i.filter(":nth-child(5n+5)").addClass("ui-block-e")}})}})(jQuery);(function(a,b){a.widget("mobile.listview",a.mobile.widget,{options:{theme:"c",countTheme:"c",headerTheme:"b",dividerTheme:"b",splitIcon:"arrow-r",splitTheme:"b",inset:false},_create:function(){var c=this.element,d=this.options;c.addClass("ui-listview").attr("role","listbox");if(d.inset){c.addClass("ui-listview-inset ui-corner-all ui-shadow")}c.delegate(".ui-li","focusin",function(){a(this).attr("tabindex","0")});this._itemApply(c,c);this.refresh(true);c.keydown(function(k){var j=a(k.target),f=j.closest("li");switch(k.keyCode){case 38:var i=f.prev();if(i.length){j.blur().attr("tabindex","-1");i.find("a").first().focus()}return false;break;case 40:var h=f.next();if(h.length){j.blur().attr("tabindex","-1");h.find("a").first().focus()}return false;break;case 39:var g=f.find("a.ui-li-link-alt");if(g.length){j.blur();g.first().focus()}return false;break;case 37:var g=f.find("a.ui-link-inherit");if(g.length){j.blur();g.first().focus()}return false;break;case 13:case 32:j.trigger("click");return false;break}});c.delegate("li","click",function(e){if(!a(e.target).closest("a").length){a(this).find("a").first().trigger("click");return false}})},_itemApply:function(d,e){e.find(".ui-li-count").addClass("ui-btn-up-"+(d.data("counttheme")||this.options.countTheme)+" ui-btn-corner-all");e.find("h1, h2, h3, h4, h5, h6").addClass("ui-li-heading");e.find("p, dl").addClass("ui-li-desc");e.find("li").find("img:eq(0)").addClass("ui-li-thumb").each(function(){a(this).closest("li").addClass(a(this).is(".ui-li-icon")?"ui-li-has-icon":"ui-li-has-thumb")});var c=e.find(".ui-li-aside");if(c.length){c.each(function(f,g){a(g).prependTo(a(g).parent())})}if(a.support.cssPseudoElement||!a.nodeName(e[0],"ol")){return}},_removeCorners:function(c){c.add(c.find(".ui-btn-inner, .ui-li-link-alt, .ui-li-thumb")).removeClass("ui-corner-top ui-corner-bottom ui-corner-br ui-corner-bl ui-corner-tr ui-corner-tl")},refresh:function(g){this._createSubPages();var i=this.options,f=this.element,e=this,h=f.data("dividertheme")||i.dividerTheme,c=f.children("li"),d=a.support.cssPseudoElement||!a.nodeName(f[0],"ol")?0:1;if(d){f.find(".ui-li-dec").remove()}c.attr({role:"option",tabindex:"-1"});c.first().attr("tabindex","0");c.each(function(q){var n=a(this),o="ui-li";if(!g&&n.hasClass("ui-li")){return}var p=n.data("theme")||i.theme;var j=n.find("a");if(j.length){var l=n.data("icon");n.buttonMarkup({wrapperEls:"div",shadow:false,corners:false,iconpos:"right",icon:j.length>1||l===false?false:l||"arrow-r",theme:p});j.first().addClass("ui-link-inherit");if(j.length>1){o+=" ui-li-has-alt";var m=j.last(),k=f.data("splittheme")||m.data("theme")||i.splitTheme;m.appendTo(n).attr("title",m.text()).addClass("ui-li-link-alt").empty().buttonMarkup({shadow:false,corners:false,theme:p,icon:false,iconpos:false}).find(".ui-btn-inner").append(a("<span>").buttonMarkup({shadow:true,corners:true,theme:k,iconpos:"notext",icon:f.data("spliticon")||m.data("icon")||i.splitIcon}))}}else{if(n.data("role")==="list-divider"){o+=" ui-li-divider ui-btn ui-bar-"+h;n.attr("role","heading");if(d){d=1}}else{o+=" ui-li-static ui-btn-up-"+p}}if(i.inset){if(q===0){o+=" ui-corner-top";n.add(n.find(".ui-btn-inner")).find(".ui-li-link-alt").addClass("ui-corner-tr").end().find(".ui-li-thumb").addClass("ui-corner-tl");if(n.next().next().length){e._removeCorners(n.next())}}if(q===c.length-1){o+=" ui-corner-bottom";n.add(n.find(".ui-btn-inner")).find(".ui-li-link-alt").addClass("ui-corner-br").end().find(".ui-li-thumb").addClass("ui-corner-bl");if(n.prev().prev().length){e._removeCorners(n.prev())}}}if(d&&o.indexOf("ui-li-divider")<0){n.find(".ui-link-inherit").first().addClass("ui-li-jsnumbering").prepend("<span class='ui-li-dec'>"+(d++)+". </span>")}n.addClass(o);if(!g){e._itemApply(f,n)}})},_idStringEscape:function(c){return c.replace(/[^a-zA-Z0-9]/g,"-")},_createSubPages:function(){var d=this.element,c=d.closest(".ui-page"),h=c.data("url"),g=this.options,e=this,f=c.find("[data-role='footer']").data("id");a(d.find("ul, ol").toArray().reverse()).each(function(o){var p=a(this),r=p.parent(),q=a.trim(r.contents()[0].nodeValue)||r.find("a:first").text(),j=h+"&"+a.mobile.subPageUrlKey+"="+e._idStringEscape(q+" "+o),n=p.data("theme")||g.theme,k=p.data("counttheme")||d.data("counttheme")||g.countTheme,l=p.wrap("<div data-role='page'><div data-role='content'></div></div>").parent().before("<div data-role='header' data-theme='"+g.headerTheme+"'><div class='ui-title'>"+q+"</div></div>").after(f?a("<div>",{"data-role":"footer","data-id":f,"class":"ui-footer-duplicate"}):"").parent().attr({"data-url":j,"data-theme":n,"data-count-theme":k}).appendTo(a.mobile.pageContainer);l.page();var m=r.find("a:first");if(!m.length){m=a("<a></a>").html(q).prependTo(r.empty())}m.attr("href","#"+j)}).listview()}})})(jQuery);(function(a,b){a.mobile.listview.prototype.options.filter=false;a("[data-role='listview']").live("listviewcreate",function(){var e=a(this),d=e.data("listview");if(!d.options.filter){return}var f=a("<form>",{"class":"ui-listview-filter ui-bar-c",role:"search"}),c=a("<input>",{placeholder:"Filter results...","data-type":"search"}).bind("keyup change",function(){var g=this.value.toLowerCase();e.children().show();if(g){e.children().filter(function(){return a(this).text().toLowerCase().indexOf(g)===-1}).hide()}}).appendTo(f).textinput();f.insertBefore(e)})})(jQuery);(function(a,b){a.widget("mobile.navbar",a.mobile.widget,{options:{iconpos:"top",grid:null},_create:function(){var e=this.element,c=e.find("a"),d=c.filter("[data-icon]").length?this.options.iconpos:b;e.addClass("ui-navbar").attr("role","navigation").find("ul").grid({grid:this.options.grid});if(!d){e.addClass("ui-navbar-noicons")}c.buttonMarkup({corners:false,shadow:false,iconpos:d});e.delegate("a","click",function(f){c.removeClass("ui-btn-active");a(this).addClass("ui-btn-active")})}})})(jQuery);(function(a){a.themeswitcher=function(){if(a("[data-url=themeswitcher]").length){return}var c="/stylesheets/compiled/jquery/mobile/",b=["default","valencia"],d=a.mobile.activePage,e=a("<div data-url=\"themeswitcher\" data-role='dialog' data-theme='a'><div data-role='header' data-theme='b'><div class='ui-title'>Switch Theme:</div></div><div data-role='content' data-theme='c'><ul data-role='listview' data-inset='true'></ul></div></div>").appendTo(a.mobile.pageContainer),g=e.find("ul");a.each(b,function(h){a('<li><a href="#" data-rel="back">'+b[h].charAt(0).toUpperCase()+b[h].substr(1)+"</a></li>").click(function(){f(b[h]);return false}).appendTo(g)});function f(h){a("head").append("<link rel='stylesheet' href='"+c+h+".css' />")}e.page()}})(jQuery);
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compass-jquery-plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 91
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
9
|
- 2
|
10
|
-
-
|
11
|
-
version: 0.3.2.
|
10
|
+
- 2
|
11
|
+
version: 0.3.2.2
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Kosmas Schuetz
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-02-
|
19
|
+
date: 2011-02-05 00:00:00 +01:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -911,6 +911,10 @@ files:
|
|
911
911
|
- templates/jquery/jquery.contextMenu.min.js
|
912
912
|
- templates/jquery/jquery.cookie.js
|
913
913
|
- templates/jquery/jquery.cookie.min.js
|
914
|
+
- templates/jquery/jquery.dotimeout.js
|
915
|
+
- templates/jquery/jquery.dotimeout.min.js
|
916
|
+
- templates/jquery/jquery.dst.js
|
917
|
+
- templates/jquery/jquery.dst.min.js
|
914
918
|
- templates/jquery/jquery.farbtastic.js
|
915
919
|
- templates/jquery/jquery.farbtastic.min.js
|
916
920
|
- templates/jquery/jquery.flash_messages.js
|