-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
89 lines (72 loc) · 4.53 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
<!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">
<!--STYLES-->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<!--LEAFLETJS (MAP API)-->
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A==" crossorigin=""/>
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js" integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA==" crossorigin=""></script>
<!--MAPBOXGL (MAP API)-->
<script src='https://api.mapbox.com/mapbox-gl-js/v2.0.1/mapbox-gl.js'></script>
<link href='https://api.mapbox.com/mapbox-gl-js/v2.0.1/mapbox-gl.css' rel='stylesheet' />
<title>IP Address Tracker | by Marc Bellido</title>
</head>
<body class="w-100 h-100 px-0 container-fluid d-flex-column">
<header>
<div class="search w-100 position-relative text-center justify-content-between py-5">
<h1 class="text-center text-white position-relative pb-2">IP Address Tracker</h1>
<div class="input position-relative d-flex justify-content-center align-items-center">
<input id="ipaddress" name="ipaddress" type="text" placeholder="Search for any IP address or domain" aria-label="ip address" title="ip address" class="col-md-3 rounded-start"/>
<button class="btnSearch position-relative col-1 bg-dark mr-2 rounded-end" onclick="getInputValue();"></button>
</div>
<section class="result position-absolute bg-white col-md-7 rounded mx-4">
<div class="result-container row position-relative d-flex justify-content-center align-items-center mx-2 py-md-2">
<div class="rc-ipaddress position-relative col-md-4 col-1 w-25 my-2 mx-auto border-end border-2 border-light">
<div class="text fw-bold text-uppercase text-black-50 mx-auto fw-bold">IP Address</div>
<div class="valueIp mx-auto fw-bold">192.212.174.101</div>
</div>
<div class="rc-location position-relative col-md-4 col-1 w-25 my-2 mx-auto border-end border-2 border-light">
<div class="text fw-bold text-uppercase text-black-50 mx-auto fw-bold">Location</div>
<div class="valueCountry mx-auto fw-bold">Brooklyn, NY 10001</div>
</div>
<div class="rc-timezone position-relative col-md-4 col-1 w-25 my-2 mx-auto border-end border-2 border-light">
<div class="text fw-bold text-uppercase text-black-50 mx-auto fw-bold">Timezone</div>
<div class="valueUtc mx-auto fw-bold">UTC-05:00</div>
<!-- add offset value dynamically using the API -->
</div>
<div class="rc-isp position-relative col-md-4 col-1 w-25 my-2 mx-auto">
<div class="text fw-bold text-uppercase text-black-50 mx-auto fw-bold">ISP</div>
<div class="valueIsp mx-auto fw-bold">SpaceX Starlink</div>
</div>
</div>
</section>
</div>
</header>
<main class="position-relative w-100 h-75">
<div id="map"></div>
<div id="menu">
<input id="streets-v11" type="radio" name="rtoggle" value="streets" checked="checked"/>
<label for="streets-v11">streets</label>
<input id="light-v10" type="radio" name="rtoggle" value="light" />
<label for="light-v10">light</label>
<input id="dark-v10" type="radio" name="rtoggle" value="dark" />
<label for="dark-v10">dark</label>
<input id="outdoors-v11" type="radio" name="rtoggle" value="outdoors" />
<label for="outdoors-v11">outdoors</label>
<input id="satellite-v9" type="radio" name="rtoggle" value="satellite" />
<label for="satellite-v9">satellite</label>
</div>
</main>
<footer class="d-flex col-6 mx-auto justify-content-end flex-column mt-5">
<div class="attribution mt-5">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="https://www.linkedin.com/in/marc-bellido-dorador/">Marc Bellido</a>.
</div>
</footer>
<script type="text/javascript" src="app.js"></script>
</body>
</html>