Advertisement
Guest User

Untitled

a guest
Oct 25th, 2013
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.12 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="ISO-8859-1">
  5. <title>Insert title here</title>
  6. <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.js"></script>
  7. <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css">
  8. <script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>
  9.  
  10. <script type="text/javascript">//<![CDATA[
  11. $(document).on('pageinit', '#home', function(){
  12. $(document).on ('click','#firstbutton', function () {
  13. $.mobile.changePage('#firstbutton', {
  14. transition: 'slideup',
  15. changeHash: true,
  16. position: {
  17. my: 'top',
  18. at: 'top',
  19. of: $('#home')
  20. },
  21. role: 'dialog'
  22. });
  23. });
  24.  
  25. $(document).on('click','#first',function () {
  26. window.location.href = "#first";
  27. });
  28. $(document).on('click','#second',function () {
  29. window.location.href = "#second";
  30. });
  31. });//]]>
  32.  
  33. </script>
  34. <script type="text/javascript">//<![CDATA[
  35. $(document).on('pageinit', '#home', function(){
  36. $(document).on ('click','#secondbutton', function () {
  37. $.mobile.changePage('#secondbutton', {
  38. transition: 'slideup',
  39. changeHash: true,
  40. position: {
  41. my: 'top',
  42. at: 'top',
  43. of: $('#home')
  44. },
  45. role: 'dialog'
  46. });
  47. });
  48.  
  49. $(document).on('click','#third',function () {
  50. window.location.href = "#third";
  51. });
  52. $(document).on('click','#fourth',function () {
  53. window.location.href = "#fourth";
  54. });
  55. });//]]>
  56.  
  57. </script>
  58. </head>
  59. <body>
  60. <div data-role="page" id="home">
  61. <div data-role="footer" data-position="fixed" class="ui-footer ui-bar-a ui-footer-fixed slideup" data-theme="c">
  62. <div data-role="navbar" data-theme="c">
  63. <ul>
  64. <li>
  65. <button id="firstbutton" data-corners="false" data-theme="c">first button</button>
  66. </li>
  67. <li>
  68. <button id="secondbutton" data-corners="false" data-theme="c">second button</button>
  69. </li>
  70. </ul>
  71. </div>
  72. </div>
  73. </div>
  74.  
  75. <div data-role="dialog" id="firstbutton" data-theme="c">
  76. <div data-role="content">
  77. <a href="#" id="first" data-role="button" data-icon="false" style="color: White; background:green;">first</a>
  78. <a href="#" id="second" data-role="button" data-icon="false" style="color: White; background:green;">second</a>
  79.  
  80. </div>
  81. </div>
  82. <div data-role="dialog" id="secondbutton" data-theme="c">
  83. <div data-role="content">
  84. <a href="#" id="third" data-role="button" data-icon="false" style="color: White; background:green;">third</a>
  85. <a href="#" id="fourth" data-role="button" data-icon="false" style="color: White; background:green;">fourth</a>
  86.  
  87. </div>
  88. </div>
  89. <div data-role="page" id="first" data-theme="c" data-transition="slideup">
  90. <div data-role="content" style="text-align: center;" data-theme="c" data-inline="true">
  91. <div>
  92. <input type="text" id="second" placeholder="first page">
  93. <div class="ui-grid-a">
  94. <div class="ui-block-a">
  95. <div data-role="fieldcontain" align="right">
  96. <a style="width:25%" data-role="button" id="first" href="#">first</a>
  97. </div>
  98. </div>
  99. <div class="ui-block-b">
  100. <div data-role="fieldcontain" align="left">
  101. <a style="width:25%" data-role="button" id="esecond" href="#">second</a>
  102. </div>
  103. </div>
  104. </div>
  105. <div class="ui-grid-c">
  106. <div class="ui-block-a">
  107. <a href="#" data-role="button" data-icon="false" style="color: White; background:green;">first</a>
  108. </div>
  109. <div class="ui-block-b">
  110. <a href="#" data-role="button" data-icon="false" style="color: Black; background:yellow;">second</a>
  111. </div>
  112. <div class="ui-block-c">
  113. <a href="#" data-role="button" data-icon="false" style="color: white; background:black;">third</a>
  114. </div>
  115. <div class="ui-block-d">
  116. <a href="#" data-role="button" data-icon="false" style="color: White; background:red;">fourth</a>
  117. </div>
  118. </div>
  119. </div>
  120. <div data-role="page" id="home">
  121. <div data-role="footer" data-position="fixed" class="ui-footer ui-bar-a ui-footer-fixed slideup" data-theme="c">
  122. <div data-role="navbar" data-theme="c">
  123. <ul>
  124. <li>
  125. <button id="firstbutton" data-corners="false" data-theme="c">first button</button>
  126. </li>
  127. <li>
  128. <button id="secondbutton" data-corners="false" data-theme="c">second button</button>
  129. </li>
  130. </ul>
  131. </div>
  132. </div>
  133. </div>
  134. </div>
  135. </div>
  136. <div data-role="page" id="second" data-theme="c" data-transition="slideup">
  137. <div data-role="header" ></div>
  138. <div data-role="content" style="text-align: center;" data-theme="c" data-inline="true">
  139. <div>
  140. <input type="text" id="second" placeholder="Second Page">
  141. <div class="ui-grid-a">
  142. <div class="ui-block-a">
  143. <div data-role="fieldcontain" align="right">
  144. <a style="width:25%" data-role="button" id="first" href="#">first</a>
  145. </div>
  146. </div>
  147. <div class="ui-block-b">
  148. <div data-role="fieldcontain" align="left">
  149. <a style="width:25%" data-role="button" id="esecond" href="#">second</a>
  150. </div>
  151. </div>
  152. </div>
  153. <div class="ui-grid-c">
  154. <div class="ui-block-a">
  155. <a href="#" data-role="button" data-icon="false" style="color: White; background:green;">first</a>
  156. </div>
  157. <div class="ui-block-b">
  158. <a href="#" data-role="button" data-icon="false" style="color: Black; background:yellow;">second</a>
  159. </div>
  160. <div class="ui-block-c">
  161. <a href="#" data-role="button" data-icon="false" style="color: white; background:black;">third</a>
  162. </div>
  163. <div class="ui-block-d">
  164. <a href="#" data-role="button" data-icon="false" style="color: White; background:red;">fourth</a>
  165. </div>
  166. </div>
  167. </div>
  168.  
  169.  
  170. <div data-role="page" id="home">
  171. <div data-role="footer" data-position="fixed" class="ui-footer ui-bar-a ui-footer-fixed slideup" data-theme="c">
  172. <div data-role="navbar" data-theme="c">
  173. <ul>
  174. <li>
  175. <button id="firstbutton" data-corners="false" data-theme="c">first button</button>
  176. </li>
  177. <li>
  178. <button id="secondbutton" data-corners="false" data-theme="c">second button</button>
  179. </li>
  180. </ul>
  181. </div>
  182. </div>
  183. </div>
  184. </div>
  185. </div>
  186. <div data-role="page" id="third" data-theme="c" data-transition="slideup">
  187. <div data-role="content" style="text-align: center;" data-theme="c" data-inline="true">
  188. <div>
  189. <input type="text" id="second" placeholder="third page">
  190. <div class="ui-grid-a">
  191. <div class="ui-block-a">
  192. <div data-role="fieldcontain" align="right">
  193. <a style="width:25%" data-role="button" id="first" href="#">first</a>
  194. </div>
  195. </div>
  196. <div class="ui-block-b">
  197. <div data-role="fieldcontain" align="left">
  198. <a style="width:25%" data-role="button" id="esecond" href="#">second</a>
  199. </div>
  200. </div>
  201. </div>
  202. <div class="ui-grid-c">
  203. <div class="ui-block-a">
  204. <a href="#" data-role="button" data-icon="false" style="color: White; background:green;">first</a>
  205. </div>
  206. <div class="ui-block-b">
  207. <a href="#" data-role="button" data-icon="false" style="color: Black; background:yellow;">second</a>
  208. </div>
  209. <div class="ui-block-c">
  210. <a href="#" data-role="button" data-icon="false" style="color: white; background:black;">third</a>
  211. </div>
  212. <div class="ui-block-d">
  213. <a href="#" data-role="button" data-icon="false" style="color: White; background:red;">fourth</a>
  214. </div>
  215. </div>
  216. </div>
  217. <div data-role="page" id="home">
  218. <div data-role="footer" data-position="fixed" class="ui-footer ui-bar-a ui-footer-fixed slideup" data-theme="c">
  219. <div data-role="navbar" data-theme="c">
  220. <ul>
  221. <li>
  222. <button id="firstbutton" data-corners="false" data-theme="c">first button</button>
  223. </li>
  224. <li>
  225. <button id="secondbutton" data-corners="false" data-theme="c">second button</button>
  226. </li>
  227. </ul>
  228. </div>
  229. </div>
  230. </div>
  231. </div>
  232. </div>
  233. <div data-role="page" id="fourth" data-theme="c" data-transition="slideup">
  234. <div data-role="content" style="text-align: center;" data-theme="c" data-inline="true">
  235. <div>
  236. <input type="text" id="second" placeholder="fourth page">
  237. <div class="ui-grid-a">
  238. <div class="ui-block-a">
  239. <div data-role="fieldcontain" align="right">
  240. <a style="width:25%" data-role="button" id="first" href="#">first</a>
  241. </div>
  242. </div>
  243. <div class="ui-block-b">
  244. <div data-role="fieldcontain" align="left">
  245. <a style="width:25%" data-role="button" id="esecond" href="#">second</a>
  246. </div>
  247. </div>
  248. </div>
  249. <div class="ui-grid-c">
  250. <div class="ui-block-a">
  251. <a href="#" data-role="button" data-icon="false" style="color: White; background:green;">first</a>
  252. </div>
  253. <div class="ui-block-b">
  254. <a href="#" data-role="button" data-icon="false" style="color: Black; background:yellow;">second</a>
  255. </div>
  256. <div class="ui-block-c">
  257. <a href="#" data-role="button" data-icon="false" style="color: white; background:black;">third</a>
  258. </div>
  259. <div class="ui-block-d">
  260. <a href="#" data-role="button" data-icon="false" style="color: White; background:red;">fourth</a>
  261. </div>
  262. </div>
  263. </div>
  264. <div data-role="page" id="home">
  265. <div data-role="footer" data-position="fixed" class="ui-footer ui-bar-a ui-footer-fixed slideup" data-theme="c">
  266. <div data-role="navbar" data-theme="c">
  267. <ul>
  268. <li>
  269. <button id="firstbutton" data-corners="false" data-theme="c">first button</button>
  270. </li>
  271. <li>
  272. <button id="secondbutton" data-corners="false" data-theme="c">second button</button>
  273. </li>
  274. </ul>
  275. </div>
  276. </div>
  277. </div>
  278. </div>
  279. </div>
  280. </body>
  281. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement