-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
104 lines (97 loc) · 2.82 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
94
95
96
97
98
99
100
101
102
103
104
<!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>
<!-- Feel free to remove these styles or customise in your own stylesheet 👍 -->
<style>
.attribution {
font-size: 11px;
text-align: center;
}
.attribution a {
color: hsl(228, 45%, 44%);
}
</style>
<link rel="stylesheet" href="style.css" />
<!-- leaflet -->
<link
rel="stylesheet"
href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
crossorigin=""
/>
<!-- Make sure you put this AFTER Leaflet's CSS -->
<script
src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
crossorigin=""
></script>
<!-- mapbox -->
<script src="https://api.mapbox.com/mapbox-gl-js/v2.0.0/mapbox-gl.js"></script>
<link
href="https://api.mapbox.com/mapbox-gl-js/v2.0.0/mapbox-gl.css"
rel="stylesheet"
/>
<!-- google fonts -->
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&display=swap"
rel="stylesheet"
/>
</head>
<body>
<div class="upper-part">
<h1>IP Address Tracker</h1>
<input
id="ipAddress"
type="text"
placeholder="Search for any IP address or domain"
/>
<span id="onClick">
<svg
class="icon"
xmlns="http://www.w3.org/2000/svg"
width="11"
height="14"
>
<path fill="none" stroke="#FFF" stroke-width="3" d="M2 1l6 6-6 6" />
</svg>
</span>
<div class="invisible" id="invisible">
Enter a valid ip Address or Domain
</div>
</div>
<div class="second-item-parent">
<div class="second-item" id="second-item">
<div>
<h5>IP Address</h5>
<h1 id="ipaddressbox"></h1>
</div>
<div>
<h5>Location</h5>
<h1 id="location"></h1>
</div>
<div>
<h5>Timezone</h5>
<h1 id="timezone"></h1>
</div>
<div>
<h5>ISP</h5>
<h1 id="isp"></h1>
</div>
</div>
<div id="map"></div>
</div>
<script type='text/javascript' src='./config.js'></script>
<script type="module" src="index.js"></script>
</body>
</html>