Tizen 2.1 base
[platform/framework/web/web-ui-fw.git] / libs / js / jquery-mobile-1.0.1pre / README.md
1 jQuery Mobile Framework
2 =======================
3 [Official Site: http://jquerymobile.com](http://jquerymobile.com)
4
5 [Demos and Documentation](http://jquerymobile.com/test/)
6
7 How to build your own jQuery Mobile CSS and JS files
8 ====================================================
9 Clone this repo and build the js and css files (you'll need Git and Make installed):
10
11     git clone git://github.com/jquery/jquery-mobile.git
12     cd jquery-mobile
13     make
14
15 A full version and a minified version of the jQuery Mobile JavaScript and CSS files will be created 
16 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.
17
18 How to build a self-contained version of the Docs/Demos
19 =======================================================
20 Once you have your own cloned repo on your computer:
21
22     make docs
23
24 The docs will be built and available in the compiled/demos folder. You can move this folder to your web server or 
25 other location. It has no dependencies on anything other than a basic HTML web server.
26
27
28 Submitting bugs
29 ===============
30 If you think you've found a bug, please report it by following these instructions:  
31
32 1. Visit the [Issue tracker: https://github.com/jquery/jquery-mobile/issues](https://github.com/jquery/jquery-mobile/issues)
33 2. Create an issue explaining the problem and expected result
34     - Be sure to include any relevant information for reproducing the issue
35     - Include information such as:
36         * Browser/device (with version #)
37         * The version of the jQuery Mobile code you're running
38         * If you are running from a git version, include the date and/or hash number
39     - Make sure that the bug still exists at http://jquerymobile.com/test/ as it may be fixed already
40     - You can use the CDN hosted JS and CSS files to test in your own code by using:
41         * [JS](http://code.jquery.com/mobile/latest/jquery.mobile.min.js)
42         * [CSS](http://code.jquery.com/mobile/latest/jquery.mobile.min.css)
43     - Include a link to some code of the bug in action. You can use either of these services to host your code
44         * [jsbin](http://jsbin.com)
45         * [jsfiddle](http://jsfiddle.net)
46 3. Submit the issue.
47
48 Recommended: [JS Bin issue template with instructions](http://jsbin.com/obowiw/edit) 
49
50 Submitting patches
51 ==================
52 To contribute code and bug fixes to jQuery Mobile: fork this project on Github, make changes to the code in your fork, 
53 and then send a "pull request" to notify the team of updates that are ready to be reviewed for inclusion.
54
55 Detailed instructions can be found at [jQuery Mobile Patching](https://gist.github.com/1294035)
56
57 Running the jQuery Mobile demos & docs locally
58 ==============================================
59 To preview locally, you'll need to clone a local copy of this repository and point your Apache & PHP webserver at its 
60 root directory (a webserver is required, as PHP and .htaccess are used for combining development files).
61
62 If you don't currently have a webserver running locally, there are a few options. 
63
64 If you're on a Mac, you can try dropping jQuery Mobile into your sites folder and turning on Web Sharing via System 
65 Prefs. From there, you'll find a URL where you can browse folders in your sites directory from a browser.
66
67 Another quick way to get up and running is to download and install MAMP for Mac OSX. Once installed, just open MAMP, 
68 click preferences, go to the Apache tab, and select your local jQuery Mobile folder as the root. Then you can open a 
69 browser to http://localhost:8888 to preview the code.
70
71 Another alternative is XAMPP (Mac, Windows). You need to actually modify Apache's httpd.conf to point to your checkout:
72 [Instructions](http://www.apachefriends.org/en/xampp.html)
73
74 You need the following Apache modules loaded:
75
76 * Rewrite (mod\_rewrite.so)
77 * Expire (mod\_expires.so)
78 * Header (mod\_headers.so)
79
80 Building With A Custom Theme
81 ============================
82 To use a custom theme in your own build, you'll need Make installed. You can find the themes in the CSS/Themes folder.
83 To create a new theme:
84
85 1. Copy the `Default` folder from CSS/Themes to a new folder in the same location. The name of the folder will be the
86 theme's name. For testing locally, make sure the index.php file is copied as well.
87 2. Edit the `jquery.mobile.theme.css` file so it contains your custom fonts and colors.
88 3. Once you are done editing your files and saving them, open a terminal.
89 4. Navigate to the jQuery-Mobile folder's root.
90 5. Run the following command to build jQuery-Mobile (THEME is the name of the folder for your theme from step 1.):
91
92     make THEME=YourThemeName
93     
94 6. The compiled files will be located in the "compiled" folder in the root of jQuery-Mobile.