Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.69 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head lang="en">
  4. <meta charset="UTF-8">
  5. <title>Airplane - Log in</title>
  6. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
  7. <link href="Style/Styles.css" rel="stylesheet" />
  8. <script src="JS/jquery.js"></script>
  9. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
  10. <script>
  11.  
  12. $(document).ready(function() {
  13.  
  14.  
  15. var opened=0;
  16.  
  17. $('.file-icon').bind('mouseover',function() {
  18.  
  19. if (opened) return;
  20. console.log('over');
  21. $(this).html('<i class="glyphicon glyphicon-folder-open bigger"></i>');
  22. opened=1;
  23. $(this).bind('mouseout',function() {
  24. $(this).html('<i class="glyphicon glyphicon-folder-close bigger"></i>');
  25. console.log('over');
  26. opened=0;
  27. });
  28. });
  29.  
  30. $('#login-form').submit(function(e) {
  31.  
  32.  
  33. e.preventDefault();
  34.  
  35.  
  36. $.post('http://buildapp.co.uk/database.php?f=loginUser',
  37.  
  38. $('#login-form').serialize()
  39. ,
  40. function(response) {
  41. if (response.code==1){
  42.  
  43.  
  44.  
  45. alert('Login success! (will redirect you to your storage');
  46.  
  47. window.location.href="UserMainStorage.html";
  48.  
  49.  
  50. }else if (response.code==888) {
  51. alert('Invalid Username or Password');
  52.  
  53. $('#login-form').reset();
  54. }
  55.  
  56. });
  57.  
  58. });
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65. $('#register-form').submit(function(e) {
  66.  
  67. e.preventDefault();
  68.  
  69.  
  70. $.post('http://buildapp.co.uk/database.php?f=registerUser',
  71.  
  72. $('#register-form').serialize()
  73. ,
  74. function(response) {
  75.  
  76. if (response.code==888) {
  77. alert('Invalid Register details love!');
  78.  
  79. }else if (response.code==4) {
  80. alert('Passwords do not match!');
  81. }
  82.  
  83. });
  84.  
  85. });
  86.  
  87.  
  88. });
  89.  
  90.  
  91.  
  92. </script>
  93. <style>
  94. #login {
  95. padding-top: 0px;
  96. }
  97. #login .form-wrap {
  98. width: 30%;
  99. margin: 0 auto;
  100. }
  101. #login h1 {
  102. color: white;
  103. font-size: 30px;
  104. text-align: center;
  105. font-weight: bold;
  106. padding-bottom: 20px;
  107. }
  108. #login .form-group {
  109. margin-bottom: 25px;
  110. }
  111. #login .checkbox {
  112. margin-bottom: 20px;
  113. position: relative;
  114. -webkit-user-select: none;
  115. -moz-user-select: none;
  116. -ms-user-select: none;
  117. -o-user-select: none;
  118. user-select: none;
  119. }
  120. #login .checkbox.show:before {
  121. content: '\e013';
  122. color: #1fa67b;
  123. font-size: 17px;
  124. margin: 1px 0 0 3px;
  125. position: absolute;
  126. pointer-events: none;
  127. font-family: 'Glyphicons Halflings';
  128. }
  129. #login .checkbox .character-checkbox {
  130. width: 25px;
  131. height: 25px;
  132. cursor: pointer;
  133. border-radius: 3px;
  134. border: 1px solid #ccc;
  135. vertical-align: middle;
  136. display: inline-block;
  137. }
  138. #login .checkbox .label {
  139. color: #6d6d6d;
  140. font-size: 13px;
  141. font-weight: normal;
  142. }
  143. #login .btn.btn-custom {
  144. font-size: 14px;
  145. margin-bottom: 20px;
  146. }
  147. #login .forget {
  148. font-size: 13px;
  149. text-align: center;
  150. display: block;
  151. }
  152. .form-control {
  153. color: #212121;
  154. }
  155. .btn-custom {
  156. color: #fff;
  157. background-color: #3399FF;
  158. }
  159. .btn-custom:hover, .btn-custom:focus {
  160. color: #fff;
  161. }
  162. #footer {
  163. color: #6d6d6d;
  164. font-size: 12px;
  165. text-align: center;
  166. }
  167. #footer p {
  168. margin-bottom: 0;
  169. }
  170. #footer a {
  171. color: inherit;
  172. }
  173. #menu {
  174. width: 66px;
  175. }
  176. .bigger {
  177. font-size: 35px;
  178. margin: 10px;
  179. color: white;
  180. }
  181. .bigger:hover, .bigger:focus {
  182. color: #3399FF;
  183. }
  184. .highlight {
  185. text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  186. }
  187. body {
  188. background: url(1406961364489.png);
  189. background-position: center center!important;
  190. background-attachment: fixed;
  191. background-size: cover;
  192. }
  193. button {
  194. background: transparent!important;
  195. border: none!important;
  196. }
  197. .col-xs-12 {
  198. margin-top: 150px!important;
  199. width: 40%!important;
  200. margin-left: -14%!important;
  201. }
  202. .tabwrap{
  203. position:fixed;
  204. left:50%;
  205. top:20px;
  206. margin-left:-75px;
  207. width:150px;
  208. }
  209. .active a{
  210. background:#3399FF!important;
  211.  
  212. }
  213. #menu{
  214. position:fixed;
  215. width:300px;
  216. top:10px;
  217. }
  218. </style>
  219. </head>
  220.  
  221. <body>
  222. <div id="menu">
  223. <a href="Main.html">
  224. <button> <i class="glyphicon glyphicon-home bigger"></i> </button>
  225. </a> <a href="UserMainStorage.html">
  226. <button>
  227. <div class="file-icon"> <span class="glyphicon glyphicon-folder-close bigger"></span></div>
  228. </button>
  229. </a> <a href="logout.php">
  230. <button> <span class="glyphicon glyphicon-log-out bigger"></span></button>
  231. </a>
  232. </div>
  233. <div class="form-wrap"> <img src="airplane.png"style="width:294px;height:194px;position:fixed;left:40%;"></div>
  234.  
  235. <div class="tabwrap">
  236. <div class="" role="tabpanel"><ul id="myTab" class="nav nav-pills" role="tablist">
  237. <li role="presentation" class="active"><a href="#home" id="home-tab" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="false">Log In</a></li>
  238. <li class="" role="presentation"><a href="#profile" id="profile-tab" role="tab" data-toggle="tab" aria-controls="profile" aria-expanded="false">Register</a></li>
  239. </ul>
  240. </div>
  241. <div id="myTabContent" class="tab-content">
  242. <div role="tabpanel" class="tab-pane fade active in" id="home" aria-labelledby="home-tab">
  243. <section id="login">
  244. <div class="container">
  245. <div class="row">
  246. <div class="col-xs-12">
  247. <h1><span class="highlight">Welcome to Airplane</span></h1>
  248. <form role="form" action="#" method="post" id="login-form" autocomplete="off">
  249. <div class="form-group">
  250. <label for="email" class="sr-only">Email</label>
  251. <input type="email" id="email" class="form-control" placeholder="somebody@example.com" name="user_email">
  252. </div>
  253. <div class="form-group">
  254. <label for="key" class="sr-only">Password</label>
  255. <input type="password" id="key" class="form-control" placeholder="Password" name="user_password">
  256. </div>
  257. <input type="submit" id="btn-login" class="btn btn-custom btn-lg btn-block" value="Log in">
  258. </form>
  259. <hr>
  260. </div>
  261. </div>
  262. </div>
  263. </section>
  264.  
  265. </div>
  266. <div role="tabpanel" class="tab-pane fade" id="profile" aria-labelledby="profile-tab">
  267. <section id="login">
  268. <div class="container">
  269. <div class="row">
  270. <div class="col-xs-12">
  271. <h1><span class="highlight">Register a new account</span></h1>
  272. <form role="form" action="#" method="post" id="login-form" autocomplete="off">
  273. <div class="form-group">
  274. <label for="email" class="sr-only">Email</label>
  275. <input type="email" id="email" class="form-control" placeholder="somebody@example.com" name="user_email">
  276. </div>
  277. <div class="form-group">
  278. <label for="key" class="sr-only">Password</label>
  279. <input type="password" id="key" class="form-control" placeholder="Password" name="user_password">
  280. </div>
  281. <div class="form-group">
  282. <label for="key" class="sr-only">Confirm Password</label>
  283. <input type="password" id="key" class="form-control" placeholder="Confirm Password" name="user_password">
  284. </div>
  285. <input type="submit" id="btn-login" class="btn btn-custom btn-lg btn-block" value="Submit">
  286. </form>
  287. <hr>
  288. </div>
  289. </div>
  290. </div>
  291. </section>
  292.  
  293. </div>
  294.  
  295.  
  296. </body>
  297. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement