Skip to content
Browse files

extended service and corrected build to include jquery mobile

  • Loading branch information...
1 parent 5ac2773 commit 3518612baa95752f314c080c483f1d72b1e30052 Tobias Bosch committed
Showing with 11,062 additions and 2,119 deletions.
  1. +2 −1 Changelog.md
  2. +45 −13 README.md
  3. +0 −1 compiled/jquery-mobile-angular-adapter-1.0.2.min.js
  4. +0 −1 compiled/jquery-mobile-angular-adapter-1.0.3-SNAPSHOT.min.js
  5. +62 −50 compiled/{jquery-mobile-angular-adapter-1.0.3-SNAPSHOT.js → jquery-mobile-angular-adapter-1.0.3.js}
  6. +0 −1 compiled/jquery-mobile-angular-adapter-standalone-1.0.2.min.js
  7. +0 −1 compiled/jquery-mobile-angular-adapter-standalone-1.0.3-SNAPSHOT.min.js
  8. +1,676 −1,836 ...angular-adapter-standalone-1.0.3-SNAPSHOT.js → jquery-mobile-angular-adapter-standalone-1.0.3.js}
  9. BIN compiled/jquery-mobile/images/ajax-loader.png
  10. BIN compiled/jquery-mobile/images/icons-18-black.png
  11. BIN compiled/jquery-mobile/images/icons-18-white.png
  12. BIN compiled/jquery-mobile/images/icons-36-black.png
  13. BIN compiled/jquery-mobile/images/icons-36-white.png
  14. +1,892 −0 compiled/jquery-mobile/jquery.mobile-1.0rc2-oc1.css
  15. +6,814 −0 compiled/jquery-mobile/jquery.mobile-1.0rc2-oc1.js
  16. +1 −0 compiled/min/jquery-mobile-angular-adapter-1.0.3.js
  17. +1 −0 compiled/min/jquery-mobile-angular-adapter-standalone-1.0.3.js
  18. BIN compiled/min/jquery-mobile/images/ajax-loader.png
  19. BIN compiled/min/jquery-mobile/images/icons-18-black.png
  20. BIN compiled/min/jquery-mobile/images/icons-18-white.png
  21. BIN compiled/min/jquery-mobile/images/icons-36-black.png
  22. BIN compiled/min/jquery-mobile/images/icons-36-white.png
  23. +1 −0 compiled/min/jquery-mobile/jquery.mobile-1.0rc2-oc1.css
  24. +1 −0 compiled/min/jquery-mobile/jquery.mobile-1.0rc2-oc1.js
  25. +71 −12 pom.xml
  26. +0 −24 src/main/build/header.js
  27. +24 −2 src/main/webapp/jqmng/navigate.js
  28. +176 −162 src/main/webapp/lib/jquery.mobile-1.0rc2-oc1.css
  29. +161 −14 src/main/webapp/lib/jquery.mobile-1.0rc2-oc1.js
  30. 0 src/main/{build → wrap}/footer.js
  31. +8 −0 src/main/wrap/header.js
  32. +2 −1 src/test/webapp/ui-tests.js
  33. +125 −0 src/test/webapp/ui/navigateSpec.js
