Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script src="linkers/weather.js"></script>
- <style>
- body {
- background-image:url("http://cdn.animalhi.com/3840x2160/20180510/5af4ca563ad2f.jpg") ;
- height: 100%;
- /* Center and scale the image nicely */
- background-position: center;
- background-repeat: no-repeat;
- background-size: cover;
- color: white;
- }
- text{
- color:red;
- }
- button{
- background-color:black;
- width:50;
- height:40;
- border-radius:25px;
- border : 0px;
- font-size: 25px;
- color: white;
- }
- button:hover{
- background-color:black;
- height:60;
- width :50;
- box-shadow: 0 0 25px 0 WHITE, 0 20px 25px 0 rgba(0, 0, 0, 0.2);
- transition: all 1s;
- color: white;
- }
- #myProgress {
- width: 100%;
- background-color: black;
- border-radius:25px;
- }
- #myBar {
- width: 1%;
- height: 30px;
- background-color: white;
- border-radius:25px;
- }
- input{
- border-radius:25px;
- height:30;
- }
- select{
- border-radius:25px;
- height:30;
- }
- option{
- height:30;
- border-radius:25px;
- }
- input:hover{
- border-radius:25px;
- width:250;
- transition: all 1s;
- }
- select:hover{
- border-radius:25px;
- width:250;
- transition: all 1s;
- }
- option:hover{
- width:250;
- border-radius:25px;
- transition: all 1s;
- }
- </style>
- </head>
- <body>
- <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
- <center>
- <label>Enter keyword</label>
- <input id="city" type="text" placeholder="type here" autofocus/>
- <br>
- Choose:<select name="cars" id="op">
- <option value="1">IEEE</option>
- <option value="2">SCIENCE OPEN</option>
- <option value="3">SCIENCE DIRECT</option>
- <option value="4">ARXIV</option>
- <option value="5">PAPERITY</option>
- <option value="6">DOAJ</option>
- <option value="7">COMBINED RESULT</option>
- <option value="8">ASK ANYTHING</option>
- <option value="9">WEB SCRAPE QUERY</option>
- </select><br>
- number of abstracts
- <input type="number" id='ab' name="quantity" min="1" max="10">
- <br>
- <button id='btn' onclick="get_weather()">Go!</button><br><br><br>
- <br> </center>
- <div id="myProgress">
- <div id="myBar"></div>
- </div>
- <script>
- var el = document.getElementById("btn");
- el.addEventListener("click", function(){alert("please wait until loading is finished")}, false);
- el.addEventListener("click", function(){move()}, false);
- function move() {
- var elem = document.getElementById("myBar");
- var x = document.getElementsByName("cars")[0].value;
- z=0.09;
- if(x == "7"){
- var z= 0.04/(x)}
- var width = 1;
- var id = setInterval(frame, 10);
- function frame() {
- if (width >= 100) {
- clearInterval(id);
- } else {
- width=width+z;
- elem.style.width = width + '%';
- }
- }
- }
- </script>
- </div>
- <body>
- </html>
Add Comment
Please, Sign In to add comment