-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
93 lines (89 loc) · 3.46 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
84
85
86
87
88
89
90
91
92
93
<!Doctype Html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Linking the javascript files -->
<script src="countryarray.js" defer></script>
<script src="script.js" defer></script>
<script src="autocompleter.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/js/bootstrap.bundle.min.js" integrity="sha384-pprn3073KE6tl6bjs2QrFaJGz5/SUsLqktiwsUTF55Jfv3qYSDhgCecCxMW52nD2" crossorigin="anonymous"></script>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="./style.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous">
<title>GeoSearcher</title>
</head>
<body>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-light" style="background-color: #52A8FF;">
<div class="container-fluid">
<!-- Link the logo to the navbar -->
<img src="website logo.png" width="70" height="70"></img>
<ul class="navbar-nav me-auto">
<h2>GEOSEARCHER</h2>
</ul>
<ul class="navbar-nav mb-auto mb-2 mb-lg-0">
<!-- Contents of navbar, including showing current page user is on -->
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="index.html">Search for a Country</a>
</li>
<li class"nav-item active">
<a class="nav-link" href="about.html">About</a>
</li>
</ul>
</div>
</nav>
<!-- Container for the main part of the page -->
<div class="container" style="height: 1300px">
<main>
<div class="row">
<div class="col mt-5 mb-4 text-center">
<!-- Button to randomly generate country -->
<button type="button" onClick="randomCountryClick()" class="btn btn-primary">Random Country</button>
</div>
</div>
<div class="row">
<div class="col mt-5 mb-4">
<h1 class="text-center">ENTER A COUNTRY</h1>
</div>
</div>
<div class="row">
<div class="col text-center mb-4">
<!-- Searchbox for user to input a country -->
<input class="searchbox" type="text" id="searchbox"></input>
<!-- The list where the text automplete results will show -->
<ul class="results" id="results"></ul>
</div>
</div>
<div class="row" style="padding-left: 24px">
<div class="row">
<div class="col text-center mb-3">
<!-- Error message -->
<div class="myDiv" id="error"></div>
</div>
</div>
</div>
<div class="row mb-5">
<div class="col mt-3 text-center">
<!-- Button to search using what's in the search box -->
<button type="button" onClick="searchClick()" class="btn btn-primary">Search</button>
</div>
</div>
<div class="row">
<div class="col mt-3 mb-20">
<!-- Container to hold country info -->
<div class="container" id="countryContainer" style="width: 500px">
</div>
</div>
<div class="col mt-3">
<!-- Container to hold flag image -->
<div class="container" id="imageContainer">
<div class="flagContainer" id="imageGContainer">
</div>
</div>
</div>
</div>
</main>
</div>
</html>