Updating readme.md. Adding licensing to individual project files.
[ReadingsJQM.git] / snippets / buttons.html
1 <!--
2         jQuery Mobile Boilerplate
3 -->
4 <!doctype html>
5 <html>
6 <head>
7         <meta charset="utf-8">
8         <meta name="viewport" content="width=device-width, initial-scale=1">
9         <title> jQuery Mobile Boilerplate </title>
10         <link rel="stylesheet"  href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" />
11
12         <!-- if you have a custom theme, add it here -->
13         <link rel="stylesheet"  href="themes/jQuery-Mobile-Boilerplate.css" />
14
15         <link rel="stylesheet" href="css/custom.css" />
16
17         <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
18         <script src="js/application.js"></script>
19         <script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
20         
21 </head> 
22 <body> 
23         <div data-role="page">
24
25                 <div data-role="header">
26                         <a href="../index.html" data-icon="home">Home</a>
27                         <h1>Buttons</h1>
28                 </div>
29
30                 <div data-role="content">
31
32
33
34
35 <h2>Simple Button</h2>
36
37 <a href="index.html" data-role="button">Link button</a>
38
39 <h2>Icon Buttons</h2>
40
41 <p><b>Left arrow</b> - data-icon="arrow-l"</p>
42 <a href="index.html" data-role="button" data-icon="arrow-l">My button</a>
43 <p><b>Right arrow</b> - data-icon="arrow-r"</p>
44 <a href="index.html" data-role="button" data-icon="arrow-r">My button</a>
45 <p><b>Up arrow</b> - data-icon="arrow-u"</p>
46 <a href="index.html" data-role="button" data-icon="arrow-u">My button</a>
47 <p><b>Down arrow</b> - data-icon="arrow-d"</p>
48 <a href="index.html" data-role="button" data-icon="arrow-d">My button</a>
49 <p><b>Delete</b> - data-icon="delete"</p>
50 <a href="index.html" data-role="button" data-icon="delete">My button</a>
51 <p><b>Plus</b> - data-icon="plus"</p>
52 <a href="index.html" data-role="button" data-icon="plus">My button</a>
53 <p><b>Minus</b> - data-icon="minus"</p>
54 <a href="index.html" data-role="button" data-icon="minus">My button</a>
55 <p><b>Check</b> - data-icon="check"</p>
56 <a href="index.html" data-role="button" data-icon="check">My button</a>
57 <p><b>Gear</b> - data-icon="gear"</p>
58 <a href="index.html" data-role="button" data-icon="gear">My button</a>
59 <p><b>Refresh</b> - data-icon="refresh"</p>
60 <a href="index.html" data-role="button" data-icon="refresh">My button</a>
61 <p><b>Forward</b> - data-icon="forward"</p>
62 <a href="index.html" data-role="button" data-icon="forward">My button</a>
63 <p><b>Back</b> - data-icon="back"</p>
64 <a href="index.html" data-role="button" data-icon="back">My button</a>
65 <p><b>Grid</b> - data-icon="grid"</p>
66 <a href="index.html" data-role="button" data-icon="grid">My button</a>
67 <p><b>Star</b> - data-icon="star"</p>
68 <a href="index.html" data-role="button" data-icon="star">My button</a>
69 <p><b>Alert</b> - data-icon="alert"</p>
70 <a href="index.html" data-role="button" data-icon="alert">My button</a>
71 <p><b>Info</b> - data-icon="info"</p>
72 <a href="index.html" data-role="button" data-icon="info">My button</a>
73 <p><b>Home</b> - data-icon="home"</p>
74 <a href="index.html" data-role="button" data-icon="home">My button</a>
75 <p><b>Search</b> - data-icon="search"</p>
76 <a href="index.html" data-role="button" data-icon="search">My button</a>
77
78 <h2>Icon positioning</h2>
79
80 <p>Right aligned:</p>
81 <a href="index.html" data-role="button" data-icon="delete" data-iconpos="right">Delete</a>
82
83 <p>Top aligned</p>
84 <a href="index.html" data-role="button" data-icon="delete" data-iconpos="top">Delete</a>
85
86 <p>Bottom aligned</p>
87 <a href="index.html" data-role="button" data-icon="delete" data-iconpos="bottom">Delete</a>
88
89 <p>Icon-only button (no text):</p>
90 <a href="index.html" data-role="button" data-icon="delete" data-iconpos="notext">Delete</a>
91
92 <h2>Inline buttons</h2>
93
94 <a href="index.html" data-role="button" data-inline="true">Cancel</a>
95 <a href="index.html" data-role="button" data-inline="true" data-theme="b">Save</a>
96
97 <h2>Grouped buttons</h2>
98
99 <div data-role="controlgroup">
100         <a href="index.html" data-role="button">One</a>
101         <a href="index.html" data-role="button">Two</a>
102         <a href="index.html" data-role="button">Three</a>
103 </div>
104
105 <div data-role="controlgroup" data-type="horizontal">
106         <a href="index.html" data-role="button">One</a>
107         <a href="index.html" data-role="button">Two</a>
108         <a href="index.html" data-role="button">Three</a>
109 </div>
110
111 <div data-role="controlgroup" data-type="horizontal">
112         <a href="index.html" data-role="button" data-icon="home">One</a>
113         <a href="index.html" data-role="button" data-icon="gear">Two</a>
114         <a href="index.html" data-role="button" data-icon="refresh">Three</a>
115 </div>
116
117 <div data-role="controlgroup" data-type="horizontal">
118         <a href="index.html" data-role="button" data-icon="minus" data-iconpos="notext">One</a>
119         <a href="index.html" data-role="button" data-icon="plus" data-iconpos="notext">Two</a>
120         <a href="index.html" data-role="button" data-icon="delete" data-iconpos="notext">Three</a>
121 </div>
122
123
124
125
126
127
128                 </div>
129                 
130                 <div data-role="footer" data-theme="c">
131                         <p>&copy; 2012 - jQuery Mobile Boilerplate</p>
132                 </div>  
133                 
134         </div>
135 </body>
136 </html>