-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
82 lines (80 loc) · 2.37 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- displays site properly based on user's device -->
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./images/favicon-32x32.png"
/>
<title>Frontend Mentor | IP Address Tracker</title>
<link
rel="stylesheet"
href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
crossorigin=""
/>
<link rel="stylesheet" href="Css/main.css" />
</head>
<body>
<main class="container">
<header class="top-sec">
<h1>IP Address Tracker</h1>
<div class="ip-search">
<form action="get">
<input
type="text"
id="ipInput"
placeholder="Search for any IP address or domain"
/>
<button type="submit" id="submit" aria-label="Search">
<img src="images/icon-arrow.svg" alt="arrow-icon"/>
</button>
</form>
</div>
</header>
<section class="result-data">
<div class="data-holder">
<h2 class="data-title">IP Address</h3>
<p id="ip-address"></p>
</div>
<hr />
<div class="data-holder">
<h2 class="data-title">Location</h3>
<p id="loc"></p>
</div>
<hr />
<div class="data-holder">
<h2 class="data-title">Timezone</h3>
<p id="Timezone"></p>
</div>
<hr />
<div class="data-holder">
<h2 class="data-title">ISP</h3>
<p id="isp"></p>
</div>
</section>
<div class="map-sec">
<div id="map"></div>
</div>
<!-- add offset value dynamically using the API -->
<div class="alert">
<span
class="closebtn"
onclick="this.parentElement.style.display='none';"
>×</span
>
Error!Invalid Ip Address:)
</div>
</main>
<script
src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
crossorigin=""
></script>
<script src="Js/main.js"></script>
</body>
</html>