Advertisement
Guest User

Untitled

a guest
Nov 4th, 2013
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.62 KB | None | 0 0
  1.  
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta charset="utf-8" />
  6. <title> </title>
  7. <link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
  8. <meta name="viewport" content="width=device-width" />
  9. <link href="/Content/site.css" rel="stylesheet"/>
  10.  
  11. <link href="/Content/themes/base/jquery.ui.core.css" rel="stylesheet"/>
  12. <link href="/Content/themes/base/jquery.ui.resizable.css" rel="stylesheet"/>
  13. <link href="/Content/themes/base/jquery.ui.selectable.css" rel="stylesheet"/>
  14. <link href="/Content/themes/base/jquery.ui.accordion.css" rel="stylesheet"/>
  15. <link href="/Content/themes/base/jquery.ui.autocomplete.css" rel="stylesheet"/>
  16. <link href="/Content/themes/base/jquery.ui.button.css" rel="stylesheet"/>
  17. <link href="/Content/themes/base/jquery.ui.dialog.css" rel="stylesheet"/>
  18. <link href="/Content/themes/base/jquery.ui.slider.css" rel="stylesheet"/>
  19. <link href="/Content/themes/base/jquery.ui.tabs.css" rel="stylesheet"/>
  20. <link href="/Content/themes/base/jquery.ui.datepicker.css" rel="stylesheet"/>
  21. <link href="/Content/themes/base/jquery.ui.progressbar.css" rel="stylesheet"/>
  22. <link href="/Content/themes/base/jquery.ui.theme.css" rel="stylesheet"/>
  23.  
  24. <script src="/Scripts/modernizr-2.5.3.js"></script>
  25. <script src="/Scripts/jquery-1.7.1.js"></script>
  26. <script src="/Scripts/jquery-ui-1.8.20.js"></script>
  27. <script src="/Scripts/jquery.validate.js"></script>
  28. <script src="/Scripts/jquery.validate.unobtrusive.js"></script>
  29.  
  30. <script src="/Scripts/main.js" type="text/javascript"></script>
  31.  
  32.  
  33.  
  34. </head>
  35. <body>
  36. <header>
  37. <div class="content-wrapper">
  38. <div class="float-left">
  39.  
  40. </div>
  41. <div class="float-right">
  42. <section id="login">
  43.  
  44. </section>
  45. <nav>
  46. <div><p></p></div>
  47. <ul id="menu">
  48. <li><a href="/">Home</a></li>
  49. </ul>
  50. </nav>
  51. </div>
  52. </div>
  53. </header>
  54. <div id="body">
  55.  
  56. <section class="featured content-wrapper">
  57. <div class="title-wrapper">
  58. <hgroup class="title">
  59. <h1>Screen PoC</h1>
  60. </hgroup>
  61. <p>
  62.  
  63. </p>
  64. </div>
  65. </section>
  66.  
  67. <section class="content-wrapper main-content clear-fix">
  68.  
  69.  
  70.  
  71. <style type="text/css">
  72. .ui-tabs .ui-tabs-panel { min-height: 700px;}
  73. label { font-size: 1em;}
  74. .advisordialog {width:450px; height:300px;}
  75. .isp{float:left; width:45%;}
  76. .applicant{width: 50%; float:left;}
  77. .secondapplicantcheck{width:50%; float:left;}
  78. .tabvalidicon {height: 10px;width: 100%;background-color: chartreuse;}
  79. .tabinvalidicon {height: 10px;width: 100%;background-color: red;}
  80. .employment{width:50%; float:left;}
  81. </style>
  82.  
  83.  
  84. <script id="demo" type="text/javascript">
  85. $(document).ready(function () {
  86.  
  87. var tabs = $("#tabs").tabs();
  88. var validator = $("#signupform").validate({
  89. ignore:"",
  90. groups: {
  91. birthdate: "birthdateDay birthdateMonth birthdateYear"
  92. },
  93. //errorPlacement: function(label, element) {
  94. // if (/^birthdate/.test(element[0].name)) {
  95. // label.insertAfter("#birthdateYear");
  96. // } else {
  97. // label.insertAfter(element);
  98. // }
  99. //}
  100. });
  101.  
  102. $.validator.setDefaults({
  103. ignore: ""
  104. });
  105.  
  106.  
  107. // validate the other two selects when one changes to update the whole group
  108. //var birthdaySelects = $("#birthdateGroup select").click(function() {
  109. // birthdaySelects.not(this).valid();
  110. //})
  111.  
  112. //// overwrite focusInvalid to activate tab with invalid elements
  113. //validator.focusInvalid = function() {
  114. // if( this.settings.focusInvalid ) {
  115. // try {
  116. // var focused = $(this.findLastActive() || this.errorList.length && this.errorList[0].element || []).filter(":visible");
  117. // tabs.tabs("select", tabs.find(">div").index(focused.parent().parent()));
  118. // focused.focus();
  119. // } catch(e) {
  120. // // ignore IE throwing errors when focusing hidden elements
  121. // }
  122. // }
  123. //};
  124.  
  125. });
  126. </script>
  127.  
  128.  
  129.  
  130.  
  131.  
  132. <style>
  133. body { font-size: 65.2% }
  134. label { display: inline-block; width: 8em; }
  135. label.error { color: red; margin-left: 0.5em; width: 20em; }
  136. </style>
  137.  
  138.  
  139.  
  140. <form id="signupform">
  141.  
  142. <div id="tabs">
  143. <ul>
  144. <li><a href="#logindata">Login data</a></li>
  145. <li><a href="#personaldata">Personal data</a></li>
  146. <li><a href="#subscriptions">Subscriptions</a></li>
  147. </ul>
  148. <div id="logindata">
  149. <p>
  150. <label for="username">Username</label>
  151. <input id="username" name="username" class="required" minlength="3" maxlength="20" type="text" />
  152. </p>
  153. <p>
  154. <label for="email">Email address</label>
  155. <input id="email" name="email" class="required email" type="text" />
  156. </p>
  157. <p>
  158. <label for="password">Password</label>
  159. <input name="password" type="password" class="required" id="password" minlength="4" maxlength="50" />
  160. </p>
  161. <p>
  162. <label for="confirmpassword">Confirm Password</label>
  163. <input name="confirmpassword" type="password" class="required" equalTo="#password" id="confirmpassword" />
  164. </p>
  165. </div>
  166. <div id="personaldata">
  167. <p>
  168. <label for="street">Street</label>
  169. <input id="street" name="street" class="required" minlength="3" maxlength="50" type="text" />
  170. </p>
  171. <p>
  172. <label for="city">City</label>
  173. <input id="city" name="city" class="required" minlength="3" maxlength="50" type="text" />
  174. </p>
  175. <p id="birthdateGroup">
  176. <label for="birthdateDay">Birthdate</label>
  177. <select id="birthdateDay" name="birthdateDay" class="required">
  178. <option value="">Day</option>
  179. <option>1</option>
  180. <option>2</option>
  181. <option>3</option>
  182. <option>...</option>
  183. </select>
  184. <select id="birthdateMonth" name="birthdateMonth" class="required">
  185. <option value="">Month</option>
  186. <option>1</option>
  187. <option>2</option>
  188. <option>3</option>
  189. <option>4</option>
  190. <option>5</option>
  191. <option>6</option>
  192. <option>7</option>
  193. <option>8</option>
  194. <option>9</option>
  195. <option>10</option>
  196. <option>11</option>
  197. <option>12</option>
  198. </select>
  199. <select id="birthdateYear" name="birthdateYear" class="required">
  200. <option value="">Year</option>
  201. <option>1950</option>
  202. <option>1951</option>
  203. <option>1952</option>
  204. <option>1953</option>
  205. <option>1954</option>
  206. <option>1955</option>
  207. <option>...</option>
  208. </select>
  209. </p>
  210. </div>
  211. <div id="subscriptions">
  212. <p>
  213. <label for="weekly">Weekly Newsletter</label>
  214. <input id="weekly" name="weekly" type="checkbox" />
  215. </p>
  216. <p>
  217. <label for="updates">Product Updates</label>
  218. <input id="updates" name="updates" type="checkbox" />
  219. </p>
  220. <p>
  221. <label for="terms">Terms and conditions</label>
  222. <input id="terms" name="terms" class="required" type="checkbox" />
  223. </p>
  224. </div>
  225. </div>
  226.  
  227. <input type="submit" />
  228. </form>
  229.  
  230. </section>
  231.  
  232. </div>
  233. <footer>
  234. <div class="content-wrapper">
  235. <div class="float-left">
  236. <p>&copy; 2013 </p>
  237. </div>
  238. <div class="float-right">
  239. <button class="btnThemes">Change Theme</button>
  240. </div>
  241. </div>
  242. </footer>
  243.  
  244.  
  245. </body>
  246. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement