/*! * jQuery Mobile v@VERSION * http://jquerymobile.com/ * * Copyright 2010, jQuery Project * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license */ (function( $, window, undefined ) { //jQuery.mobile configurable options $.extend( $.mobile, { //define the url parameter used for referencing widget-generated sub-pages. //Translates to to example.html&ui-page=subpageIdentifier //hash segment before &ui-page= is used to make Ajax request subPageUrlKey: 'ui-page', //anchor links with a data-rel, or pages with a data-role, that match these selectors will be untrackable in history //(no change in URL, not bookmarkable) nonHistorySelectors: 'dialog', //class assigned to page currently in view, and during transitions activePageClass: 'ui-page-active', //class used for "active" button state, from CSS framework activeBtnClass: 'ui-btn-active', //automatically handle link clicks through Ajax, when possible ajaxLinksEnabled: true, //automatically handle form submissions through Ajax, when possible ajaxFormsEnabled: true, //set default transition - 'none' for no transitions defaultTransition: 'slide', //show loading message during Ajax requests //if false, message will not appear, but loading classes will still be toggled on html el loadingMessage: "loading", //configure meta viewport tag's content attr: metaViewportContent: "width=device-width, minimum-scale=1, maximum-scale=1", //support conditions that must be met in order to proceed gradeA: function(){ return $.support.mediaquery; } }); //trigger mobileinit event - useful hook for configuring $.mobile settings before they're used $( window.document ).trigger('mobileinit'); //support conditions //if device support condition(s) aren't met, leave things as they are -> a basic, usable experience, //otherwise, proceed with the enhancements if ( !$.mobile.gradeA() ) { return; } //define vars for interal use var $window = $(window), $html = $('html'), $head = $('head'), //loading div which appears during Ajax requests //will not appear if $.mobile.loadingMessage is false $loader = $.mobile.loadingMessage ? $('