Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2016
1,080
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.29 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <title>Weather-Scraper App</title>
  5.  
  6. <meta charset="utf-8" />
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  10.  
  11. <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
  12.  
  13. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
  14.  
  15. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
  16.  
  17. <style>
  18.  
  19. html, body{
  20. height: 100%;
  21. }
  22.  
  23. .container{
  24. width: 100%;
  25. height: 100%;
  26. background-image:url("imgs/bg_002.gif");
  27. background-position: center;
  28. background-size: cover;
  29. border: 2px solid gray;
  30. }
  31.  
  32.  
  33. .ext-1{
  34. width: 100%;
  35. height: 100%;
  36. position: absolute;
  37. top: -1px;
  38. background-color: rgba(0, 0, 0, .4);
  39. display: none;
  40. }
  41.  
  42. .form-element{
  43. padding-top: 20px;
  44. padding-bottom: 20px;
  45. color: whitesmoke;
  46. }
  47.  
  48. </style>
  49.  
  50. </head>
  51.  
  52. <body>
  53.  
  54. <div class="container">
  55.  
  56. <div class="row">
  57. <div class="col-md-6 col-md-offset-3" id="head-cont">
  58.  
  59. <h1 class="form-element text-center">Check ur local weather</h1>
  60. <p class="form-element lead text-center">Enter the name of a city and get the weather for it...</p>
  61.  
  62. <form>
  63.  
  64. <div class=form-group>
  65. <input type="text" class="form-control" name="inputcity" id="userinput" placeholder="e.g. London, Amsterdam, San Francisco...." />
  66. </div>
  67.  
  68. <button class="button btn btn-success btn-lg center-block" id="submitBtn" >Check it out!!!</button>
  69.  
  70. </form>
  71.  
  72. </div>
  73. </div>
  74. </div>
  75.  
  76. <div class="ext-1"></div>
  77.  
  78. <audio id="au001" src="t001.mp3"></audio>
  79.  
  80.  
  81. </body>
  82.  
  83.  
  84. <script type="text/javascript">
  85.  
  86. function thunderEffect(){
  87.  
  88. $(".ext-1").fadeIn(1500).fadeOut(250, function(){
  89.  
  90. $(this).css("background-color", "rgba(255, 255, 255, .7)");
  91.  
  92.  
  93. document.getElementById("au001").play();
  94.  
  95.  
  96. $(this).fadeIn(250).fadeOut(2000, function(){
  97.  
  98. $(this).css("background-color", "rgba(0, 0, 0, .4)");
  99. });
  100. });
  101. }
  102.  
  103. $(document).ready(function() {
  104. $("button[id='submitBtn']").click(function(){
  105. });
  106. });
  107.  
  108. thunderEffect();
  109.  
  110.  
  111.  
  112. </script>
  113.  
  114.  
  115. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement