Advertisement
Guest User

WeatherStation Sa4

a guest
Apr 1st, 2015
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.76 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title> Weather Station</title>
  5. <style>
  6.  
  7. body   { margin: 0;
  8. padding: 0;
  9. background: #fff;
  10. color: #fff;
  11. font-family: Arial;
  12. font-size: 12px;
  13. }
  14. .body{
  15. position: absolute;
  16. top: -20px;
  17. left: -20px;
  18. right: -40px;
  19. bottom: -40px;
  20. width: auto;
  21. height: auto;
  22. background-image: url(https://wallwidehd.com/wp-content/uploads/2014-Weather-Wallpaper-800x500.jpg);
  23. background-size: cover;
  24.     -webkit-filter: blur(5px);
  25.     z-index: 0;
  26. }
  27. .grad{
  28.     position: absolute;
  29.     top: -20px;
  30.     left: -20px;
  31.     right: -40px;
  32.     bottom: -20px;
  33.     width: auto;
  34.     height: auto;
  35.     background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0)), color-stop(100%,rgba(0,0,0,0.65))); /* Chrome,Safari4+ */
  36.     z-index: 1;
  37.     opacity: 0.7;
  38. }
  39. .header{
  40.     position: absolute;
  41.     top: calc(50% - 35px);
  42.     left: calc(50% - 255px);
  43.     z-index: 2;
  44. }
  45. .header div{
  46.     float: left;
  47.     color: whi;
  48.     font-family: 'Exo', sans-serif;
  49.     font-size: 70px;
  50.     font-weight: 200;
  51. }
  52.  
  53. .login {
  54.   position: absolute;
  55.   top: calc(50% - -76px);
  56.   left: calc(50% - 150px);
  57.   height: 150px;
  58.   width: 350px;
  59.   padding: 10px;
  60.   z-index: 2;
  61. }
  62. .login input[type=text]{
  63.     width: 250px;
  64.     height: 30px;
  65.     background: transparent;
  66.     border: 1px solid rgba(255,255,255,0.6);
  67.     border-radius: 2px;
  68.     color: #fff;
  69.     font-family: 'Exo', sans-serif;
  70.     font-size: 16px;
  71.     font-weight: 400;
  72.     padding: 4px;
  73. }
  74. .login input[type=password]{
  75.     width: 250px;
  76.     height: 30px;
  77.     background: transparent;
  78.     border: 1px solid rgba(255,255,255,0.6);
  79.     border-radius: 2px;
  80.     color: #fff;
  81.     font-family: 'Exo', sans-serif;
  82.     font-size: 16px;
  83.     font-weight: 400;
  84.     padding: 4px;
  85.     margin-top: 10px;
  86. }
  87. .login input[type=button]{
  88.     width: 250px;
  89.     height: 30px;
  90.     background: #fff;
  91.     border: 1px solid #fff;
  92.     cursor: pointer;
  93.     border-radius: 2px;
  94.     color: #a18d6c;
  95.     font-family: 'Exo', sans-serif;
  96.     font-size: 16px;
  97.     font-weight: 400;
  98.     padding: 6px;
  99.     margin-top: 10px;
  100. }
  101. .login input[type=button]:hover{
  102.     opacity: 0.8;
  103. }
  104. .login input[type=button]:active{
  105.     opacity: 0.6;
  106. }
  107. .login input[id=button]{
  108.     width: 250px;
  109.     height: 30px;
  110.     background: #fff;
  111.     border: 1px solid #fff;
  112.     cursor: pointer;
  113.     border-radius: 2px;
  114.     color: #a18d6c;
  115.     font-family: 'Exo', sans-serif;
  116.     font-size: 16px;
  117.     font-weight: 400;
  118.     padding: 4px;
  119.     margin-top: 10px;
  120. }
  121. .login input[id=button]:hover{
  122.         opacity: 0.8;
  123. }
  124. .login input[id=button]:active{
  125.         opacity: 0.6;
  126. }
  127. .login input[type=text]:focus{
  128.     outline: none;
  129.     border: 1px solid rgba(255,255,255,0.9);
  130. }
  131. .login input[type=password]:focus{
  132.     outline: none;
  133.     border: 1px solid rgba(255,255,255,0.9);
  134. }
  135. .login input[type=button]:focus{
  136.     outline: none;
  137. }
  138. ::-webkit-input-placeholder{
  139.    color: rgba(255,255,255,0.6);
  140. }
  141. ::-moz-input-placeholder{
  142.    color: rgba(255,255,255,0.6);
  143. }
  144. .login input[id=button]:focus{
  145.         outline: none;
  146. }
  147. ::-webkit-input-placeholder{
  148.    color: rgba(255,255,255,0.6);
  149. }
  150. ::-moz-input-placeholder{
  151.    color: rgba(255,255,255,0.6);
  152. }
  153. </style>
  154. <script src="js/prefixfree.min.js"></script>
  155.  
  156. </head>
  157.  
  158. <body>
  159.  
  160.   <div class="body"></div>
  161.         <div class="grad"></div>
  162.        
  163. <div class="header">
  164.             <div>Weather Station</div>
  165.         </div>
  166.         <br>
  167.        
  168. <div class="login">
  169. <form>
  170. <td><input id = "uid" type = "text" placeholder="Enter Your Name" name="user"
  171. input pattern=".{5,15}" required title="5 to 15 characters"></td>
  172. <br>
  173. <td><input id = "button" type="button" value="Press To Continue"
  174. onclick = "doSomething ()"><td>
  175. <br>
  176.  
  177. </form>
  178. <script type="text/javascript">
  179. function doSomething()
  180. {
  181. var uid = document.getElementById("uid").value;
  182. alert("I will try to let you in, " + uid);
  183. location.href = "Weather Main.html" + "?userid=" + uid ;
  184. }
  185. </script>
  186. <script src='http://codepen.io/assets/libs/fullpage/jquery.js'>
  187. </script>
  188. </body>
  189. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement