Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.55 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
  2. <html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en”>
  3. <head>
  4. <meta http-equiv=”Content-Type” content=”text/html;charset=UTF-8″ />
  5. <title></title>
  6.  
  7. <link rel=”stylesheet” type=”text/css” href=”css/style.css” media=”all” />
  8.  
  9. <script type=”text/javascript” src=”https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js”></script>
  10. <script type=”text/javascript” src=”https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/jquery-ui.min.js”></script>
  11. <script type=”text/javascript” src=”js/jquery.inputfocus-0.9.min.js”></script>
  12. <script type=”text/javascript” src=”js/jquery.main.js”></script>
  13. </head>
  14. <body>
  15.  
  16. <div id=”container”>
  17. <form action=”#” method=”post”>
  18.  
  19. <!– #first_step –>
  20. <div id=”first_step”>
  21. <h1>SIGN UP FOR A FREE <span>WEBEXP18</span> ACCOUNT</h1>
  22.  
  23. <div class=”form”>
  24. <input type=”text” name=”username” id=”username” value=”username” />
  25. <label for=”username”>At least 4 characters. Uppercase letters, lowercase letters and numbers only.</label>
  26.  
  27. <input type=”password” name=”password” id=”password” value=”password” />
  28. <label for=”password”>At least 4 characters. Use a mix of upper and lowercase for a strong password.</label>
  29.  
  30. <input type=”password” name=”cpassword” id=”cpassword” value=”password” />
  31. <label for=”cpassword”>If your passwords aren’t equal, you won’t be able to continue with signup.</label>
  32. </div> <!– clearfix –><div class=”clear”></div><!– /clearfix –>
  33. <input class=”submit” type=”submit” name=”submit_first” id=”submit_first” value=”” />
  34. </div> <!– clearfix –><div class=”clear”></div><!– /clearfix –>
  35.  
  36. <!– #second_step –>
  37. <div id=”second_step”>
  38. <h1>SIGN UP FOR A FREE <span>WEBEXP18</span> ACCOUNT</h1>
  39.  
  40. <div class=”form”>
  41. <input type=”text” name=”firstname” id=”firstname” value=”first name” />
  42. <label for=”firstname”>Your First Name. </label>
  43. <input type=”text” name=”lastname” id=”lastname” value=”last name” />
  44. <label for=”lastname”>Your Last Name. </label>
  45. <input type=”text” name=”email” id=”email” value=”email address” />
  46. <label for=”email”>Your email address. We send important administration notices to this address. </label>
  47. </div> <!– clearfix –><div class=”clear”></div><!– /clearfix –>
  48. <input class=”submit” type=”submit” name=”submit_second” id=”submit_second” value=”” />
  49. </div> <!– clearfix –><div class=”clear”></div><!– /clearfix –>
  50.  
  51. <!– #third_step –>
  52. <div id=”third_step”>
  53. <h1>SIGN UP FOR A FREE <span>WEBEXP18</span> ACCOUNT</h1>
  54.  
  55. <div class=”form”>
  56. <select id=”age” name=”age”>
  57. <option> 0 – 17</option>
  58. <option>18 – 25</option>
  59. <option>26 – 40</option>
  60. <option>40+</option>
  61. </select>
  62. <label for=”age”>Your age range. </label> <!– clearfix –><div class=”clear”></div><!– /clearfix –>
  63.  
  64. <select id=”gender” name=”gender”>
  65. <option>Male</option>
  66. <option>Female</option>
  67. </select>
  68. <label for=”gender”>Your Gender. </label> <!– clearfix –><div class=”clear”></div><!– /clearfix –>
  69.  
  70. <select id=”country” name=”country”>
  71. <option>United States</option>
  72. <option>United Kingdom</option>
  73. <option>Canada</option>
  74. <option>Serbia</option>
  75. <option>Italy</option>
  76. </select>
  77. <label for=”country”>Your country. </label> <!– clearfix –><div class=”clear”></div><!– /clearfix –>
  78.  
  79. </div> <!– clearfix –><div class=”clear”></div><!– /clearfix –>
  80. <input class=”submit” type=”submit” name=”submit_third” id=”submit_third” value=”” />
  81.  
  82. </div> <!– clearfix –><div class=”clear”></div><!– /clearfix –>
  83.  
  84. <!– #fourth_step –>
  85. <div id=”fourth_step”>
  86. <h1>SIGN UP FOR A FREE <span>WEBEXP18</span> ACCOUNT</h1>
  87.  
  88. <div class=”form”>
  89. <h2>Summary</h2>
  90.  
  91. <table>
  92. <tr><td>Username</td><td></td></tr>
  93. <tr><td>Password</td><td></td></tr>
  94. <tr><td>Email</td><td></td></tr>
  95. <tr><td>Name</td><td></td></tr>
  96. <tr><td>Age</td><td></td></tr>
  97. <tr><td>Gender</td><td></td></tr>
  98. <tr><td>Country</td><td></td></tr>
  99. </table>
  100. </div> <!– clearfix –><div class=”clear”></div><!– /clearfix –>
  101. <input class=”send submit” type=”submit” name=”submit_fourth” id=”submit_fourth” value=”” />
  102. </div>
  103.  
  104. </form>
  105. </div>
  106. <div id=”progress_bar”>
  107. <div id=”progress”></div>
  108. <div id=”progress_text”>0% Complete</div>
  109. </div>
  110.  
  111. </body>
  112. </html>
  113. <script>$(function(){
  114. //original field values
  115. var field_values = {
  116. //id : value
  117. ‘username’ : ‘username’,
  118. ‘password’ : ‘password’,
  119. ‘cpassword’ : ‘password’,
  120. ‘firstname’ : ‘first name’,
  121. ‘lastname’ : ‘last name’,
  122. ’email’ : ’email address’
  123. };
  124.  
  125. //inputfocus
  126. $(‘input#username’).inputfocus({ value: field_values[‘username’] });
  127. $(‘input#password’).inputfocus({ value: field_values[‘password’] });
  128. $(‘input#cpassword’).inputfocus({ value: field_values[‘cpassword’] });
  129. $(‘input#lastname’).inputfocus({ value: field_values[‘lastname’] });
  130. $(‘input#firstname’).inputfocus({ value: field_values[‘firstname’] });
  131. $(‘input#email’).inputfocus({ value: field_values[’email’] });
  132.  
  133. //reset progress bar
  134. $(‘#progress’).css(‘width’,’0′);
  135. $(‘#progress_text’).html(‘0% Complete’);
  136.  
  137. //first_step
  138. $(‘form’).submit(function(){ return false; });
  139. $(‘#submit_first’).click(function(){
  140. //remove classes
  141. $(‘#first_step input’).removeClass(‘error’).removeClass(‘valid’);
  142.  
  143. //ckeck if inputs aren’t empty
  144. var fields = $(‘#first_step input[type=text], #first_step input[type=password]’);
  145. var error = 0;
  146. fields.each(function(){
  147. var value = $(this).val();
  148. if( value.length<4 || value==field_values[$(this).attr(‘id’)] ) {
  149. $(this).addClass(‘error’);
  150. $(this).effect(“shake”, { times:3 }, 50);
  151.  
  152. error++;
  153. } else {
  154. $(this).addClass(‘valid’);
  155. }
  156. });
  157.  
  158. if(!error) {
  159. if( $(‘#password’).val() != $(‘#cpassword’).val() ) {
  160. $(‘#first_step input[type=password]’).each(function(){
  161. $(this).removeClass(‘valid’).addClass(‘error’);
  162. $(this).effect(“shake”, { times:3 }, 50);
  163. });
  164.  
  165. return false;
  166. } else {
  167. //update progress bar
  168. $(‘#progress_text’).html(‘33% Complete’);
  169. $(‘#progress’).css(‘width’,’113px’);
  170.  
  171. //slide steps
  172. $(‘#first_step’).slideUp();
  173. $(‘#second_step’).slideDown();
  174. }
  175. } else return false;
  176. });
  177.  
  178. $(‘#submit_second’).click(function(){
  179. //remove classes
  180. $(‘#second_step input’).removeClass(‘error’).removeClass(‘valid’);
  181.  
  182. var emailPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;
  183. var fields = $(‘#second_step input[type=text]’);
  184. var error = 0;
  185. fields.each(function(){
  186. var value = $(this).val();
  187. if( value.length<1 || value==field_values[$(this).attr(‘id’)] || ( $(this).attr(‘id’)==’email’ && !emailPattern.test(value) ) ) {
  188. $(this).addClass(‘error’);
  189. $(this).effect(“shake”, { times:3 }, 50);
  190.  
  191. error++;
  192. } else {
  193. $(this).addClass(‘valid’);
  194. }
  195. });
  196.  
  197. if(!error) {
  198. //update progress bar
  199. $(‘#progress_text’).html(‘66% Complete’);
  200. $(‘#progress’).css(‘width’,’226px’);
  201.  
  202. //slide steps
  203. $(‘#second_step’).slideUp();
  204. $(‘#third_step’).slideDown();
  205. } else return false;
  206.  
  207. });
  208.  
  209. $(‘#submit_third’).click(function(){
  210. //update progress bar
  211. $(‘#progress_text’).html(‘100% Complete’);
  212. $(‘#progress’).css(‘width’,’339px’);
  213.  
  214. //prepare the fourth step
  215. var fields = new Array(
  216. $(‘#username’).val(),
  217. $(‘#password’).val(),
  218. $(‘#email’).val(),
  219. $(‘#firstname’).val() + ‘ ‘ + $(‘#lastname’).val(),
  220. $(‘#age’).val(),
  221. $(‘#gender’).val(),
  222. $(‘#country’).val()
  223. );
  224. var tr = $(‘#fourth_step tr’);
  225. tr.each(function(){
  226. //alert( fields[$(this).index()] )
  227. $(this).children(‘td:nth-child(2)’).html(fields[$(this).index()]);
  228. });
  229.  
  230. //slide steps
  231. $(‘#third_step’).slideUp();
  232. $(‘#fourth_step’).slideDown();
  233. });
  234.  
  235. $(‘#submit_fourth’).click(function(){
  236. //send information to server
  237. alert(‘Data sent’);
  238. });
  239.  
  240. });</script>
  241. <script>
  242. $.fn.inputfocus=function(params){params=$.extend({focus_class:”focus”,value:””},params);this.each(function(){$(this).focus(function(){$(this).addClass(params.focus_class);this.value=(this.value==params.value)?”:this.value;});$(this).blur(function(){$(this).removeClass(params.focus_class);this.value=(this.value==”)?params.value:this.value;});});return this;};</script>
  243.  
  244. <style>
  245. html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;margin:0;padding:0}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}:focus{outline:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0}
  246.  
  247. @font-face {
  248. font-family: ‘Cantarell’;
  249. src: url(../fonts/Cantarell-Regular.eot);
  250. src: local(‘Cantarell’), url(‘../fonts/Cantarell-Regular.ttf’) format(‘truetype’);
  251. }
  252.  
  253. body {
  254. background-color: #f9f9f9;
  255. color: #222;
  256. font-family: Cantarell, Verdana, sans-serif;
  257. font-size: 12px;
  258. }
  259.  
  260. input[type=”submit”]::-moz-focus-inner, input[type=”button”]::-moz-focus-inner { border : none; }
  261. input[type=”submit”]:focus, input[type=”button”]:focus { outline : none; }
  262.  
  263. .clear { clear: both; }
  264.  
  265. #container {
  266. background: url(‘https://acceptsms.000webhostapp.com/wp-content/uploads/2018/01/container.png’) no-repeat;
  267. width: 754px;
  268. height: 370px;
  269. margin: 20px auto;
  270. padding: 50px 0;
  271. overflow: hidden;
  272. position: relative;
  273. }
  274. #container #first_step, #second_step, #third_step, #fourth_step { display: none; }
  275. #container #first_step { display: block; }
  276.  
  277. #container .form { margin: 66px 72px 0 72px; }
  278.  
  279. #container h1, #container h2 {
  280. font-size: Cantarell, Verdana, sans-serif;
  281. text-align: center;
  282. font-size: 24px;
  283. text-shadow: 1px 1px 2px #222;
  284. }
  285. #container h1 span { color: #a90329; }
  286.  
  287. #container h2 {
  288. color: #888;
  289. font-size: 20px;
  290. text-align: left;
  291. text-shadow: none;
  292. }
  293.  
  294. #container table {
  295. margin: 20px 40px;
  296. font-size: 14px;
  297. font-weight: bold;
  298. }
  299. #container table td {
  300. padding: 5px 10px;
  301. }
  302. #container table td:nth-child(2) {
  303. color: #a90329;
  304. }
  305.  
  306. #container input, #container select {
  307. background: url(‘https://acceptsms.000webhostapp.com/wp-content/uploads/2018/01/input.png’) no-repeat;
  308. color: #888;
  309. border: 1px solid #ccc;
  310. font-family: Cantarell, Verdana, sans-serif;
  311. font-weight: bold;
  312. font-size: 15px;
  313. width: 300px;
  314. height: 35px;
  315. padding: 0 25px;
  316. margin: 20px 0;
  317. float: left;
  318.  
  319. border-radius: 6px;
  320. -moz-border-radius: 6px;
  321. -webkit-border-radius: 6px;
  322. }
  323. #container input.submit {
  324. background: url(‘https://acceptsms.000webhostapp.com/wp-content/uploads/2018/01/button.png’) no-repeat;
  325. border: none;
  326. cursor: pointer;
  327. width: 85px;
  328. height: 38px;
  329. position: relative;
  330. bottom: 2px;
  331. left: 655px;
  332. }
  333. #container input.submit:focus { border: none; }
  334.  
  335. #container input.send{ background: url(‘https://acceptsms.000webhostapp.com/wp-content/uploads/2018/01/send.png’) no-repeat; }
  336.  
  337. #container input.error { border: 1px solid red; }
  338. #container input.valid { border: 1px solid #1FFF00; }
  339.  
  340. #container input:focus, #container select:focus {
  341. border: 1px solid #a90329;
  342. color: #a90329;
  343. }
  344.  
  345. #container select { padding: 5px 0 5px 25px; }
  346. #container option { padding: 0 15px; }
  347.  
  348. #container label {
  349. color: #666;
  350. font-size: 12px;
  351. font-weight: bold;
  352. line-height: 14px;
  353. float: right;
  354. margin: 23px -25px;
  355. width: 270px;
  356. }
  357.  
  358. #progress_bar {
  359. background: url(‘https://acceptsms.000webhostapp.com/wp-content/uploads/2018/01/progress_bar.png’) no-repeat;
  360. width: 339px;
  361. height: 24px;
  362. margin: 0 auto;
  363. position: relative;
  364. }
  365.  
  366. #progress {
  367. background: url(‘https://acceptsms.000webhostapp.com/wp-content/uploads/2018/01/progress.png’) repeat-x;
  368. width: 0px;
  369. height: 23px;
  370.  
  371. border-radius: 20px;
  372. -webkit-border-radius: 20px;
  373. -moz-border-radius: 20px;
  374. }
  375. #progress_text {
  376. position: relative;
  377. line-height: 21px;
  378. text-align: center;
  379. font-weight: bold;
  380. color: white;
  381. text-shadow: 1px 1px 2px #222;
  382. width: 339px;
  383. height: 24px;
  384. top: -23px;
  385. left: 0;
  386. }
  387. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement