-
Notifications
You must be signed in to change notification settings - Fork 0
/
fancy.html
108 lines (103 loc) · 2.09 KB
/
fancy.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="../index.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(function() {
$('#navBar').load('../navBar.html');
});
</script>
<style>
body {
margin: 0;
border: 0;
padding: 0;
}
.image {
background-image: url("images/day.jpg");
background-repeat: no-repeat;
background-size: cover;
position: absolute;
left: 0;
right: 0;
bottom: 0px;
top: 45px;
z-index: -1;
}
h1 {
text-align: center;
font-size: 2em;
color: white;
}
#input {
width: 30%;
height: 37px;
font-family: Source Sans Pro;
font-size: 14px;
margin: auto;
}
#form {
text-align: center;
margin: auto;
width: 50%;
}
#submit {
font-family: Work Sans, sans-serif;
font-size: 16px;
font-weight: 500;
margin: auto;
}
#responseField {
width: 30%;
height: 300px;
border-bottom: 2px solid #b2bfcc;
border-top: 2px solid #b2bfcc;
border-radius: 5px;
margin: auto;
margin-top: 25px;
font-family: Source Sans Pro;
font-weight: 400;
font-size: 30px;
letter-spacing: 0.2px;
text-align: center;
color: white;
overflow-wrap: break-word;
padding: 20px;
}
#weatherPic {
width: 300px;
height: 300px;
float: left;
margin-left: 100px;
position: relative;
}
#container {
overflow-wrap: break-word;
}
#submit:hover {
color: blue;
}
#row:after {
content: "";
display: table;
clear: both;
}
</style>
</head>
<body>
<ul id="navBar"></ul>
<div class="image">
<h1>Please Enter a City!</h1>
<div id="weatherPic"></div>
<form id="form" autocomplete="off">
<input type="text" id="input" value="">
<button id="submit">SUBMIT</button>
</form>
<div id="responseField">
</div>
</div>
</body>
<script src="weather.js"></script>
</html>