joelnazarene

WEAT

Apr 24th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.24 KB | None | 0 0
  1. <html>
  2. <head>
  3.   <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  4.   <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
  5.   <script src="linkers/weather.js"></script>
  6.   <style>
  7. #myProgress {
  8.   width: 100%;
  9.   background-color: #ddd;
  10. }
  11.  
  12. #myBar {
  13.   width: 1%;
  14.   height: 30px;
  15.   background-color: #4CAF50;
  16.  
  17. }
  18. </style>
  19. </head>
  20.  
  21. <body background='11.jpg'>
  22.   <br>
  23.   <div class="container">
  24.     <button class="btn btn-info"><a style="color:white" href="gui.html">< Back</a></button>
  25.  
  26.     <div class="jumbotron">
  27.       <h1>find</h1>
  28.       <h2>abstracts</h2>
  29.       <p> IEEE , SCIENCE DIRECT ,SCIENCE OPEN,ARXIV,PAPERITY,DOAJ ,COMBINED RESULT FROM ALL OR ASK ANY QUESTION TO WOLFRAMALPHA</p>
  30.     </div>
  31.     <br>
  32.    
  33.     <label>Enter keyword</label>
  34.     <input id="city" type="text" placeholder="type here" autofocus/>
  35.     <select name="cars" id="op">
  36.   <option value="1">IEEE</option>
  37.   <option value="2">SCIENCE OPEN</option>
  38.   <option value="3">SCIENCE DIRECT</option>
  39.   <option value="4">ARXIV</option>
  40.   <option value="5">PAPERITY</option>
  41.   <option value="6">DOAJ</option>
  42.   <option value="7">COMBINED RESULT</option>
  43.   <option value="8">ASK ANYTHING</option>
  44.   <option value="9">WEB SCRAPE QUERY</option>
  45. </select>
  46.     number of abstracts
  47.     <input type="number" id='ab' name="quantity" min="1" max="10">
  48.  
  49.     <button class="btn btn-success" id='btn' onclick="get_weather()">Go!</button><br><br><br>
  50.     <div id="myProgress">
  51.     <div id="myBar"></div>
  52.     </div>
  53.      <script>
  54.      var el = document.getElementById("btn");
  55. el.addEventListener("click", function(){alert("please wait until loading is finished")}, false);
  56. el.addEventListener("click", function(){move()}, false);
  57.     function move() {
  58.      var elem = document.getElementById("myBar");  
  59.      var x = document.getElementsByName("cars")[0].value;
  60.      z=0.09;
  61.      if(x == "7"){
  62.      var z= 0.04/(x)}
  63.      var width = 1;
  64.     var id = setInterval(frame, 10);
  65.      function frame() {
  66.       if (width >= 100) {
  67.         clearInterval(id);
  68.         } else {
  69.          width=width+z;
  70.          elem.style.width = width + '%';
  71.      }
  72.      }
  73.     }
  74.      </script>
  75.   </div>
  76.  
  77. <body>
  78. </html>
Add Comment
Please, Sign In to add comment