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