-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·83 lines (82 loc) · 2.45 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="csrf-token" content="ZC0DIIZqa6US5mGOJQ0eHxpU10guTY7lBJcvPazb">
<title>Weather App</title>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<script
src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
</head>
<body>
<div style="display:none" class="alert alert-success" role="alert">
You have confirmed it!
</div>
<header>
<h1>Weather App</h1>
</header>
<div class="main">
<div class="bg-video">
<video class="bg-video__content" autoplay muted loop>
<source src="img/video.mp4" type="video/mp4">
<source src="img/video.webm" type="video/webm">
Your browser is not supported!
</video>
</div>
<div id="search">
<label for="city">City Name</label>
<input type="text" id="city" placeholder='search a city' >
<button onclick='searchWeather()' type="button">search</button>
</div>
<div>
<a class="btn btn-primary" onclick="confirmFunc()">Confirm</a>
</div>
<div id="load">Loading...</div>
<div class="weather">
<div class='weather__side weather__side--front'>
<h1 id="weatherCity">City Name</h1>
<div id="weatherDescription">Weather Description</div>
<div id="weatherTemperature">Temperature</div>
</div>
<div class='weather__side weather__side--back'>
<div class='row'>
<div class='col-xs-4'>
<h5>HUMIDITY</h5>
<p id='humidity'></p>
</div>
<div class='col-xs-4'>
<h5>WIND</h5>
<p id='wind'></p>
</div>
<div class='col-xs-4'>
<h5>PRESSURE</h5>
<p id='pressure'></p>
</div>
</div>
</div>
</div>
</div>
<script src="init.js"></script>
<script src="weather-data.js"></script>
<script src="app.js"></script>
<script>
function confirmFunc(){
$.ajax({
url: 'https://test.velements.com/api/counter',
data:{
'counter' : 1
},
type: 'POST',
success:function(data){
if(data = "success"){
$('.alert').show(200).delay(2000).hide(200);
}
}
});
};
</script>
</body>
</html>