jQuery Mobile Framework
Find a file
2011-10-19 13:48:38 -07:00
build Update compiler/compressors 2011-10-13 16:35:06 -07:00
css Adds a little breathing room above dialogs at wider screen sizes. 2011-10-19 11:30:46 -04:00
docs Added a blurb about toolbar events for re-positioning 2011-10-19 14:15:32 -04:00
experiments 2700: Step 5 Update all doc references 2011-10-17 13:51:45 -07:00
external Update to latest QUnit. Fix event tests that were calling both asyncTest 2011-10-04 17:34:33 -04:00
js Renamed the custom event I added to fix #2348 from "contentmodified" to "updatelayout" so that it reflects more of what it should be used for. Note that this also affects #2042 and the mention of collapsible in #2596. 2011-10-19 08:50:01 -07:00
tests cleaned up test to limit event binding bleed 2011-10-19 10:35:14 -07:00
tools First pass implementation of a page event logger bookmarklet to help us quickly diagnose navigation problems for external jQuery Mobile sites. Users can either follow the instructions for using/setting up the bookmarklet in log-page-events.html, or simply include the log-page-events.js directly in their source. 2011-10-07 09:31:28 -07:00
.gitignore Docs: Cleaned up "Prefetching & caching pages" page 2011-09-01 16:52:48 +10:00
combine.php remove gzip from combine 2011-09-22 14:40:59 -07:00
gitposthook.php change file permissions for git hooks 2011-04-14 12:01:27 -07:00
gitpushlatest.php Update the CDN but dont output messages 2011-05-13 15:20:19 -07:00
index.html 2700: Step 5 Update all doc references 2011-10-17 13:51:45 -07:00
Makefile move .structure before version in css build put filenames 2011-10-19 10:41:23 -07:00
README.md Update README.md 2011-10-18 20:23:55 -07:00
version.txt Releasing 1.0rc2. 2011-10-19 13:48:38 -07: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.

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.

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)

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. The CSSTHEME specifies what theme to include. If you leave it off, it will build using the "default" theme.

    make CSSTHEME=YourThemeName

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