jQuery Mobile Framework
Find a file
Ghislain Seguin 9ce232f42a Merge pull request #3497 from jakeboone02/global-config-loading-sequence
Fixed remaining loading sequence issues for global config tests
2012-01-28 10:13:06 -08:00
build Moved RequireJS plugins to external/requirejs 2012-01-27 23:36:42 -08:00
css Added an optional 1.0-style loading box design, configurable via a new loadingMessageTextVisible option, which defaults to false for regular loading messages, but is true for internal error messages. In order to support this change, the show loader method was modified with 3 arguments: theme, text, and text-only. Other new core options have been added to configure the theme for default and error message boxes: loadingMessageTheme and pageLoadErrorMessageTheme. 2012-01-27 18:42:22 +07:00
docs Fixed remaining loading sequence issues for global config tests 2012-01-28 11:31:03 -05:00
experiments/scrollview removed the converter experiment 2012-01-26 10:49:16 +07:00
external Moved RequireJS plugins to external/requirejs 2012-01-27 23:36:42 -08:00
js Moved RequireJS plugins to external/requirejs 2012-01-27 23:36:42 -08:00
tests fixed up the unit tests to ensure the disablePageZoom option works as expected 2012-01-26 14:59:43 +07:00
tools Added an index page for the tools directory so we can use the tools directly off the jquerymobile.com site without having to remember the name of the file for a given tool. 2012-01-13 10:38:23 -08:00
.gitignore Update the deployed files to use the CDN for the resources 2011-11-16 17:04:22 -08:00
combine.php remove gzip from combine 2011-09-22 14:40:59 -07:00
GPL-LICENSE.txt Update to add license to root, update individual files to not have license, add license to built and testing files 2011-11-08 15:43:36 -08:00
index.html Move require.js to first tag so it can catch jquery module registration 2012-01-12 21:25:59 -08:00
LICENSE-INFO.txt moved info text to license-info.txt 2011-11-09 16:00:25 -08:00
Makefile Moved RequireJS plugins to external/requirejs 2012-01-27 23:36:42 -08:00
MIT-LICENSE.txt Update to add license to root, update individual files to not have license, add license to built and testing files 2011-11-08 15:43:36 -08:00
README.md remove submodule update note 2012-01-05 11:14:37 -08:00
version.txt Removed extra newline 2012-01-25 15:21:01 -08:00

jQuery Mobile Framework

Official Site: http://jquerymobile.com

Demos and Documentation

How to build your own jQuery Mobile CSS and JS files

Clone this repo and build the js and css files (you'll need Git and Make installed):

git clone git://github.com/jquery/jquery-mobile.git
cd jquery-mobile
make

A full version and a minified version of the jQuery Mobile JavaScript and CSS files will be created in a folder named "compiled". There is also now a Structure only css file so you can add your own theme on top of it.

How to build a self-contained version of the Docs/Demos

Once you have your own cloned repo on your computer:

make docs

The docs will be built and available in the compiled/demos folder. You can move this folder to your web server or other location. It has no dependencies on anything other than a basic HTML web server.

Submitting bugs

If you think you've found a bug, please report it by following these instructions:

  1. Visit the Issue tracker: https://github.com/jquery/jquery-mobile/issues
  2. Create an issue explaining the problem and expected result
    • Be sure to include any relevant information for reproducing the issue
    • Include information such as:
      • Browser/device (with version #)
      • The version of the jQuery Mobile code you're running
      • If you are running from a git version, include the date and/or hash number
    • Make sure that the bug still exists at http://jquerymobile.com/test/ as it may be fixed already
    • You can use the CDN hosted JS and CSS files to test in your own code by using:
    • Include a link to some code of the bug in action. You can use either of these services to host your code
  3. Submit the issue.

Recommended: JS Bin issue template with instructions

Submitting patches

To contribute code and bug fixes to jQuery Mobile: fork this project on Github, make changes to the code in your fork, and then send a "pull request" to notify the team of updates that are ready to be reviewed for inclusion.

Detailed instructions can be found at jQuery Mobile Patching

Running the jQuery Mobile demos & docs locally

To preview locally, you'll need to clone a local copy of this repository and point your Apache & PHP webserver at its root directory (a webserver is required, as PHP and .htaccess are used for combining development files).

If you don't currently have a webserver running locally, there are a few options.

If you're on a Mac, you can try dropping jQuery Mobile into your sites folder and turning on Web Sharing via System Prefs. From there, you'll find a URL where you can browse folders in your sites directory from a browser.

Another quick way to get up and running is to download and install MAMP for Mac OSX. Once installed, just open MAMP, click preferences, go to the Apache tab, and select your local jQuery Mobile folder as the root. Then you can open a browser to http://localhost:8888 to preview the code.

Another alternative is XAMPP (Mac, Windows). You need to actually modify Apache's httpd.conf to point to your checkout: Instructions

You need the following Apache modules loaded:

  • Rewrite (mod_rewrite.so)
  • Expire (mod_expires.so)
  • Header (mod_headers.so)

Alternatively, with the addition of async loading, you can use the python simple http server from the project root:

$ python -m SimpleHTTPServer 8000

And in your browser visit localhost:8000.

AMD Support in Development

Please bear in mind that async loading is not supported for production and is primarily used for the project's build process. As a result developers should expect an initial flash of unstyled content, which will not occur when the library is compiled.

If you find dependency bugs when using the async loading support for development please log them in the github issue tracker.

Building With A Custom Theme

To use a custom theme in your own build, you'll need Make installed. You can find the themes in the CSS/Themes folder. To create a new theme:

  1. Copy the Default folder from CSS/Themes to a new folder in the same location. The name of the folder will be the theme's name. For testing locally, make sure the index.php file is copied as well.

  2. Edit the jquery.mobile.theme.css file so it contains your custom fonts and colors.

  3. Once you are done editing your files and saving them, open a terminal.

  4. Navigate to the jQuery-Mobile folder's root.

  5. Run the following command to build jQuery-Mobile (THEME is the name of the folder for your theme from step 1.):

    make THEME=YourThemeName

  6. The compiled files will be located in the "compiled" folder in the root of jQuery-Mobile.