View
3 Changelog.md
@@ -4,6 +4,7 @@ Changelog
1.0.3
-------------
- Upgraded to jQuery Mobile RC2.
+- Provides a bugfixed version of jquery mobile.
- Bugfix to styling of elements like `<a>`, ... when used with ng:if (see issue #10).
- Added a custom style to hide the angular validation popup (the red line around
elements with validation errors still appears).
@@ -14,7 +15,7 @@ Changelog
- Added `$navigate` function in expressions to move navigation from the controller to the page.
- `ngm:shared-controller` was added to share state between spearate pages
- `onActivate` and `onPassivate` callbacks were removed. Use
- `ngm:event="pagebeforeshow:myCallback()"` instead, and `ngm:shared-controller` for sharing sate between pages.
+ `ngm:event="pagebeforeshow:myCallback()"` or `$navigate(toPage, activateFn)` instead.
- `ngm:enterKey` was removed. Please use a form with `ng:submit` (and `data-ajax=false`) for this.
- `<input type="range">` did produce two sliders. Bug was introduced in 1.0.2.
- `ngm:event` now expects it's value to be a json string.
View
58 README.md
@@ -14,7 +14,34 @@ values in angular change.
E.g. the select tag is enhanced by jquery mobile,
and if someone changes it's value programmatically, the refresh-function needs to be called.
-Finally provides special enhancements useful for mobile applications.
+Fixes the jquery mobile widgets so that they are correctly removed form the dom,
+when angular removes them (e.g. in a `ng:repeat`).
+
+Provides special enhancements useful for mobile applications.
+
+Finally provies a special version of jquery mobile that contains some bugfixes.
+
+Dependencies
+----------------
+- angular 0.9.19
+- jquery 1.6.2 (Please note: Newer versions of jquery do not work, as angular 0.9.19
+ does not work with them...)
+- jquery mobile 1.0rc2
+
+Bugfixed version of jquery mobile
+---------------------------------
+This also provides a special version of jquery-mobile that contains the following:
+
+- integration of the `transitions` branch of jquery-mobile for WebKit browsers.
+ This is fixes several bugs especially on android (see jquery mobile #455).
+- address bar will always be visible on android. This is not yet really solved
+ by jquery mobile as without this, the address bar shows up again from time to time.
+ (see jquery mobile #1673)
+- Bugfix for highlighting problem on `data-role="listview"` lists toghether with
+ jquery 1.6.2. Those lists will not remove the highlighting when the mouse hovers
+ over them. The underlying issue is an issue of jquery (see jquery #10192) and already
+ fixed in jquery 1.7. However, the adapter currently only runs with angular 0.9.19,
+ which does not work with jquery 1.7.
Sample
------------
@@ -40,14 +67,25 @@ ATTENTION: Do NOT use the `autobind` mode of angular!
<html xmlns:ng="http://angularjs.org" xmlns:ngm="http://jqm-angularjs.org">
<head>
<title>MobileToys</title>
- <link rel="stylesheet" href="lib/jquery.mobile-1.0b1-oc1.css"/>
+ <link rel="stylesheet" href="lib/jquery.mobile-1.0rc2-oc1.css"/>
<script src="lib/jquery-1.6.1.js"></script>
- <script src="lib/jquery.mobile-1.0b1-oc1.js"></script>
+ <script src="lib/jquery.mobile-1.0rc2-oc1.js"></script>
<script src="lib/angular-0.9.15.js"></script>
<script src="lib/jquery-mobile-angular-adapter.js"></script>
</head>
+Directory layout
+-------------------
+This follows the usual maven directory layout:
+
+- src/main/webapp: The production code
+- src/test/webapp: The test code
+- compiled: The result of the javascript compilation
+- compiled/jquery-mobile: The bugfixed version of jquery-mobile.
+- compiled/min: Contains the minified files.
+
+
Build
--------------------------
The build is done using maven and requirejs.
@@ -70,14 +108,6 @@ Running the tests
The unit-tests can be run via the url `localhost:8080/jqmng/UnitSpecRunner.html`
The ui-tests can be run via the url `localhost:8080/jqmng/UiSpecRunner.html`
-Directory layout
--------------------
-This follows the usual maven directory layout:
-
-- src/main/webapp: The production code
-- src/test/webapp: The test code
-- compiled: The result of the javascript compilation
-
Scopes
-----------
@@ -135,12 +165,14 @@ should be shown via a transition lasting a defined amount of milliseconds (the v
Usage: E.g. `<div ngm:fadein="700">asdf</div>`
-### Service $navigate('[transition]:pageId')
-Service to change the current page.
+### Service $navigate('[transition]:pageId'[,activateFn][,activateFnParam1, ...])
+Service to change the given page.
- If the transition has the special value `back` than the browser will go back in history to
the defined page, e.g. `back:hompage`.
- The transition may be omitted, e.g. `$navigate('homepage')`.
- To go back one page use `$navigate('back')`.
+- If the `activateFn` function is given, it will be called after the navigation on the target page with
+ `activateFnParam1, ...` as arguments. The invocation is done before the `pagebeforeshow` event on the target page.
### Service $waitDialog
The service `$waitDialog` allows the access to the jquery mobile wait dialog. It provides the following functions:
View
1 compiled/jquery-mobile-angular-adapter-1.0.2.min.js
@@ -1 +0,0 @@
-(function(){var a,b,c;(function(a){if(typeof c=="undefined"){var d=[],e;c=e=function(a,b,c){var e=a.indexOf(".js");e!==-1&&(a=a.substring(0,e)),arguments.length==2&&(c=b,b=[]);if(typeof c=="function"){var f=[];for(var g=0;g<b.length;g++){var h=b[g];f.push(d[h])}c=c.apply(this,f)}d[a]=c},b=function(a,b){if(typeof b=="function"){var c=[];for(var e=0;e<a.length;e++){var f=a[e];c.push(d[f])}b.apply(this,c)}},b.ready=$}})(window),c("angular",function(){if(typeof angular!="undefined")return angular}),c("jquery",function(){if(typeof $!="undefined")return $}),c("jqmng/globalScope",["jquery","angular"],function(a,b){function f(a){c.push(a)}function e(){d||(d=a("body").scope(),d||b.compile(a(document))(),d=a("body").scope());return d}var c=[];b.widget("body",function(a){this.descend(!1),this.directives(!0);return function(a){var b=this;for(var d=0;d<c.length;d++)c[d](b)}});var d;return{globalScope:e,onCreate:f}}),c("jqmng/activePage",["jquery","jqmng/globalScope"],function(a,b){function c(){if(arguments.length==0){var b=a.mobile.activePage;return b?b.attr("id"):null}var c=arguments[0];c=="back"?window.history.back():a.mobile.changePage.apply(a.mobile.changePage,arguments)}a("div").live("pagebeforehide",function(b,c){var d=a(b.target).scope();if(!!d){var e=c.nextPage,f=e&&e.scope();d.onPassivate&&d.onPassivate.call(d,f)}}),a("div").live("pagebeforeshow",function(b,c){var d=a(b.target).scope();if(!!d){var e=c.prevPage,f=e&&e.scope();d.onActivate&&d.onActivate.call(d,f)}});return{activePage:c}}),c("jqmng/waitDialog",["jquery"],function(a){function j(b,c,d){d||(d=a.mobile.loadingMessageWithCancel),g(d,function(){b.reject(c)}),b.always(function(){h()})}function i(a,b){g(),a.always(function(){h()})}function h(){b.pop(),f()}function g(){var c,d;typeof arguments[0]=="string"&&(c=arguments[0]),typeof arguments[0]=="function"&&(d=arguments[0]),typeof arguments[1]=="function"&&(d=arguments[1]),c||(c=a.mobile.loadingMessage),b.push({msg:c,callback:d}),f()}function f(){e();if(b.length>0){var c=b[b.length-1],d=c.msg;a.mobile.loadingMessage=d,a.mobile.showPageLoadingMsg()}else a.mobile.hidePageLoadingMsg()}function e(){if(!d||d.length==0)d=a(".ui-loader"),d.bind("vclick",c)}function c(a){var c=b[b.length-1];c.callback&&c.callback.apply(this,arguments),a.preventDefault()}var b=[],d;a.mobile.loadingMessageWithCancel||(a.mobile.loadingMessageWithCancel="Loading. Click to cancel."),a("div").live("pageshow",function(a,b){f()});return{show:g,hide:h,waitFor:i,waitForWithCancel:j}}),c("jqmng/event",["angular"],function(a){a.directive("ngm:click",function(b,c){return a.directive("ngm:event")("vclick:"+b,c)}),a.directive("ngm:event",function(a,b){var c={},d=/(.*?):(.*?)($|,)/g,e,f=!1;while(e=d.exec(a)){f=!0;var g=e[1],h=e[2];c[g]=h}if(!f)throw"Expression "+a+" needs to have the syntax <event>:<handler>,...";var i=function(a,b){var d=this;for(var e in c)(function(e){var f=c[e];b.bind(e,function(c){var g=d.$tryEval(f,b);a(),e.charAt(0)=="v"&&c.preventDefault()})})(e)};i.$inject=["$updateView"];return i}),a.directive("ngm:enterkey",function(a,b){var c=function(b,c){var d=this;c.bind("keypress",function(e){var f=e.keyCode||e.which;if(f==13){var g=d.$tryEval(a,c);b()}})};c.$inject=["$updateView"];return c})}),c("jqmng/fadein",["angular"],function(a){a.directive("ngm:fadein",function(a,b){this.directives(!0),this.descend(!0),b.css({opacity:.1});return function(b){b.animate({opacity:1},parseInt(a))}})}),c("jqmng/if",["angular"],function(a){a.Object.iff=function(a,b,c,d){return b?c:d},a.widget("@ngm:if",function(b,c){var d="ngmif in $iff("+b+",[1],[])";c.removeAttr("ngm:if");return a.widget("@ng:repeat").call(this,d,c)})}),c("jqmng/paging",["jquery","angular","jqmng/globalScope"],function(a,b,c){function o(){this.loadedCount=0,this.refreshNeeded=!0}function n(){this.refreshIfNeeded();return this.loadedCount<this.availableCount}function m(){this.loadedCount=this.loadedCount+this.pageSize,this.refreshNeeded=!0}function l(a){b.Object.equals(this.orderBy,a)||(this.orderBy=a,this.refreshNeeded=!0)}function k(a){b.Object.equals(this.filter,a)||(this.filter=a,this.refreshNeeded=!0)}function j(){this.evalId!=d&&(this.refreshNeeded=!0,this.evalId=d),this.refreshNeeded&&(this.refresh(),this.refreshNeeded=!1);return this}function i(){var a=this.originalList;this.filter&&(a=b.Array.filter(a,this.filter)),this.orderBy&&(a=b.Array.orderBy(a,this.orderBy));var c=this.loadedCount;c<this.pageSize&&(c=this.pageSize),c>a.length&&(c=a.length),this.loadedCount=c,this.availableCount=a.length;var d=a.slice(0,c),e=[0,this.length].concat(d);this.splice.apply(this,e)}function h(b){b.pageSize?this.pageSize=b.pageSize:this.pageSize=a.mobile.defaultListPageSize,this.originalList=b,this.refreshNeeded=!0,this.reset()}function g(a){var b=[];for(var c in e)b[c]=e[c];b.init(a);var d=b.hasOwnProperty;b.hasOwnProperty=function(a){return a in e||a in f?!1:d.apply(this,arguments)};return b}a.mobile.defaultListPageSize||(a.mobile.defaultListPageSize=10);var d=0;c.onCreate(function(a){a.$onEval(-99999,function(){d++})});var e={init:h,refresh:i,refreshIfNeeded:j,setFilter:k,setOrderBy:l,loadNextPage:m,hasMorePages:n,reset:o},f={pageSize:!0,originalList:!0,refreshNeeded:!0,filter:!0,orderBy:!0,loadedCount:!0,availableCount:!0,evalId:!0};b.Array.paged=function(a,b,c){var d=a.pagedList;d||(d=g(a),a.pagedList=d),d.setFilter(b),d.setOrderBy(c),d.refreshIfNeeded();return d}}),c("jqmng/widgets/pageCompile",["jquery","angular","jqmng/globalScope"],function(a,b,c){function f(a){d.length==0&&setTimeout(e,0),d.push(a)}function e(){while(d.length>0){var a=d.shift();a()}}a.mobile.page.prototype.widgetEventPrefix="jqmngpage";var d=[];a("div").live("jqmngpagecreate",function(d){var g=a(d.target),h=c.globalScope(),i=b.scope(h);b.compile(g)(i),f(function(){g.trigger("pagecreate")}),e()}),a("div").live("jqmngpagebeforeshow",function(b,c){var d=a(b.target).scope();d&&(g=d,g.$service("$updateView")());var e=a(b.target);e.trigger("pagebeforeshow",c)}),a("div").live("jqmngpagebeforehide",function(b,c){var d=a(b.target);d.trigger("pagebeforehide",c)}),a("div").live("jqmngpagehide",function(b,c){var d=a(b.target);d.trigger("pagehide",c)}),a("div").live("jqmngpageshow",function(b,c){var d=a(b.target);d.trigger("pageshow",c)});var g=null;c.onCreate(function(a){a.$onEval(function(){g&&g.$eval()})}),function(b){var c=b.service("$browser");b.service("$browser",function(){var b=c.apply(this,arguments);b.onHashChange=function(b){a(window).bind("hashchange",b);return b},b.setUrl=function(){};return b},{$inject:["$log"]})}(b);return{afterCompile:f}}),c("jqmng/widgets/widgetProxyUtil",["jquery","angular","jqmng/globalScope"],function(a,b,c){function k(a,b){h.push({master:a,slaves:b})}function j(){var a=document.documentElement;for(var b=0;b<h.length;b++){var c=h[b];i(c.master[0])||(c.slaves.remove(),h.splice(b,1),b--)}}function i(a){var b=document.documentElement;while(a!==null&&a!==b)a=a.parentNode;return a===b}function g(b,c){var d=a(b);c();var e=a(b);return f(e,d)}function f(a,b){var c=[];for(var d=0;d<b.length;d++)b[d].diffMarker=!0;for(var d=0;d<a.length;d++)a[d].diffMarker||c.push(a[d]);for(var d=0;d<b.length;d++)delete b[d].diffMarker;return c}function e(a,c){var d=b.directive(a);b.directive(a,function(a){var b=d.apply(this,arguments),e=c(a),f=function(){var a=b.$inject&&b.$inject.length||0,c=arguments[a],d=this,f=b.apply(this,arguments);e.call(this,c);return f};f.$inject=b.$inject;return f})}function d(a,c){var d=b.widget(a);b.widget(a,function(){var a,b=c.apply(this,arguments),e=function(){var c=a&&a.$inject&&a.$inject.length||0,d=arguments[c],e=this,f=arguments,g=!1,h;b&&(h=b.call(this,d,function(){g=!0;return a&&a.apply(e,f)}));return g?h:a&&a.apply(e,f)};a=d&&d.apply(this,arguments),d||(this.descend(!0),this.directives(!0)),e.$inject=a&&a.$inject;return e})}var h=[];c.onCreate(function(a){a.$onEval(99999,function(){j()})});return{recordDomAdditions:g,createAngularDirectiveProxy:e,createAngularWidgetProxy:d,removeSlavesWhenMasterIsRemoved:k}}),c("jqmng/widgets/disabledHandling",["jqmng/widgets/widgetProxyUtil"],function(a){var b={};a.createAngularDirectiveProxy("ng:bind-attr",function(a){var c=/([^:{'"]+)/,d=c.exec(a)[1];return d!=="disabled"?function(){}:function(a){var c=this,e;c.$onEval(function(){var c=a.attr(d);if(c!=e){e=c;var f=c?"disable":"enable",g=a.data();for(var h in g)typeof h=="string"&&b[h]&&a[h](f)}})}});return b}),c("jqmng/widgets/jqmButton",["jqmng/widgets/widgetProxyUtil","jqmng/widgets/disabledHandling"],function(a,b){function d(a){return a.filter($.mobile.button.prototype.options.initSelector).not(":jqmData(role='none'), :jqmData(role='nojs')").length>0}function c(b,c){var d=this;b.button(),a.removeSlavesWhenMasterIsRemoved(b,b.parent())}b.button=!0;return{compileButton:c,isButton:d}}),c("jqmng/widgets/angularButton",["jqmng/widgets/widgetProxyUtil","jqmng/widgets/jqmButton"],function(a,b){a.createAngularWidgetProxy("button",function(a){var c=b.isButton(a),d=a.attr("name");return function(a,e){var f=e();c&&b.compileButton.call(this,a,d);return f}})}),c("jqmng/widgets/jqmCollapsible",["jqmng/widgets/widgetProxyUtil","jqmng/widgets/disabledHandling"],function(a,b){function d(a){return a.filter($.mobile.collapsible.prototype.options.initSelector).length>0}function c(a,b){var c=this;a.collapsible()}return{compileCollapsible:c,isCollapsible:d}}),c("jqmng/widgets/angularDiv",["jqmng/widgets/widgetProxyUtil","jqmng/widgets/jqmCollapsible"],function(a,b){a.createAngularWidgetProxy("div",function(a){var c=b.isCollapsible(a),d=a.attr("name");return function(a,e){var f=e();c&&b.compileCollapsible.call(this,a,d);return f}})}),c("jqmng/widgets/jqmSelectMenu",["jqmng/widgets/widgetProxyUtil","jqmng/widgets/disabledHandling","jqmng/widgets/pageCompile"],function(a,b,c){function e(a){return a.filter($.mobile.selectmenu.prototype.options.initSelector).not(":jqmData(role='none'), :jqmData(role='nojs')").length>0}function d(b,d){var e=this;c.afterCompile(function(){var c,f=a.recordDomAdditions(".ui-selectmenu,.ui-selectmenu-screen,:jqmData(role='dialog')",function(){b.selectmenu(),c=b.parent()});c=c.add(f),a.removeSlavesWhenMasterIsRemoved(b,c),e.$watch(d,function(a){b.selectmenu("refresh",!0)});var g;e.$onEval(999999,function(){var a=b[0].childNodes.length;g!==a&&(g=a,b.trigger("change"))})})}b.selectmenu=!0;return{compileSelectMenu:d,isSelectMenu:e}}),c("jqmng/widgets/jqmSlider",["jqmng/widgets/widgetProxyUtil","jqmng/widgets/disabledHandling","jqmng/widgets/pageCompile"],function(a,b,c){function e(a){return a.filter($.mobile.slider.prototype.options.initSelector).not(":jqmData(role='none'), :jqmData(role='nojs')").length>0}function d(b,d){var e=this;c.afterCompile(function(){var c=a.recordDomAdditions(".ui-slider",function(){b.slider()});a.removeSlavesWhenMasterIsRemoved(b,$(c)),e.$watch(d,function(a){b.slider("refresh")})})}b.slider=!0;return{compileSlider:d,isSlider:e}}),c("jqmng/widgets/jqmCheckboxRadio",["jqmng/widgets/widgetProxyUtil","jqmng/widgets/disabledHandling","jqmng/widgets/pageCompile"],function(a,b,c){function e(a){return a.filter($.mobile.checkboxradio.prototype.options.initSelector).not(":jqmData(role='none'), :jqmData(role='nojs')").length>0}function d(a,b){var d=this;c.afterCompile(function(){a.checkboxradio(),d.$watch(b,function(b){a.checkboxradio("refresh")})})}b.checkboxradio=!0;return{compileCheckboxRadio:d,isCheckboxRadio:e}}),c("jqmng/widgets/jqmTextInput",["jqmng/widgets/widgetProxyUtil","jqmng/widgets/disabledHandling"],function(a,b){function d(a){return a.filter($.mobile.textinput.prototype.options.initSelector).not(":jqmData(role='none'), :jqmData(role='nojs')").length>0}function c(a,b){var c=this;a.textinput()}b.textinput=!0;return{compileTextInput:c,isTextInput:d}}),c("jqmng/widgets/angularInput",["jqmng/widgets/widgetProxyUtil","jqmng/widgets/jqmSelectMenu","jqmng/widgets/jqmSlider","jqmng/widgets/jqmCheckboxRadio","jqmng/widgets/jqmTextInput","jqmng/widgets/jqmButton"],function(a,b,c,d,e,f){a.createAngularWidgetProxy("input",function(a){var b=e.isTextInput(a),g=d.isCheckboxRadio(a),h=c.isSlider(a),i=f.isButton(a),j=a.attr("name"),k=a[0].type;b&&(a[0].type="text",a[0]["data-type"]=k);return function(a,l){a[0].type=k;if(g){var m=a.bind;a.bind=function(a,b){a.indexOf("click")!=-1&&(a="change");return m.call(this,a,b)}}var n=l();h&&c.compileSlider.call(this,a,j),g&&d.compileCheckboxRadio.call(this,a,j),i&&f.compileButton.call(this,a,j),b&&e.compileTextInput.call(this,a,j);return n}})}),c("jqmng/widgets/angularSelect",["jqmng/widgets/widgetProxyUtil","jqmng/widgets/jqmSelectMenu","jqmng/widgets/jqmSlider"],function(a,b,c){a.createAngularWidgetProxy("select",function(a){var d=b.isSelectMenu(a),e=c.isSlider(a),f=a.attr("name");return function(a,g){var h=g();d&&b.compileSelectMenu.call(this,a,f),e&&c.compileSlider.call(this,a,f);return h}})}),c("jqmng/widgets/jqmListView",["jqmng/widgets/widgetProxyUtil","jqmng/widgets/disabledHandling","jquery","jqmng/widgets/pageCompile"],function(a,b,c,d){function f(a){return a.filter(c.mobile.listview.prototype.options.initSelector).length>0}function e(b){var e=this;d.afterCompile(function(){var d=a.recordDomAdditions(":jqmData(role='page')",function(){b.listview()});a.removeSlavesWhenMasterIsRemoved(b,c(d));var f;e.$onEval(999999,function(){var a=b[0].childNodes.length;f!==a&&(f=a,b.listview("refresh"))})})}return{compileListView:e,isListView:f}}),c("jqmng/widgets/angularUl",["jqmng/widgets/widgetProxyUtil","jqmng/widgets/jqmListView"],function(a,b){a.createAngularWidgetProxy("ul",function(a){var c=b.isListView(a);return function(a,d){var e=d();c&&b.compileListView.call(this,a);return e}})}),c("jqm-angular",["angular","jquery","jqmng/globalScope","jqmng/activePage","jqmng/waitDialog","jqmng/event","jqmng/fadein","jqmng/if","jqmng/paging","jqmng/widgets/pageCompile","jqmng/widgets/angularButton","jqmng/widgets/angularDiv","jqmng/widgets/angularInput","jqmng/widgets/angularSelect","jqmng/widgets/angularUl"],function(a,b,c,d,e){b.mobile.globalScope=c.globalScope,a.service("$waitDialog",function(){return e}),a.service("$activePage",function(){return d.activePage});return{globalScope:c.globalScope,activePage:d.activePage,waitDialog:e}})})()
View
1 compiled/jquery-mobile-angular-adapter-1.0.3-SNAPSHOT.min.js
@@ -1 +0,0 @@
-(function(){var a,b,c;(function(a){if(typeof c!="undefined")return;var d=[],e;c=e=function(a,b,c){var e=a.indexOf(".js");e!==-1&&(a=a.substring(0,e)),arguments.length==2&&(c=b,b=[]);if(typeof c=="function"){var f=[];for(var g=0;g<b.length;g++){var h=b[g];f.push(d[h])}c=c.apply(this,f)}d[a]=c},b=function(a,b){if(typeof b=="function"){var c=[];for(var e=0;e<a.length;e++){var f=a[e];c.push(d[f])}b.apply(this,c)}},b.ready=$})(window),c("angular",[],function(){if(typeof angular!="undefined")return angular}),c("jquery",[],function(){if(typeof $!="undefined")return $}),c("jqmng/globalScope",["jquery","angular"],function(a,b){function e(){return d||(d=a("body").scope(),d||b.compile(a(document))(),d=a("body").scope()),d}function f(a){c.push(a)}var c=[];b.widget("body",function(a){return this.descend(!1),this.directives(!0),function(a){var b=this;for(var d=0;d<c.length;d++)c[d](b)}});var d;return a.mobile.globalScope=e,{globalScope:e,onCreate:f}}),c("jqmng/navigate",["jquery","angular"],function(a,b){function c(a){var b=a.indexOf(":");return b===-1?[a]:[a.substring(0,b),a.substring(b+1)]}function d(a){var b=c(a),d,g;if(b.length===2&&b[0]==="back"){var g=b[1],h=f(g);h===undefined?g=e(g,undefined):window.history.go(h);return}b.length===2?(d=b[0],g=b[1]):(g=b[0],d=undefined),g==="back"?window.history.go(-1):e(g,d)}function e(b,c){return b.charAt(0)!=="#"&&(b="#"+b),a.mobile.changePage.call(a.mobile,b,c),b}function f(b){var c=a.mobile.urlHistory.stack,d=0,e;for(var f=c.length-2;f>=0;f--){e=c[f].pageUrl;if(e===b)return f-c.length+1}return undefined}return b.service("$navigate",function(){return d}),b.Object.navigate=function(a){var b=a.$service("$navigate");if(arguments.length===2){b(arguments[1]);return}var d=arguments[1],e={},f;for(var g=2;g<arguments.length;g++)f=c(arguments[g]),e[f[0]]=f[1];d&&d.then?d.then(function(a){e[a]?b(e[a]):e.success&&b(e.success)},function(a){e[a]?b(e[a]):e.failure&&b(e.failure)}):e[d]?b(e[d]):d!==!1&&e.success?b(e.success):d===!1&&e.failure&&b(e.failure)},d}),c("jqmng/waitDialog",["jquery"],function(a){function c(a){var c=b[b.length-1];c.callback&&c.callback.apply(this,arguments),a.preventDefault()}function e(){if(!d||d.length==0)d=a(".ui-loader"),d.bind("vclick",c)}function f(){e();if(b.length>0){var c=b[b.length-1],d=c.msg;a.mobile.loadingMessage=d,a.mobile.showPageLoadingMsg()}else a.mobile.hidePageLoadingMsg()}function g(){var c,d;typeof arguments[0]=="string"&&(c=arguments[0]),typeof arguments[0]=="function"&&(d=arguments[0]),typeof arguments[1]=="function"&&(d=arguments[1]),c||(c=a.mobile.loadingMessage),b.push({msg:c,callback:d}),f()}function h(){b.pop(),f()}function i(a,b){g(),a.always(function(){h()})}function j(b,c,d){d||(d=a.mobile.loadingMessageWithCancel),g(d,function(){b.reject(c)}),b.always(function(){h()})}var b=[],d;a.mobile.loadingMessageWithCancel||(a.mobile.loadingMessageWithCancel="Loading. Click to cancel."),a("div").live("pageshow",function(a,b){f()});var k={show:g,hide:h,waitFor:i,waitForWithCancel:j};return angular.service("$waitDialog",function(){return k}),k}),c("jqmng/event",["angular"],function(a){a.directive("ngm:click",function(b,c){return a.directive("ngm:event")('{vclick:"'+b+'"}',c)}),a.directive("ngm:event",function(b,c){var d=a.fromJson(b),e=function(a,b){var c=this;for(var e in d)(function(e){var f=d[e];b.bind(e,function(d){var g=c.$tryEval(f,b);a(),e.charAt(0)=="v"&&d.preventDefault()})})(e)};return e.$inject=["$updateView"],e})}),c("jqmng/fadein",["angular"],function(a){a.directive("ngm:fadein",function(a,b){return this.directives(!0),this.descend(!0),b.css({opacity:.1}),function(b){b.animate({opacity:1},parseInt(a))}})}),c("jqmng/if",["angular"],function(a){a.Object.iff=function(a,b,c,d){return b?c:d},a.widget("@ngm:if",function(b,c){var d="ngmif in $iff("+b+",[1],[])";return c.removeAttr("ngm:if"),a.widget("@ng:repeat").call(this,d,c)})}),c("jqmng/paging",["jquery","angular","jqmng/globalScope"],function(a,b,c){function g(a){var b=[];for(var c in e)b[c]=e[c];b.init(a);var d=b.hasOwnProperty;return b.hasOwnProperty=function(a){return a in e||a in f?!1:d.apply(this,arguments)},b}function h(b){b.pageSize?this.pageSize=b.pageSize:this.pageSize=a.mobile.defaultListPageSize,this.originalList=b,this.refreshNeeded=!0,this.reset()}function i(){var a=this.originalList;this.filter&&(a=b.Array.filter(a,this.filter)),this.orderBy&&(a=b.Array.orderBy(a,this.orderBy));var c=this.loadedCount;c<this.pageSize&&(c=this.pageSize),c>a.length&&(c=a.length),this.loadedCount=c,this.availableCount=a.length;var d=a.slice(0,c),e=[0,this.length].concat(d);this.splice.apply(this,e)}function j(){return this.evalId!=d&&(this.refreshNeeded=!0,this.evalId=d),this.refreshNeeded&&(this.refresh(),this.refreshNeeded=!1),this}function k(a){b.Object.equals(this.filter,a)||(this.filter=a,this.refreshNeeded=!0)}function l(a){b.Object.equals(this.orderBy,a)||(this.orderBy=a,this.refreshNeeded=!0)}function m(){this.loadedCount=this.loadedCount+this.pageSize,this.refreshNeeded=!0}function n(){return this.refreshIfNeeded(),this.loadedCount<this.availableCount}function o(){this.loadedCount=0,this.refreshNeeded=!0}a.mobile.defaultListPageSize||(a.mobile.defaultListPageSize=10);var d=0;c.onCreate(function(a){a.$onEval(-99999,function(){d++})});var e={init:h,refresh:i,refreshIfNeeded:j,setFilter:k,setOrderBy:l,loadNextPage:m,hasMorePages:n,reset:o},f={pageSize:!0,originalList:!0,refreshNeeded:!0,filter:!0,orderBy:!0,loadedCount:!0,availableCount:!0,evalId:!0};b.Array.paged=function(a,b,c){var d=a.pagedList;return d||(d=g(a),a.pagedList=d),d.setFilter(b),d.setOrderBy(c),d.refreshIfNeeded(),d}}),c("jqmng/sharedController",["angular"],function(a){function b(a){var b=a.split("."),c=window,d;for(var e=0;e<b.length;e++)d=b[e],c=c[d];return c}function c(a,c){var d=b(c),e=a[c];return e||(e=a.$new(d),a[c]=e),e}function d(a){var b=/(.*?):(.*?)($|,)/g,c,d=!1,e={};while(c=b.exec(a))d=!0,e[c[1]]=c[2];if(!d)throw"Expression "+a+" needs to have the syntax <name>:<controller>,...";return e}a.directive("ngm:shared-controller",function(a){this.scope(!0);var b=d(a);return function(a){var d=this;for(var e in b)d[e]=c(d.$root,b[e])}})}),c("jqmng/widgets/pageCompile",["jquery","angular","jqmng/globalScope"],function(a,b,c){function d(b){var c=b.data("page"),d=c.options;b.find("input").not(d.keepNative).each(function(){var b=a(this),c=this.getAttribute("type"),e=d.degradeInputs[c]||"text";d.degradeInputs[c]&&b.replaceWith(a("<div>").html(b.clone()).html().replace(/\s+type=["']?\w+['"]?/,' type="'+e+'" data-'+a.mobile.ns+'type="'+c+'" '))})}a.mobile.page.prototype.widgetEventPrefix="jqmngpage",a("div").live("jqmngpagecreate",function(e){var f=a(e.target),g=c.globalScope(),h=b.scope(g);d(f),b.compile(f)(h),g.$eval(),f.trigger("pagecreate")}),a("div").live("jqmngpagebeforeshow",function(b,c){var d=a(b.target).scope();d&&(e=d,e.$service("$updateView")());var f=a(b.target);f.trigger("pagebeforeshow",c)}),a("div").live("jqmngpagebeforehide",function(b,c){var d=a(b.target);d.trigger("pagebeforehide",c)}),a("div").live("jqmngpagehide",function(b,c){var d=a(b.target);d.trigger("pagehide",c)}),a("div").live("jqmngpageshow",function(b,c){var d=a(b.target);d.trigger("pageshow",c)}),a(document).bind("elementsAdded",function(b){a(b.target).trigger("create")});var e=null;c.onCreate(function(a){a.$onEval(function(){e&&e.$eval()})}),function(b){var c=b.service("$browser");b.service("$browser",function(){var b=c.apply(this,arguments);return b.onHashChange=function(b){return a(window).bind("hashchange",b),b},b.setUrl=function(){},b},{$inject:["$log"]})}(b)}),c("jqmng/widgets/widgetProxyUtil",["jquery","angular","jqmng/globalScope"],function(a,b,c){function d(a,c){var d=b.widget(a);b.widget(a,function(){var a,b=c.apply(this,arguments),e=function(){var c=a&&a.$inject&&a.$inject.length||0,d=arguments[c],e=this,f=arguments,g=!1,h;return b&&(h=b.call(this,d,function(){return g=!0,a&&a.apply(e,f)})),g?h:a&&a.apply(e,f)};return a=d&&d.apply(this,arguments),d||(this.descend(!0),this.directives(!0)),e.$inject=a&&a.$inject,e})}function e(a,c){var d=b.directive(a);b.directive(a,function(a){var b=d.apply(this,arguments),e=c(a),f=function(){var a=b.$inject&&b.$inject.length||0,c=arguments[a],d=this,f=b.apply(this,arguments);return e.call(this,c),f};return f.$inject=b.$inject,f})}return{createAngularDirectiveProxy:e,createAngularWidgetProxy:d}}),c("jqmng/widgets/angularRepeat",["jqmng/widgets/widgetProxyUtil"],function(a){angular.widget("@ng:repeat",function(a,b){b.removeAttr("ng:repeat"),b.replaceWith(angular.element("<!-- ng:repeat: "+a+" -->"));var c=this.compile(b);return function(b){var d=a.match(/^\s*(.+)\s+in\s+(.*)\s*$/),e,f,g,h;if(!d)throw Error("Expected ng:repeat in form of '_item_ in _collection_' but got '"+a+"'.");e=d[1],f=d[2],d=e.match(/^([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\)$/);if(!d)throw Error("'item' in 'item in collection' should be identifier or (key, value) but got '"+f+"'.");g=d[3]||d[1],h=d[2];var i=[],j=this,k=b.parent();this.$onEval(function(){var a=0,d=i.length,e=b,l=this.$tryEval(f,b),m=angular.Array.size(l,!0),n,o,p=[],q=[];for(o in l)l.hasOwnProperty(o)&&(a<d?(n=i[a],n[g]=l[o],h&&(n[h]=o),e=n.$element,n.$position=a==0?"first":a==m-1?"last":"middle",n.$eval()):(n=angular.scope(j),n[g]=l[o],h&&(n[h]=o),n.$index=a,n.$position=a==0?"first":a==m-1?"last":"middle",i.push(n),c(n,function(b){b.attr("ng:repeat-index",a);var c=e;while(c.length>0&&c.parent()[0]!==k[0])c=c.parent();c.after(b),e=b}),p.push(e)),a++);while(i.length>a){var r=i.pop(),s=r.$element;q.push(s),s.remove()}p.length>0?k.trigger("elementsAdded",p):q.length>0&&k.trigger("elementsRemoved",q)},b)}})}),c("jqmng/widgets/angularInput",["jquery","jqmng/widgets/widgetProxyUtil"],function(a,b){function c(b){return b.filter(a.mobile.checkboxradio.prototype.options.initSelector).not(":jqmData(role='none'), :jqmData(role='nojs')").length>0}function d(b){return b.filter(a.mobile.textinput.prototype.options.initSelector).not(":jqmData(role='none'), :jqmData(role='nojs')").length>0}b.createAngularWidgetProxy("input",function(a){var b=d(a),e=c(a),f=a.attr("name"),g=a[0].type;return b&&(a[0].type="text",a[0]["data-type"]=g),function(a,b){var c=this;a[0].type=g;if(e){var d=a.bind;a.bind=function(a,b){return a.indexOf("click")!=-1&&(a="change"),d.call(this,a,b)}}var h=b();return f&&c.$watch(f,function(b){var c=a.data();for(var d in c){var e=c[d];e.refresh&&a[d]("refresh")}}),h}})}),c("jqmng/widgets/angularSelect",["jqmng/widgets/widgetProxyUtil"],function(a){a.createAngularWidgetProxy("select",function(a){var b=a.attr("name");return function(a,c){var d=this,e=c(),f;return b&&d.$onEval(function(){var c=d.$eval(b);if(c!==f){f=c;var e=a.data();for(var g in e){var h=e[g];h.refresh&&a[g]("refresh")}}}),e}})}),c("jqmng/widgets/disabledHandling",["jqmng/widgets/widgetProxyUtil"],function(a){a.createAngularDirectiveProxy("ng:bind-attr",function(a){var b=/([^:{'"]+)/,c=b.exec(a)[1];return c!=="disabled"?function(){}:function(a){var b=this,d;b.$onEval(function(){var b=a.attr(c);if(b!=d){d=b;var e=b?"disable":"enable",f=a.data();for(var g in f){var h=f[g];h[e]&&a[g](e)}}})}})}),c("jqmng/widgets/jqmButton",["jquery"],function(a){var b=a.mobile.button.prototype,c=b.destroy;b.destroy=function(){c.apply(this,arguments),this.button.remove()}}),c("jqmng/widgets/jqmListView",["jquery"],function(a){var b=a.mobile.listview.prototype,c=b.destroy;b.destroy=function(){var b=this.element.attr("id"),d=new RegExp(a.mobile.subPageUrlKey+"="+b+"-"),e=this.childPages();c.apply(this,arguments);for(var f=0;f<e.length;f++){var g=a(e[f]),h=g.attr("data-url");h.match(d)&&g.remove()}};var d=b._create;b._create=function(){var a=this,b=d.apply(this,arguments);this.element.bind("elementsAdded elementsRemoved",function(b){b.stopPropagation(),a.refresh()})}}),c("jqmng/widgets/jqmSelectMenu",["jquery"],function(a){var b=a.mobile.selectmenu.prototype,c=b.destroy;b.destroy=function(){var a=this.element.closest(".ui-select"),b=this.menuPage,d=this.screen,e=this.listbox;c.apply(this,arguments),a&&a.remove(),b&&b.remove(),d&&d.remove(),e&&e.remove()};var d=b._create;b._create=function(){var a=d.apply(this,arguments),b=this,c=b.refresh;b.refresh=function(){return this.selectOptions=this.element.find("option"),c.apply(this,arguments)};var e=b.open;b.open=function(){return this.refresh(),e.apply(this,arguments)}}}),c("jqmng/widgets/jqmSlider",["jquery"],function(a){var b=a.mobile.slider.prototype,c=b.destroy;b.destroy=function(){c.apply(this,arguments),this.slider.remove()}}),c("jqmng/jqmngStyle",[],function(){var a="#ng-callout {display: none}";$("head").append('<style type="text/css">'+a+"</style>")}),c("jqm-angular",["angular","jquery","jqmng/globalScope","jqmng/navigate","jqmng/waitDialog","jqmng/event","jqmng/fadein","jqmng/if","jqmng/paging","jqmng/sharedController","jqmng/widgets/pageCompile","jqmng/widgets/angularRepeat","jqmng/widgets/angularInput","jqmng/widgets/angularSelect","jqmng/widgets/disabledHandling","jqmng/widgets/jqmButton","jqmng/widgets/jqmListView","jqmng/widgets/jqmSelectMenu","jqmng/widgets/jqmSlider","jqmng/jqmngStyle"])})()
View
112 ...-mobile-angular-adapter-1.0.3-SNAPSHOT.js → ...ed/jquery-mobile-angular-adapter-1.0.3.js
@@ -1,25 +1,9 @@
/**
- * The MIT License
+ * jQuery Mobile angularJS adaper v1.0.3
+ * http://github.com/tigbro/jquery-mobile-angular-adapter
*
- * Copyright (c) 2011 Tobias Bosch (OPITZ CONSULTING GmbH, www.opitz-consulting.com)
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
+ * Copyright 2011, Tobias Bosch (OPITZ CONSULTING GmbH)
+ * Licensed under the MIT license.
*/
(function() {
@@ -157,13 +141,35 @@ define('jqmng/navigate',['jquery', 'angular'], function($, angular) {
];
}
+ function callActivateFnOnPageChange(fnName, params) {
+ if (fnName) {
+ $(document).one("pagebeforechange", function(event, data) {
+ var toPageUrl = $.mobile.path.parseUrl( data.toPage );
+ var page = $("#"+toPageUrl.hash.substring(1));
+ function executeCall() {
+ var scope = page.scope();
+ scope[fnName].apply(scope, params);
+ }
+ if (!page.data("page")) {
+ page.one("pagecreate", executeCall);
+ return;
+ }
+ executeCall();
+ });
+ }
+ }
+
/*
* Service for page navigation.
- * target has the syntax: [<transition>:]pageId
+ * @param target has the syntax: [<transition>:]pageId
+ * @param activateFunctionName Function to call in the target scope.
+ * @param further params Parameters for the function that should be called in the target scope.
*/
- function navigate(target) {
+ function navigate(target, activateFunctionName) {
+ var activateParams = Array.prototype.slice.call(arguments, 2);
var parts = splitAtFirstColon(target);
var animation, pageId;
+ callActivateFnOnPageChange(activateFunctionName, activateParams);
if (parts.length === 2 && parts[0] === 'back') {
var pageId = parts[1];
var relativeIndex = getIndexInStack(pageId);
@@ -692,20 +698,28 @@ define('jqmng/widgets/pageCompile',['jquery', 'angular', 'jqmng/globalScope'], f
* @param targetPage
*/
function degradeInputs(targetPage) {
- var page = targetPage.data( "page" ),
- o = page.options;
+ var page = targetPage.data("page"), options;
+
+ if (!page) {
+ return;
+ }
+
+ options = page.options;
// degrade inputs to avoid poorly implemented native functionality
- targetPage.find( "input" ).not( o.keepNative ).each(function() {
- var $this = $( this ),
- type = this.getAttribute( "type" ),
- optType = o.degradeInputs[ type ] || "text";
-
- if ( o.degradeInputs[ type ] ) {
- $this.replaceWith(
- $( "<div>" ).html( $this.clone() ).html()
- .replace( /\s+type=["']?\w+['"]?/, " type=\"" + optType + "\" data-" + $.mobile.ns + "type=\"" + type + "\" " )
- );
+ targetPage.find("input").not(page.keepNativeSelector()).each(function() {
+ var $this = $(this),
+ type = this.getAttribute("type"),
+ optType = options.degradeInputs[ type ] || "text";
+
+ if (options.degradeInputs[ type ]) {
+ var html = $("<div>").html($this.clone()).html(),
+ // In IE browsers, the type sometimes doesn't exist in the cloned markup, so we replace the closing tag instead
+ hasType = html.indexOf(" type=") > -1,
+ findstr = hasType ? /\s+type=["']?\w+['"]?/ : /\/?>/,
+ repstr = " type=\"" + optType + "\" data-" + $.mobile.ns + "type=\"" + type + "\"" + ( hasType ? "" : ">" );
+
+ $this.replaceWith(html.replace(findstr, repstr));
}
});
}
@@ -993,21 +1007,25 @@ define('jqmng/widgets/angularInput',[
.not(":jqmData(role='none'), :jqmData(role='nojs')").length > 0;
}
- proxyUtil.createAngularWidgetProxy('input', function(element) {
+ var oldInput = angular.widget("input");
+ angular.widget("input", function(element) {
var textinput = isTextInput(element);
var checkboxRadio = isCheckboxRadio(element);
var name = element.attr('name');
- var oldType = element[0].type;
+ var type = element[0].type;
// Need to set the type temporarily always to 'text' so that
// the original angular widget is used.
if (textinput) {
- element[0].type = 'text';
- element[0]['data-type'] = oldType;
+ type = 'text';
}
- return function(element, origBinder) {
+ // We fake an element during compile phase, as setting the type attribute
+ // is not allowed by the dom (although it works in many browsers...)
+ var fakeElement = [{type: type}];
+ var origBinder = oldInput.call(this, fakeElement);
+ var newBinder = function() {
var scope = this;
- element[0].type = oldType;
+ var element = arguments[newBinder.$inject.length];
if (checkboxRadio) {
// Angular binds to the click event for radio and check boxes,
// but jquery mobile fires a change event. So be sure that angular only listens to the change event,
@@ -1021,7 +1039,7 @@ define('jqmng/widgets/angularInput',[
return origBind.call(this, events, callback);
};
}
- var res = origBinder();
+ var res = origBinder.apply(this, arguments);
// Watch the name and refresh the widget if needed
if (name) {
scope.$watch(name, function(value) {
@@ -1036,6 +1054,8 @@ define('jqmng/widgets/angularInput',[
}
return res;
};
+ newBinder.$inject = origBinder.$inject || [];
+ return newBinder;
});
});
@@ -1186,15 +1206,7 @@ define('jqmng/widgets/jqmSelectMenu',['jquery'], function($) {
// Note: We cannot use the prototype here,
// as there is a plugin in jquery mobile that overwrites
- // the refresh and open functions...
- var oldRefresh = self.refresh;
- self.refresh = function() {
- // The refresh is not enough (for native menus): also
- // update the internal widget data to adjust to the new number of options.
- this.selectOptions = this.element.find( "option" );
- return oldRefresh.apply(this, arguments);
- };
- // Refresh the menu on open.
+ // the open functions...
var oldOpen = self.open;
self.open = function() {
this.refresh();
View
1 compiled/jquery-mobile-angular-adapter-standalone-1.0.2.min.js
0 additions, 1 deletion not shown because the diff is too large. Please use a local Git client to view these changes.
View
1 compiled/jquery-mobile-angular-adapter-standalone-1.0.3-SNAPSHOT.min.js
0 additions, 1 deletion not shown because the diff is too large. Please use a local Git client to view these changes.
View
3,512 ...ular-adapter-standalone-1.0.3-SNAPSHOT.js → ...obile-angular-adapter-standalone-1.0.3.js
1,676 additions, 1,836 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
BIN compiled/jquery-mobile/images/ajax-loader.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN compiled/jquery-mobile/images/icons-18-black.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN compiled/jquery-mobile/images/icons-18-white.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN compiled/jquery-mobile/images/icons-36-black.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN compiled/jquery-mobile/images/icons-36-white.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
1,892 compiled/jquery-mobile/jquery.mobile-1.0rc2-oc1.css
1,892 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
6,814 compiled/jquery-mobile/jquery.mobile-1.0rc2-oc1.js
6,814 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
1 compiled/min/jquery-mobile-angular-adapter-1.0.3.js
@@ -0,0 +1 @@
+(function(){var a,b,c;(function(a){if(typeof c!="undefined")return;var d=[],e;c=e=function(a,b,c){var e=a.indexOf(".js");e!==-1&&(a=a.substring(0,e)),arguments.length==2&&(c=b,b=[]);if(typeof c=="function"){var f=[];for(var g=0;g<b.length;g++){var h=b[g];f.push(d[h])}c=c.apply(this,f)}d[a]=c},b=function(a,b){if(typeof b=="function"){var c=[];for(var e=0;e<a.length;e++){var f=a[e];c.push(d[f])}b.apply(this,c)}},b.ready=$})(window),c("angular",[],function(){if(typeof angular!="undefined")return angular}),c("jquery",[],function(){if(typeof $!="undefined")return $}),c("jqmng/globalScope",["jquery","angular"],function(a,b){function e(){return d||(d=a("body").scope(),d||b.compile(a(document))(),d=a("body").scope()),d}function f(a){c.push(a)}var c=[];b.widget("body",function(a){return this.descend(!1),this.directives(!0),function(a){var b=this;for(var d=0;d<c.length;d++)c[d](b)}});var d;return a.mobile.globalScope=e,{globalScope:e,onCreate:f}}),c("jqmng/navigate",["jquery","angular"],function(a,b){function c(a){var b=a.indexOf(":");return b===-1?[a]:[a.substring(0,b),a.substring(b+1)]}function d(b,c){b&&a(document).one("pagebeforechange",function(d,e){function h(){var a=g.scope();a[b].apply(a,c)}var f=a.mobile.path.parseUrl(e.toPage),g=a("#"+f.hash.substring(1));if(!g.data("page")){g.one("pagecreate",h);return}h()})}function e(a,b){var e=Array.prototype.slice.call(arguments,2),h=c(a),i,j;d(b,e);if(h.length===2&&h[0]==="back"){var j=h[1],k=g(j);k===undefined?j=f(j,undefined):window.history.go(k);return}h.length===2?(i=h[0],j=h[1]):(j=h[0],i=undefined),j==="back"?window.history.go(-1):f(j,i)}function f(b,c){return b.charAt(0)!=="#"&&(b="#"+b),a.mobile.changePage.call(a.mobile,b,c),b}function g(b){var c=a.mobile.urlHistory.stack,d=0,e;for(var f=c.length-2;f>=0;f--){e=c[f].pageUrl;if(e===b)return f-c.length+1}return undefined}return b.service("$navigate",function(){return e}),b.Object.navigate=function(a){var b=a.$service("$navigate");if(arguments.length===2){b(arguments[1]);return}var d=arguments[1],e={},f;for(var g=2;g<arguments.length;g++)f=c(arguments[g]),e[f[0]]=f[1];d&&d.then?d.then(function(a){e[a]?b(e[a]):e.success&&b(e.success)},function(a){e[a]?b(e[a]):e.failure&&b(e.failure)}):e[d]?b(e[d]):d!==!1&&e.success?b(e.success):d===!1&&e.failure&&b(e.failure)},e}),c("jqmng/waitDialog",["jquery"],function(a){function c(a){var c=b[b.length-1];c.callback&&c.callback.apply(this,arguments),a.preventDefault()}function e(){if(!d||d.length==0)d=a(".ui-loader"),d.bind("vclick",c)}function f(){e();if(b.length>0){var c=b[b.length-1],d=c.msg;a.mobile.loadingMessage=d,a.mobile.showPageLoadingMsg()}else a.mobile.hidePageLoadingMsg()}function g(){var c,d;typeof arguments[0]=="string"&&(c=arguments[0]),typeof arguments[0]=="function"&&(d=arguments[0]),typeof arguments[1]=="function"&&(d=arguments[1]),c||(c=a.mobile.loadingMessage),b.push({msg:c,callback:d}),f()}function h(){b.pop(),f()}function i(a,b){g(),a.always(function(){h()})}function j(b,c,d){d||(d=a.mobile.loadingMessageWithCancel),g(d,function(){b.reject(c)}),b.always(function(){h()})}var b=[],d;a.mobile.loadingMessageWithCancel||(a.mobile.loadingMessageWithCancel="Loading. Click to cancel."),a("div").live("pageshow",function(a,b){f()});var k={show:g,hide:h,waitFor:i,waitForWithCancel:j};return angular.service("$waitDialog",function(){return k}),k}),c("jqmng/event",["angular"],function(a){a.directive("ngm:click",function(b,c){return a.directive("ngm:event")('{vclick:"'+b+'"}',c)}),a.directive("ngm:event",function(b,c){var d=a.fromJson(b),e=function(a,b){var c=this;for(var e in d)(function(e){var f=d[e];b.bind(e,function(d){var g=c.$tryEval(f,b);a(),e.charAt(0)=="v"&&d.preventDefault()})})(e)};return e.$inject=["$updateView"],e})}),c("jqmng/fadein",["angular"],function(a){a.directive("ngm:fadein",function(a,b){return this.directives(!0),this.descend(!0),b.css({opacity:.1}),function(b){b.animate({opacity:1},parseInt(a))}})}),c("jqmng/if",["angular"],function(a){a.Object.iff=function(a,b,c,d){return b?c:d},a.widget("@ngm:if",function(b,c){var d="ngmif in $iff("+b+",[1],[])";return c.removeAttr("ngm:if"),a.widget("@ng:repeat").call(this,d,c)})}),c("jqmng/paging",["jquery","angular","jqmng/globalScope"],function(a,b,c){function g(a){var b=[];for(var c in e)b[c]=e[c];b.init(a);var d=b.hasOwnProperty;return b.hasOwnProperty=function(a){return a in e||a in f?!1:d.apply(this,arguments)},b}function h(b){b.pageSize?this.pageSize=b.pageSize:this.pageSize=a.mobile.defaultListPageSize,this.originalList=b,this.refreshNeeded=!0,this.reset()}function i(){var a=this.originalList;this.filter&&(a=b.Array.filter(a,this.filter)),this.orderBy&&(a=b.Array.orderBy(a,this.orderBy));var c=this.loadedCount;c<this.pageSize&&(c=this.pageSize),c>a.length&&(c=a.length),this.loadedCount=c,this.availableCount=a.length;var d=a.slice(0,c),e=[0,this.length].concat(d);this.splice.apply(this,e)}function j(){return this.evalId!=d&&(this.refreshNeeded=!0,this.evalId=d),this.refreshNeeded&&(this.refresh(),this.refreshNeeded=!1),this}function k(a){b.Object.equals(this.filter,a)||(this.filter=a,this.refreshNeeded=!0)}function l(a){b.Object.equals(this.orderBy,a)||(this.orderBy=a,this.refreshNeeded=!0)}function m(){this.loadedCount=this.loadedCount+this.pageSize,this.refreshNeeded=!0}function n(){return this.refreshIfNeeded(),this.loadedCount<this.availableCount}function o(){this.loadedCount=0,this.refreshNeeded=!0}a.mobile.defaultListPageSize||(a.mobile.defaultListPageSize=10);var d=0;c.onCreate(function(a){a.$onEval(-99999,function(){d++})});var e={init:h,refresh:i,refreshIfNeeded:j,setFilter:k,setOrderBy:l,loadNextPage:m,hasMorePages:n,reset:o},f={pageSize:!0,originalList:!0,refreshNeeded:!0,filter:!0,orderBy:!0,loadedCount:!0,availableCount:!0,evalId:!0};b.Array.paged=function(a,b,c){var d=a.pagedList;return d||(d=g(a),a.pagedList=d),d.setFilter(b),d.setOrderBy(c),d.refreshIfNeeded(),d}}),c("jqmng/sharedController",["angular"],function(a){function b(a){var b=a.split("."),c=window,d;for(var e=0;e<b.length;e++)d=b[e],c=c[d];return c}function c(a,c){var d=b(c),e=a[c];return e||(e=a.$new(d),a[c]=e),e}function d(a){var b=/(.*?):(.*?)($|,)/g,c,d=!1,e={};while(c=b.exec(a))d=!0,e[c[1]]=c[2];if(!d)throw"Expression "+a+" needs to have the syntax <name>:<controller>,...";return e}a.directive("ngm:shared-controller",function(a){this.scope(!0);var b=d(a);return function(a){var d=this;for(var e in b)d[e]=c(d.$root,b[e])}})}),c("jqmng/widgets/pageCompile",["jquery","angular","jqmng/globalScope"],function(a,b,c){function d(b){var c=b.data("page"),d;if(!c)return;d=c.options,b.find("input").not(c.keepNativeSelector()).each(function(){var b=a(this),c=this.getAttribute("type"),e=d.degradeInputs[c]||"text";if(d.degradeInputs[c]){var f=a("<div>").html(b.clone()).html(),g=f.indexOf(" type=")>-1,h=g?/\s+type=["']?\w+['"]?/:/\/?>/,i=' type="'+e+'" data-'+a.mobile.ns+'type="'+c+'"'+(g?"":">");b.replaceWith(f.replace(h,i))}})}a.mobile.page.prototype.widgetEventPrefix="jqmngpage",a("div").live("jqmngpagecreate",function(e){var f=a(e.target),g=c.globalScope(),h=b.scope(g);d(f),b.compile(f)(h),g.$eval(),f.trigger("pagecreate")}),a("div").live("jqmngpagebeforeshow",function(b,c){var d=a(b.target).scope();d&&(e=d,e.$service("$updateView")());var f=a(b.target);f.trigger("pagebeforeshow",c)}),a("div").live("jqmngpagebeforehide",function(b,c){var d=a(b.target);d.trigger("pagebeforehide",c)}),a("div").live("jqmngpagehide",function(b,c){var d=a(b.target);d.trigger("pagehide",c)}),a("div").live("jqmngpageshow",function(b,c){var d=a(b.target);d.trigger("pageshow",c)}),a(document).bind("elementsAdded",function(b){a(b.target).trigger("create")});var e=null;c.onCreate(function(a){a.$onEval(function(){e&&e.$eval()})}),function(b){var c=b.service("$browser");b.service("$browser",function(){var b=c.apply(this,arguments);return b.onHashChange=function(b){return a(window).bind("hashchange",b),b},b.setUrl=function(){},b},{$inject:["$log"]})}(b)}),c("jqmng/widgets/widgetProxyUtil",["jquery","angular","jqmng/globalScope"],function(a,b,c){function d(a,c){var d=b.widget(a);b.widget(a,function(){var a,b=c.apply(this,arguments),e=function(){var c=a&&a.$inject&&a.$inject.length||0,d=arguments[c],e=this,f=arguments,g=!1,h;return b&&(h=b.call(this,d,function(){return g=!0,a&&a.apply(e,f)})),g?h:a&&a.apply(e,f)};return a=d&&d.apply(this,arguments),d||(this.descend(!0),this.directives(!0)),e.$inject=a&&a.$inject,e})}function e(a,c){var d=b.directive(a);b.directive(a,function(a){var b=d.apply(this,arguments),e=c(a),f=function(){var a=b.$inject&&b.$inject.length||0,c=arguments[a],d=this,f=b.apply(this,arguments);return e.call(this,c),f};return f.$inject=b.$inject,f})}return{createAngularDirectiveProxy:e,createAngularWidgetProxy:d}}),c("jqmng/widgets/angularRepeat",["jqmng/widgets/widgetProxyUtil"],function(a){angular.widget("@ng:repeat",function(a,b){b.removeAttr("ng:repeat"),b.replaceWith(angular.element("<!-- ng:repeat: "+a+" -->"));var c=this.compile(b);return function(b){var d=a.match(/^\s*(.+)\s+in\s+(.*)\s*$/),e,f,g,h;if(!d)throw Error("Expected ng:repeat in form of '_item_ in _collection_' but got '"+a+"'.");e=d[1],f=d[2],d=e.match(/^([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\)$/);if(!d)throw Error("'item' in 'item in collection' should be identifier or (key, value) but got '"+f+"'.");g=d[3]||d[1],h=d[2];var i=[],j=this,k=b.parent();this.$onEval(function(){var a=0,d=i.length,e=b,l=this.$tryEval(f,b),m=angular.Array.size(l,!0),n,o,p=[],q=[];for(o in l)l.hasOwnProperty(o)&&(a<d?(n=i[a],n[g]=l[o],h&&(n[h]=o),e=n.$element,n.$position=a==0?"first":a==m-1?"last":"middle",n.$eval()):(n=angular.scope(j),n[g]=l[o],h&&(n[h]=o),n.$index=a,n.$position=a==0?"first":a==m-1?"last":"middle",i.push(n),c(n,function(b){b.attr("ng:repeat-index",a);var c=e;while(c.length>0&&c.parent()[0]!==k[0])c=c.parent();c.after(b),e=b}),p.push(e)),a++);while(i.length>a){var r=i.pop(),s=r.$element;q.push(s),s.remove()}p.length>0?k.trigger("elementsAdded",p):q.length>0&&k.trigger("elementsRemoved",q)},b)}})}),c("jqmng/widgets/angularInput",["jquery","jqmng/widgets/widgetProxyUtil"],function(a,b){function c(b){return b.filter(a.mobile.checkboxradio.prototype.options.initSelector).not(":jqmData(role='none'), :jqmData(role='nojs')").length>0}function d(b){return b.filter(a.mobile.textinput.prototype.options.initSelector).not(":jqmData(role='none'), :jqmData(role='nojs')").length>0}var e=angular.widget("input");angular.widget("input",function(a){var b=d(a),f=c(a),g=a.attr("name"),h=a[0].type;b&&(h="text");var i=[{type:h}],j=e.call(this,i),k=function(){var a=this,b=arguments[k.$inject.length];if(f){var c=b.bind;b.bind=function(a,b){return a.indexOf("click")!=-1&&(a="change"),c.call(this,a,b)}}var d=j.apply(this,arguments);return g&&a.$watch(g,function(a){var c=b.data();for(var d in c){var e=c[d];e.refresh&&b[d]("refresh")}}),d};return k.$inject=j.$inject||[],k})}),c("jqmng/widgets/angularSelect",["jqmng/widgets/widgetProxyUtil"],function(a){a.createAngularWidgetProxy("select",function(a){var b=a.attr("name");return function(a,c){var d=this,e=c(),f;return b&&d.$onEval(function(){var c=d.$eval(b);if(c!==f){f=c;var e=a.data();for(var g in e){var h=e[g];h.refresh&&a[g]("refresh")}}}),e}})}),c("jqmng/widgets/disabledHandling",["jqmng/widgets/widgetProxyUtil"],function(a){a.createAngularDirectiveProxy("ng:bind-attr",function(a){var b=/([^:{'"]+)/,c=b.exec(a)[1];return c!=="disabled"?function(){}:function(a){var b=this,d;b.$onEval(function(){var b=a.attr(c);if(b!=d){d=b;var e=b?"disable":"enable",f=a.data();for(var g in f){var h=f[g];h[e]&&a[g](e)}}})}})}),c("jqmng/widgets/jqmButton",["jquery"],function(a){var b=a.mobile.button.prototype,c=b.destroy;b.destroy=function(){c.apply(this,arguments),this.button.remove()}}),c("jqmng/widgets/jqmListView",["jquery"],function(a){var b=a.mobile.listview.prototype,c=b.destroy;b.destroy=function(){var b=this.element.attr("id"),d=new RegExp(a.mobile.subPageUrlKey+"="+b+"-"),e=this.childPages();c.apply(this,arguments);for(var f=0;f<e.length;f++){var g=a(e[f]),h=g.attr("data-url");h.match(d)&&g.remove()}};var d=b._create;b._create=function(){var a=this,b=d.apply(this,arguments);this.element.bind("elementsAdded elementsRemoved",function(b){b.stopPropagation(),a.refresh()})}}),c("jqmng/widgets/jqmSelectMenu",["jquery"],function(a){var b=a.mobile.selectmenu.prototype,c=b.destroy;b.destroy=function(){var a=this.element.closest(".ui-select"),b=this.menuPage,d=this.screen,e=this.listbox;c.apply(this,arguments),a&&a.remove(),b&&b.remove(),d&&d.remove(),e&&e.remove()};var d=b._create;b._create=function(){var a=d.apply(this,arguments),b=this,c=b.open;b.open=function(){return this.refresh(),c.apply(this,arguments)}}}),c("jqmng/widgets/jqmSlider",["jquery"],function(a){var b=a.mobile.slider.prototype,c=b.destroy;b.destroy=function(){c.apply(this,arguments),this.slider.remove()}}),c("jqmng/jqmngStyle",[],function(){var a="#ng-callout {display: none}";$("head").append('<style type="text/css">'+a+"</style>")}),c("jqm-angular",["angular","jquery","jqmng/globalScope","jqmng/navigate","jqmng/waitDialog","jqmng/event","jqmng/fadein","jqmng/if","jqmng/paging","jqmng/sharedController","jqmng/widgets/pageCompile","jqmng/widgets/angularRepeat","jqmng/widgets/angularInput","jqmng/widgets/angularSelect","jqmng/widgets/disabledHandling","jqmng/widgets/jqmButton","jqmng/widgets/jqmListView","jqmng/widgets/jqmSelectMenu","jqmng/widgets/jqmSlider","jqmng/jqmngStyle"])})()
View
1 compiled/min/jquery-mobile-angular-adapter-standalone-1.0.3.js
1 addition, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
BIN compiled/min/jquery-mobile/images/ajax-loader.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN compiled/min/jquery-mobile/images/icons-18-black.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN compiled/min/jquery-mobile/images/icons-18-white.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN compiled/min/jquery-mobile/images/icons-36-black.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN compiled/min/jquery-mobile/images/icons-36-white.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
1 compiled/min/jquery-mobile/jquery.mobile-1.0rc2-oc1.css
@@ -0,0 +1 @@
+.ui-bar-a {border: 1px solid #2A2A2A ; background: #111111 ; color: #ffffff ; font-weight: bold; text-shadow: 0 -1px 1px #000000 ; background-image: -webkit-gradient(linear, left top, left bottom, from(#3c3c3c ), to(#111 )); background-image: -webkit-linear-gradient(top, #3c3c3c , #111 ); background-image: -moz-linear-gradient(top, #3c3c3c , #111 ); background-image: -ms-linear-gradient(top, #3c3c3c , #111 ); background-image: -o-linear-gradient(top, #3c3c3c , #111 ); background-image: linear-gradient(top, #3c3c3c , #111 );}.ui-bar-a, .ui-bar-a input, .ui-bar-a select, .ui-bar-a textarea, .ui-bar-a button {font-family: Helvetica, Arial, sans-serif ;}.ui-bar-a .ui-link-inherit {color: #fff ;}.ui-bar-a .ui-link {color: #7cc4e7 ; font-weight: bold;}.ui-bar-a .ui-link:hover {color: #2489CE ;}.ui-bar-a .ui-link:active {color: #2489CE ;}.ui-bar-a .ui-link:visited {color: #2489CE ;}.ui-body-a {border: 1px solid #2A2A2A ; background: #222222 ; color: #fff ; text-shadow: 0 1px 0 #000 ; font-weight: normal; background-image: -webkit-gradient(linear, left top, left bottom, from(#666 ), to(#222 )); background-image: -webkit-linear-gradient(top, #666 , #222 ); background-image: -moz-linear-gradient(top, #666 , #222 ); background-image: -ms-linear-gradient(top, #666 , #222 ); background-image: -o-linear-gradient(top, #666 , #222 ); background-image: linear-gradient(top, #666 , #222 );}.ui-body-a,.ui-body-a input,.ui-body-a select,.ui-body-a textarea,.ui-body-a button {font-family: Helvetica, Arial, sans-serif ;}.ui-body-a .ui-link-inherit {color: #fff ;}.ui-body-a .ui-link {color: #2489CE ; font-weight: bold;}.ui-body-a .ui-link:hover {color: #2489CE ;}.ui-body-a .ui-link:active {color: #2489CE ;}.ui-body-a .ui-link:visited {color: #2489CE ;}.ui-br {border-bottom: rgb(130,130,130); border-bottom: rgba(130,130,130,.3); border-bottom-width: 1px; border-bottom-style: solid;}.ui-btn-up-a {border: 1px solid #222 ; background: #333333 ; font-weight: bold; color: #fff ; text-shadow: 0 -1px 1px #000 ; background-image: -webkit-gradient(linear, left top, left bottom, from(#555 ), to(#333 )); background-image: -webkit-linear-gradient(top, #555 , #333 ); background-image: -moz-linear-gradient(top, #555 , #333 ); background-image: -ms-linear-gradient(top, #555 , #333 ); background-image: -o-linear-gradient(top, #555 , #333 ); background-image: linear-gradient(top, #555 , #333 );}.ui-btn-up-a a.ui-link-inherit {color: #fff ;}.ui-btn-hover-a {border: 1px solid #000 ; background: #444444 ; font-weight: bold; color: #fff ; text-shadow: 0 -1px 1px #000 ; background-image: -webkit-gradient(linear, left top, left bottom, from(#666 ), to(#444 )); background-image: -webkit-linear-gradient(top, #666 , #444 ); background-image: -moz-linear-gradient(top, #666 , #444 ); background-image: -ms-linear-gradient(top, #666 , #444 ); background-image: -o-linear-gradient(top, #666 , #444 ); background-image: linear-gradient(top, #666 , #444 );}.ui-btn-hover-a a.ui-link-inherit {color: #fff ;}.ui-btn-down-a {border: 1px solid #000 ; background: #3d3d3d ; font-weight: bold; color: #fff ; text-shadow: 0 -1px 1px #000 ; background-image: -webkit-gradient(linear, left top, left bottom, from(#333 ), to(#5a5a5a )); background-image: -webkit-linear-gradient(top, #333 , #5a5a5a ); background-image: -moz-linear-gradient(top, #333 , #5a5a5a ); background-image: -ms-linear-gradient(top, #333 , #5a5a5a ); background-image: -o-linear-gradient(top, #333 , #5a5a5a ); background-image: linear-gradient(top, #333 , #5a5a5a );}.ui-btn-down-a a.ui-link-inherit {color: #fff ;}.ui-btn-up-a,.ui-btn-hover-a,.ui-btn-down-a {font-family: Helvetica, Arial, sans-serif ; text-decoration: none;}.ui-bar-b {border: 1px solid #456f9a ; background: #5e87b0 ; color: #fff ; font-weight: bold; text-shadow: 0 -1px 1px #254f7a ; background-image: -webkit-gradient(linear, left top, left bottom, from(#81a8ce ), to(#5e87b0 )); background-image: -webkit-linear-gradient(top, #81a8ce , #5e87b0 ); background-image: -moz-linear-gradient(top, #81a8ce , #5e87b0 ); background-image: -ms-linear-gradient(top, #81a8ce , #5e87b0 ); background-image: -o-linear-gradient(top, #81a8ce , #5e87b0 ); background-image: linear-gradient(top, #81a8ce , #5e87b0 );}.ui-bar-b,.ui-bar-b input,.ui-bar-b select,.ui-bar-b textarea,.ui-bar-b button {font-family: Helvetica, Arial, sans-serif ;}.ui-bar-b .ui-link-inherit {color: #fff ;}.ui-bar-b .ui-link {color: #ddf0f8 ; font-weight: bold;}.ui-bar-b .ui-link:hover {color: #ddf0f8 ;}.ui-bar-b .ui-link:active {color: #ddf0f8 ;}.ui-bar-b .ui-link:visited {color: #ddf0f8 ;}.ui-body-b {border: 1px solid #C6C6C6 ; background: #cccccc ; color: #333333 ; text-shadow: 0 1px 0 #fff ; font-weight: normal; background-image: -webkit-gradient(linear, left top, left bottom, from(#e6e6e6 ), to(#ccc )); background-image: -webkit-linear-gradient(top, #e6e6e6 , #ccc ); background-image: -moz-linear-gradient(top, #e6e6e6 , #ccc ); background-image: -ms-linear-gradient(top, #e6e6e6 , #ccc ); background-image: -o-linear-gradient(top, #e6e6e6 , #ccc ); background-image: linear-gradient(top, #e6e6e6 , #ccc );}.ui-body-b,.ui-body-b input,.ui-body-b select,.ui-body-b textarea,.ui-body-b button {font-family: Helvetica, Arial, sans-serif ;}.ui-body-b .ui-link-inherit {color: #333333 ;}.ui-body-b .ui-link {color: #2489CE ; font-weight: bold;}.ui-body-b .ui-link:hover {color: #2489CE ;}.ui-body-b .ui-link:active {color: #2489CE ;}.ui-body-b .ui-link:visited {color: #2489CE ;}.ui-btn-up-b {border: 1px solid #145072 ; background: #2567ab ; font-weight: bold; color: #fff ; text-shadow: 0 -1px 1px #145072 ; background-image: -webkit-gradient(linear, left top, left bottom, from(#5f9cc5 ), to(#396b9e )); background-image: -webkit-linear-gradient(top, #5f9cc5 , #396b9e ); background-image: -moz-linear-gradient(top, #5f9cc5 , #396b9e ); background-image: -ms-linear-gradient(top, #5f9cc5 , #396b9e ); background-image: -o-linear-gradient(top, #5f9cc5 , #396b9e ); background-image: linear-gradient(top, #5f9cc5 , #396b9e );}.ui-btn-up-b a.ui-link-inherit {color: #fff ;}.ui-btn-hover-b {border: 1px solid #00516e ; background: #4b88b6 ; font-weight: bold; color: #fff ; text-shadow: 0 -1px 1px #014D68 ; background-image: -webkit-gradient(linear, left top, left bottom, from(#72b0d4 ), to(#4b88b6 )); background-image: -webkit-linear-gradient(top, #72b0d4 , #4b88b6 ); background-image: -moz-linear-gradient(top, #72b0d4 , #4b88b6 ); background-image: -ms-linear-gradient(top, #72b0d4 , #4b88b6 ); background-image: -o-linear-gradient(top, #72b0d4 , #4b88b6 ); background-image: linear-gradient(top, #72b0d4 , #4b88b6 );}.ui-btn-hover-b a.ui-link-inherit {color: #fff ;}.ui-btn-down-b {border: 1px solid #225377 ; background: #4e89c5 ; font-weight: bold; color: #fff ; text-shadow: 0 -1px 1px #225377 ; background-image: -webkit-gradient(linear, left top, left bottom, from(#396b9e ), to(#4e89c5 )); background-image: -webkit-linear-gradient(top, #396b9e , #4e89c5 ); background-image: -moz-linear-gradient(top, #396b9e , #4e89c5 ); background-image: -ms-linear-gradient(top, #396b9e , #4e89c5 ); background-image: -o-linear-gradient(top, #396b9e , #4e89c5 ); background-image: linear-gradient(top, #396b9e , #4e89c5 );}.ui-btn-down-b a.ui-link-inherit {color: #fff ;}.ui-btn-up-b,.ui-btn-hover-b,.ui-btn-down-b {font-family: Helvetica, Arial, sans-serif ; text-decoration: none;}.ui-bar-c {border: 1px solid #B3B3B3 ; background: #e9eaeb ; color: #3E3E3E ; font-weight: bold; text-shadow: 0 1px 1px #fff ; background-image: -webkit-gradient(linear, left top, left bottom, from(#f0f0f0 ), to(#e9eaeb )); background-image: -webkit-linear-gradient(top, #f0f0f0 , #e9eaeb ); background-image: -moz-linear-gradient(top, #f0f0f0 , #e9eaeb ); background-image: -ms-linear-gradient(top, #f0f0f0 , #e9eaeb ); background-image: -o-linear-gradient(top, #f0f0f0 , #e9eaeb ); background-image: linear-gradient(top, #f0f0f0 , #e9eaeb );}.ui-bar-c .ui-link-inherit {color: #3E3E3E ;}.ui-bar-c .ui-link {color: #7cc4e7 ; font-weight: bold;}.ui-bar-c .ui-link:hover {color: #2489CE ;}.ui-bar-c .ui-link:active {color: #2489CE ;}.ui-bar-c .ui-link:visited {color: #2489CE ;}.ui-bar-c,.ui-bar-c input,.ui-bar-c select,.ui-bar-c textarea,.ui-bar-c button {font-family: Helvetica, Arial, sans-serif ;}.ui-body-c {border: 1px solid #B3B3B3 ; color: #333333 ; text-shadow: 0 1px 0 #fff ; background: #f0f0f0 ; background-image: -webkit-gradient(linear, left top, left bottom, from(#eee ), to(#ddd )); background-image: -webkit-linear-gradient(top, #eee , #ddd ); background-image: -moz-linear-gradient(top, #eee , #ddd ); background-image: -ms-linear-gradient(top, #eee , #ddd ); background-image: -o-linear-gradient(top, #eee , #ddd ); background-image: linear-gradient(top, #eee , #ddd );}.ui-body-c,.ui-body-c input,.ui-body-c select,.ui-body-c textarea,.ui-body-c button {font-family: Helvetica, Arial, sans-serif ;}.ui-body-c .ui-link-inherit {color: #333333 ;}.ui-body-c .ui-link {color: #2489CE ; font-weight: bold;}.ui-body-c .ui-link:hover {color: #2489CE ;}.ui-body-c .ui-link:active {color: #2489CE ;}.ui-body-c .ui-link:visited {color: #2489CE ;}.ui-btn-up-c {border: 1px solid #ccc ; background: #eee ; font-weight: bold; color: #444 ; text-shadow: 0 1px 1px #f6f6f6 ; background-image: -webkit-gradient(linear, left top, left bottom, from(#fdfdfd ), to(#eee )); background-image: -webkit-linear-gradient(top, #fdfdfd , #eee ); background-image: -moz-linear-gradient(top, #fdfdfd , #eee ); background-image: -ms-linear-gradient(top, #fdfdfd , #eee ); background-image: -o-linear-gradient(top, #fdfdfd , #eee ); background-image: linear-gradient(top, #fdfdfd , #eee );}.ui-btn-up-c a.ui-link-inherit {color: #2F3E46 ;}.ui-btn-hover-c {border: 1px solid #bbbbbb ; background: #dadada ; font-weight: bold; color: #101010 ; text-shadow: 0 1px 1px #fff ; background-image: -webkit-gradient(linear, left top, left bottom, from(#ededed ), to(#dadada )); background-image: -webkit-linear-gradient(top, #ededed , #dadada ); background-image: -moz-linear-gradient(top, #ededed , #dadada ); background-image: -ms-linear-gradient(top, #ededed , #dadada ); background-image: -o-linear-gradient(top, #ededed , #dadada ); background-image: linear-gradient(top, #ededed , #dadada );}.ui-btn-hover-c a.ui-link-inherit {color: #2F3E46 ;}.ui-btn-down-c {border: 1px solid #808080 ; background: #fdfdfd ; font-weight: bold; color: #111111 ; text-shadow: 0 1px 1px #ffffff ; background-image: -webkit-gradient(linear, left top, left bottom, from(#eee ), to(#fdfdfd )); background-image: -webkit-linear-gradient(top, #eee , #fdfdfd ); background-image: -moz-linear-gradient(top, #eee , #fdfdfd ); background-image: -ms-linear-gradient(top, #eee , #fdfdfd ); background-image: -o-linear-gradient(top, #eee , #fdfdfd ); background-image: linear-gradient(top, #eee , #fdfdfd );}.ui-btn-down-c a.ui-link-inherit {color: #2F3E46 ;}.ui-btn-up-c,.ui-btn-hover-c,.ui-btn-down-c {font-family: Helvetica, Arial, sans-serif ; text-decoration: none;}.ui-bar-d {border: 1px solid #ccc ; background: #bbb ; color: #333 ; text-shadow: 0 1px 0 #eee ; background-image: -webkit-gradient(linear, left top, left bottom, from(#ddd ), to(#bbb )); background-image: -webkit-linear-gradient(top, #ddd , #bbb ); background-image: -moz-linear-gradient(top, #ddd , #bbb ); background-image: -ms-linear-gradient(top, #ddd , #bbb ); background-image: -o-linear-gradient(top, #ddd , #bbb ); background-image: linear-gradient(top, #ddd , #bbb );}.ui-bar-d,.ui-bar-d input,.ui-bar-d select,.ui-bar-d textarea,.ui-bar-d button {font-family: Helvetica, Arial, sans-serif ;}.ui-bar-d .ui-link-inherit {color: #333333 ;}.ui-bar-d .ui-link {color: #2489CE ; font-weight: bold;}.ui-bar-d .ui-link:hover {color: #2489CE ;}.ui-bar-d .ui-link:active {color: #2489CE ;}.ui-bar-d .ui-link:visited {color: #2489CE ;}.ui-body-d {border: 1px solid #ccc ; color: #333333 ; text-shadow: 0 1px 0 #fff ; background: #ffffff ; background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#fff )); background-image: -webkit-linear-gradient(top, #fff , #fff ); background-image: -moz-linear-gradient(top, #fff , #fff ); background-image: -ms-linear-gradient(top, #fff , #fff ); background-image: -o-linear-gradient(top, #fff , #fff ); background-image: linear-gradient(top, #fff , #fff );}.ui-body-d,.ui-body-d input,.ui-body-d select,.ui-body-d textarea,.ui-body-d button {font-family: Helvetica, Arial, sans-serif ;}.ui-body-d .ui-link-inherit {color: #333333 ;}.ui-body-d .ui-link {color: #2489CE ; font-weight: bold;}.ui-body-d .ui-link:hover {color: #2489CE ;}.ui-body-d .ui-link:active {color: #2489CE ;}.ui-body-d .ui-link:visited {color: #2489CE ;}.ui-btn-up-d {border: 1px solid #ccc ; background: #fff ; font-weight: bold; color: #444 ; text-shadow: 0 1px 1px #fff ; background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#fff )); background-image: -webkit-linear-gradient(top, #fff , #fff ); background-image: -moz-linear-gradient(top, #fff , #fff ); background-image: -ms-linear-gradient(top, #fff , #fff ); background-image: -o-linear-gradient(top, #fff , #fff ); background-image: linear-gradient(top, #fff , #fff );}.ui-btn-up-d a.ui-link-inherit {color: #333 ;}.ui-btn-hover-d {border: 1px solid #aaa ; background: #eeeeee ; font-weight: bold; color: #222 ; cursor: pointer; text-shadow: 0 1px 1px #fff ; background-image: -webkit-gradient(linear, left top, left bottom, from(#fdfdfd), to(#eee )); background-image: -webkit-linear-gradient(top, #fdfdfd , #eee ); background-image: -moz-linear-gradient(top, #fdfdfd , #eee ); background-image: -ms-linear-gradient(top, #fdfdfd , #eee ); background-image: -o-linear-gradient(top, #fdfdfd , #eee ); background-image: linear-gradient(top, #fdfdfd , #eee );}.ui-btn-hover-d a.ui-link-inherit {color: #222 ;}.ui-btn-down-d {border: 1px solid #aaaaaa ; background: #ffffff ; font-weight: bold; color: #111 ; text-shadow: 0 1px 1px #ffffff ; background-image: -webkit-gradient(linear, left top, left bottom, from(#eee ), to(#fff )); background-image: -webkit-linear-gradient(top, #eee , #fff ); background-image: -moz-linear-gradient(top, #eee , #fff ); background-image: -ms-linear-gradient(top, #eee , #fff ); background-image: -o-linear-gradient(top, #eee , #fff ); background-image: linear-gradient(top, #eee , #fff );}.ui-btn-down-d a.ui-link-inherit {color: #111 ;}.ui-btn-up-d,.ui-btn-hover-d,.ui-btn-down-d {font-family: Helvetica, Arial, sans-serif ; text-decoration: none;}.ui-bar-e {border: 1px solid #F7C942 ; background: #fadb4e ; color: #333 ; text-shadow: 0 1px 0 #fff ; background-image: -webkit-gradient(linear, left top, left bottom, from(#fceda7 ), to(#fadb4e )); background-image: -webkit-linear-gradient(top, #fceda7 , #fadb4e ); background-image: -moz-linear-gradient(top, #fceda7 , #fadb4e ); background-image: -ms-linear-gradient(top, #fceda7 , #fadb4e ); background-image: -o-linear-gradient(top, #fceda7 , #fadb4e ); background-image: linear-gradient(top, #fceda7 , #fadb4e );}.ui-bar-e,.ui-bar-e input,.ui-bar-e select,.ui-bar-e textarea,.ui-bar-e button {font-family: Helvetica, Arial, sans-serif ;}.ui-bar-e .ui-link-inherit {color: #333333 ;}.ui-bar-e .ui-link {color: #2489CE ; font-weight: bold;}.ui-bar-e .ui-link:hover {color: #2489CE ;}.ui-bar-e .ui-link:active {color: #2489CE ;}.ui-bar-e .ui-link:visited {color: #2489CE ;}.ui-body-e {border: 1px solid #F7C942 ; color: #333333 ; text-shadow: 0 1px 0 #fff ; background: #faeb9e ; background-image: -webkit-gradient(linear, left top, left bottom, from(#fff ), to(#faeb9e )); background-image: -webkit-linear-gradient(top, #fff , #faeb9e ); background-image: -moz-linear-gradient(top, #fff , #faeb9e ); background-image: -ms-linear-gradient(top, #fff , #faeb9e ); background-image: -o-linear-gradient(top, #fff , #faeb9e ); background-image: linear-gradient(top, #fff , #faeb9e );}.ui-body-e,.ui-body-e input,.ui-body-e select,.ui-body-e textarea,.ui-body-e button {font-family: Helvetica, Arial, sans-serif ;}.ui-body-e .ui-link-inherit {color: #333333 ;}.ui-body-e .ui-link {color: #2489CE ; font-weight: bold;}.ui-body-e .ui-link:hover {color: #2489CE ;}.ui-body-e .ui-link:active {color: #2489CE ;}.ui-body-e .ui-link:visited {color: #2489CE ;}.ui-btn-up-e {border: 1px solid #F7C942 ; background: #fadb4e ; font-weight: bold; color: #333 ; text-shadow: 0 1px 0 #fff ; background-image: -webkit-gradient(linear, left top, left bottom, from(#fceda7 ), to(#fadb4e )); background-image: -webkit-linear-gradient(top, #fceda7 , #fadb4e ); background-image: -moz-linear-gradient(top, #fceda7 , #fadb4e ); background-image: -ms-linear-gradient(top, #fceda7 , #fadb4e ); background-image: -o-linear-gradient(top, #fceda7 , #fadb4e ); background-image: linear-gradient(top, #fceda7 , #fadb4e );}.ui-btn-up-e a.ui-link-inherit {color: #333 ;}.ui-btn-hover-e {border: 1px solid #e79952 ; background: #fbe26f ; font-weight: bold; color: #111 ; text-shadow: 0 1px 1px #fff ; background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf0b5 ), to(#fbe26f )); background-image: -webkit-linear-gradient(top, #fcf0b5 , #fbe26f ); background-image: -moz-linear-gradient(top, #fcf0b5 , #fbe26f ); background-image: -ms-linear-gradient(top, #fcf0b5 , #fbe26f ); background-image: -o-linear-gradient(top, #fcf0b5 , #fbe26f ); background-image: linear-gradient(top, #fcf0b5 , #fbe26f );}.ui-btn-hover-e a.ui-link-inherit {color: #333 ;}.ui-btn-down-e {border: 1px solid #F7C942 ; background: #fceda7 ; font-weight: bold; color: #111 ; text-shadow: 0 1px 1px #ffffff ; background-image: -webkit-gradient(linear, left top, left bottom, from(#fadb4e ), to(#fceda7 )); background-image: -webkit-linear-gradient(top, #fadb4e , #fceda7 ); background-image: -moz-linear-gradient(top, #fadb4e , #fceda7 ); background-image: -ms-linear-gradient(top, #fadb4e , #fceda7 ); background-image: -o-linear-gradient(top, #fadb4e , #fceda7 ); background-image: linear-gradient(top, #fadb4e , #fceda7 );}.ui-btn-down-e a.ui-link-inherit {color: #333 ;}.ui-btn-up-e,.ui-btn-hover-e,.ui-btn-down-e {font-family: Helvetica, Arial, sans-serif ; text-decoration: none;}a.ui-link-inherit {text-decoration: none !important;}.ui-btn-active {border: 1px solid #155678 ; background: #4596ce ; font-weight: bold; color: #fff ; cursor: pointer; text-shadow: 0 -1px 1px #145072 ; text-decoration: none; background-image: -webkit-gradient(linear, left top, left bottom, from(#85bae4 ), to(#5393c5 )); background-image: -webkit-linear-gradient(top, #85bae4 , #5393c5 ); background-image: -moz-linear-gradient(top, #85bae4 , #5393c5 ); background-image: -ms-linear-gradient(top, #85bae4 , #5393c5 ); background-image: -o-linear-gradient(top, #85bae4 , #5393c5 ); background-image: linear-gradient(top, #85bae4 , #5393c5 ); font-family: Helvetica, Arial, sans-serif ;}.ui-btn-active a.ui-link-inherit {color: #fff ;}.ui-btn-inner {border-top: 1px solid #fff; border-color: rgba(255,255,255,.3);}.ui-corner-tl {-moz-border-radius-topleft: .6em ; -webkit-border-top-left-radius: .6em ; border-top-left-radius: .6em ;}.ui-corner-tr {-moz-border-radius-topright: .6em ; -webkit-border-top-right-radius: .6em ; border-top-right-radius: .6em ;}.ui-corner-bl {-moz-border-radius-bottomleft: .6em ; -webkit-border-bottom-left-radius: .6em ; border-bottom-left-radius: .6em ;}.ui-corner-br {-moz-border-radius-bottomright: .6em ; -webkit-border-bottom-right-radius: .6em ; border-bottom-right-radius: .6em ;}.ui-corner-top {-moz-border-radius-topleft: .6em ; -webkit-border-top-left-radius: .6em ; border-top-left-radius: .6em ; -moz-border-radius-topright: .6em ; -webkit-border-top-right-radius: .6em ; border-top-right-radius: .6em ;}.ui-corner-bottom {-moz-border-radius-bottomleft: .6em ; -webkit-border-bottom-left-radius: .6em ; border-bottom-left-radius: .6em ; -moz-border-radius-bottomright: .6em ; -webkit-border-bottom-right-radius: .6em ; border-bottom-right-radius: .6em ;}.ui-corner-right {-moz-border-radius-topright: .6em ; -webkit-border-top-right-radius: .6em ; border-top-right-radius: .6em ; -moz-border-radius-bottomright: .6em ; -webkit-border-bottom-right-radius: .6em ; border-bottom-right-radius: .6em ;}.ui-corner-left {-moz-border-radius-topleft: .6em ; -webkit-border-top-left-radius: .6em ; border-top-left-radius: .6em ; -moz-border-radius-bottomleft: .6em ; -webkit-border-bottom-left-radius: .6em ; border-bottom-left-radius: .6em ;}.ui-corner-all {-moz-border-radius: .6em ; -webkit-border-radius: .6em ; border-radius: .6em ;}.ui-corner-none {-moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;}.ui-disabled {opacity: .3;}.ui-disabled,.ui-disabled a {pointer-events: none; cursor: default;}.ui-icon,.ui-icon-searchfield:after {background: #666 ; background: rgba(0,0,0,.4) ; background-image: url(images/icons-18-white.png) ; background-repeat: no-repeat; -moz-border-radius: 9px; -webkit-border-radius: 9px; border-radius: 9px;}.ui-icon-alt {background: #fff; background: rgba(255,255,255,.3); background-image: url(images/icons-18-black.png); background-repeat: no-repeat;}@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min--moz-device-pixel-ratio: 1.5), only screen and (min-resolution: 240dpi) {.ui-icon-plus, .ui-icon-minus, .ui-icon-delete, .ui-icon-arrow-r, .ui-icon-arrow-l, .ui-icon-arrow-u, .ui-icon-arrow-d, .ui-icon-check, .ui-icon-gear, .ui-icon-refresh, .ui-icon-forward, .ui-icon-back, .ui-icon-grid, .ui-icon-star, .ui-icon-alert, .ui-icon-info, .ui-icon-home, .ui-icon-search, .ui-icon-searchfield:after, .ui-icon-checkbox-off, .ui-icon-checkbox-on, .ui-icon-radio-off, .ui-icon-radio-on {background-image: url(images/icons-36-white.png); -moz-background-size: 776px 18px; -o-background-size: 776px 18px; -webkit-background-size: 776px 18px; background-size: 776px 18px;} .ui-icon-alt {background-image: url(images/icons-36-black.png);}}.ui-icon-plus {background-position: -0 50%;}.ui-icon-minus {background-position: -36px 50%;}.ui-icon-delete {background-position: -72px 50%;}.ui-icon-arrow-r {background-position: -108px 50%;}.ui-icon-arrow-l {background-position: -144px 50%;}.ui-icon-arrow-u {background-position: -180px 50%;}.ui-icon-arrow-d {background-position: -216px 50%;}.ui-icon-check {background-position: -252px 50%;}.ui-icon-gear {background-position: -288px 50%;}.ui-icon-refresh {background-position: -324px 50%;}.ui-icon-forward {background-position: -360px 50%;}.ui-icon-back {background-position: -396px 50%;}.ui-icon-grid {background-position: -432px 50%;}.ui-icon-star {background-position: -468px 50%;}.ui-icon-alert {background-position: -504px 50%;}.ui-icon-info {background-position: -540px 50%;}.ui-icon-home {background-position: -576px 50%;}.ui-icon-search,.ui-icon-searchfield:after {background-position: -612px 50%;}.ui-icon-checkbox-off {background-position: -684px 50%;}.ui-icon-checkbox-on {background-position: -648px 50%;}.ui-icon-radio-off {background-position: -756px 50%;}.ui-icon-radio-on {background-position: -720px 50%;}.ui-checkbox .ui-icon {-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;}.ui-icon-checkbox-off,.ui-icon-radio-off {background-color: transparent;}.ui-checkbox-on .ui-icon,.ui-radio-on .ui-icon {background-color: #4596ce ;}.ui-icon-loading {background-image: url(images/ajax-loader.png); width: 40px; height: 40px; -moz-border-radius: 20px; -webkit-border-radius: 20px; border-radius: 20px; background-size: 35px 35px;}.ui-btn-corner-tl {-moz-border-radius-topleft: 1em ; -webkit-border-top-left-radius: 1em ; border-top-left-radius: 1em ;}.ui-btn-corner-tr {-moz-border-radius-topright: 1em ; -webkit-border-top-right-radius: 1em ; border-top-right-radius: 1em ;}.ui-btn-corner-bl {-moz-border-radius-bottomleft: 1em ; -webkit-border-bottom-left-radius: 1em ; border-bottom-left-radius: 1em ;}.ui-btn-corner-br {-moz-border-radius-bottomright: 1em ; -webkit-border-bottom-right-radius: 1em ; border-bottom-right-radius: 1em ;}.ui-btn-corner-top {-moz-border-radius-topleft: 1em ; -webkit-border-top-left-radius: 1em ; border-top-left-radius: 1em ; -moz-border-radius-topright: 1em ; -webkit-border-top-right-radius: 1em ; border-top-right-radius: 1em ;}.ui-btn-corner-bottom {-moz-border-radius-bottomleft: 1em ; -webkit-border-bottom-left-radius: 1em ; border-bottom-left-radius: 1em ; -moz-border-radius-bottomright: 1em ; -webkit-border-bottom-right-radius: 1em ; border-bottom-right-radius: 1em ;}.ui-btn-corner-right {-moz-border-radius-topright: 1em ; -webkit-border-top-right-radius: 1em ; border-top-right-radius: 1em ; -moz-border-radius-bottomright: 1em ; -webkit-border-bottom-right-radius: 1em ; border-bottom-right-radius: 1em ;}.ui-btn-corner-left {-moz-border-radius-topleft: 1em ; -webkit-border-top-left-radius: 1em ; border-top-left-radius: 1em ; -moz-border-radius-bottomleft: 1em ; -webkit-border-bottom-left-radius: 1em ; border-bottom-left-radius: 1em ;}.ui-btn-corner-all {-moz-border-radius: 1em ; -webkit-border-radius: 1em ; border-radius: 1em ;}.ui-corner-tl,.ui-corner-tr,.ui-corner-bl, .ui-corner-br,.ui-corner-top,.ui-corner-bottom, .ui-corner-right,.ui-corner-left,.ui-corner-all,.ui-btn-corner-tl,.ui-btn-corner-tr,.ui-btn-corner-bl, .ui-btn-corner-br,.ui-btn-corner-top,.ui-btn-corner-bottom, .ui-btn-corner-right,.ui-btn-corner-left,.ui-btn-corner-all {-webkit-background-clip: padding-box; -moz-background-clip: padding; background-clip: padding-box;}.ui-overlay {background: #666; opacity: .5; filter: Alpha(Opacity=50); position: absolute; width: 100%; height: 100%;}.ui-overlay-shadow {-moz-box-shadow: 0px 0px 12px rgba(0,0,0,.6); -webkit-box-shadow: 0px 0px 12px rgba(0,0,0,.6); box-shadow: 0px 0px 12px rgba(0,0,0,.6);}.ui-shadow {-moz-box-shadow: 0px 1px 4px rgba(0,0,0,.3) ; -webkit-box-shadow: 0px 1px 4px rgba(0,0,0,.3) ; box-shadow: 0px 1px 4px rgba(0,0,0,.3) ;}.ui-bar-a .ui-shadow,.ui-bar-b .ui-shadow ,.ui-bar-c .ui-shadow {-moz-box-shadow: 0px 1px 0 rgba(255,255,255,.3); -webkit-box-shadow: 0px 1px 0 rgba(255,255,255,.3); box-shadow: 0px 1px 0 rgba(255,255,255,.3);}.ui-shadow-inset {-moz-box-shadow: inset 0px 1px 4px rgba(0,0,0,.2); -webkit-box-shadow: inset 0px 1px 4px rgba(0,0,0,.2); box-shadow: inset 0px 1px 4px rgba(0,0,0,.2);}.ui-icon-shadow {-moz-box-shadow: 0px 1px 0 rgba(255,255,255,.4); -webkit-box-shadow: 0px 1px 0 rgba(255,255,255,.4); box-shadow: 0px 1px 0 rgba(255,255,255,.4);}.ui-focus {-moz-box-shadow: 0px 0px 12px #387bbe ; -webkit-box-shadow: 0px 0px 12px #387bbe ; box-shadow: 0px 0px 12px #387bbe ;}.ui-mobile-nosupport-boxshadow * {-moz-box-shadow: none !important; -webkit-box-shadow: none !important; box-shadow: none !important;}.ui-mobile-nosupport-boxshadow .ui-focus {outline-width: 2px;}.ui-mobile, .ui-mobile body {height: 100%;}.ui-mobile fieldset, .ui-page {padding: 0; margin: 0;}.ui-mobile a img, .ui-mobile fieldset {border: 0;}.ui-mobile-viewport {margin: 0; overflow-x: hidden; -webkit-text-size-adjust: none; -ms-text-size-adjust:none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ui-mobile [data-role=page], .ui-mobile [data-role=dialog], .ui-page {top: 0; left: 0; width: 100%; min-height: 100%; position: absolute; display: none; border: 0;} .ui-mobile .ui-page-active {display: block; overflow: visible;}.ui-page {outline: none;}@media screen and (orientation: portrait){.ui-mobile, .ui-mobile .ui-page {min-height: 420px;}}@media screen and (orientation: landscape){.ui-mobile, .ui-mobile .ui-page {min-height: 300px;}}.ui-page.ui-mobile-touch-overflow,.ui-mobile-touch-overflow.ui-native-fixed .ui-content {overflow: auto; height: 100%; -webkit-overflow-scrolling: touch; -moz-overflow-scrolling: touch; -o-overflow-scrolling: touch; -ms-overflow-scrolling: touch; overflow-scrolling: touch;}.ui-page.ui-mobile-touch-overflow,.ui-page.ui-mobile-touch-overflow * {-webkit-transform: rotateY(0);}.ui-page.ui-mobile-pre-transition {display: block;}.ui-loading .ui-mobile-viewport {overflow: hidden !important;}.ui-loading .ui-loader {display: block;}.ui-loading .ui-page {overflow: hidden;}.ui-loader {display: none; position: absolute; opacity: .85; z-index: 100; left: 50%; width: 200px; margin-left: -130px; margin-top: -35px; padding: 10px 30px;}.ui-loader h1 {font-size: 15px; text-align: center;}.ui-loader .ui-icon {position: static; display: block; opacity: .9; margin: 0 auto; width: 35px; height: 35px; background-color: transparent;}.ui-mobile-rendering > * {visibility: hidden;}.ui-bar, .ui-body {position: relative; padding: .4em 15px; overflow: hidden; display: block; clear:both;}.ui-bar {font-size: 16px; margin: 0;}.ui-bar h1, .ui-bar h2, .ui-bar h3, .ui-bar h4, .ui-bar h5, .ui-bar h6 {margin: 0; padding: 0; font-size: 16px; display: inline-block;}.ui-header, .ui-footer {display: block;}.ui-page .ui-header, .ui-page .ui-footer {position: relative;}.ui-header .ui-btn-left {position: absolute; left: 10px; top: .4em;}.ui-header .ui-btn-right {position: absolute; right: 10px; top: .4em;}.ui-header .ui-title, .ui-footer .ui-title {min-height: 1.1em; text-align: center; font-size: 16px; display: block; margin: .6em 90px .8em; padding: 0; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; outline: 0 !important;}.ui-footer .ui-title {margin: .6em 15px .8em;}.ui-content {border-width: 0; overflow: visible; overflow-x: hidden; padding: 15px;}.ui-page-fullscreen .ui-content {padding:0;}.ui-mobile-touch-overflow.ui-page.ui-native-fixed,.ui-mobile-touch-overflow.ui-page.ui-native-fullscreen {overflow: visible;}.ui-mobile-touch-overflow.ui-native-fixed .ui-header,.ui-mobile-touch-overflow.ui-native-fixed .ui-footer {position: fixed; left: 0; right: 0; top: 0; z-index: 200;}.ui-mobile-touch-overflow.ui-page.ui-native-fixed .ui-footer {top: auto; bottom: 0;}.ui-mobile-touch-overflow.ui-native-fixed .ui-content {padding-top: 2.5em; padding-bottom: 3em; top: 0; bottom: 0; height: auto; position: absolute;}.ui-mobile-touch-overflow.ui-native-fullscreen .ui-content {padding-top: 0; padding-bottom: 0;}.ui-mobile-touch-overflow.ui-native-fullscreen .ui-header,.ui-mobile-touch-overflow.ui-native-fullscreen .ui-footer {opacity: .9;}.ui-native-bars-hidden {display: none;}.ui-icon {width: 18px; height: 18px;}.ui-fullscreen {}.ui-fullscreen img {max-width: 100%;}.ui-nojs {position: absolute; left: -9999px;}.ui-hide-label label,.ui-hidden-accessible {position: absolute !important; left: -9999px; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px);}.spin {-webkit-transform: rotate(360deg); -webkit-animation-name: spin; -webkit-animation-duration: 1s; -webkit-animation-iteration-count: infinite; -webkit-animation-timing-function: linear;}@-webkit-keyframes spin {from {-webkit-transform: rotate(0deg);} to {-webkit-transform: rotate(360deg);}}.in, .out {-webkit-animation-timing-function: ease-in-out; -webkit-animation-duration: 350ms;}.slide.out {-webkit-transform: translateX(-100%); -webkit-animation-name: slideouttoleft;}.slide.in {-webkit-transform: translateX(0); -webkit-animation-name: slideinfromright;}.slide.out.reverse {-webkit-transform: translateX(100%); -webkit-animation-name: slideouttoright;}.slide.in.reverse {-webkit-transform: translateX(0); -webkit-animation-name: slideinfromleft;}.slideup.out {-webkit-animation-name: dontmove; z-index: 0;}.slideup.in {-webkit-transform: translateY(0); -webkit-animation-name: slideinfrombottom; z-index: 10;}.slideup.in.reverse {z-index: 0; -webkit-animation-name: dontmove;}.slideup.out.reverse {-webkit-transform: translateY(100%); z-index: 10; -webkit-animation-name: slideouttobottom;}.slidedown.out {-webkit-animation-name: dontmove; z-index: 0;}.slidedown.in {-webkit-transform: translateY(0); -webkit-animation-name: slideinfromtop; z-index: 10;}.slidedown.in.reverse {z-index: 0; -webkit-animation-name: dontmove;}.slidedown.out.reverse {-webkit-transform: translateY(-100%); z-index: 10; -webkit-animation-name: slideouttotop;}@-webkit-keyframes slideinfromright {from {-webkit-transform: translateX(100%);} to {-webkit-transform: translateX(0);}}@-webkit-keyframes slideinfromleft {from {-webkit-transform: translateX(-100%);} to {-webkit-transform: translateX(0);}}@-webkit-keyframes slideouttoleft {from {-webkit-transform: translateX(0);} to {-webkit-transform: translateX(-100%);}}@-webkit-keyframes slideouttoright {from {-webkit-transform: translateX(0);} to {-webkit-transform: translateX(100%);}}@-webkit-keyframes slideinfromtop {from {-webkit-transform: translateY(-100%);} to {-webkit-transform: translateY(0);}}@-webkit-keyframes slideinfrombottom {from {-webkit-transform: translateY(100%);} to {-webkit-transform: translateY(0);}}@-webkit-keyframes slideouttobottom {from {-webkit-transform: translateY(0);} to {-webkit-transform: translateY(100%);}}@-webkit-keyframes slideouttotop {from {-webkit-transform: translateY(0);} to {-webkit-transform: translateY(-100%);}}@-webkit-keyframes fadein {from {opacity: 0;} to {opacity: 1;}}@-webkit-keyframes fadeout {from {opacity: 1;} to {opacity: 0;}}.fade.out {z-index: 0; -webkit-animation-name: fadeout;}.fade.in {opacity: 1; z-index: 10; -webkit-animation-name: fadein;}.viewport-flip {-webkit-perspective: 1000; position: absolute;}.ui-mobile-viewport-transitioning,.ui-mobile-viewport-transitioning .ui-page {width: 100%; height: 100%; overflow: hidden;}.flip {-webkit-animation-duration: .65s; -webkit-backface-visibility:hidden; -webkit-transform:translateX(0);}.flip.out {-webkit-transform: rotateY(-180deg) scale(.8); -webkit-animation-name: flipouttoleft;}.flip.in {-webkit-transform: rotateY(0) scale(1); -webkit-animation-name: flipinfromleft;}.flip.out.reverse {-webkit-transform: rotateY(180deg) scale(.8); -webkit-animation-name: flipouttoright;}.flip.in.reverse {-webkit-transform: rotateY(0) scale(1); -webkit-animation-name: flipinfromright;}@-webkit-keyframes flipinfromright {from {-webkit-transform: rotateY(-180deg) scale(.8);} to {-webkit-transform: rotateY(0) scale(1);}}@-webkit-keyframes flipinfromleft {from {-webkit-transform: rotateY(180deg) scale(.8);} to {-webkit-transform: rotateY(0) scale(1);}}@-webkit-keyframes flipouttoleft {from {-webkit-transform: rotateY(0) scale(1);} to {-webkit-transform: rotateY(-180deg) scale(.8);}}@-webkit-keyframes flipouttoright {from {-webkit-transform: rotateY(0) scale(1);} to {-webkit-transform: rotateY(180deg) scale(.8);}}@-webkit-keyframes dontmove {from {opacity: 1;} to {opacity: 1;}}.pop {-webkit-transform-origin: 50% 50%;}.pop.in {-webkit-transform: scale(1); opacity: 1; -webkit-animation-name: popin; z-index: 10;}.pop.in.reverse {z-index: 0; -webkit-animation-name: dontmove;}.pop.out.reverse {-webkit-transform: scale(.2); opacity: 0; -webkit-animation-name: popout; z-index: 10;}@-webkit-keyframes popin {from {-webkit-transform: scale(.2); opacity: 0;} to {-webkit-transform: scale(1); opacity: 1;}}@-webkit-keyframes popout {from {-webkit-transform: scale(1); opacity: 1;} to {-webkit-transform: scale(.2); opacity: 0;}}.ui-grid-a, .ui-grid-b, .ui-grid-c, .ui-grid-d {overflow: hidden;}.ui-block-a, .ui-block-b, .ui-block-c, .ui-block-d, .ui-block-e {margin: 0; padding: 0; border: 0; float: left; min-height:1px;}.ui-grid-solo .ui-block-a {width: 100%; float: none;}.ui-grid-a .ui-block-a, .ui-grid-a .ui-block-b {width: 50%;}.ui-grid-a .ui-block-a {clear: left;}.ui-grid-b .ui-block-a, .ui-grid-b .ui-block-b, .ui-grid-b .ui-block-c {width: 33.333%;}.ui-grid-b .ui-block-a {clear: left;}.ui-grid-c .ui-block-a, .ui-grid-c .ui-block-b, .ui-grid-c .ui-block-c, .ui-grid-c .ui-block-d {width: 25%;}.ui-grid-c .ui-block-a {clear: left;}.ui-grid-d .ui-block-a, .ui-grid-d .ui-block-b, .ui-grid-d .ui-block-c, .ui-grid-d .ui-block-d, .ui-grid-d .ui-block-e {width: 20%;}.ui-grid-d .ui-block-a {clear: left;}.ui-header, .ui-footer, .ui-page-fullscreen .ui-header, .ui-page-fullscreen .ui-footer {position: absolute; overflow: hidden; width: 100%; border-left-width: 0; border-right-width: 0;}.ui-header-fixed, .ui-footer-fixed {z-index: 1000; -webkit-transform: translateZ(0);}.ui-footer-duplicate, .ui-page-fullscreen .ui-fixed-inline {display: none;}.ui-page-fullscreen .ui-header, .ui-page-fullscreen .ui-footer {opacity: .9;}.ui-navbar {overflow: hidden;}.ui-navbar ul, .ui-navbar-expanded ul {list-style:none; padding: 0; margin: 0; position: relative; display: block; border: 0;}.ui-navbar-collapsed ul {float: left; width: 75%; margin-right: -2px;}.ui-navbar-collapsed .ui-navbar-toggle {float: left; width: 25%;}.ui-navbar li.ui-navbar-truncate {position: absolute; left: -9999px; top: -9999px;}.ui-navbar li .ui-btn, .ui-navbar .ui-navbar-toggle .ui-btn {display: block; font-size: 12px; text-align: center; margin: 0; border-right-width: 0;}.ui-navbar li .ui-btn {margin-right: -1px;}.ui-navbar li .ui-btn:last-child {margin-right: 0;}.ui-header .ui-navbar li .ui-btn, .ui-header .ui-navbar .ui-navbar-toggle .ui-btn,.ui-footer .ui-navbar li .ui-btn, .ui-footer .ui-navbar .ui-navbar-toggle .ui-btn {border-top-width: 0; border-bottom-width: 0;}.ui-navbar .ui-btn-inner {padding-left: 2px; padding-right: 2px;}.ui-navbar-noicons li .ui-btn .ui-btn-inner, .ui-navbar-noicons .ui-navbar-toggle .ui-btn-inner {padding-top: .8em; padding-bottom: .9em;}.ui-navbar-expanded .ui-btn {margin: 0; font-size: 14px;}.ui-navbar-expanded .ui-btn-inner {padding-left: 5px; padding-right: 5px;}.ui-navbar-expanded .ui-btn-icon-top .ui-btn-inner {padding: 45px 5px 15px; text-align: center;}.ui-navbar-expanded .ui-btn-icon-top .ui-icon {top: 15px;}.ui-navbar-expanded .ui-btn-icon-bottom .ui-btn-inner {padding: 15px 5px 45px; text-align: center;}.ui-navbar-expanded .ui-btn-icon-bottom .ui-icon {bottom: 15px;}.ui-navbar-expanded li .ui-btn .ui-btn-inner {min-height: 2.5em;}.ui-navbar-expanded .ui-navbar-noicons .ui-btn .ui-btn-inner {padding-top: 1.8em; padding-bottom: 1.9em;}.ui-btn {display: block; text-align: center; cursor:pointer; position: relative; margin: .5em 5px; padding: 0;}.ui-header .ui-btn, .ui-footer .ui-btn, .ui-bar .ui-btn {display: inline-block; font-size: 13px; margin: 0;}.ui-btn-inline {display: inline-block;}.ui-btn-inner {padding: .6em 25px; display: block; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; position: relative; zoom: 1;}.ui-btn input, .ui-btn button {z-index: 2;}.ui-header .ui-btn-inner, .ui-footer .ui-btn-inner, .ui-bar .ui-btn-inner {padding: .4em 8px .5em;}.ui-btn-icon-notext {width: 24px; height: 24px;}.ui-btn-icon-notext .ui-btn-inner {padding: 2px 1px 2px 3px;}.ui-btn-text {position: relative; z-index: 1;}.ui-btn-icon-notext .ui-btn-text {position: absolute; left: -9999px;}.ui-btn-icon-left .ui-btn-inner {padding-left: 33px;}.ui-header .ui-btn-icon-left .ui-btn-inner,.ui-footer .ui-btn-icon-left .ui-btn-inner,.ui-bar .ui-btn-icon-left .ui-btn-inner {padding-left: 27px;}.ui-btn-icon-right .ui-btn-inner {padding-right: 33px;}.ui-header .ui-btn-icon-right .ui-btn-inner,.ui-footer .ui-btn-icon-right .ui-btn-inner,.ui-bar .ui-btn-icon-right .ui-btn-inner {padding-right: 27px;}.ui-btn-icon-top .ui-btn-inner {padding-top: 33px;}.ui-header .ui-btn-icon-top .ui-btn-inner,.ui-footer .ui-btn-icon-top .ui-btn-inner,.ui-bar .ui-btn-icon-top .ui-btn-inner {padding-top: 27px;}.ui-btn-icon-bottom .ui-btn-inner {padding-bottom: 33px;}.ui-header .ui-btn-icon-bottom .ui-btn-inner,.ui-footer .ui-btn-icon-bottom .ui-btn-inner,.ui-bar .ui-btn-icon-bottom .ui-btn-inner {padding-bottom: 27px;}.ui-btn-icon-notext .ui-icon {display: block; z-index: 0;}.ui-btn-icon-left .ui-icon, .ui-btn-icon-right .ui-icon {position: absolute; top: 50%; margin-top: -9px;}.ui-btn-icon-top .ui-icon, .ui-btn-icon-bottom .ui-icon {position: absolute; left: 50%; margin-left: -9px;}.ui-btn-icon-left .ui-icon {left: 10px;}.ui-btn-icon-right .ui-icon {right: 10px;}.ui-btn-icon-top .ui-icon {top: 10px;}.ui-btn-icon-bottom .ui-icon {bottom: 10px;}.ui-header .ui-btn-icon-left .ui-icon,.ui-footer .ui-btn-icon-left .ui-icon,.ui-bar .ui-btn-icon-left .ui-icon {left: 4px;}.ui-header .ui-btn-icon-right .ui-icon,.ui-footer .ui-btn-icon-right .ui-icon,.ui-bar .ui-btn-icon-right .ui-icon {right: 4px;}.ui-header .ui-btn-icon-top .ui-icon,.ui-footer .ui-btn-icon-top .ui-icon,.ui-bar .ui-btn-icon-top .ui-icon {top: 4px;}.ui-header .ui-btn-icon-bottom .ui-icon,.ui-footer .ui-btn-icon-bottom .ui-icon,.ui-bar .ui-btn-icon-bottom .ui-icon {bottom: 4px;}.ui-btn-hidden {position: absolute; top: 0; left: 0; width: 100%; height: 100%; -webkit-appearance: button; opacity: .1; cursor: pointer; background: transparent; font-size: 1px; border: none; line-height: 999px;}.ui-collapsible {margin: .5em 0;}.ui-collapsible-heading {font-size: 16px; display: block; margin: 0 -8px; padding: 0; border-width: 0 0 1px 0; position: relative;}.ui-collapsible-heading a {text-align: left; margin: 0;}.ui-collapsible-heading a .ui-btn-inner {padding-left: 40px;}.ui-collapsible-heading a span.ui-btn {position: absolute; left: 6px; top: 50%; margin: -12px 0 0 0; width: 20px; height: 20px; padding: 1px 0px 1px 2px; text-indent: -9999px;}.ui-collapsible-heading a span.ui-btn .ui-btn-inner {padding: 10px 0;}.ui-collapsible-heading a span.ui-btn .ui-icon {left: 0; margin-top: -10px;}.ui-collapsible-heading-status {position:fixed; left:-9999px;}.ui-collapsible-content {display: block; margin: 0 -8px; padding: 10px 16px; border-top: none; background-image: none; font-weight: normal;}.ui-collapsible-content-collapsed {display: none;}.ui-collapsible-set {margin: .5em 0;}.ui-collapsible-set .ui-collapsible {margin: -1px 0 0;}.ui-controlgroup, fieldset.ui-controlgroup {padding: 0; margin: .5em 0 1em;}.ui-bar .ui-controlgroup {margin: 0 .3em;}.ui-controlgroup-label {font-size: 16px; line-height: 1.4; font-weight: normal; margin: 0 0 .3em;}.ui-controlgroup-controls {display: block; width: 100%;}.ui-controlgroup li {list-style: none;}.ui-controlgroup-vertical .ui-btn,.ui-controlgroup-vertical .ui-checkbox, .ui-controlgroup-vertical .ui-radio {margin: 0; border-bottom-width: 0;}.ui-controlgroup-controls label.ui-select {position: absolute; left: -9999px;}.ui-controlgroup-vertical .ui-controlgroup-last {border-bottom-width: 1px;}.ui-controlgroup-horizontal {padding: 0;}.ui-controlgroup-horizontal .ui-btn, .ui-controlgroup-horizontal .ui-select {display: inline-block; margin: 0 -5px 0 0;}.ui-controlgroup-horizontal .ui-checkbox, .ui-controlgroup-horizontal .ui-radio {float: left; margin: 0 -1px 0 0;}.ui-controlgroup-horizontal .ui-checkbox .ui-btn, .ui-controlgroup-horizontal .ui-radio .ui-btn,.ui-controlgroup-horizontal .ui-checkbox:last-child, .ui-controlgroup-horizontal .ui-radio:last-child {margin-right: 0;}.ui-controlgroup-horizontal .ui-controlgroup-last {margin-right: 0;}.ui-controlgroup .ui-checkbox label, .ui-controlgroup .ui-radio label {font-size: 16px;}@media all and (min-width: 450px){.ui-field-contain .ui-controlgroup-label {vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0;} .ui-field-contain .ui-controlgroup-controls {width: 60%; display: inline-block;} .ui-field-contain .ui-controlgroup .ui-select {width: 100%;} .ui-field-contain .ui-controlgroup-horizontal .ui-select {width: auto;}} .ui-dialog {min-height: 480px;}.ui-dialog .ui-header, .ui-dialog .ui-content, .ui-dialog .ui-footer {max-width: 500px; margin: 10% auto 0 auto; padding: 15px; width: 85%; position: relative;}.ui-dialog .ui-header {padding: 0 15px;}.ui-dialog .ui-header, .ui-dialog .ui-footer {z-index: 10;}.ui-dialog .ui-content, .ui-dialog .ui-footer {margin-top: -15px;}.ui-checkbox, .ui-radio {position:relative; margin: .2em 0 .5em; z-index: 1;}.ui-checkbox .ui-btn, .ui-radio .ui-btn {margin: 0; text-align: left; z-index: 2;}.ui-checkbox .ui-btn-inner, .ui-radio .ui-btn-inner {white-space: normal;}.ui-checkbox .ui-btn-icon-left .ui-btn-inner,.ui-radio .ui-btn-icon-left .ui-btn-inner {padding-left: 45px;}.ui-checkbox .ui-btn-icon-right .ui-btn-inner, .ui-radio .ui-btn-icon-right .ui-btn-inner {padding-right: 45px;}.ui-checkbox .ui-icon, .ui-radio .ui-icon {top: 1.1em;}.ui-checkbox .ui-btn-icon-left .ui-icon, .ui-radio .ui-btn-icon-left .ui-icon {left: 15px;}.ui-checkbox .ui-btn-icon-right .ui-icon, .ui-radio .ui-btn-icon-right .ui-icon {right: 15px;}.ui-checkbox input,.ui-radio input {position:absolute; left:20px; top:50%; width: 10px; height: 10px; margin:-5px 0 0 0; outline: 0 !important; z-index: 1;}.ui-field-contain {padding: 1.5em 0; margin: 0; border-bottom-width: 1px; overflow: visible;}.ui-field-contain:first-child {border-top-width: 0;}@media all and (min-width: 450px){.ui-field-contain {border-width: 0; padding: 0; margin: 1em 0;}} .ui-select {display: block; position: relative;}.ui-select select {position: absolute; left: -9999px; top: -9999px;}.ui-select .ui-btn {overflow: hidden;}.ui-select .ui-btn select {cursor: pointer; -webkit-appearance: button; left: 0; top:0; width: 100%; min-height: 1.5em; min-height: 100%; height: 3em; max-height: 100%; opacity: 0; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); z-index: 2;}@-moz-document url-prefix() {.ui-select .ui-btn select {opacity: 0.0001;}}.ui-select .ui-btn select.ui-select-nativeonly {opacity: 1; text-indent: 0;}.ui-select .ui-btn-icon-right .ui-btn-inner {padding-right: 45px;} .ui-select .ui-btn-icon-right .ui-icon {right: 15px;}label.ui-select {font-size: 16px; line-height: 1.4; font-weight: normal; margin: 0 0 .3em; display: block;}.ui-select .ui-btn-text, .ui-selectmenu .ui-btn-text {display: block; min-height: 1em; overflow: hidden;}.ui-select .ui-btn-text {text-overflow: ellipsis;}.ui-selectmenu {position: absolute; padding: 0; z-index: 100 !important; width: 80%; max-width: 350px; padding: 6px;}.ui-selectmenu .ui-listview {margin: 0;}.ui-selectmenu .ui-btn.ui-li-divider {cursor: default;}.ui-selectmenu-hidden {top: -9999px; left: -9999px;}.ui-selectmenu-screen {position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 99;}.ui-screen-hidden, .ui-selectmenu-list .ui-li .ui-icon {display: none;}.ui-selectmenu-list .ui-li .ui-icon {display: block;}.ui-li.ui-selectmenu-placeholder {display: none;}.ui-selectmenu .ui-header .ui-title {margin: 0.6em 46px 0.8em;}@media all and (min-width: 450px){.ui-field-contain label.ui-select {vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0;} .ui-field-contain .ui-select {width: 60%; display: inline-block;}} .ui-selectmenu .ui-header h1:after {content: '.'; visibility: hidden;}label.ui-input-text {font-size: 16px; line-height: 1.4; display: block; font-weight: normal; margin: 0 0 .3em;}input.ui-input-text, textarea.ui-input-text {background-image: none; padding: .4em 1.5%; line-height: 1.4; font-size: 16px; display: block; width: 97%;}input.ui-input-text {-webkit-appearance: none;}textarea.ui-input-text {height: 50px; -webkit-transition: height 200ms linear; -moz-transition: height 200ms linear; -o-transition: height 200ms linear; transition: height 200ms linear;}.ui-input-search {padding: 0 30px; background-image: none; position: relative;}.ui-icon-searchfield:after {position: absolute; left: 7px; top: 50%; margin-top: -9px; content: ""; width: 18px; height: 18px; opacity: .5;}.ui-input-search input.ui-input-text {border: none; width: 98%; padding: .4em 0; margin: 0; display: block; background: transparent none; outline: 0 !important;}.ui-input-search .ui-input-clear {position: absolute; right: 0; top: 50%; margin-top: -13px;}.ui-input-search .ui-input-clear-hidden {display: none;}@media all and (min-width: 450px){.ui-field-contain label.ui-input-text {vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0} .ui-field-contain input.ui-input-text, .ui-field-contain textarea.ui-input-text, .ui-field-contain .ui-input-search {width: 60%; display: inline-block;} .ui-field-contain .ui-input-search {width: 50%;} .ui-hide-label input.ui-input-text, .ui-hide-label textarea.ui-input-text, .ui-hide-label .ui-input-search {padding: .4em 1.5%; width: 97%;} .ui-input-search input.ui-input-text {width: 98%;}}.ui-listview {margin: 0; counter-reset: listnumbering;}.ui-content .ui-listview {margin: -15px;}.ui-content .ui-listview-inset {margin: 1em 0;}.ui-listview, .ui-li {list-style:none; padding:0;}.ui-li, .ui-li.ui-field-contain {display: block; margin:0; position: relative; overflow: visible; text-align: left; border-width: 0; border-top-width: 1px;}.ui-li .ui-btn-text a.ui-link-inherit {text-overflow: ellipsis; overflow: hidden; white-space: nowrap;}.ui-li-divider, .ui-li-static {padding: .5em 15px; font-size: 14px; font-weight: bold;}.ui-li-divider {counter-reset: listnumbering;}ol.ui-listview .ui-link-inherit:before, ol.ui-listview .ui-li-static:before, .ui-li-dec {font-size: .8em; display: inline-block; padding-right: .3em; font-weight: normal;counter-increment: listnumbering; content: counter(listnumbering) ". ";}ol.ui-listview .ui-li-jsnumbering:before {content: "" !important;} .ui-listview-inset .ui-li {border-right-width: 1px; border-left-width: 1px;}.ui-li:last-child, .ui-li.ui-field-contain:last-child {border-bottom-width: 1px;}.ui-li>.ui-btn-inner {display: block; position: relative; padding: 0;}.ui-li .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li {padding: .7em 15px .7em 15px; display: block;}.ui-li-has-thumb .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-thumb {min-height: 60px; padding-left: 100px;}.ui-li-has-icon .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-icon {min-height: 20px; padding-left: 40px;}.ui-li-has-count .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-count {padding-right: 45px;}.ui-li-has-arrow .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-arrow {padding-right: 30px;}.ui-li-has-arrow.ui-li-has-count .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-arrow.ui-li-has-count {padding-right: 75px;}.ui-li-has-count .ui-btn-text {padding-right: 15px;}.ui-li-heading {font-size: 16px; font-weight: bold; display: block; margin: .6em 0; text-overflow: ellipsis; overflow: hidden; white-space: nowrap;}.ui-li-desc {font-size: 12px; font-weight: normal; display: block; margin: -.5em 0 .6em; text-overflow: ellipsis; overflow: hidden; white-space: nowrap;}.ui-li-thumb, .ui-li-icon {position: absolute; left: 1px; top: 0; max-height: 80px; max-width: 80px;}.ui-li-icon {max-height: 40px; max-width: 40px; left: 10px; top: .9em;}.ui-li-thumb, .ui-li-icon, .ui-li-content {float: left; margin-right: 10px;}.ui-li-aside {float: right; width: 50%; text-align: right; margin: .3em 0;}@media all and (min-width: 480px){.ui-li-aside {width: 45%;}} .ui-li-divider {cursor: default;}.ui-li-has-alt .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-alt {padding-right: 95px;}.ui-li-has-count .ui-li-count {position: absolute; font-size: 11px; font-weight: bold; padding: .2em .5em; top: 50%; margin-top: -.9em; right: 38px;}.ui-li-divider .ui-li-count, .ui-li-static .ui-li-count {right: 10px;}.ui-li-has-alt .ui-li-count {right: 55px;}.ui-li-link-alt {position: absolute; width: 40px; height: 100%; border-width: 0; border-left-width: 1px; top: 0; right: 0; margin: 0; padding: 0; z-index: 2;}.ui-li-link-alt .ui-btn {overflow: hidden; position: absolute; right: 8px; top: 50%; margin: -11px 0 0 0; border-bottom-width: 1px; z-index: -1;}.ui-li-link-alt .ui-btn-inner {padding: 0; height: 100%; position: absolute; width: 100%; top: 0; left: 0;}.ui-li-link-alt .ui-btn .ui-icon {right: 50%; margin-right: -9px;}.ui-listview * .ui-btn-inner > .ui-btn > .ui-btn-inner {border-top: 0px;}.ui-listview-filter {border-width: 0; overflow: hidden; margin: -15px -15px 15px -15px}.ui-listview-filter .ui-input-search {margin: 5px; width: auto; display: block;}.ui-listview-filter-inset {margin: -15px -5px -15px -5px; background: transparent;}.ui-li.ui-screen-hidden{display:none;}@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {.ui-li .ui-btn-text {overflow: visible;}}label.ui-slider {font-size: 16px; line-height: 1.4; font-weight: normal; margin: 0 0 .3em; display: block;}input.ui-slider-input,.ui-field-contain input.ui-slider-input {display: inline-block; width: 50px;}select.ui-slider-switch {display: none;}div.ui-slider {position: relative; display: inline-block; overflow: visible; height: 15px; padding: 0; margin: 0 2% 0 20px; top: 4px; width: 66%;}div.ui-slider-switch {width: 99.8%;}a.ui-slider-handle {position: absolute; z-index: 10; top: 50%; width: 28px; height: 28px; margin-top: -15px; margin-left: -15px;}a.ui-slider-handle .ui-btn-inner {padding-left: 0; padding-right: 0;}@media all and (min-width: 480px){.ui-field-contain label.ui-slider {vertical-align: top; display: inline-block; width: 20%; margin: 0 2% 0 0;} .ui-field-contain div.ui-slider {width: 43%;}} div.ui-slider-switch {height: 32px; overflow: hidden; margin-left: 0;}div.ui-slider-inneroffset {margin-left: 50%; position: absolute; top: 1px; height: 100%; width: 50%;}a.ui-slider-handle-snapping {-webkit-transition: left 100ms linear;}div.ui-slider-labelbg {position: absolute; top:0; margin: 0; border-width: 0;}div.ui-slider-switch div.ui-slider-labelbg-a {width: 60%; height: 100%; left: 0;}div.ui-slider-switch div.ui-slider-labelbg-b {width: 60%; height: 100%; right: 0;}.ui-slider-switch-a div.ui-slider-labelbg-a, .ui-slider-switch-b div.ui-slider-labelbg-b {z-index: -1;}.ui-slider-switch-a div.ui-slider-labelbg-b, .ui-slider-switch-b div.ui-slider-labelbg-a {z-index: 0;}div.ui-slider-switch a.ui-slider-handle {z-index: 20; width: 101%; height: 32px; margin-top: -18px; margin-left: -101%;}span.ui-slider-label {width: 100%; position: absolute;height: 32px; font-size: 16px; text-align: center; line-height: 2; background: none; border-color: transparent;}span.ui-slider-label-a {left: -100%; margin-right: -1px}span.ui-slider-label-b {right: -100%; margin-left: -1px}
View
1 compiled/min/jquery-mobile/jquery.mobile-1.0rc2-oc1.js
@@ -0,0 +1 @@
+(function(a,b){if(a.cleanData){var c=a.cleanData;a.cleanData=function(b){for(var d=0,e;(e=b[d])!=null;d++)a(e).triggerHandler("remove");c(b)}}else{var d=a.fn.remove;a.fn.remove=function(b,c){return this.each(function(){return c||(!b||a.filter(b,[this]).length)&&a("*",this).add([this]).each(function(){a(this).triggerHandler("remove")}),d.call(a(this),b,c)})}}a.widget=function(b,c,d){var e=b.split(".")[0],f;b=b.split(".")[1],f=e+"-"+b,d||(d=c,c=a.Widget),a.expr[":"][f]=function(c){return!!a.data(c,b)},a[e]=a[e]||{},a[e][b]=function(a,b){arguments.length&&this._createWidget(a,b)};var g=new c;g.options=a.extend(!0,{},g.options),a[e][b].prototype=a.extend(!0,g,{namespace:e,widgetName:b,widgetEventPrefix:a[e][b].prototype.widgetEventPrefix||b,widgetBaseClass:f},d),a.widget.bridge(b,a[e][b])},a.widget.bridge=function(c,d){a.fn[c]=function(e){var f=typeof e=="string",g=Array.prototype.slice.call(arguments,1),h=this;return e=!f&&g.length?a.extend.apply(null,[!0,e].concat(g)):e,f&&e.charAt(0)==="_"?h:(f?this.each(function(){var d=a.data(this,c);if(!d)throw"cannot call methods on "+c+" prior to initialization; "+"attempted to call method '"+e+"'";if(!a.isFunction(d[e]))throw"no such method '"+e+"' for "+c+" widget instance";var f=d[e].apply(d,g);if(f!==d&&f!==b)return h=f,!1}):this.each(function(){var b=a.data(this,c);b?b.option(e||{})._init():a.data(this,c,new d(e,this))}),h)}},a.Widget=function(a,b){arguments.length&&this._createWidget(a,b)},a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function(b,c){a.data(c,this.widgetName,this),this.element=a(c),this.options=a.extend(!0,{},this.options,this._getCreateOptions(),b);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()}),this._create(),this._trigger("create"),this._init()},_getCreateOptions:function(){var b={};return a.metadata&&(b=a.metadata.get(element)[this.widgetName]),b},_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(c,d){var e=c;if(arguments.length===0)return a.extend({},this.options);if(typeof c=="string"){if(d===b)return this.options[c];e={},e[c]=d}return this._setOptions(e),this},_setOptions:function(b){var c=this;return a.each(b,function(a,b){c._setOption(a,b)}),this},_setOption:function(a,b){return this.options[a]=b,a==="disabled"&&this.widget()[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled"+" "+"ui-state-disabled").attr("aria-disabled",b),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_trigger:function(b,c,d){var e=this.options[b];c=a.Event(c),c.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase(),d=d||{};if(c.originalEvent)for(var f=a.event.props.length,g;f;)g=a.event.props[--f],c[g]=c.originalEvent[g];return this.element.trigger(c,d),!(a.isFunction(e)&&e.call(this.element[0],c,d)===!1||c.isDefaultPrevented())}}})(jQuery),function(a,b){a.widget("mobile.widget",{_createWidget:function(){a.Widget.prototype._createWidget.apply(this,arguments),this._trigger("init")},_getCreateOptions:function(){var c=this.element,d={};return a.each(this.options,function(a){var e=c.jqmData(a.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()}));e!==b&&(d[a]=e)}),d},enhanceWithin:function(b){var c=a(b).data("page"),d=c&&c.keepNativeSelector();a(this.options.initSelector,b).not(d||"")[this.widgetName]()}})}(jQuery),function(a,b){var c=a(window),d=a("html");a.mobile.media=function(){var b={},c=a("<div id='jquery-mediatest'>"),e=a("<body>").append(c);return function(a){if(!(a in b)){var f=document.createElement("style"),g="@media "+a+" { #jquery-mediatest { position:absolute; } }";f.type="text/css",f.styleSheet?f.styleSheet.cssText=g:f.appendChild(document.createTextNode(g)),d.prepend(e).prepend(f),b[a]=c.css("position")==="absolute",e.add(f).remove()}return b[a]}}()}(jQuery),function(a,b){function h(a){var c=a.charAt(0).toUpperCase()+a.substr(1),f=(a+" "+e.join(c+" ")+c).split(" ");for(var g in f)if(d[f[g]]!==b)return!0}function i(){var b=location.protocol+"//"+location.host+location.pathname+"ui-dir/",d=a("head base"),e=null,f="",g,h;return d.length?f=d.attr("href"):d=e=a("<base>",{href:b}).appendTo("head"),g=a("<a href='testurl' />").prependTo(c),h=g[0].href,d[0].href=f||location.pathname,e&&e.remove(),h.indexOf(b)===0}var c=a("<body>").prependTo("html"),d=c[0].style,e=["Webkit","Moz","O"],f="palmGetResource"in window,g=window.blackberry;a.mobile.browser={},a.mobile.browser.ie=function(){var a=3,b=document.createElement("div"),c=b.all||[];while(b.innerHTML="<!--[if gt IE "+ ++a+"]><br><![endif]-->",c[0]);return a>4?a:!a}(),a.extend(a.support,{orientation:"orientation"in window&&"onorientationchange"in window,touch:"ontouchend"in document,cssTransitions:"WebKitTransitionEvent"in window,pushState:"pushState"in history&&"replaceState"in history,mediaquery:a.mobile.media("only all"),cssPseudoElement:!!h("content"),touchOverflow:!!h("overflowScrolling"),boxShadow:!!h("boxShadow")&&!g,scrollTop:("pageXOffset"in window||"scrollTop"in document.documentElement||"scrollTop"in c[0])&&!f,dynamicBaseTag:i()}),c.remove();var j=function(){var a=window.navigator.userAgent;return a.indexOf("Nokia")>-1&&(a.indexOf("Symbian/3")>-1||a.indexOf("Series60/5")>-1)&&a.indexOf("AppleWebKit")>-1&&a.match(/(BrowserNG|NokiaBrowser)\/7\.[0-3]/)}();a.mobile.ajaxBlacklist=window.blackberry&&!window.WebKitPoint||window.operamini&&Object.prototype.toString.call(window.operamini)==="[object OperaMini]"||j,j&&a(function(){a("head link[rel='stylesheet']").attr("rel","alternate stylesheet").attr("rel","stylesheet")}),a.support.boxShadow||a("html").addClass("ui-mobile-nosupport-boxshadow")}(jQuery),function(a,b,c,d){function u(a){while(a&&typeof a.originalEvent!="undefined")a=a.originalEvent;return a}function v(b,c){var e=b.type,f,g,i,j,k,l,m,n;b=a.Event(b),b.type=c,f=b.originalEvent,g=a.event.props;if(f)for(m=g.length,j;m;)j=g[--m],b[j]=f[j];e.search(/mouse(down|up)|click/)>-1&&!b.which&&(b.which=1);if(e.search(/^touch/)!==-1){i=u(f),e=i.touches,k=i.changedTouches,l=e&&e.length?e[0]:k&&k.length?k[0]:d;if(l)for(n=0,len=h.length;n<len;n++)j=h[n],b[j]=l[j]}return b}function w(b){var c={},d,f;while(b){d=a.data(b,e);for(f in d)d[f]&&(c[f]=c.hasVirtualBinding=!0);b=b.parentNode}return c}function x(b,c){var d;while(b){d=a.data(b,e);if(d&&(!c||d[c]))return b;b=b.parentNode}return null}function y(){p=!1}function z(){p=!0}function A(){t=0,n.length=0,o=!1,z()}function B(){y()}function C(){D(),j=setTimeout(function(){j=0,A()},a.vmouse.resetTimerDuration)}function D(){j&&(clearTimeout(j),j=0)}function E(b,c,d){var e;if(d&&d[b]||!d&&x(c.target,b))e=v(c,b),a(c.target).trigger(e);return e}function F(b){var c=a.data(b.target,f);if(!o&&(!t||t!==c)){var d=E("v"+b.type,b);d&&(d.isDefaultPrevented()&&b.preventDefault(),d.isPropagationStopped()&&b.stopPropagation(),d.isImmediatePropagationStopped()&&b.stopImmediatePropagation())}}function G(b){var c=u(b).touches,d,e;if(c&&c.length===1){d=b.target,e=w(d);if(e.hasVirtualBinding){t=s++,a.data(d,f,t),D(),B(),m=!1;var g=u(b).touches[0];k=g.pageX,l=g.pageY,E("vmouseover",b,e),E("vmousedown",b,e)}}}function H(a){if(p)return;m||E("vmousecancel",a,w(a.target)),m=!0,C()}function I(b){if(p)return;var c=u(b).touches[0],d=m,e=a.vmouse.moveDistanceThreshold;m=m||Math.abs(c.pageX-k)>e||Math.abs(c.pageY-l)>e,flags=w(b.target),m&&!d&&E("vmousecancel",b,flags),E("vmousemove",b,flags),C()}function J(a){if(p)return;z();var b=w(a.target),c;E("vmouseup",a,b);if(!m){var d=E("vclick",a,b);d&&d.isDefaultPrevented()&&(c=u(a).changedTouches[0],n.push({touchID:t,x:c.clientX,y:c.clientY}),o=!0)}E("vmouseout",a,b),m=!1,C()}function K(b){var c=a.data(b,e),d;if(c)for(d in c)if(c[d])return!0;return!1}function L(){}function M(b){var c=b.substr(1);return{setup:function(d,f){K(this)||a.data(this,e,{});var g=a.data(this,e);g[b]=!0,i[b]=(i[b]||0)+1,i[b]===1&&r.bind(c,F),a(this).bind(c,L),q&&(i.touchstart=(i.touchstart||0)+1,i.touchstart===1&&r.bind("touchstart",G).bind("touchend",J).bind("touchmove",I).bind("scroll",H))},teardown:function(d,f){--i[b],i[b]||r.unbind(c,F),q&&(--i.touchstart,i.touchstart||r.unbind("touchstart",G).unbind("touchmove",I).unbind("touchend",J).unbind("scroll",H));var g=a(this),h=a.data(this,e);h&&(h[b]=!1),g.unbind(c,L),K(this)||g.removeData(e)}}}var e="virtualMouseBindings",f="virtualTouchID",g="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),h="clientX clientY pageX pageY screenX screenY".split(" "),i={},j=0,k=0,l=0,m=!1,n=[],o=!1,p=!1,q="addEventListener"in c,r=a(c),s=1,t=0;a.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500};for(var N=0;N<g.length;N++)a.event.special[g[N]]=M(g[N]);q&&c.addEventListener("click",function(b){var c=n.length,d=b.target,e,g,h,i,j,k;if(c){e=b.clientX,g=b.clientY,threshold=a.vmouse.clickDistanceThreshold,h=d;while(h){for(i=0;i<c;i++){j=n[i],k=0;if(h===d&&Math.abs(j.x-e)<threshold&&Math.abs(j.y-g)<threshold||a.data(h,f)===j.touchID){b.preventDefault(),b.stopPropagation();return}}h=h.parentNode}}},!0)}(jQuery,window,document),function(a,b,c){function i(b,c,d){var e=d.type;d.type=c,a.event.handle.call(b,d),d.type=e}a.each("touchstart touchmove touchend orientationchange throttledresize tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(b,c){a.fn[c]=function(a){return a?this.bind(c,a):this.trigger(c)},a.attrFn[c]=!0});var d=a.support.touch,e="touchmove scroll",f=d?"touchstart":"mousedown",g=d?"touchend":"mouseup",h=d?"touchmove":"mousemove";a.event.special.scrollstart={enabled:!0,setup:function(){function g(a,c){d=c,i(b,d?"scrollstart":"scrollstop",a)}var b=this,c=a(b),d,f;c.bind(e,function(b){if(!a.event.special.scrollstart.enabled)return;d||g(b,!0),clearTimeout(f),f=setTimeout(function(){g(b,!1)},50)})}},a.event.special.tap={setup:function(){var b=this,c=a(b);c.bind("vmousedown",function(d){function h(){clearTimeout(g)}function j(){h(),c.unbind("vclick",k).unbind("vmouseup",h).unbind("vmousecancel",j)}function k(a){j(),e==a.target&&i(b,"tap",a)}if(d.which&&d.which!==1)return!1;var e=d.target,f=d.originalEvent,g;c.bind("vmousecancel",j).bind("vmouseup",h).bind("vclick",k),g=setTimeout(function(){i(b,"taphold",a.Event("taphold"))},750)})}},a.event.special.swipe={scrollSupressionThreshold:10,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:75,setup:function(){var b=this,d=a(b);d.bind(f,function(b){function j(b){if(!f)return;var c=b.originalEvent.touches?b.originalEvent.touches[0]:b;i={time:(new Date).getTime(),coords:[c.pageX,c.pageY]},Math.abs(f.coords[0]-i.coords[0])>a.event.special.swipe.scrollSupressionThreshold&&b.preventDefault()}var e=b.originalEvent.touches?b.originalEvent.touches[0]:b,f={time:(new Date).getTime(),coords:[e.pageX,e.pageY],origin:a(b.target)},i;d.bind(h,j).one(g,function(b){d.unbind(h,j),f&&i&&i.time-f.time<a.event.special.swipe.durationThreshold&&Math.abs(f.coords[0]-i.coords[0])>a.event.special.swipe.horizontalDistanceThreshold&&Math.abs(f.coords[1]-i.coords[1])<a.event.special.swipe.verticalDistanceThreshold&&f.origin.trigger("swipe").trigger(f.coords[0]>i.coords[0]?"swipeleft":"swiperight"),f=i=c})})}},function(a,b){function g(){var a=e();a!==f&&(f=a,c.trigger("orientationchange"))}var c=a(b),d,e,f;a.event.special.orientationchange=d={setup:function(){if(a.support.orientation&&a.mobile.orientationChangeEnabled)return!1;f=e(),c.bind("throttledresize",g)},teardown:function(){if(a.support.orientation&&a.mobile.orientationChangeEnabled)return!1;c.unbind("throttledresize",g)},add:function(a){var b=a.handler;a.handler=function(a){return a.orientation=e(),b.apply(this,arguments)}}},a.event.special.orientationchange.orientation=e=function(){var c=!0,d=document.documentElement;return a.support.orientation?c=b.orientation%180==0:c=d&&d.clientWidth/d.clientHeight<1.1,c?"portrait":"landscape"}}(jQuery,b),function(){a.event.special.throttledresize={setup:function(){a(this).bind("resize",c)},teardown:function(){a(this).unbind("resize",c)}};var b=250,c=function(){f=(new Date).getTime(),g=f-d,g<b?(e&&clearTimeout(e),e=setTimeout(c,b-g)):(d=f,a(this).trigger("throttledresize"))},d=0,e,f,g}(),a.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe",swiperight:"swipe"},function(b,c){a.event.special[b]={setup:function(){a(this).bind(c,a.noop)}}})}(jQuery,this),function(a,b,c){function j(a){return a=a||location.href,"#"+a.replace(/^[^#]*#?(.*)$/,"$1")}"$:nomunge";var d="hashchange",e=document,f,g=a.event.special,h=e.documentMode,i="on"+d in b&&(h===c||h>7);a.fn[d]=function(a){return a?this.bind(d,a):this.trigger(d)},a.fn[d].delay=50,g[d]=a.extend(g[d],{setup:function(){if(i)return!1;a(f.start)},teardown:function(){if(i)return!1;a(f.stop)}}),f=function(){function n(){var c=j(),e=m(h);c!==h?(l(h=c,e),a(b).trigger(d)):e!==h&&(location.href=location.href.replace(/#.*/,"")+e),g=setTimeout(n,a.fn[d].delay)}var f={},g,h=j(),k=function(a){return a},l=k,m=k;return f.start=function(){g||n()},f.stop=function(){g&&clearTimeout(g),g=c},a.browser.msie&&!i&&function(){var b,c;f.start=function(){b||(c=a.fn[d].src,c=c&&c+j(),b=a('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){c||l(j()),n()}).attr("src",c||"javascript:0").insertAfter("body")[0].contentWindow,e.onpropertychange=function(){try{event.propertyName==="title"&&(b.document.title=e.title)}catch(a){}})},f.stop=k,m=function(){return j(b.location.href)},l=function(c,f){var g=b.document,h=a.fn[d].domain;c!==f&&(g.title=e.title,g.open(),h&&g.write('<script>document.domain="'+h+'"</script>'),g.close(),b.location.hash=c)}}(),f}()}(jQuery,this),function(a,b){a.widget("mobile.page",a.mobile.widget,{options:{theme:"c",domCache:!1,keepNativeDefault:":jqmData(role='none'), :jqmData(role='nojs')"},_create:function(){this._trigger("beforecreate"),this.element.attr("tabindex","0").addClass("ui-page ui-body-"+this.options.theme)},keepNativeSelector:function(){var b=this.options,c=b.keepNative&&a.trim(b.keepNative);return c&&b.keepNative!==b.keepNativeDefault?[b.keepNative,b.keepNativeDefault].join(", "):b.keepNativeDefault}})}(jQuery),function(a,b,c){a.extend(a.mobile,{ns:"",subPageUrlKey:"ui-page",activePageClass:"ui-page-active",activeBtnClass:"ui-btn-active",ajaxEnabled:!0,hashListeningEnabled:!0,defaultPageTransition:"slide",minScrollBack:250,defaultDialogTransition:"pop",loadingMessage:"loading",pageLoadErrorMessage:"Error Loading Page",autoInitializePage:!0,pushStateEnabled:!0,orientationChangeEnabled:!0,gradeA:function(){return a.support.mediaquery||a.mobile.browser.ie&&a.mobile.browser.ie>=7},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},silentScroll:function(c){a.type(c)!=="number"&&(c=a.mobile.defaultHomeScroll),a.event.special.scrollstart.enabled=!1,setTimeout(function(){b.scrollTo(0,c),a(document).trigger("silentscroll",{x:0,y:c})},20),setTimeout(function(){a.event.special.scrollstart.enabled=!0},150)},nsNormalize:function(b){if(!b)return;return a.camelCase(a.mobile.ns+b)},getInheritedTheme:function(a,b){var c=a.closest("[class*='ui-bar-'],[class*='ui-body-']"),d=c.length&&/ui-(bar|body)-([a-z])\b/.exec(c.attr("class"))[2]||""||"";return d||b||"a"}}),a.fn.jqmData=function(b,c){var d;return typeof b!="undefined"&&(d=this.data(b?a.mobile.nsNormalize(b):b,c)),d},a.jqmData=function(b,c,d){var e;return typeof c!="undefined"&&(e=a.data(b,c?a.mobile.nsNormalize(c):c,d)),e},a.fn.jqmRemoveData=function(b){return this.removeData(a.mobile.nsNormalize(b))},a.jqmRemoveData=function(b,c){return a.removeData(b,a.mobile.nsNormalize(c))},a.fn.removeWithDependents=function(){a.removeWithDependents(this)},a.removeWithDependents=function(b){var c=a(b);(c.jqmData("dependents")||a()).remove(),c.remove()},a.fn.addDependents=function(b){a.addDependents(a(this),b)},a.addDependents=function(b,c){var d=a(b).jqmData("dependents")||a();a(b).jqmData("dependents",a.merge(d,c))},a.fn.getEncodedText=function(){return a("<div/>").text(a(this).text()).html()};var d=a.find;a.find=function(b,c,e,f){return b=b.replace(/:jqmData\(([^)]*)\)/g,"[data-"+(a.mobile.ns||"")+"$1]"),d.call(this,b,c,e,f)},a.extend(a.find,d),a.find.matches=function(b,c){return a.find(b,null,null,c)},a.find.matchesSelector=function(b,c){return a.find(c,null,null,[b]).length>0}}(jQuery,this),function(a,b){function r(a){var b=a.find(".ui-title:eq(0)");b.length?b.focus():a.focus()}function s(b){!!g&&(!g.closest(".ui-page-active").length||b)&&g.removeClass(a.mobile.activeBtnClass),g=null}function t(){k=!1,j.length>0&&a.mobile.changePage.apply(null,j.pop())}function z(b,c,d,e){var f=a.mobile.urlHistory.getActive(),g=a.support.touchOverflow&&a.mobile.touchOverflowEnabled,h=f.lastScroll||(g?0:a.mobile.defaultHomeScroll),i=A();window.scrollTo(0,a.mobile.defaultHomeScroll),c&&c.data("page")._trigger("beforehide",null,{nextPage:b}),g||b.height(i+h),b.data("page")._trigger("beforeshow",null,{prevPage:c||a("")}),a.mobile.hidePageLoadingMsg(),g&&h&&(b.addClass("ui-mobile-pre-transition"),r(b),b.is(".ui-native-fixed")?b.find(".ui-content").scrollTop(h):b.scrollTop(h));var j=a.mobile.transitionHandlers[d||"none"]||a.mobile.defaultTransitionHandler,k=j(d,e,b,c);return k.done(function(){g||(b.height(""),r(b)),g||a.mobile.silentScroll(h),c&&(g||c.height(""),c.data("page")._trigger("hide",null,{nextPage:b})),b.data("page")._trigger("show",null,{prevPage:c||a("")})}),k}function A(){var b=jQuery.event.special.orientationchange.orientation(),c=b==="portrait",d=c?480:320,e=c?screen.availHeight:screen.availWidth,f=Math.max(d,a(window).height()),g=Math.min(e,f);return g}function B(){if(a.support.touchOverflow&&a.mobile.touchOverflowEnabled)return;a("."+a.mobile.activePageClass).css("min-height",A())}function C(b,c){c&&b.attr("data-"+a.mobile.ns+"role",c),b.page()}function D(a){while(a){if(a.nodeName.toLowerCase()=="a")break;a=a.parentNode}return a}function E(b){var c=a(b).closest(".ui-page").jqmData("url"),d=o.hrefNoHash;if(!c||!f.isPath(c))c=d;return f.makeUrlAbsolute(c,d)}var c=a(window),d=a("html"),e=a("head"),f={urlParseRE:/^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/,parseUrl:function(b){if(a.type(b)==="object")return b;var c=f.urlParseRE.exec(b||"")||[];return{href:c[0]||"",hrefNoHash:c[1]||"",hrefNoSearch:c[2]||"",domain:c[3]||"",protocol:c[4]||"",doubleSlash:c[5]||"",authority:c[6]||"",username:c[8]||"",password:c[9]||"",host:c[10]||"",hostname:c[11]||"",port:c[12]||"",pathname:c[13]||"",directory:c[14]||"",filename:c[15]||"",search:c[16]||"",hash:c[17]||""}},makePathAbsolute:function(a,b){if(a&&a.charAt(0)==="/")return a;a=a||"",b=b?b.replace(/^\/|(\/[^\/]*|[^\/]+)$/g,""):"";var c=b?b.split("/"):[],d=a.split("/");for(var e=0;e<d.length;e++){var f=d[e];switch(f){case".":break;case"..":c.length&&c.pop();break;default:c.push(f)}}return"/"+c.join("/")},isSameDomain:function(a,b){return f.parseUrl(a).domain===f.parseUrl(b).domain},isRelativeUrl:function(a){return f.parseUrl(a).protocol===""},isAbsoluteUrl:function(a){return f.parseUrl(a).protocol!==""},makeUrlAbsolute:function(a,b){if(!f.isRelativeUrl(a))return a;var c=f.parseUrl(a),d=f.parseUrl(b),e=c.protocol||d.protocol,g=c.protocol?c.doubleSlash:c.doubleSlash||d.doubleSlash,h=c.authority||d.authority,i=c.pathname!=="",j=f.makePathAbsolute(c.pathname||d.filename,d.pathname),k=c.search||!i&&d.search||"",l=c.hash;return e+g+h+j+k+l},addSearchParams:function(b,c){var d=f.parseUrl(b),e=typeof c=="object"?a.param(c):c,g=d.search||"?";return d.hrefNoSearch+g+(g.charAt(g.length-1)!=="?"?"&":"")+e+(d.hash||"")},convertUrlToDataUrl:function(a){var b=f.parseUrl(a);return f.isEmbeddedPage(b)?b.hash.split(l)[0].replace(/^#/,""):f.isSameDomain(b,o)?b.hrefNoHash.replace(o.domain,""):a},get:function(a){return a===b&&(a=location.hash),f.stripHash(a).replace(/[^\/]*\.[^\/*]+$/,"")},getFilePath:function(b){var c="&"+a.mobile.subPageUrlKey;return b&&b.split(c)[0].split(l)[0]},set:function(a){location.hash=a},isPath:function(a){return/\//.test(a)},clean:function(a){return a.replace(o.domain,"")},stripHash:function(a){return a.replace(/^#/,"")},cleanHash:function(a){return f.stripHash(a.replace(/\?.*$/,"").replace(l,""))},isExternal:function(a){var b=f.parseUrl(a);return b.protocol&&b.domain!==n.domain?!0:!1},hasProtocol:function(a){return/^(:?\w+:)/.test(a)},isFirstPageUrl:function(c){var d=f.parseUrl(f.makeUrlAbsolute(c,o)),e=d.hrefNoHash===n.hrefNoHash||p&&d.hrefNoHash===o.hrefNoHash,g=a.mobile.firstPage,h=g&&g[0]?g[0].id:b;return e&&(!d.hash||d.hash==="#"||h&&d.hash.replace(/^#/,"")===h)},isEmbeddedPage:function(a){var b=f.parseUrl(a);return b.protocol!==""?b.hash&&(b.hrefNoHash===n.hrefNoHash||p&&b.hrefNoHash===o.hrefNoHash):/^#/.test(b.href)}},g=null,h={stack:[],activeIndex:0,getActive:function(){return h.stack[h.activeIndex]},getPrev:function(){return h.stack[h.activeIndex-1]},getNext:function(){return h.stack[h.activeIndex+1]},addNew:function(a,b,c,d,e){h.getNext()&&h.clearForward(),h.stack.push({url:a,transition:b,title:c,pageUrl:d,role:e}),h.activeIndex=h.stack.length-1},clearForward:function(){h.stack=h.stack.slice(0,h.activeIndex+1)},directHashChange:function(c){var d,e,f,g=this.getActive();a.each(h.stack,function(a,b){c.currentUrl===b.url&&(d=a<h.activeIndex,e=!d,f=a)}),this.activeIndex=f!==b?f:this.activeIndex,d?(c.either||c.isBack)(!0):e&&(c.either||c.isForward)(!1)},ignoreNextHashChange:!1},i="[tabindex],a,button:visible,select:visible,input",j=[],k=!1,l="&ui-state=dialog",m=e.children("base"),n=f.parseUrl(location.href),o=m.length?f.parseUrl(f.makeUrlAbsolute(m.attr("href"),n.href)):n,p=n.hrefNoHash!==o.hrefNoHash,q=a.support.dynamicBaseTag?{element:m.length?m:a("<base>",{href:o.hrefNoHash}).prependTo(e),set:function(a){q.element.attr("href",f.makeUrlAbsolute(a,o))},reset:function(){q.element.attr("href",o.hrefNoHash)}}:b,u=!0,v,w,x,y;w=function(){var b=c,d,e=a.support.touchOverflow&&a.mobile.touchOverflowEnabled;return e&&(d=a(".ui-page-active"),b=d.is(".ui-native-fixed")?d.find(".ui-content"):d),b},x=function(b){if(!u)return;var c=a.mobile.urlHistory.getActive();if(c){var d=b&&b.scrollTop();c.lastScroll=d<a.mobile.minScrollBack?a.mobile.defaultHomeScroll:d}},y=function(){setTimeout(x,100,a(this))},c.bind(a.support.pushState?"popstate":"hashchange",function(){u=!1}),c.one(a.support.pushState?"popstate":"hashchange",function(){u=!0}),c.one("pagecontainercreate",function(){a.mobile.pageContainer.bind("pagechange",function(){var a=w();u=!0,a.unbind("scrollstop",y),a.bind("scrollstop",y)})}),w().bind("scrollstop",y),a.mobile.getScreenHeight=A,a.fn.animationComplete=function(b){return a.support.cssTransitions?a(this).one("webkitAnimationEnd",b):(setTimeout(b,0),a(this))},a.mobile.path=f,a.mobile.base=q,a.mobile.urlHistory=h,a.mobile.dialogHashKey=l,a.mobile.noneTransitionHandler=function(b,c,d,e){return e&&e.removeClass(a.mobile.activePageClass),d.addClass(a.mobile.activePageClass),a.Deferred().resolve(b,c,d,e).promise()},a.mobile.defaultTransitionHandler=a.mobile.noneTransitionHandler,a.mobile.transitionHandlers={none:a.mobile.defaultTransitionHandler},a.mobile.allowCrossDomainPages=!1,a.mobile.getDocumentUrl=function(b){return b?a.extend({},n):n.href},a.mobile.getDocumentBase=function(b){return b?a.extend({},o):o.href},a.mobile._bindPageRemove=function(){var b=a(this);!b.data("page").options.domCache&&b.is(":jqmData(external-page='true')")&&b.bind("pagehide.remove",function(){var b=a(this),c=new a.Event("pageremove");b.trigger(c),c.isDefaultPrevented()||b.removeWithDependents()})},a.mobile.loadPage=function(d,e){var g=a.Deferred(),h=a.extend({},a.mobile.loadPage.defaults,e),i=null,j=null,k=function(){var b=a.mobile.activePage&&E(a.mobile.activePage);return b||o.hrefNoHash},l=f.makeUrlAbsolute(d,k());h.data&&h.type==="get"&&(l=f.addSearchParams(l,h.data),h.data=b),h.data&&h.type==="post"&&(h.reloadPage=!0);var m=f.getFilePath(l),p=f.convertUrlToDataUrl(l);h.pageContainer=h.pageContainer||a.mobile.pageContainer,i=h.pageContainer.children(":jqmData(url='"+p+"')"),i.length===0&&p&&!f.isPath(p)&&(i=h.pageContainer.children("#"+p).attr("data-"+a.mobile.ns+"url",p)),i.length===0&&a.mobile.firstPage&&f.isFirstPageUrl(m)&&(i=a(a.mobile.firstPage)),q&&q.reset();if(i.length){if(!h.reloadPage)return C(i,h.role),g.resolve(l,e,i),g.promise();j=i}var r=h.pageContainer,s=new a.Event("pagebeforeload"),t={url:d,absUrl:l,dataUrl:p,deferred:g,options:h};r.trigger(s,t);if(s.isDefaultPrevented())return g.promise();if(h.showLoadMsg)var u=setTimeout(function(){a.mobile.showPageLoadingMsg()},h.loadMsgDelay),v=function(){clearTimeout(u),a.mobile.hidePageLoadingMsg()};return!a.mobile.allowCrossDomainPages&&!f.isSameDomain(n,l)?g.reject(l,e):a.ajax({url:m,type:h.type,data:h.data,dataType:"html",success:function(b){var c=a("<div></div>"),k=b.match(/<title[^>]*>([^<]*)/)&&RegExp.$1,n=new RegExp("(<[^>]+\\bdata-"+a.mobile.ns+"role=[\"']?page[\"']?[^>]*>)"),o=new RegExp("\\bdata-"+a.mobile.ns+"url=[\"']?([^\"'>]*)[\"']?");n.test(b)&&RegExp.$1&&o.test(RegExp.$1)&&RegExp.$1&&(d=m=f.getFilePath(RegExp.$1)),q&&q.set(m),c.get(0).innerHTML=b,i=c.find(":jqmData(role='page'), :jqmData(role='dialog')").first(),i.length||(i=a("<div data-"+a.mobile.ns+"role='page'>"+b.split(/<\/?body[^>]*>/gmi)[1]+"</div>")),k&&!i.jqmData("title")&&i.jqmData("title",k);if(!a.support.dynamicBaseTag){var r=f.get(m);i.find("[src], link[href], a[rel='external'], :jqmData(ajax='false'), a[target]").each(function(){var b=a(this).is("[href]")?"href":a(this).is("[src]")?"src":"action",c=a(this).attr(b);c=c.replace(location.protocol+"//"+location.host+location.pathname,""),/^(\w+:|#|\/)/.test(c)||a(this).attr(b,r+c)})}i.attr("data-"+a.mobile.ns+"url",f.convertUrlToDataUrl(m)).attr("data-"+a.mobile.ns+"external-page",!0).appendTo(h.pageContainer),i.one("pagecreate",a.mobile._bindPageRemove),C(i,h.role),l.indexOf("&"+a.mobile.subPageUrlKey)>-1&&(i=h.pageContainer.children(":jqmData(url='"+p+"')")),h.showLoadMsg&&v(),t.page=i,h.pageContainer.trigger("pageload",t),g.resolve(l,e,i,j)},error:function(){q&&q.set(f.get());var b=new a.Event("pageloadfailed");h.pageContainer.trigger(b,t);if(b.isDefaultPrevented())return;h.showLoadMsg&&(v(),a("<div class='ui-loader ui-overlay-shadow ui-body-e ui-corner-all'><h1>"+a.mobile.pageLoadErrorMessage+"</h1></div>").css({display:"block",opacity:.96,top:c.scrollTop()+100}).appendTo(h.pageContainer).delay(800).fadeOut(400,function(){a(this).remove()})),g.reject(l,e)}}),g.promise()},a.mobile.loadPage.defaults={type:"get",data:b,reloadPage:!1,role:b,showLoadMsg:!1,pageContainer:b,loadMsgDelay:50},a.mobile.changePage=function(c,e){if(k){j.unshift(arguments);return}var g=a.extend({},a.mobile.changePage.defaults,e);g.pageContainer=g.pageContainer||a.mobile.pageContainer,g.fromPage=g.fromPage||a.mobile.activePage;var i=g.pageContainer,m=new a.Event("pagebeforechange"),o={toPage:c,options:g};i.trigger(m,o);if(m.isDefaultPrevented())return;c=o.toPage,k=!0;if(typeof c=="string"){a.mobile.loadPage(c,g).done(function(b,c,d,e){k=!1,c.duplicateCachedPage=e,a.mobile.changePage(d,c)}).fail(function(a,b){k=!1,s(!0),t(),g.pageContainer.trigger("pagechangefailed",o)});return}c[0]===a.mobile.firstPage[0]&&!g.dataUrl&&(g.dataUrl=n.hrefNoHash);var p=g.fromPage,q=g.dataUrl&&f.convertUrlToDataUrl(g.dataUrl)||c.jqmData("url"),r=q,u=f.getFilePath(q),v=h.getActive(),w=h.activeIndex===0,x=0,y=document.title,A=g.role==="dialog"||c.jqmData("role")==="dialog";if(p&&p[0]===c[0]&&!g.allowSamePageTransition){k=!1,i.trigger("pagechange",o);return}C(c,g.role),g.fromHashChange&&h.directHashChange({currentUrl:q,isBack:function(){x=-1},isForward:function(){x=1}});try{a(document.activeElement||"").add("input:focus, textarea:focus, select:focus").blur()}catch(B){}A&&v&&(q=(v.url||"")+l),g.changeHash!==!1&&q&&(h.ignoreNextHashChange=!0,f.set(q));var D=c.jqmData("title")||c.children(":jqmData(role='header')").find(".ui-title").getEncodedText();!!D&&y==document.title&&(y=D),g.transition=g.transition||(x&&!w?v.transition:b)||(A?a.mobile.defaultDialogTransition:a.mobile.defaultPageTransition),x||h.addNew(q,g.transition,y,r,g.role),document.title=h.getActive().title,a.mobile.activePage=c,g.reverse=g.reverse||x<0,z(c,p,g.transition,g.reverse).done(function(){s(),g.duplicateCachedPage&&g.duplicateCachedPage.remove(),d.removeClass("ui-mobile-rendering"),t(),i.trigger("pagechange",o)})},a.mobile.changePage.defaults={transition:b,reverse:!1,changeHash:!0,fromHashChange:!1,role:b,duplicateCachedPage:b,pageContainer:b,showLoadMsg:!0,dataUrl:b,fromPage:b,allowSamePageTransition:!1},a.mobile._registerInternalEvents=function(){a("form").live("submit",function(b){var c=a(this);if(!a.mobile.ajaxEnabled||c.is(":jqmData(ajax='false')"))return;var d=c.attr("method"),e=c.attr("target"),g=c.attr("action");g||(g=E(c),g===o.hrefNoHash&&(g=n.hrefNoSearch)),g=f.makeUrlAbsolute(g,E(c));if(f.isExternal(g)||e)return;a.mobile.changePage(g,{type:d&&d.length&&d.toLowerCase()||"get",data:c.serialize(),transition:c.jqmData("transition"),direction:c.jqmData("direction"),reloadPage:!0}),b.preventDefault()}),a(document).bind("vclick",function(b){if(b.which>1)return;var c=D(b.target);c&&f.parseUrl(c.getAttribute("href")||"#").hash!=="#"&&(s(!0),g=a(c).closest(".ui-btn").not(".ui-disabled"),g.addClass(a.mobile.activeBtnClass),a("."+a.mobile.activePageClass+" .ui-btn").not(c).blur())}),a(document).bind("click",function(c){var d=D(c.target);if(!d||c.which>1)return;var e=a(d),g=function(){window.setTimeout(function(){s(!0)},200)};if(e.is(":jqmData(rel='back')"))return window.history.back(),!1;var h=E(e),i=f.makeUrlAbsolute(e.attr("href")||"#",h);if(!a.mobile.ajaxEnabled&&!f.isEmbeddedPage(i)){g();return}if(i.search("#")!=-1){i=i.replace(/[^#]*#/,"");if(!i){c.preventDefault();return}f.isPath(i)?i=f.makeUrlAbsolute(i,h):i=f.makeUrlAbsolute("#"+i,n.hrefNoHash)}var j=e.is("[rel='external']")||e.is(":jqmData(ajax='false')")||e.is("[target]"),k=a.mobile.allowCrossDomainPages&&n.protocol==="file:"&&i.search(/^https?:/)!=-1,l=j||f.isExternal(i)&&!k;if(l){g();return}var m=e.jqmData("transition"),o=e.jqmData("direction"),p=o&&o==="reverse"||e.jqmData("back"),q=e.attr("data-"+a.mobile.ns+"rel")||b;a.mobile.changePage(i,{transition:m,reverse:p,role:q}),c.preventDefault()}),a(".ui-page").live("pageshow.prefetch",function(){var b=[];a(this).find("a:jqmData(prefetch)").each(function(){var c=a(this),d=c.attr("href");d&&a.inArray(d,b)===-1&&(b.push(d),a.mobile.loadPage(d,{role:c.attr("data-"+a.mobile.ns+"rel")}))})}),a.mobile._handleHashChange=function(c){var d=f.stripHash(c),e=a.mobile.urlHistory.stack.length===0?"none":b,g={transition:e,changeHash:!1,fromHashChange:!0};if(!a.mobile.hashListeningEnabled||h.ignoreNextHashChange){h.ignoreNextHashChange=!1;return}if(h.stack.length>1&&d.indexOf(l)>-1){if(!a.mobile.activePage.is(".ui-dialog")){h.directHashChange({currentUrl:d,isBack:function(){window.history.back()},isForward:function(){window.history.forward()}});return}h.directHashChange({currentUrl:d,either:function(b){var c=a.mobile.urlHistory.getActive();d=c.pageUrl,a.extend(g,{role:c.role,transition:c.transition,reverse:b})}})}d?(d=typeof d=="string"&&!f.isPath(d)?f.makeUrlAbsolute("#"+d,o):d,a.mobile.changePage(d,g)):a.mobile.changePage(a.mobile.firstPage,g)},c.bind("hashchange",function(b,c){a.mobile._handleHashChange(location.hash)}),a(document).bind("pageshow",B),a(window).bind("throttledresize",B)}}(jQuery),function(a,b){var c={},d=c,e=a(b),f=a.mobile.path.parseUrl(location.href);a.extend(c,{initialFilePath:function(){return f.pathname+f.search}(),initialHref:f.hrefNoHash,hashchangeFired:!1,state:function(){return{hash:location.hash||"#"+d.initialFilePath,title:document.title,initialHref:d.initialHref}},resetUIKeys:function(b){var c=a.mobile.dialogHashKey,d="&"+a.mobile.subPageUrlKey,e=b.indexOf(c);return e>-1?b=b.slice(0,e)+"#"+b.slice(e):b.indexOf(d)>-1&&(b=b.split(d).join("#"+d)),b},nextHashChangePrevented:function(b){a.mobile.urlHistory.ignoreNextHashChange=b,d.onHashChangeDisabled=b},onHashChange:function(b){if(d.onHashChangeDisabled)return;var c,e,f=location.hash,g=a.mobile.path.isPath(f),h=g?location.href:a.mobile.getDocumentUrl();f=g?f.replace("#",""):f,e=d.state(),c=a.mobile.path.makeUrlAbsolute(f,h),g&&(c=d.resetUIKeys(c)),history.replaceState(e,document.title,c)},onPopState:function(b){var c=b.originalEvent.state,e=!1;c&&(d.nextHashChangePrevented(!0),setTimeout(function(){d.nextHashChangePrevented(!1),a.mobile._handleHashChange(c.hash)},100))},init:function(){e.bind("hashchange",d.onHashChange),e.bind("popstate",d.onPopState),location.hash===""&&history.replaceState(d.state(),document.title,location.href)}}),a(function(){a.mobile.pushStateEnabled&&a.support.pushState&&c.init()})}(jQuery,this),function(a,b,c){function d(b,c,d,e){var f=new a.Deferred,g=c?" reverse":"",h="ui-mobile-viewport-transitioning viewport-"+b,i=function(){d.add(e).removeClass("out in reverse "+b),e&&e[0]!==d[0]&&e.removeClass(a.mobile.activePageClass),d.parent().removeClass(h),f.resolve(b,c,d,e)};return d.animationComplete(i),d.parent().addClass(h),e&&e.addClass(b+" out"+g),d.addClass(a.mobile.activePageClass+" "+b+" in"+g),f.promise()}a.mobile.css3TransitionHandler=d,a.mobile.defaultTransitionHandler===a.mobile.noneTransitionHandler&&(a.mobile.defaultTransitionHandler=d)}(jQuery,this),function(a,b){a.mobile.page.prototype.options.degradeInputs={color:!1,date:!1,datetime:!1,"datetime-local":!1,email:!1,month:!1,number:!1,range:"number",search:"text",tel:!1,time:!1,url:!1,week:!1},a(document).bind("pagecreate create",function(b){var c=a(b.target).closest(':jqmData(role="page")').data("page"),d;if(!c)return;d=c.options,a(b.target).find("input").not(c.keepNativeSelector()).each(function(){var b=a(this),c=this.getAttribute("type"),e=d.degradeInputs[c]||"text";if(d.degradeInputs[c]){var f=a("<div>").html(b.clone()).html(),g=f.indexOf(" type=")>-1,h=g?/\s+type=["']?\w+['"]?/:/\/?>/,i=' type="'+e+'" data-'+a.mobile.ns+'type="'+c+'"'+(g?"":">");b.replaceWith(f.replace(h,i))}})})}(jQuery),function(a,b,c){a.widget("mobile.dialog",a.mobile.widget,{options:{closeBtnText:"Close",theme:"a",initSelector:":jqmData(role='dialog')"},_create:function(){var b=this,c=this.element,d=c.attr("class").match(/ui-body-[a-z]/),e=a("<a href='#' data-"+a.mobile.ns+"icon='delete' data-"+a.mobile.ns+"iconpos='notext'>"+this.options.closeBtnText+"</a>");d.length&&c.removeClass(d[0]),c.addClass("ui-body-"+this.options.theme),c.attr("role","dialog").addClass("ui-dialog").find(":jqmData(role='header')").addClass("ui-corner-top ui-overlay-shadow").prepend(e).end().find(":jqmData(role='content'),:jqmData(role='footer')").last().addClass("ui-corner-bottom ui-overlay-shadow"),e.bind("vclick",function(){b.close()}),c.bind("vclick submit",function(b){var c=a(b.target).closest(b.type==="vclick"?"a":"form"),d;c.length&&!c.jqmData("transition")&&(d=a.mobile.urlHistory.getActive()||{},c.attr("data-"+a.mobile.ns+"transition",d.transition||a.mobile.defaultDialogTransition).attr("data-"+a.mobile.ns+"direction","reverse"))}).bind("pagehide",function(){a(this).find("."+a.mobile.activeBtnClass).removeClass(a.mobile.activeBtnClass)})},close:function(){b.history.back()}}),a(a.mobile.dialog.prototype.options.initSelector).live("pagecreate",function(){a(this).dialog()})}(jQuery,this),function(a,b){a.mobile.page.prototype.options.backBtnText="Back",a.mobile.page.prototype.options.addBackBtn=!1,a.mobile.page.prototype.options.backBtnTheme=null,a.mobile.page.prototype.options.headerTheme="a",a.mobile.page.prototype.options.footerTheme="a",a.mobile.page.prototype.options.contentTheme=null,a(":jqmData(role='page'), :jqmData(role='dialog')").live("pagecreate",function(b){var c=a(this),d=c.data("page").options,e=d.theme;a(":jqmData(role='header'), :jqmData(role='footer'), :jqmData(role='content')",this).each(function(){var b=a(this),c=b.jqmData("role"),f=b.jqmData("theme"),g,h,i,j;b.addClass("ui-"+c);if(c==="header"||c==="footer"){var k=f||(c==="header"?d.headerTheme:d.footerTheme)||e;b.addClass("ui-bar-"+k).attr("role",c==="header"?"banner":"contentinfo"),g=b.children("a"),h=g.hasClass("ui-btn-left"),i=g.hasClass("ui-btn-right"),h=h||g.eq(0).not(".ui-btn-right").addClass("ui-btn-left").length,i=i||g.eq(1).addClass("ui-btn-right").length,d.addBackBtn&&c==="header"&&a(".ui-page").length>1&&b.jqmData("url")!==a.mobile.path.stripHash(location.hash)&&!h&&(j=a("<a href='#' class='ui-btn-left' data-"+a.mobile.ns+"rel='back' data-"+a.mobile.ns+"icon='arrow-l'>"+d.backBtnText+"</a>").attr("data-"+a.mobile.ns+"theme",d.backBtnTheme||k).prependTo(b)),b.children("h1, h2, h3, h4, h5, h6").addClass("ui-title").attr({tabindex:"0",role:"heading","aria-level":"1"})}else c==="content"&&((f||d.contentTheme)&&b.addClass("ui-body-"+(f||d.contentTheme)),b.attr("role","main"))})})}(jQuery),function(a,b){a.widget("mobile.collapsible",a.mobile.widget,{options:{expandCueText:" click to expand contents",collapseCueText:" click to collapse contents",collapsed:!0,heading:">:header,>legend",theme:null,contentTheme:null,iconTheme:"d",initSelector:":jqmData(role='collapsible')"},_create:function(){var b=this.element,c=this.options,d=b.addClass("ui-collapsible"),e=b.find(c.heading).eq(0),f=d.wrapInner("<div class='ui-collapsible-content'></div>").find(".ui-collapsible-content"),g=b.closest(":jqmData(role='collapsible-set')").addClass("ui-collapsible-set"),h=g.children(":jqmData(role='collapsible')");e.is("legend")&&(e=a("<div role='heading'>"+e.html()+"</div>").insertBefore(e),e.next().remove()),g.length&&(c.theme||(c.theme=g.jqmData("theme")),c.contentTheme||(c.contentTheme=g.jqmData("content-theme"))),f.addClass(c.contentTheme?"ui-body-"+c.contentTheme:""),e.insertBefore(f).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:!1,corners:!1,iconPos:"left",icon:"plus",theme:c.theme}),g.length?(g.jqmData("collapsiblebound")||g.jqmData("collapsiblebound",!0).bind("expand",function(b){a(b.target).closest(".ui-collapsible").siblings(".ui-collapsible").trigger("collapse")}),h.first().find("a:eq(0)").addClass("ui-corner-top").find(".ui-btn-inner").addClass("ui-corner-top"),h.last().jqmData("collapsible-last",!0).find("a:eq(0)").addClass("ui-corner-bottom").find(".ui-btn-inner").addClass("ui-corner-bottom"),d.jqmData("collapsible-last")&&e.find("a:eq(0), .ui-btn-inner").addClass("ui-corner-bottom")):e.find("a:eq(0), .ui-btn-inner").addClass("ui-corner-top ui-corner-bottom"),d.bind("expand collapse",function(b){if(!b.isDefaultPrevented()){b.preventDefault();var h=a(this),i=b.type==="collapse",j=c.contentTheme;e.toggleClass("ui-collapsible-heading-collapsed",i).find(".ui-collapsible-heading-status").text(i?c.expandCueText:c.collapseCueText).end().find(".ui-icon").toggleClass("ui-icon-minus",!i).toggleClass("ui-icon-plus",i),h.toggleClass("ui-collapsible-collapsed",i),f.toggleClass("ui-collapsible-content-collapsed",i).attr("aria-hidden",i),j&&(!g.length||d.jqmData("collapsible-last"))&&(e.find("a:eq(0), .ui-btn-inner").toggleClass("ui-corner-bottom",i),f.toggleClass("ui-corner-bottom",!i)),f.trigger("updatelayout")}}).trigger(c.collapsed?"collapse":"expand"),e.bind("click",function(a){var b=e.is(".ui-collapsible-heading-collapsed")?"expand":"collapse";d.trigger(b),a.preventDefault()})}}),a(document).bind("pagecreate create",function(b){a(a.mobile.collapsible.prototype.options.initSelector,b.target).collapsible()})}(jQuery),function(a,b){a.fn.fieldcontain=function(a){return this.addClass("ui-field-contain ui-body ui-br")},a(document).bind("pagecreate create",function(b){a(":jqmData(role='fieldcontain')",b.target).fieldcontain()})}(jQuery),function(a,b){a.fn.grid=function(b){return this.each(function(){var c=a(this),d=a.extend({grid:null},b),e=c.children(),f={solo:1,a:2,b:3,c:4,d:5},g=d.grid,h;if(!g)if(e.length>5)g="a";else for(var i in f)f[i]===e.length&&(g=i);h=f[g],c.addClass("ui-grid-"+g),e.filter(":nth-child("+h+"n+1)").addClass("ui-block-a"),h>1&&e.filter(":nth-child("+h+"n+2)").addClass("ui-block-b"),h>2&&e.filter(":nth-child(3n+3)").addClass("ui-block-c"),h>3&&e.filter(":nth-child(4n+4)").addClass("ui-block-d"),h>4&&e.filter(":nth-child(5n+5)").addClass("ui-block-e")})}}(jQuery),function(a,b){a.widget("mobile.navbar",a.mobile.widget,{options:{iconpos:"top",grid:null,initSelector:":jqmData(role='navbar')"},_create:function(){var c=this.element,d=c.find("a"),e=d.filter(":jqmData(icon)").length?this.options.iconpos:b;c.addClass("ui-navbar").attr("role","navigation").find("ul").grid({grid:this.options.grid}),e||c.addClass("ui-navbar-noicons"),d.buttonMarkup({corners:!1,shadow:!1,iconpos:e}),c.delegate("a","vclick",function(b){d.not(".ui-state-persist").removeClass(a.mobile.activeBtnClass),a(this).addClass(a.mobile.activeBtnClass)})}}),a(document).bind("pagecreate create",function(b){a(a.mobile.navbar.prototype.options.initSelector,b.target).navbar()})}(jQuery),function(a,b){var c={};a.widget("mobile.listview",a.mobile.widget,{options:{theme:"c",countTheme:"c",headerTheme:"b",dividerTheme:"b",splitIcon:"arrow-r",splitTheme:"b",inset:!1,initSelector:":jqmData(role='listview')"},_create:function(){var a=this;a.element.addClass(function(b,c){return c+" ui-listview "+(a.options.inset?" ui-listview-inset ui-corner-all ui-shadow ":"")}),a.refresh(!0)},_itemApply:function(b,c){var d=c.find(".ui-li-count");d.length&&c.addClass("ui-li-has-count"),d.addClass("ui-btn-up-"+(b.jqmData("counttheme")||this.options.countTheme)+" ui-btn-corner-all"),c.find("h1, h2, h3, h4, h5, h6").addClass("ui-li-heading").end().find("p, dl").addClass("ui-li-desc").end().find(">img:eq(0), .ui-link-inherit>img:eq(0)").addClass("ui-li-thumb").each(function(){c.addClass(a(this).is(".ui-li-icon")?"ui-li-has-icon":"ui-li-has-thumb")}).end().find(".ui-li-aside").each(function(){var b=a(this);b.prependTo(b.parent())})},_removeCorners:function(a,b){var c="ui-corner-top ui-corner-tr ui-corner-tl",d="ui-corner-bottom ui-corner-br ui-corner-bl";a=a.add(a.find(".ui-btn-inner, .ui-li-link-alt, .ui-li-thumb")),b==="top"?a.removeClass(c):b==="bottom"?a.removeClass(d):a.removeClass(c+" "+d)},_refreshCorners:function(a){var b,c,d,e;this.options.inset&&(b=this.element.children("li"),c=a?b.not(".ui-screen-hidden"):b.filter(":visible"),this._removeCorners(b),d=c.first().addClass("ui-corner-top"),d.add(d.find(".ui-btn-inner")).find(".ui-li-link-alt").addClass("ui-corner-tr").end().find(".ui-li-thumb").not(".ui-li-icon").addClass("ui-corner-tl"),e=c.last().addClass("ui-corner-bottom"),e.add(e.find(".ui-btn-inner")).find(".ui-li-link-alt").addClass("ui-corner-br").end().find(".ui-li-thumb").not(".ui-li-icon").addClass("ui-corner-bl")),a||this.element.trigger("updatelayout")},refresh:function(b){this.parentPage=this.element.closest(".ui-page"),this._createSubPages();var c=this.options,d=this.element,e=this,f=d.jqmData("dividertheme")||c.dividerTheme,g=d.jqmData("splittheme"),h=d.jqmData("spliticon"),i=d.children("li"),j=a.support.cssPseudoElement||!a.nodeName(d[0],"ol")?0:1,k,l,m,n,o,p,q,r;j&&d.find(".ui-li-dec").remove();for(var s=0,t=i.length;s<t;s++){k=i.eq(s),l="ui-li";if(b||!k.hasClass("ui-li"))m=k.jqmData("theme")||c.theme,n=k.children("a"),n.length?(r=k.jqmData("icon"),k.buttonMarkup({wrapperEls:"div",shadow:!1,corners:!1,iconpos:"right",icon:n.length>1||r===!1?!1:r||"arrow-r",theme:m}),r!=0&&n.length==1&&k.addClass("ui-li-has-arrow"),n.first().addClass("ui-link-inherit"),n.length>1&&(l+=" ui-li-has-alt",o=n.last(),p=g||o.jqmData("theme")||c.splitTheme,o.appendTo(k).attr("title",o.getEncodedText()).addClass("ui-li-link-alt").empty().buttonMarkup({shadow:!1,corners:!1,theme:m,icon:!1,iconpos:!1}).find(".ui-btn-inner").append(a("<span />").buttonMarkup({shadow:!0,corners:!0,theme:p,iconpos:"notext",icon:h||o.jqmData("icon")||c.splitIcon})))):k.jqmData("role")==="list-divider"?(l+=" ui-li-divider ui-btn ui-bar-"+f,k.attr("role","heading"),j&&(j=1)):l+=" ui-li-static ui-body-"+m;j&&l.indexOf("ui-li-divider")<0&&(q=k.is(".ui-li-static:first")?k:k.find(".ui-link-inherit"),q.addClass("ui-li-jsnumbering").prepend("<span class='ui-li-dec'>"+j++ +". </span>")),k.add(k.children(".ui-btn-inner")).addClass(l),e._itemApply(d,k)}this._refreshCorners(b)},_idStringEscape:function(a){return a.replace(/[^a-zA-Z0-9]/g,"-")},_createSubPages:function(){var b=this.element,d=b.closest(".ui-page"),e=d.jqmData("url"),f=e||d[0][a.expando],g=b.attr("id"),h=this.options,i="data-"+a.mobile.ns,j=this,k=d.find(":jqmData(role='footer')").jqmData("id"),l;typeof c[f]=="undefined"&&(c[f]=-1),g=g||++c[f],a(b.find("li>ul, li>ol").toArray().reverse()).each(function(c){var d=this,f=a(this),j=f.attr("id")||g+"-"+c,m=f.parent(),n=a(f.prevAll().toArray().reverse()),n=n.length?n:a("<span>"+a.trim(m.contents()[0].nodeValue)+"</span>"),p=n.first().getEncodedText(),q=(e||"")+"&"+a.mobile.subPageUrlKey+"="+j,r=f.jqmData("theme")||h.theme,s=f.jqmData("counttheme")||b.jqmData("counttheme")||h.countTheme,t,u;l=!0,t=f.detach().wrap("<div "+i+"role='page' "+i+"url='"+q+"' "+i+"theme='"+r+"' "+i+"count-theme='"+s+"'><div "+i+"role='content'></div></div>").parent().before("<div "+i+"role='header' "+i+"theme='"+h.headerTheme+"'><div class='ui-title'>"+p+"</div></div>").after(k?a("<div "+i+"role='footer' "+i+"id='"+k+"'>"):"").parent().appendTo(a.mobile.pageContainer),t.page(),u=m.find("a:first"),u.length||(u=a("<a/>").html(n||p).prependTo(m.empty())),u.attr("href","#"+q)}).listview();if(l&&d.is(":jqmData(external-page='true')")&&d.data("page").options.domCache===!1){var m=function(b,c){var f=c.nextPage,g;c.nextPage&&(g=f.jqmData("url"),g.indexOf(e+"&"+a.mobile.subPageUrlKey)!==0&&(j.childPages().remove(),d.remove()))};d.unbind("pagehide.remove").bind("pagehide.remove",m)}},childPages:function(){var b=this.parentPage.jqmData("url");return a(":jqmData(url^='"+b+"&"+a.mobile.subPageUrlKey+"')")}}),a(document).bind("pagecreate create",function(b){a(a.mobile.listview.prototype.options.initSelector,b.target).listview()})}(jQuery),function(a,b){a.mobile.listview.prototype.options.filter=!1,a.mobile.listview.prototype.options.filterPlaceholder="Filter items...",a.mobile.listview.prototype.options.filterTheme="c",a.mobile.listview.prototype.options.filterCallback=function(a,b){return a.toLowerCase().indexOf(b)===-1},a(":jqmData(role='listview')").live("listviewcreate",function(){var b=a(this),c=b.data("listview");if(!c.options.filter)return;var d=a("<form>",{"class":"ui-listview-filter ui-bar-"+c.options.filterTheme,role:"search"}),e=a("<input>",{placeholder:c.options.filterPlaceholder}).attr("data-"+a.mobile.ns+"type","search").jqmData("lastval","").bind("keyup change",function(){var d=a(this),e=this.value.toLowerCase(),f=null,g=d.jqmData("lastval")+"",h=!1,i="",j,k;d.jqmData("lastval",e),k=e.replace(new RegExp("^"+g),""),e.length<g.length||k.length!=e.length-g.length?f=b.children():f=b.children(":not(.ui-screen-hidden)");if(e){for(var l=f.length-1;l>=0;l--)j=a(f[l]),i=j.jqmData("filtertext")||j.text(),j.is("li:jqmData(role=list-divider)")?(j.toggleClass("ui-filter-hidequeue",!h),h=!1):c.options.filterCallback(i,e)?j.toggleClass("ui-filter-hidequeue",!0):h=!0;f.filter(":not(.ui-filter-hidequeue)").toggleClass("ui-screen-hidden",!1),f.filter(".ui-filter-hidequeue").toggleClass("ui-screen-hidden",!0).toggleClass("ui-filter-hidequeue",!1)}else f.toggleClass("ui-screen-hidden",!1);c._refreshCorners()}).appendTo(d).textinput();a(this).jqmData("inset")&&d.addClass("ui-listview-filter-inset"),d.bind("submit",function(){return!1}).insertBefore(b)})}(jQuery),function(a,b){a(document).bind("pagecreate create",function(b){a(":jqmData(role='nojs')",b.target).addClass("ui-nojs")})}(jQuery),function(a,b){a.widget("mobile.checkboxradio",a.mobile.widget,{options:{theme:null,initSelector:"input[type='checkbox'],input[type='radio']"},_create:function(){var c=this,d=this.element,e=d.closest("form,fieldset,:jqmData(role='page')").find("label").filter("[for='"+d[0].id+"']"),f=d.attr("type"),g=f+"-on",h=f+"-off",i=d.parents(":jqmData(type='horizontal')").length?b:h,j=i?"":" "+a.mobile.activeBtnClass,k="ui-"+g+j,l="ui-"+h,m="ui-icon-"+g,n="ui-icon-"+h;if(f!=="checkbox"&&f!=="radio")return;a.extend(this,{label:e,inputtype:f,checkedClass:k,uncheckedClass:l,checkedicon:m,uncheckedicon:n}),this.options.theme||(this.options.theme=this.element.jqmData("theme")),e.buttonMarkup({theme:this.options.theme,icon:i,shadow:!1}),d.add(e).wrapAll("<div class='ui-"+f+"'></div>"),e.bind({vmouseover:function(b){a(this).parent().is(".ui-disabled")&&b.stopPropagation()},vclick:function(a){if(d.is(":disabled")){a.preventDefault();return}return c._cacheVals(),d.prop("checked",f==="radio"&&!0||!d.prop("checked")),c._getInputSet().not(d).prop("checked",!1),c._updateAll(),!1}}),d.bind({vmousedown:function(){this._cacheVals()},vclick:function(){var b=a(this);b.is(":checked")?(b.prop("checked",!0),c._getInputSet().not(b).prop("checked",!1)):b.prop("checked",!1),c._updateAll()},focus:function(){e.addClass("ui-focus")},blur:function(){e.removeClass("ui-focus")}}),this.refresh()},_cacheVals:function(){this._getInputSet().each(function(){var b=a(this);b.jqmData("cacheVal",b.is(":checked"))})},_getInputSet:function(){return this.inputtype=="checkbox"?this.element:this.element.closest("form,fieldset,:jqmData(role='page')").find("input[name='"+this.element.attr("name")+"'][type='"+this.inputtype+"']")},_updateAll:function(){var b=this;this._getInputSet().each(function(){var c=a(this);(c.is(":checked")||b.inputtype==="checkbox")&&c.trigger("change")}).checkboxradio("refresh")},refresh:function(){var b=this.element,c=this.label,d=c.find(".ui-icon");a(b[0]).prop("checked")?(c.addClass(this.checkedClass).removeClass(this.uncheckedClass),d.addClass(this.checkedicon).removeClass(this.uncheckedicon)):(c.removeClass(this.checkedClass).addClass(this.uncheckedClass),d.removeClass(this.checkedicon).addClass(this.uncheckedicon)),b.is(":disabled")?this.disable():this.enable()},disable:function(){this.element.prop("disabled",!0).parent().addClass("ui-disabled")},enable:function(){this.element.prop("disabled",!1).parent().removeClass("ui-disabled")}}),a(document).bind("pagecreate create",function(b){a.mobile.checkboxradio.prototype.enhanceWithin(b.target)})}(jQuery),function(a,b){a.widget("mobile.button",a.mobile.widget,{options:{theme:null,icon:null,iconpos:null,inline:null,corners:!0,shadow:!0,iconshadow:!0,initSelector:"button, [type='button'], [type='submit'], [type='reset'], [type='image']"},_create:function(){var c=this.element,d=this.options,e,f,g;this.button=a("<div></div>").text(c.text()||c.val()).insertBefore(c).buttonMarkup({theme:d.theme,icon:d.icon,iconpos:d.iconpos,inline:d.inline,corners:d.corners,shadow:d.shadow,iconshadow:d.iconshadow}).append(c.addClass("ui-btn-hidden")),e=c.attr("type"),f=c.attr("name"),e!=="button"&&e!=="reset"&&f&&c.bind("vclick",function(){g===b&&(g=a("<input>",{type:"hidden",name:c.attr("name"),value:c.attr("value")}).insertBefore(c),a(document).submit(function(){g.remove()}))}),this.refresh()},enable:function(){return this.element.attr("disabled",!1),this.button.removeClass("ui-disabled").attr("aria-disabled",!1),this._setOption("disabled",!1)},disable:function(){return this.element.attr("disabled",!0),this.button.addClass("ui-disabled").attr("aria-disabled",!0),this._setOption("disabled",!0)},refresh:function(){this.element.attr("disabled")?this.disable():this.enable()}}),a(document).bind("pagecreate create",function(b){a.mobile.button.prototype.enhanceWithin(b.target)})}(jQuery),function(a,b){a.widget("mobile.slider",a.mobile.widget,{options:{theme:null,trackTheme:null,disabled:!1,initSelector:"input[type='range'], :jqmData(type='range'), :jqmData(role='slider')"},_create:function(){var c=this,d=this.element,e=a.mobile.getInheritedTheme(d,"c"),f=this.options.theme||e,g=this.options.trackTheme||e,h=d[0].nodeName.toLowerCase(),i=h=="select"?"ui-slider-switch":"",j=d.attr("id"),k=j+"-label",l=a("[for='"+j+"']").attr("id",k),m=function(){return h=="input"?parseFloat(d.val()):d[0].selectedIndex},n=h=="input"?parseFloat(d.attr("min")):0,o=h=="input"?parseFloat(d.attr("max")):d.find("option").length-1,p=window.parseFloat(d.attr("step")||1),q=a("<div class='ui-slider "+i+" ui-btn-down-"+g+" ui-btn-corner-all' role='application'></div>"),r=a("<a href='#' class='ui-slider-handle'></a>").appendTo(q).buttonMarkup({corners:!0,theme:f,shadow:!0}).attr({role:"slider","aria-valuemin":n,"aria-valuemax":o,"aria-valuenow":m(),"aria-valuetext":m(),title:m(),"aria-labelledby":k}),s;a.extend(this,{slider:q,handle:r,dragging:!1,beforeStart:null,userModified:!1}),h=="select"&&(q.wrapInner("<div class='ui-slider-inneroffset'></div>"),s=d.find("option"),d.find("option").each(function(b){var c=b?"a":"b",d=b?"left":"right",e=b?" "+a.mobile.activeBtnClass:" ui-btn-down-"+g;a("<div class='ui-slider-labelbg ui-slider-labelbg-"+c+e+" ui-btn-corner-"+d+"'></div>").prependTo(q),a("<span class='ui-slider-label ui-slider-label-"+c+e+" ui-btn-corner-"+d+"' role='img'>"+a(this).getEncodedText()+"</span>").prependTo(r)})),l.addClass("ui-slider"),d.addClass(h==="input"?"ui-slider-input":"ui-slider-switch").change(function(){c.refresh(m(),!0)}).keyup(function(){c.refresh(m(),!0,!0)}).blur(function(){c.refresh(m(),!0)}),a(document).bind("vmousemove",function(a){if(c.dragging)return c.refresh(a),c.userModified=c.userModified||c.beforeStart!==d[0].selectedIndex,!1}),q.bind("vmousedown",function(a){return c.dragging=!0,c.userModified=!1,h==="select"&&(c.beforeStart=d[0].selectedIndex),c.refresh(a),!1}),q.add(document).bind("vmouseup",function(){if(c.dragging)return c.dragging=!1,h==="select"&&(c.userModified||(r.addClass("ui-slider-handle-snapping"),c.refresh(c.beforeStart?0:1))),!1}),q.insertAfter(d),this.handle.bind("vmousedown",function(){a(this).focus()}).bind("vclick",!1),this.handle.bind("keydown",function(b){var d=m();if(c.options.disabled)return;switch(b.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:b.preventDefault(),c._keySliding||(c._keySliding=!0,a(this).addClass("ui-state-active"))}switch(b.keyCode){case a.mobile.keyCode.HOME:c.refresh(n);break;case a.mobile.keyCode.END:c.refresh(o);break;case a.mobile.keyCode.PAGE_UP:case a.mobile.keyCode.UP:case a.mobile.keyCode.RIGHT:c.refresh(d+p);break;case a.mobile.keyCode.PAGE_DOWN:case a.mobile.keyCode.DOWN:case a.mobile.keyCode.LEFT:c.refresh(d-p)}}).keyup(function(b){c._keySliding&&(c._keySliding=!1,a(this).removeClass("ui-state-active"))}),this.refresh(b,b,!0)},refresh:function(a,b,c){if(this.options.disabled||this.element.attr("disabled")){this.slider.addClass("ui-disabled");return}var d=this.element,e,f=d[0].nodeName.toLowerCase(),g=f==="input"?parseFloat(d.attr("min")):0,h=f==="input"?parseFloat(d.attr("max")):d.find("option").length-1;if(typeof a=="object"){var i=a,j=8;if(!this.dragging||i.pageX<this.slider.offset().left-j||i.pageX>this.slider.offset().left+this.slider.width()+j)return;e=Math.round((i.pageX-this.slider.offset().left)/this.slider.width()*100)}else a==null&&(a=f==="input"?parseFloat(d.val()):d[0].selectedIndex),e=(parseFloat(a)-g)/(h-g)*100;if(isNaN(e))return;e<0&&(e=0),e>100&&(e=100);var k=Math.round(e/100*(h-g))+g;k<g&&(k=g),k>h&&(k=h),e<=60||f!=="select",this.handle.css("left",e+"%"),this.handle.attr({"aria-valuenow":f==="input"?k:d.find("option").eq(k).attr("value"),"aria-valuetext":f==="input"?k:d.find("option").eq(k).getEncodedText(),title:k}),f==="select"&&(k===0?this.slider.addClass("ui-slider-switch-a").removeClass("ui-slider-switch-b"):this.slider.addClass("ui-slider-switch-b").removeClass("ui-slider-switch-a"));if(!c){var l=!1;f==="input"?(l=d.val()!==k,d.val(k)):(l=d[0].selectedIndex!==k,d[0].selectedIndex=k),!b&&l&&d.trigger("change")}},enable:function(){return this.element.attr("disabled",!1),this.slider.removeClass("ui-disabled").attr("aria-disabled",!1),this._setOption("disabled",!1)},disable:function(){return this.element.attr("disabled",!0),this.slider.addClass("ui-disabled").attr("aria-disabled",!0),this._setOption("disabled",!0)}}),a(document).bind("pagecreate create",function(b){a.mobile.slider.prototype.enhanceWithin(b.target)})}(jQuery),function(a,b){a.widget("mobile.textinput",a.mobile.widget,{options:{theme:null,initSelector:"input[type='text'], input[type='search'], :jqmData(type='search'), input[type='number'], :jqmData(type='number'), input[type='password'], input[type='email'], input[type='url'], input[type='tel'], textarea, input[type='time'], input[type='date'], input[type='month'], input[type='week'], input[type='datetime'], input[type='datetime-local'], input[type='color'], input:not([type])"},_create:function(){var b=this.element,c=this.options,d=c.theme,e,f,g;d||(d=a.mobile.getInheritedTheme(this.element,"c")),e=" ui-body-"+d,a("label[for='"+b.attr("id")+"']").addClass("ui-input-text"),b.addClass("ui-input-text ui-body-"+d),f=b,typeof b[0].autocorrect!="undefined"&&!a.support.touchOverflow&&(b[0].setAttribute("autocorrect","off"),b[0].setAttribute("autocomplete","off"));if(b.is("[type='search'],:jqmData(type='search')")){f=b.wrap("<div class='ui-input-search ui-shadow-inset ui-btn-corner-all ui-btn-shadow ui-icon-searchfield"+e+"'></div>").parent(),g=a("<a href='#' class='ui-input-clear' title='clear text'>clear text</a>").tap(function(a){b.val("").focus(),b.trigger("change"),g.addClass("ui-input-clear-hidden"),a.preventDefault()}).appendTo(f).buttonMarkup({icon:"delete",iconpos:"notext",corners:!0,shadow:!0});function h(){b.val()?g.removeClass("ui-input-clear-hidden"):g.addClass("ui-input-clear-hidden")}h(),b.keyup(h).focus(h)}else b.addClass("ui-corner-all ui-shadow-inset"+e);b.focus(function(){f.addClass("ui-focus")}).blur(function(){f.removeClass("ui-focus")});if(b.is("textarea")){var i=15,j=100,k=function(){var a=b[0].scrollHeight,c=b[0].clientHeight;c<a&&b.css({height:a+i})},l;b.keyup(function(){clearTimeout(l),l=setTimeout(k,j)}),a.trim(b.text())&&a(k)}},disable:function(){(this.element.attr("disabled",!0).is("[type='search'],:jqmData(type='search')")?this.element.parent():this.element).addClass("ui-disabled")},enable:function(){(this.element.attr("disabled",!1).is("[type='search'],:jqmData(type='search')")?this.element.parent():this.element).removeClass("ui-disabled")}}),a(document).bind("pagecreate create",function(b){a.mobile.textinput.prototype.enhanceWithin(b.target)})}(jQuery),function(a,b){var c=function(b){var c=b.select,d=b.selectID,e=b.label,f=b.select.closest(".ui-page"),g=a("<div>",{"class":"ui-selectmenu-screen ui-screen-hidden"}).appendTo(f),h=b._selectOptions(),i=b.isMultiple=b.select[0].multiple,j=d+"-button",k=d+"-menu",l=a("<div data-"+a.mobile.ns+"role='dialog' data-"+a.mobile.ns+"theme='"+b.options.menuPageTheme+"'>"+"<div data-"+a.mobile.ns+"role='header'>"+"<div class='ui-title'>"+e.getEncodedText()+"</div>"+"</div>"+"<div data-"+a.mobile.ns+"role='content'></div>"+"</div>").appendTo(a.mobile.pageContainer).page(),m=a("<div>",{"class":"ui-selectmenu ui-selectmenu-hidden ui-overlay-shadow ui-corner-all ui-body-"+b.options.overlayTheme+" "+a.mobile.defaultDialogTransition}).insertAfter(g),n=a("<ul>",{"class":"ui-selectmenu-list",id:k,role:"listbox","aria-labelledby":j}).attr("data-"+a.mobile.ns+"theme",b.options.theme).appendTo(m),o=a("<div>",{"class":"ui-header ui-bar-"+b.options.theme}).prependTo(m),p=a("<h1>",{"class":"ui-title"}).appendTo(o),q=a("<a>",{text:b.options.closeText,href:"#","class":"ui-btn-left"}).attr("data-"+a.mobile.ns+"iconpos","notext").attr("data-"+a.mobile.ns+"icon","delete").appendTo(o).buttonMarkup(),r=l.find(".ui-content"),s=l.find(".ui-header a");a.extend(b,{select:b.select,selectID:d,buttonId:j,menuId:k,thisPage:f,menuPage:l,label:e,screen:g,selectOptions:h,isMultiple:i,theme:b.options.theme,listbox:m,list:n,header:o,headerTitle:p,headerClose:q,menuPageContent:r,menuPageClose:s,placeholder:"",build:function(){var b=this;b.refresh(),b.select.attr("tabindex","-1").focus(function(){a(this).blur(),b.button.focus()}),b.button.bind("vclick keydown",function(c){if(c.type=="vclick"||c.keyCode&&(c.keyCode===a.mobile.keyCode.ENTER||c.keyCode===a.mobile.keyCode.SPACE))b.open(),c.preventDefault()}),b.list.attr("role","listbox").delegate(".ui-li>a","focusin",function(){a(this).attr("tabindex","0")}).delegate(".ui-li>a","focusout",function(){a(this).attr("tabindex","-1")}).delegate("li:not(.ui-disabled, .ui-li-divider)","click",function(c){var d=b.select[0].selectedIndex,e=b.list.find("li:not(.ui-li-divider)").index(this),f=b._selectOptions().eq(e)[0];f.selected=b.isMultiple?!f.selected:!0,b.isMultiple&&a(this).find(".ui-icon").toggleClass("ui-icon-checkbox-on",f.selected).toggleClass("ui-icon-checkbox-off",!f.selected),(b.isMultiple||d!==e)&&b.select.trigger("change"),b.isMultiple||b.close(),c.preventDefault()}).keydown(function(b){var c=a(b.target),d=c.closest("li"),e,f;switch(b.keyCode){case 38:return e=d.prev(),e.length&&(c.blur().attr("tabindex","-1"),e.find("a").first().focus()),!1;case 40:return f=d.next(),f.length&&(c.blur().attr("tabindex","-1"),f.find("a").first().focus()),!1;case 13:case 32:return c.trigger("click"),!1}}),b.menuPage.bind("pagehide",function(){b.list.appendTo(b.listbox),b._focusButton(),a.mobile._bindPageRemove.call(b.thisPage)}),b.screen.bind("vclick",function(a){b.close()}),b.headerClose.click(function(){if(b.menuType=="overlay")return b.close(),!1}),b.thisPage.addDependents(this.menuPage)},_isRebuildRequired:function(){var a=this.list.find("li"),b=this._selectOptions();return b.text()!==a.text()},refresh:function(b,c){var d=this,e=this.element,f=this.isMultiple,g=this._selectOptions(),h=this.selected(),i=this.selectedIndices();(b||this._isRebuildRequired())&&d._buildList(),d.setButtonText(),d.setButtonCount(),d.list.find("li:not(.ui-li-divider)").removeClass(a.mobile.activeBtnClass).attr("aria-selected",!1).each(function(b){if(a.inArray(b,i)>-1){var c=a(this);c.attr("aria-selected",!0),d.isMultiple?c.find(".ui-icon").removeClass("ui-icon-checkbox-off").addClass("ui-icon-checkbox-on"):c.addClass(a.mobile.activeBtnClass)}})},close:function(){if(this.options.disabled||!this.isOpen)return;var a=this;a.menuType=="page"?window.history.back():(a.screen.addClass("ui-screen-hidden"),a.listbox.addClass("ui-selectmenu-hidden").removeAttr("style").removeClass("in"),a.list.appendTo(a.listbox),a._focusButton()),a.isOpen=!1},open:function(){function h(){b.list.find(a.mobile.activeBtnClass).focus()}if(this.options.disabled)return;var b=this,c=b.list.parent().outerHeight(),d=b.list.parent().outerWidth(),e=a(".ui-page-active"),f=a.support.touchOverflow&&a.mobile.touchOverflowEnabled,g=e.is(".ui-native-fixed")?e.find(".ui-content"):e;scrollTop=f?g.scrollTop():a(window).scrollTop(),btnOffset=b.button.offset().top,screenHeight=window.innerHeight,screenWidth=window.innerWidth,b.button.addClass(a.mobile.activeBtnClass),setTimeout(function(){b.button.removeClass(a.mobile.activeBtnClass)},300);if(c>screenHeight-80||!a.support.scrollTop)b.thisPage.unbind("pagehide.remove"),scrollTop==0&&btnOffset>screenHeight&&b.thisPage.one("pagehide",function(){a(this).jqmData("lastScroll",btnOffset)}),b.menuPage.one("pageshow",function(){a(window).one("silentscroll",function(){h()}),b.isOpen=!0}),b.menuType="page",b.menuPageContent.append(b.list),b.menuPage.find("div .ui-title").text(b.label.text()),a.mobile.changePage(b.menuPage,{transition:a.mobile.defaultDialogTransition});else{b.menuType="overlay",b.screen.height(a(document).height()).removeClass("ui-screen-hidden");var i=btnOffset-scrollTop,j=scrollTop+screenHeight-btnOffset,k=c/2,l=parseFloat(b.list.parent().css("max-width")),m,n;i>c/2&&j>c/2?m=btnOffset+b.button.outerHeight()/2-k:m=i>j?scrollTop+screenHeight-c-30:scrollTop+30,d<l?n=(screenWidth-d)/2:(n=b.button.offset().left+b.button.outerWidth()/2-d/2,n<30?n=30:n+d>screenWidth&&(n=screenWidth-d-30)),b.listbox.append(b.list).removeClass("ui-selectmenu-hidden").css({top:m,left:n}).addClass("in"),h(),b.isOpen=!0}},_buildList:function(){var b=this,c=this.options,d=this.placeholder,e=[],f=[],g=b.isMultiple?"checkbox-off":"false";b.list.empty().filter(".ui-listview").listview("destroy"),b.select.find("option").each(function(h){var i=a(this),j=i.parent(),k=i.getEncodedText(),l="<a href='#'>"+k+"</a>",m=[],n=[];if(j.is("optgroup")){var o=j.attr("label");a.inArray(o,e)===-1&&(f.push("<li data-"+a.mobile.ns+"role='list-divider'>"+o+"</li>"),e.push(o))}if(!this.getAttribute("value")||k.length==0||i.jqmData("placeholder"))c.hidePlaceholderMenuItems&&m.push("ui-selectmenu-placeholder"),d=b.placeholder=k;this.disabled&&(m.push("ui-disabled"),n.push("aria-disabled='true'")),f.push("<li data-"+a.mobile.ns+"option-index='"+h+"' data-"+a.mobile.ns+"icon='"+g+"' class='"+m.join(" ")+"' "+n.join(" ")+">"+l+"</li>")}),b.list.html(f.join(" ")),b.list.find("li").attr({role:"option",tabindex:"-1"}).first().attr("tabindex","0"),this.isMultiple||this.headerClose.hide(),!this.isMultiple&&!d.length?this.header.hide():this.headerTitle.text(this.placeholder),b.list.listview()},_button:function(){return a("<a>",{href:"#",role:"button",id:this.buttonId,"aria-haspopup":"true","aria-owns":this.menuId})}})};a("select").live("selectmenubeforecreate",function(){var b=a(this).data("selectmenu");b.options.nativeMenu||c(b)})}(jQuery),function(a,b){a.widget("mobile.selectmenu",a.mobile.widget,{options:{theme:null,disabled:!1,icon:"arrow-d",iconpos:"right",inline:null,corners:!0,shadow:!0,iconshadow:!0,menuPageTheme:"b",overlayTheme:"a",hidePlaceholderMenuItems:!0,closeText:"Close",nativeMenu:!0,initSelector:"select:not(:jqmData(role='slider'))"},_button:function(){return a("<div/>")},_setDisabled:function(a){return this.element.attr("disabled",a),this.button.attr("aria-disabled",a),this._setOption("disabled",a)},_focusButton:function(){var a=this;setTimeout(function(){a.button.focus()},40)},_selectOptions:function(){return this.select.find("option")},_preExtension:function(){this.select=this.element.wrap("<div class='ui-select'>"),this.selectID=this.select.attr("id"),this.label=a("label[for='"+this.selectID+"']").addClass("ui-select"),this.isMultiple=this.select[0].multiple,this.options.theme||(this.options.theme=a.mobile.getInheritedTheme(this.select,"c"))},_create:function(){this._preExtension(),this._trigger("beforeCreate"),this.button=this._button();var b=this,c=this.options,d=this.select[0].selectedIndex==-1?0:this.select[0].selectedIndex,e=this.button.text(a(this.select[0].options.item(d)).text()).insertBefore(this.select).buttonMarkup({theme:c.theme,icon:c.icon,iconpos:c.iconpos,inline:c.inline,corners:c.corners,shadow:c.shadow,iconshadow:c.iconshadow});c.nativeMenu&&window.opera&&window.opera.version&&this.select.addClass("ui-select-nativeonly"),this.isMultiple&&(this.buttonCount=a("<span>").addClass("ui-li-count ui-btn-up-c ui-btn-corner-all").hide().appendTo(e.addClass("ui-li-has-count"))),(c.disabled||this.element.attr("disabled"))&&this.disable(),this.select.change(function(){b.refresh()}),this.build()},build:function(){var b=this;this.select.appendTo(b.button).bind("vmousedown",function(){b.button.addClass(a.mobile.activeBtnClass)}).bind("focus vmouseover",function(){b.button.trigger("vmouseover")}).bind("vmousemove",function(){b.button.removeClass(a.mobile.activeBtnClass)}).bind("change blur vmouseout",function(){b.button.trigger("vmouseout").removeClass(a.mobile.activeBtnClass)}).bind("change blur",function(){b.button.removeClass("ui-btn-down-"+b.options.theme)})},selected:function(){return this._selectOptions().filter(":selected")},selectedIndices:function(){var a=this;return this.selected().map(function(){return a._selectOptions().index(this)}).get()},setButtonText:function(){var b=this,c=this.selected();this.button.find(".ui-btn-text").text(function(){return b.isMultiple?c.length?c.map(function(){return a(this).text()}).get().join(", "):b.placeholder:c.text()})},setButtonCount:function(){var a=this.selected();this.isMultiple&&this.buttonCount[a.length>1?"show":"hide"]().text(a.length)},refresh:function(){this.setButtonText(),this.setButtonCount()},open:a.noop,close:a.noop,disable:function(){this._setDisabled(!0),this.button.addClass("ui-disabled")},enable:function(){this._setDisabled(!1),this.button.removeClass("ui-disabled")}}),a(document).bind("pagecreate create",function(b){a.mobile.selectmenu.prototype.enhanceWithin(b.target)})}(jQuery),function(a,b){function c(b){while(b){var c=a(b);if(c.hasClass("ui-btn")&&!c.hasClass("ui-disabled"))break;b=b.parentNode}return b}a.fn.buttonMarkup=function(b){return this.each(function(){var c=a(this),e=a.extend({},a.fn.buttonMarkup.defaults,{icon:c.jqmData("icon"),iconpos:c.jqmData("iconpos"),theme:c.jqmData("theme"),inline:c.jqmData("inline"),shadow:c.jqmData("shadow"),corners:c.jqmData("corners"),iconshadow:c.jqmData("iconshadow")},b),f="ui-btn-inner",g,h,i;d&&d(),e.theme||(e.theme=a.mobile.getInheritedTheme(c,"c")),g="ui-btn ui-btn-up-"+e.theme,e.inline&&(g+=" ui-btn-inline"),e.icon&&(e.icon="ui-icon-"+e.icon,e.iconpos=e.iconpos||"left",h="ui-icon "+e.icon,e.iconshadow&&(h+=" ui-icon-shadow")),e.iconpos&&(g+=" ui-btn-icon-"+e.iconpos,e.iconpos=="notext"&&!c.attr("title")&&c.attr("title",c.getEncodedText())),e.corners&&(g+=" ui-btn-corner-all",f+=" ui-btn-corner-all"),e.shadow&&(g+=" ui-shadow"),c.attr("data-"+a.mobile.ns+"theme",e.theme).addClass(g),i=("<D class='"+f+"' aria-hidden='true'><D class='ui-btn-text'></D>"+(e.icon?"<span class='"+h+"'></span>":"")+"</D>").replace(/D/g,e.wrapperEls),c.wrapInner(i)})},a.fn.buttonMarkup.defaults={corners:!0,shadow:!0,iconshadow:!0,inline:!1,wrapperEls:"span"};var d=function(){a(document).bind({vmousedown:function(b){var d=c(b.target),e,f;d&&(e=a(d),f=e.attr("data-"+a.mobile.ns+"theme"),e.removeClass("ui-btn-up-"+f).addClass("ui-btn-down-"+f))},"vmousecancel vmouseup":function(b){var d=c(b.target),e,f;d&&(e=a(d),f=e.attr("data-"+a.mobile.ns+"theme"),e.removeClass("ui-btn-down-"+f).addClass("ui-btn-up-"+f))},"vmouseover focus":function(b){var d=c(b.target),e,f;d&&(e=a(d),f=e.attr("data-"+a.mobile.ns+"theme"),e.removeClass("ui-btn-up-"+f).addClass("ui-btn-hover-"+f))},"vmouseout blur":function(b){var d=c(b.target),e,f;d&&(e=a(d),f=e.attr("data-"+a.mobile.ns+"theme"),e.removeClass("ui-btn-hover-"+f).addClass("ui-btn-up-"+f))}}),d=null};a(document).bind("pagecreate create",function(b){a(":jqmData(role='button'), .ui-bar > a, .ui-header > a, .ui-footer > a, .ui-bar > :jqmData(role='controlgroup') > a",b.target).not(".ui-btn, :jqmData(role='none'), :jqmData(role='nojs')").buttonMarkup()})}(jQuery),function(a,b){a.fn.controlgroup=function(b){return this.each(function(){function h(a){a.removeClass("ui-btn-corner-all ui-shadow").eq(0).addClass(f[0]).end().filter(":last").addClass(f[1]).addClass("ui-controlgroup-last")}var c=a(this),d=a.extend({direction:c.jqmData("type")||"vertical",shadow:!1,excludeInvisible:!0},b),e=c.find(">legend"),f=d.direction=="horizontal"?["ui-corner-left","ui-corner-right"]:["ui-corner-top","ui-corner-bottom"],g=c.find("input:eq(0)").attr("type");e.length&&(c.wrapInner("<div class='ui-controlgroup-controls'></div>"),a("<div role='heading' class='ui-controlgroup-label'>"+e.html()+"</div>").insertBefore(c.children(0)),e.remove()),c.addClass("ui-corner-all ui-controlgroup ui-controlgroup-"+d.direction),h(c.find(".ui-btn"+(d.excludeInvisible?":visible":""))),h(c.find(".ui-btn-inner")),d.shadow&&c.addClass("ui-shadow")})},a(document).bind("pagecreate create",function(b){a(":jqmData(role='controlgroup')",b.target).controlgroup({excludeInvisible:!1})})}(jQuery),function(a,b){a(document).bind("pagecreate create",function(b){a(b.target).find("a").not(".ui-btn, .ui-link-inherit, :jqmData(role='none'), :jqmData(role='nojs')").addClass("ui-link")})}(jQuery),function(a,b){var c="ui-header-fixed ui-fixed-inline fade",d="ui-footer-fixed ui-fixed-inline fade",e=".ui-header:jqmData(position='fixed')",f=".ui-footer:jqmData(position='fixed')";a.fn.fixHeaderFooter=function(b){return!a.support.scrollTop||a.support.touchOverflow&&a.mobile.touchOverflowEnabled?this:this.each(function(){var b=a(this);b.jqmData("fullscreen")&&b.addClass("ui-page-fullscreen"),b.find(e).addClass(c),b.find(f).addClass(d)})},a.mobile.fixedToolbars=function(){function p(b){!f&&e==="overlay"&&(d||a.mobile.fixedToolbars.hide(!0),a.mobile.fixedToolbars.startShowTimer())}function q(a){var b=0,c,d;if(a){d=document.body,c=a.offsetParent,b=a.offsetTop;while(a&&a!=d)b+=a.scrollTop||0,a==c&&(b+=c.offsetTop,c=a.offsetParent),a=a.parentNode}return b}function r(b){var c=a(window).scrollTop(),d=q(b[0]),e=b.css("top")=="auto"?0:parseFloat(b.css("top")),f=window.innerHeight,g=b.outerHeight(),h=b.parents(".ui-page:not(.ui-page-fullscreen)").length,i;return b.is(".ui-header-fixed")?(i=c-d+e,i<d&&(i=0),b.css("top",h?i:c)):(i=c+f-g-(d-e),b.css("top",h?i:c+f-g))}if(!a.support.scrollTop||a.support.touchOverflow&&a.mobile.touchOverflowEnabled)return;var c,d,e="inline",f=!1,g=100,h="a,input,textarea,select,button,label,.ui-header-fixed,.ui-footer-fixed",i=".ui-header-fixed:first, .ui-footer-fixed:not(.ui-footer-duplicate):last",j=a.support.touch,k=j?"touchstart":"mousedown",l=j?"touchend":"mouseup",m=null,n=!1,o=!0;return a(function(){var b=a(document),c=a(window);b.bind("vmousedown",function(a){o&&(m=e)}).bind("vclick",function(b){if(o){if(a(b.target).closest(h).length)return;n||(a.mobile.fixedToolbars.toggle(m),m=null)}}).bind("silentscroll",p),(b.scrollTop()===0?c:b).bind("scrollstart",function(b){n=!0,m===null&&(m=e);var c=m=="overlay";f=c||!!d,f&&(a.mobile.fixedToolbars.clearShowTimer(),c&&a.mobile.fixedToolbars.hide(!0))}).bind("scrollstop",function(b){if(a(b.target).closest(h).length)return;n=!1,f&&(a.mobile.fixedToolbars.startShowTimer(),f=!1),m=null}),c.bind("resize updatelayout",p)}),a(".ui-page").live("pagebeforeshow",function(b,d){var e=a(b.target),f=e.find(":jqmData(role='footer')"),g=f.data("id"),h=d.prevPage,i=h&&h.find(":jqmData(role='footer')"),j=i.length&&i.jqmData("id")===g;g&&j&&(c=f,r(c.removeClass("fade in out").appendTo(a.mobile.pageContainer)))}).live("pageshow",function(b,d){var e=a(this);c&&c.length&&setTimeout(function(){r(c.appendTo(e).addClass("fade")),c=null},500),a.mobile.fixedToolbars.show(!0,this)}),a(".ui-collapsible-contain").live("collapse expand",p),{show:function(b,c){a.mobile.fixedToolbars.clearShowTimer(),e="overlay";var d=c?a(c):a.mobile.activePage?a.mobile.activePage:a(".ui-page-active");return d.children(i).each(function(){var c=a(this),d=a(window).scrollTop(),e=q(c[0]),f=window.innerHeight,g=c.outerHeight(),h=c.is(".ui-header-fixed")&&d<=e+g||c.is(".ui-footer-fixed")&&e<=d+f;c.addClass("ui-fixed-overlay").removeClass("ui-fixed-inline"),!h&&!b&&c.animationComplete(function(){c.removeClass("in")}).addClass("in"),r(c)})},hide:function(b){e="inline";var c=a.mobile.activePage?a.mobile.activePage:a(".ui-page-active");return c.children(i).each(function(){var c=a(this),d=c.css("top"),e;d=d=="auto"?0:parseFloat(d),c.addClass("ui-fixed-inline").removeClass("ui-fixed-overlay");if(d<0||c.is(".ui-header-fixed")&&d!==0)b?c.css("top",0):c.css("top")!=="auto"&&parseFloat(c.css("top"))!==0&&(e="out reverse",c.animationComplete(function(){c.removeClass(e).css("top",0)}).addClass(e))})},startShowTimer:function(){a.mobile.fixedToolbars.clearShowTimer();var c=[].slice.call(arguments);d=setTimeout(function(){d=b,a.mobile.fixedToolbars.show.apply(null,c)},g)},clearShowTimer:function(){d&&clearTimeout(d),d=b},toggle:function(b){return b&&(e=b),e==="overlay"?a.mobile.fixedToolbars.hide():a.mobile.fixedToolbars.show()},setTouchToggleEnabled:function(a){o=a}}}(),a(document).bind("pagecreate create",function(b){a(":jqmData(position='fixed')",b.target).length&&a(b.target).each(function(){if(!a.support.scrollTop||a.support.touchOverflow&&a.mobile.touchOverflowEnabled)return this;var b=a(this);b.jqmData("fullscreen")&&b.addClass("ui-page-fullscreen"),b.find(e).addClass(c),b.find(f).addClass(d)})})}(jQuery),function(a,b){a.mobile.touchOverflowEnabled=!1,a.mobile.touchOverflowZoomEnabled=!1,a(document).bind("pagecreate",function(b){if(a.support.touchOverflow&&a.mobile.touchOverflowEnabled){var c=a(b.target),d=0;c.is(":jqmData(role='page')")&&c.each(function(){var b=a(this),c=b.find(":jqmData(role='header'), :jqmData(role='footer')").filter(":jqmData(position='fixed')"),d=b.jqmData("fullscreen"),e=c.length?b.find(".ui-content"):b;b.addClass("ui-mobile-touch-overflow"),e.bind("scrollstop",function(){e.scrollTop()>0&&window.scrollTo(0,a.mobile.defaultHomeScroll)}),c.length&&(b.addClass("ui-native-fixed"),d&&(b.addClass("ui-native-fullscreen"),c.addClass("fade in"),a(document).bind("vclick",function(){c.removeClass("ui-native-bars-hidden").toggleClass("in out").animationComplete(function(){a(this).not(".in").addClass("ui-native-bars-hidden")})})))})}})}(jQuery),function(a,b,c){function h(){var b="user-scalable=no",c=a("meta[name='viewport']");c.length?c.attr("content",c.attr("content")+", "+b):a("head").prepend("<meta>",{name:"viewport",content:b})}var d=a("html"),e=a("head"),f=a(b);a(b.document).trigger("mobileinit");if(!a.mobile.gradeA())return;a.mobile.ajaxBlacklist&&(a.mobile.ajaxEnabled=!1),d.addClass("ui-mobile ui-mobile-rendering");var g=a("<div class='ui-loader ui-body-a ui-corner-all'><span class='ui-icon ui-icon-loading spin'></span><h1></h1></div>");a.extend(a.mobile,{showPageLoadingMsg:function(){if(a.mobile.loadingMessage){var b=a("."+a.mobile.activeBtnClass).first();g.find("h1").text(a.mobile.loadingMessage).end().appendTo(a.mobile.pageContainer).css({top:a.support.scrollTop&&f.scrollTop()+f.height()/2||b.length&&b.offset().top||100})}d.addClass("ui-loading")},hidePageLoadingMsg:function(){d.removeClass("ui-loading")},initializePage:function(){var b=a(":jqmData(role='page')");b.length||(b=a("body").wrapInner("<div data-"+a.mobile.ns+"role='page'></div>").children(0)),b.add(":jqmData(role='dialog')").each(function(){var b=a(this);b.jqmData("url")||b.attr("data-"+a.mobile.ns+"url",b.attr("id")||location.pathname+location.search)}),a.mobile.firstPage=b.first(),a.mobile.pageContainer=b.first().parent().addClass("ui-mobile-viewport"),f.trigger("pagecontainercreate"),a.mobile.showPageLoadingMsg(),!a.mobile.hashListeningEnabled||!a.mobile.path.stripHash(location.hash)?a.mobile.changePage(a.mobile.firstPage,{transition:"none",reverse:!0,changeHash:!1,fromHashChange:!0}):f.trigger("hashchange",[!0])}}),a.support.touchOverflow&&a.mobile.touchOverflowEnabled&&!a.mobile.touchOverflowZoomEnabled&&h(),a.mobile._registerInternalEvents(),a(function(){b.scrollTo(0,1),a.mobile.defaultHomeScroll=!a.support.scrollTop||a(b).scrollTop()===1?0:1,a.mobile.autoInitializePage&&a.mobile.initializePage(),f.load(a.mobile.silentScroll)})}(jQuery,this)
View
83 pom.xml
@@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.opitzconsulting.html5</groupId>
<artifactId>jquery-mobile-angular-adapter</artifactId>
- <version>1.0.3-SNAPSHOT</version>
+ <version>1.0.3</version>
<name>JQuery Mobile Angular Adapter</name>
<packaging>war</packaging>
<description>Adapter for using jquery mobile with angular</description>
@@ -12,7 +12,7 @@
<browser>/Applications/Google Chrome.app/Contents/MacOS/Google Chrome</browser>
<!-- optimizer for minification: uglify or closure -->
<jsOptimizer>uglify</jsOptimizer>
- <jsSuffix>-${version}</jsSuffix>
+ <jsSuffix>-${project.version}</jsSuffix>
</properties>
<build>
@@ -65,6 +65,67 @@
<build>
<plugins>
<plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.5</version>
+ <executions>
+ <execution>
+ <id>copy-resources</id>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${basedir}/target/wrap</outputDirectory>
+ <resources>
+ <resource>
+ <directory>${basedir}/src/main/wrap</directory>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ <execution>
+ <id>copy-jquery-mobile</id>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${basedir}/compiled/jquery-mobile</outputDirectory>
+ <resources>
+ <resource>
+ <directory>${basedir}/src/main/webapp/lib</directory>
+ <includes>
+ <include>images/*</include>
+ <include>jquery.mobile*</include>
+ </includes>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ <execution>
+ <id>copy-optimized-files</id>
+ <phase>package</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${basedir}/compiled/min</outputDirectory>
+ <resources>
+ <resource>
+ <directory>${basedir}/target/requirejs/optimize</directory>
+ <includes>
+ <include>jquery-mobile-angular-adapter-standalone-${project.version}.js</include>
+ <include>jquery-mobile-angular-adapter-${project.version}.js</include>
+ <include>jquery-mobile/**/*</include>
+ </includes>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<groupId>com.voltvoodoo</groupId>
<artifactId>brew</artifactId>
@@ -77,7 +138,7 @@
</goals>
<configuration>
<jsOptimizer>none</jsOptimizer>
- <optimizedFileNameSuffix>-${version}</optimizedFileNameSuffix>
+ <optimizedFileNameSuffix>-${project.version}</optimizedFileNameSuffix>
<optimizeSourceDir>${basedir}/src/main/webapp</optimizeSourceDir>
<optimizeBuildDir>${basedir}/target/requirejs/build</optimizeBuildDir>
<optimizeOutputDir>${basedir}/compiled</optimizeOutputDir>
@@ -92,8 +153,8 @@
</module>
</modules>
<wrap>
- <startFile>${basedir}/src/main/build/header.js</startFile>
- <endFile>${basedir}/src/main/build/footer.js</endFile>
+ <startFile>${basedir}/target/wrap/header.js</startFile>
+ <endFile>${basedir}/target/wrap/footer.js</endFile>
</wrap>
</configuration>
</execution>
@@ -105,7 +166,7 @@
</goals>
<configuration>
<jsOptimizer>none</jsOptimizer>
- <optimizedFileNameSuffix>-${version}</optimizedFileNameSuffix>
+ <optimizedFileNameSuffix>-${project.version}</optimizedFileNameSuffix>
<optimizeSourceDir>${basedir}/target/requirejs/build</optimizeSourceDir>
<optimizeBuildDir>${basedir}/target/requirejs/build</optimizeBuildDir>
<optimizeOutputDir>${basedir}/compiled</optimizeOutputDir>
@@ -118,7 +179,8 @@
<entry>lib/mobileinit</entry>
<entry>lib/angular-0.9.19</entry>
<entry>lib/jquery.mobile-1.0rc2-oc1</entry>
- <entry>../../../compiled/jquery-mobile-angular-adapter-${version}</entry>
+ <entry>../../../compiled/jquery-mobile-angular-adapter-${project.version}
+ </entry>
</include>
</module>
</modules>
@@ -135,14 +197,11 @@
<optimizedFileNameSuffix>.min</optimizedFileNameSuffix>
<optimizeSourceDir>${basedir}/compiled</optimizeSourceDir>
<optimizeBuildDir>${basedir}/target/requirejs/optimize</optimizeBuildDir>
- <optimizeOutputDir>${basedir}/compiled</optimizeOutputDir>
+ <optimizeOutputDir>${basedir}/target/requirejs/noop</optimizeOutputDir>
<skipModuleInsertion>true</skipModuleInsertion>
<modules>
<module>
- <name>jquery-mobile-angular-adapter-standalone-${version}</name>
- </module>
- <module>
- <name>jquery-mobile-angular-adapter-${version}</name>
+ <name>jquery-mobile-angular-adapter-${project.version}</name>
</module>
</modules>
</configuration>
View
24 src/main/build/header.js
@@ -1,24 +0,0 @@
-/**
- * The MIT License
- *
- * Copyright (c) 2011 Tobias Bosch (OPITZ CONSULTING GmbH, www.opitz-consulting.com)
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-(function() {
View
26 src/main/webapp/jqmng/navigate.js
@@ -10,13 +10,35 @@ define(['jquery', 'angular'], function($, angular) {
];
}
+ function callActivateFnOnPageChange(fnName, params) {
+ if (fnName) {
+ $(document).one("pagebeforechange", function(event, data) {
+ var toPageUrl = $.mobile.path.parseUrl( data.toPage );
+ var page = $("#"+toPageUrl.hash.substring(1));
+ function executeCall() {
+ var scope = page.scope();
+ scope[fnName].apply(scope, params);
+ }
+ if (!page.data("page")) {
+ page.one("pagecreate", executeCall);
+ return;
+ }
+ executeCall();
+ });
+ }
+ }
+
/*
* Service for page navigation.
- * target has the syntax: [<transition>:]pageId
+ * @param target has the syntax: [<transition>:]pageId
+ * @param activateFunctionName Function to call in the target scope.
+ * @param further params Parameters for the function that should be called in the target scope.
*/
- function navigate(target) {
+ function navigate(target, activateFunctionName) {
+ var activateParams = Array.prototype.slice.call(arguments, 2);
var parts = splitAtFirstColon(target);
var animation, pageId;
+ callActivateFnOnPageChange(activateFunctionName, activateParams);
if (parts.length === 2 && parts[0] === 'back') {
var pageId = parts[1];
var relativeIndex = getIndexInStack(pageId);
View
338 src/main/webapp/lib/jquery.mobile-1.0rc2-oc1.css
@@ -1,5 +1,5 @@
/*!
- * jQuery Mobile v1.0rc2
+ * jQuery Mobile v Git > Date: Fri Nov 11 09:58:34 2011 +0100 Info SHA1: c8f3860b88a97d25905155c3988296282df2b20e
* http://jquerymobile.com/
*
* Copyright 2010, jQuery Project
@@ -1279,137 +1279,161 @@ a.ui-link-inherit {
to {-webkit-transform: rotate(360deg);}
}
-/* Transitions from jQtouch (with small modifications): http://www.jqtouch.com/
-Built by David Kaneda and maintained by Jonathan Stark.
-*/
-.in, .out {
- -webkit-animation-timing-function: ease-in-out;
- -webkit-animation-duration: 350ms;
-}
-
-
-.slide.out {
- -webkit-transform: translateX(-100%);
- -webkit-animation-name: slideouttoleft;
+.in.animate, .out.animate {
+ -webkit-transition: 350ms ease-in-out;
+ -moz-transition: 350ms ease-in-out;
+ -o-transition: 350ms ease-in-out;
+ transition: 350ms ease-in-out;
}
-.slide.in {
- -webkit-transform: translateX(0);
- -webkit-animation-name: slideinfromright;
+/* To avoid flashing, we need to make sure we toggle
+ * the display/visibility of the page that is being
+ * transitioned to at the same time we set its z-index.
+ */
+.ui-page.in {
+ display: block;
+ visibility: visible;
}
-.slide.out.reverse {
- -webkit-transform: translateX(100%);
- -webkit-animation-name: slideouttoright;
+.slide.animate,
+.slideup.animate,
+.slidedown.animate {
+ -webkit-transition-property: -webkit-transform;
+ -moz-transition-property: -moz-transform;
+ -o-transition-property: -o-transform;
+ transition-property: transform;
}
+.slide.in,
.slide.in.reverse {
- -webkit-transform: translateX(0);
- -webkit-animation-name: slideinfromleft;
-}
-
-.slideup.out {
- -webkit-animation-name: dontmove;
- z-index: 0;
-}
-
-.slideup.in {
- -webkit-transform: translateY(0);
- -webkit-animation-name: slideinfrombottom;
z-index: 10;
}
-.slideup.in.reverse {
+.slide.out,
+.slide.out.reverse {
z-index: 0;
- -webkit-animation-name: dontmove;
-}
-
-.slideup.out.reverse {
- -webkit-transform: translateY(100%);
- z-index: 10;
- -webkit-animation-name: slideouttobottom;
}
-.slidedown.out {
- -webkit-animation-name: dontmove;
- z-index: 0;
+.slide.in,
+.slide.out.reverse.animate {
+ -webkit-transform: translateX(100%);
+ -moz-transform: translateX(100%);
+ -o-transform: translateX(100%);
+ transform: translateX(100%);
}
-.slidedown.in {
- -webkit-transform: translateY(0);
- -webkit-animation-name: slideinfromtop;
- z-index: 10;
+.slide.in.animate,
+.slide.in.reverse.animate,
+.slide.out,
+.slide.out.reverse {
+ -webkit-transform: translateX(0);
+ -moz-transform: translateX(0);
+ -o-transform: translateX(0);
+ transform: translateX(0);
}
-.slidedown.in.reverse {
- z-index: 0;
- -webkit-animation-name: dontmove;
+.slide.in.reverse,
+.slide.out.animate {
+ -webkit-transform: translateX(-100%);
+ -moz-transform: translateX(-100%);
+ -o-transform: translateX(-100%);
+ transform: translateX(-100%);
}
+.slideup.in,
+.slideup.out.reverse,
+.slidedown.in,
.slidedown.out.reverse {
- -webkit-transform: translateY(-100%);
z-index: 10;
- -webkit-animation-name: slideouttotop;
}
-@-webkit-keyframes slideinfromright {
- from { -webkit-transform: translateX(100%); }
- to { -webkit-transform: translateX(0); }
+.slideup.out,
+.slideup.in.reverse,
+.slidedown.out,
+.slidedown.in.reverse {
+ z-index: 0;
}
-@-webkit-keyframes slideinfromleft {
- from { -webkit-transform: translateX(-100%); }
- to { -webkit-transform: translateX(0); }
+.slideup.in.reverse,
+.slideup.in.reverse.animate,
+.slideup.out,
+.slideup.out.animate,
+.slidedown.in.reverse,
+.slidedown.in.reverse.animate,
+.slidedown.out,
+.slidedown.out.animate {
+ /* For the page that doesn't animate, translate3d needs to
+ * be set on it to prevent flashing and produce a smoother
+ * animation on the Motorola Xoom (Android 3.1).
+ */
+ -webkit-transform: translate3d(0,0,0);
+ -moz-transform: translate3d(0,0,0);
+ -o-transform: translate3d(0,0,0);
+ transform: translate3d(0,0,0);
+}
+
+.slideup.in,
+.slideup.out.reverse.animate {
+ -webkit-transform: translateY(100%);
+ -moz-transform: translateY(100%);
+ -o-transform: translateY(100%);
+ transform: translateY(100%);
}
-@-webkit-keyframes slideouttoleft {
- from { -webkit-transform: translateX(0); }
- to { -webkit-transform: translateX(-100%); }
+.slidedown.in,
+.slidedown.out.reverse.animate {
+ -webkit-transform: translateY(-100%);
+ -moz-transform: translateY(-100%);
+ -o-transform: translateY(-100%);
+ transform: translateY(-100%);
}
-@-webkit-keyframes slideouttoright {
- from { -webkit-transform: translateX(0); }
- to { -webkit-transform: translateX(100%); }
+.slideup.in.animate,
+.slideup.out.reverse,
+.slidedown.in.animate,
+.slidedown.out.reverse {
+ -webkit-transform: translateY(0);
+ -moz-transform: translateY(0);
+ -o-transform: translateY(0);
+ transform: translateY(0);
}
-@-webkit-keyframes slideinfromtop {
- from { -webkit-transform: translateY(-100%); }
- to { -webkit-transform: translateY(0); }
+.fade.animate {
+ -webkit-transition-property: opacity;
+ -moz-transition-property: opacity;
+ -o-transition-property: opacity;
+ transition-property: opacity;
}
-@-webkit-keyframes slideinfrombottom {
- from { -webkit-transform: translateY(100%); }
- to { -webkit-transform: translateY(0); }
+.fade.in,
+.fade.out {
+ /* translate3d() needs to be set on both pages for a smoother
+ * animation on the Motorola Xoom (Android 3.1).
+ */
+ -webkit-transform: translate3d(0,0,0);
+ -moz-transform: translate3d(0,0,0);
+ -o-transform: translate3d(0,0,0);
+ transform: translate3d(0,0,0);
}
-@-webkit-keyframes slideouttobottom {
- from { -webkit-transform: translateY(0); }
- to { -webkit-transform: translateY(100%); }
+.fade.in,
+.fade.out.reverse {
+ z-index: 10;
}
-@-webkit-keyframes slideouttotop {
- from { -webkit-transform: translateY(0); }
- to { -webkit-transform: translateY(-100%); }
-}
-@-webkit-keyframes fadein {
- from { opacity: 0; }
- to { opacity: 1; }
+.fade.out,
+.fade.in.reverse {
+ z-index: 0;
}
-@-webkit-keyframes fadeout {
- from { opacity: 1; }
- to { opacity: 0; }
+.fade.in,
+.fade.out.animate {
+ opacity: 0;
}
+.fade.in.animate,
.fade.out {
- z-index: 0;
- -webkit-animation-name: fadeout;
-}
-
-.fade.in {
- opacity: 1;
- z-index: 10;
- -webkit-animation-name: fadein;
+ opacity: 1;
}
/* The properties in this rule are only necessary for the 'flip' transition.
@@ -1420,6 +1444,7 @@ Built by David Kaneda and maintained by Jonathan Stark.
*/
.viewport-flip {
-webkit-perspective: 1000;
+ perspective: 1000;
position: absolute;
}
@@ -1431,105 +1456,89 @@ Built by David Kaneda and maintained by Jonathan Stark.
}
.flip {
- -webkit-animation-duration: .65s;
- -webkit-backface-visibility:hidden;
- -webkit-transform:translateX(0); /* Needed to work around an iOS 3.1 bug that causes listview thumbs to disappear when -webkit-visibility:hidden is used. */
-}
-
-.flip.out {
- -webkit-transform: rotateY(-180deg) scale(.8);
- -webkit-animation-name: flipouttoleft;
+ -webkit-backface-visibility: hidden;
+ -webkit-transform: translateX(0); /* Needed to work around an iOS 3.1 bug that causes listview thumbs to disappear when -webkit-visibility:hidden is used. */
}
-.flip.in {
- -webkit-transform: rotateY(0) scale(1);
- -webkit-animation-name: flipinfromleft;
+.flip.in.animate, .flip.out.animate {
+ -webkit-transition-duration: .65s;
}
-/* Shake it all about */
-
-.flip.out.reverse {
+.flip.in,
+.flip.out.reverse.animate {
-webkit-transform: rotateY(180deg) scale(.8);
- -webkit-animation-name: flipouttoright;
-}
-
-.flip.in.reverse {
- -webkit-transform: rotateY(0) scale(1);
- -webkit-animation-name: flipinfromright;
}
-@-webkit-keyframes flipinfromright {
- from { -webkit-transform: rotateY(-180deg) scale(.8); }
- to { -webkit-transform: rotateY(0) scale(1); }
+.flip.in.animate,
+.flip.out,
+.flip.out.reverse,
+.flip.in.reverse.animate {
+ -webkit-transform: rotateY(0deg) scale(1.0);
}
-@-webkit-keyframes flipinfromleft {
- from { -webkit-transform: rotateY(180deg) scale(.8); }
- to { -webkit-transform: rotateY(0) scale(1); }
-}
-
-@-webkit-keyframes flipouttoleft {
- from { -webkit-transform: rotateY(0) scale(1); }
- to { -webkit-transform: rotateY(-180deg) scale(.8); }
-}
-
-@-webkit-keyframes flipouttoright {
- from { -webkit-transform: rotateY(0) scale(1); }
- to { -webkit-transform: rotateY(180deg) scale(.8); }
+.flip.out.animate,
+.flip.in.reverse {
+ -webkit-transform: rotateY(-180deg) scale(.8);
}
-
-/* Hackish, but reliable. */
-
-@-webkit-keyframes dontmove {
- from { opacity: 1; }
- to { opacity: 1; }
+.pop.animate {
+ -webkit-transition-property: -webkit-transform, opacity;
+ -moz-transition-property: -moz-transform, opacity;
+ -o-transition-property: -o-transform, opacity;
+ transition-property: transform, opacity;
}
.pop {
-webkit-transform-origin: 50% 50%;
+ -moz-transform-origin: 50% 50%;
+ -o-transform-origin: 50% 50%;
+ transform-origin: 50% 50%;
}
-.pop.in {
- -webkit-transform: scale(1);
- opacity: 1;
- -webkit-animation-name: popin;
+.pop.in,
+.pop.out.reverse {
z-index: 10;
}
+.pop.out,
.pop.in.reverse {
z-index: 0;
- -webkit-animation-name: dontmove;
}
-.pop.out.reverse {
+.pop.in.reverse,
+.pop.in.reverse.animate,
+.pop.out,
+.pop.out.animate {
+ -webkit-transform: translate3d(0,0,0);
+ -moz-transform: translate3d(0,0,0);
+ -o-transform: translate3d(0,0,0);
+ transform: translate3d(0,0,0);
+ opacity: 1;
+}
+
+.pop.in,
+.pop.out.reverse.animate {
-webkit-transform: scale(.2);
+ -moz-transform: scale(.2);
+ -o-transform: scale(.2);
+ transform: scale(.2);
opacity: 0;
- -webkit-animation-name: popout;
- z-index: 10;
}
-@-webkit-keyframes popin {
- from {
- -webkit-transform: scale(.2);
- opacity: 0;
- }
- to {
- -webkit-transform: scale(1);
- opacity: 1;
- }
-}
-
-@-webkit-keyframes popout {
- from {
- -webkit-transform: scale(1);
- opacity: 1;
- }
- to {
- -webkit-transform: scale(.2);
- opacity: 0;
- }
-}/*
+.pop.in.animate,
+.pop.out.reverse {
+ -webkit-transform: scale(1.0);
+ -moz-transform: scale(1.0);
+ -o-transform: scale(1.0);
+ transform: scale(1.0);
+ opacity: 1;
+}
+
+
+@-o-viewport {
+ min-zoom: 1;
+}
+/*
* jQuery Mobile Framework
* Copyright (c) jQuery Project
* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
@@ -1879,7 +1888,12 @@ a.ui-slider-handle .ui-btn-inner { padding-left: 0; padding-right: 0; }
div.ui-slider-switch { height: 32px; overflow: hidden; margin-left: 0; }
div.ui-slider-inneroffset { margin-left: 50%; position: absolute; top: 1px; height: 100%; width: 50%; }
-a.ui-slider-handle-snapping { -webkit-transition: left 100ms linear; }
+.ui-slider-handle-snapping {
+ -webkit-transition: left 100ms linear;
+ -moz-transition: left 100ms linear;
+ -o-transition: left 100ms linear;
+ transition: left 100ms linear;
+}
div.ui-slider-labelbg { position: absolute; top:0; margin: 0; border-width: 0; }
div.ui-slider-switch div.ui-slider-labelbg-a { width: 60%; height: 100%; left: 0; }
div.ui-slider-switch div.ui-slider-labelbg-b { width: 60%; height: 100%; right: 0; }
View
175 src/main/webapp/lib/jquery.mobile-1.0rc2-oc1.js
@@ -1,5 +1,5 @@
/*!
- * jQuery Mobile v1.0rc2
+ * jQuery Mobile v Git > Date: Fri Nov 11 09:58:34 2011 +0100 Info SHA1: c8f3860b88a97d25905155c3988296282df2b20e
* http://jquerymobile.com/
*
* Copyright 2010, jQuery Project
@@ -670,11 +670,23 @@ function triggerVirtualEvent( eventType, event, flags ) {
return ve;
}
+// Workaround for jquery issue 10192,
+// by which the mouseout event receives an event with type mosueleave
+// if at least one listener for mouseleave is registered.
+var jqueryEventTypeFixes = {
+ mouseenter: 'mouseover',
+ mouseleave: 'mouseout'
+};
+
function mouseEventCallback( event ) {
var touchID = $.data(event.target, touchTargetPropertyName);
if ( !blockMouseTriggers && ( !lastTouchID || lastTouchID !== touchID ) ){
- var ve = triggerVirtualEvent( "v" + event.type, event );
+ var newType = jqueryEventTypeFixes[event.type];
+ if (!newType) {
+ newType = event.type;
+ }
+ var ve = triggerVirtualEvent( "v" + newType, event );
if ( ve ) {
if ( ve.isDefaultPrevented() ) {
event.preventDefault();
@@ -2552,7 +2564,7 @@ $.widget( "mobile.page", $.mobile.widget, {
//animation complete callback
$.fn.animationComplete = function( callback ) {
- if( $.support.cssTransitions ) {
+ if( $.support.cssTransitions ) {
return $( this ).one( 'webkitAnimationEnd', callback );
}
else{
@@ -2562,6 +2574,18 @@ $.widget( "mobile.page", $.mobile.widget, {
}
};
+ //transition complete callback
+ $.fn.transitionComplete = function( callback ) {
+ if( $.support.cssTransitions ) {
+ return $( this ).one( "transitionend webkitTransitionEnd OTransitionEnd", callback );
+ }
+ else{
+ // defer execution for consistency between webkit/non webkit
+ setTimeout( callback, 0 );
+ return $( this );
+ }
+ };
+
//expose path object on $.mobile
$.mobile.path = path;
@@ -3548,42 +3572,157 @@ $.widget( "mobile.page", $.mobile.widget, {
(function( $, window, undefined ) {
-function css3TransitionHandler( name, reverse, $to, $from ) {
+function css3TransitionsHandler( name, reverse, $to, $from ) {
+
+ // All transition handlers are required to return a
+ // deferred promise object so the caller can tell when the
+ // transition is complete.
var deferred = new $.Deferred(),
+
+ // Are we being asked to run the transition in reverse?
+ // if so, we'll need to make sure we place the "reverse" class
+ // on our "to" and "from" elements.
+
reverseClass = reverse ? " reverse" : "",
+
+ // Some transitions require extra styling on the parent of
+ // the elements being transitioned. We place a generic class
+ // on the parent that someone can use as a styling hook for
+ // when any transition is running, and another class that ends
+ // with the name of the transition so that transitions can enable
+ // properties specifically for the transition.
+
viewportClass = "ui-mobile-viewport-transitioning viewport-" + name,
+
+ // We'll be manipulating both the "to" and "from" elements in
+ // the same way, several times, so we use a cached collection
+ // of both elements.
+
+ $both = $to.add( $from ),
+
+ // Typically, we listen for the completion of the transition to
+ // the "to" element, but in some cases, the "to" element is never
+ // animated, so no transition complete is ever recieved. We need
+ // to set a timer to catch this case so we don't end up waiting
+ // for this notification that will never come.
+
+ doneTimer = 0,
+
+ // We use a timer to place the 'animate' class on the 'to' and
+ // 'from' elements to kick-off any CSS3 transitions. We need to
+ // track the timer id so we can kill it, just in case the doneFunc
+ // fires.
+
+ animateTimer = 0,
+
+ // When the transition completes, we need to do some clean-up
+ // of the CSS classes we placed on the "to" and "from" elements.
+
doneFunc = function() {
+ // In most cases, this function will have been fired
+ // off by the event that signals the completion of the
+ // transition to the "to" element. We need to make sure
+ // we clear the doneTimer so that it doesn't fire this
+ // function a 2nd time.
+
+ if ( doneTimer ) {
+ clearTimeout( doneTimer );
+ doneTimer = 0;
+ }
+
+ // Make sure to clear the animation timer just in
+ // case the doneFunc fires before it does.
+
+ if ( animateTimer ) {
+ clearTimeout( animateTimer );
+ animateTimer = 0;
+ }
- $to.add( $from ).removeClass( "out in reverse " + name );
+ // Only one page can ever have the activePageClass on it,
+ // so remove it from the "from" element and then place it
+ // on the "to" element.
if ( $from && $from[ 0 ] !== $to[ 0 ] ) {
$from.removeClass( $.mobile.activePageClass );
}
+ $to.addClass( $.mobile.activePageClass );
+
+ // Now strip off the transition classes used to animate
+ // the elements.
+
+ $both.removeClass( "out in reverse animate " + name );
+
$to.parent().removeClass( viewportClass );
+ // Tell the caller of the transition handler that we're
+ // all done.
+
deferred.resolve( name, reverse, $to, $from );
};
- $to.animationComplete( doneFunc );
+ // Set up a "transitionend" callback on the "to" element so we know when it
+ // is done transitioning.
+
+ $to.transitionComplete( doneFunc );
+
+ // Some page-transitions don't actually trigger any CSS3 transitions on the
+ // "to" element, so we fire off a timer to manually trigger our done callback
+ // if we haven't recieved a "transitionend" notification within the alotted time.
+
+ doneTimer = setTimeout(function() {
+ if( $.support.cssTransitions ) {
+ $to.unbind( "transitionend webkitTransitionEnd OTransitionEnd", doneFunc );
+ }
+ doneFunc();
+ }, css3TransitionsHandler.transitionThreshold );
+
+ // Add the animation classes that set up the transition interval and initial
+ // values for the properties that will be transitioned.
$to.parent().addClass( viewportClass );
if ( $from ) {
$from.addClass( name + " out" + reverseClass );
}
- $to.addClass( $.mobile.activePageClass + " " + name + " in" + reverseClass );
+
+ $to.addClass( name + " in" + reverseClass );
+
+ // Fire off a timer that will add the "animate" class which triggers the CSS
+ // rules for the "to" and "from" elements that specify new CSS property values
+ // that will kick-off the transitions.
+
+ animateTimer = setTimeout(function() {
+ animateTimer = 0;
+ $both.addClass( "animate" );
+ }, css3TransitionsHandler.animateClassInterval );
+
+ // After we've set up and started the transitions, return a promise to the
+ // caller so they can tell when our async transition is done.
return deferred.promise();
}
+// msecs tow wait before placing the "animate" class on the "to" and "from" element
+// to kick-off any transitions.
+
+css3TransitionsHandler.animateClassInterval = 25;
+
+// msecs to wait for a "transitionend" event before manually firing off the done callback.
+
+css3TransitionsHandler.transitionThreshold = 1000;
+
// Make our transition handler public.
-$.mobile.css3TransitionHandler = css3TransitionHandler;
-// If the default transition handler is the 'none' handler, replace it with our handler.
+$.mobile.css3TransitionsHandler = css3TransitionsHandler;
+
+// We want to avoid the situation where we accidentally override a default
+// handler specified by the developer, so we only replace the default if it
+// is currently the defaultTransitionHandler().
+
if ( $.mobile.defaultTransitionHandler === $.mobile.noneTransitionHandler ) {
- $.mobile.defaultTransitionHandler = css3TransitionHandler;
+ $.mobile.defaultTransitionHandler = css3TransitionsHandler;
}
})( jQuery, this );
@@ -6493,9 +6632,11 @@ $.mobile.fixedToolbars = (function() {
el.addClass( "ui-fixed-overlay" ).removeClass( "ui-fixed-inline" );
if ( !alreadyVisible && !immediately ) {
- el.animationComplete(function() {
- el.removeClass( "in" );
+ el.transitionComplete(function() {
+ el.removeClass( "in animate" );
}).addClass( "in" );
+ var force = document.body.scrollHeight;
+ el.addClass( "animate" );
}
setTop(el);
});
@@ -6530,7 +6671,7 @@ $.mobile.fixedToolbars = (function() {
classes = "out reverse";
- el.animationComplete(function() {
+ el.transitionComplete(function() {
el.removeClass( classes ).css( "top", 0 );
}).addClass( classes );
}
@@ -6795,12 +6936,18 @@ $( document ).bind( "pagecreate", function( event ) {
// then check what the scroll top is. Android will report 0... others 1
// note that this initial scroll won't hide the address bar. It's just for the check.
$(function() {
- window.scrollTo( 0, 1 );
+ /*
+ window.scrollTo( 0, 1 );
// if defaultHomeScroll hasn't been set yet, see if scrollTop is 1
// it should be 1 in most browsers, but android treats 1 as 0 (for hiding addr bar)
// so if it's 1, use 0 from now on
$.mobile.defaultHomeScroll = ( !$.support.scrollTop || $(window).scrollTop() === 1 ) ? 0 : 1;
+ */
+
+ // workaround for issue 1673: always show the addressbar on android (android would need defaultHomeScroll==1),
+ // as bugfix above does not always work yet...
+ $.mobile.defaultHomeScroll = 0;
//dom-ready inits
if( $.mobile.autoInitializePage ){
View
0 src/main/build/footer.js → src/main/wrap/footer.js
File renamed without changes.
View
8 src/main/wrap/header.js
@@ -0,0 +1,8 @@
+/**
+ * jQuery Mobile angularJS adaper v${project.version}
+ * http://github.com/tigbro/jquery-mobile-angular-adapter
+ *
+ * Copyright 2011, Tobias Bosch (OPITZ CONSULTING GmbH)
+ * Licensed under the MIT license.
+ */
+(function() {
View
3 src/test/webapp/ui-tests.js
@@ -5,5 +5,6 @@ define([
'ui/angularUrlIntegrationSpec',
'ui/selectmenuSpec',
'ui/compileIntegrationSpec',
- 'ui/waitDialogServiceSpec'
+ 'ui/waitDialogServiceSpec',
+ 'ui/navigateSpec'
]);
View
125 src/test/webapp/ui/navigateSpec.js
@@ -0,0 +1,125 @@
+define(function() {
+ function visitPage(page, Page2Controller, events) {
+ loadHtml('/jqmng/ui/test-fixture.html#' + page, function(frame) {
+ var page = frame.$('#page2');
+ page.attr("ng:controller", "Page2Controller");
+ frame.Page2Controller = Page2Controller;
+ if (events) {
+ page.attr("ngm:event", frame.angular.toJson(events));
+ }
+ });
+ }
+
+ function navigate() {
+ var $ = testwindow().$;
+ var scope = $("#start").scope();
+ var navigate = scope.$service("$navigate");
+ return navigate.apply(this, arguments);
+ }
+
+ describe("navigate", function() {
+ it("should call the given function on the target page", function() {
+ var onActivateArguments;
+ visitPage("start", function() {
+ this.onActivate = function() {
+ onActivateArguments = arguments;
+ }
+ });
+ runs(function() {
+ expect(onActivateArguments).toBeFalsy();
+ navigate("page2", "onActivate");
+ });
+ waitsForAsync();
+ runs(function() {
+ expect(onActivateArguments).toBeTruthy();
+ });
+ });
+
+ it("should call the given function with the given arguments on the target page", function() {
+ var onActivateArguments;
+ visitPage("start", function() {
+ this.onActivate = function() {
+ onActivateArguments = arguments;
+ }
+ });
+ runs(function() {
+ expect(onActivateArguments).toBeFalsy();
+ navigate("page2", "onActivate", "param1", "param2");
+ });
+ waitsForAsync();
+ runs(function() {
+ expect(onActivateArguments).toEqual(["param1", "param2"]);
+ });
+ });
+
+ it("should call the given function on the target page on back navigation", function() {
+ var onActivateArguments;
+ visitPage("page2", function() {
+ this.onActivate = function() {
+ onActivateArguments = arguments;
+ }
+ });
+ runs(function() {
+ navigate("start");
+ });
+ waitsForAsync();
+ runs(function() {
+ expect(onActivateArguments).toBeFalsy();
+ navigate("back", "onActivate");
+ });
+ waitsForAsync();
+ runs(function() {
+ expect(onActivateArguments).toBeTruthy();
+ });
+ });
+
+ it("should call the given function on the target page on back navigation with pageId", function() {
+ var onActivateArguments;
+ visitPage("page2", function() {
+ this.onActivate = function() {
+ onActivateArguments = arguments;
+ }
+ });
+ runs(function() {
+ navigate("start");
+ });
+ waitsForAsync();
+ runs(function() {
+ expect(onActivateArguments).toBeFalsy();
+ navigate("back:page2", "onActivate");
+ });
+ waitsForAsync();
+ runs(function() {
+ expect(onActivateArguments).toBeTruthy();
+ });
+ });
+
+ it("should call the given function on the target page before the pagebeforeshow event", function() {
+ var onActivateArguments, onActivateArgumentsOnBeforeShow
+ var beforeShowCallCount = 0;
+ visitPage("start", function() {
+ this.onActivate = function() {
+ onActivateArguments = arguments;
+ };
+ this.onBeforeShow = function() {
+ beforeShowCallCount ++;
+ onActivateArgumentsOnBeforeShow = onActivateArguments;
+ }
+ }, {pagebeforeshow: "onBeforeShow()"});
+ runs(function() {
+ beforeShowCallCount = 0;
+ onActivateArgumentsOnBeforeShow = undefined;
+ expect(onActivateArguments).toBeUndefined();
+ expect(onActivateArgumentsOnBeforeShow).toBeUndefined();
+ navigate("page2", "onActivate");
+ });
+ waitsForAsync();
+ runs(function() {
+ expect(onActivateArguments).toBeTruthy();
+ expect(onActivateArgumentsOnBeforeShow).toBe(onActivateArguments);
+ expect(beforeShowCallCount).toBe(1);
+ });
+ });
+
+ });
+});

0 comments on commit 3518612

Please sign in to comment.
Something went wrong with that request. Please try again.