-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolor.html
102 lines (83 loc) · 2.46 KB
/
color.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>ipv4map</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#000000">
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.js" integrity="sha256-GXUdrV9FHGDyzoSGD3O+jR3eYZaZZsjbsMvFhK3C0qg="
crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.css" integrity="sha256-bOWY8F32FGGbNDMPAnwWl/Lv9CKen4IQsNZ4RU9rcs0="
crossorigin="anonymous" />
<script src="Leaflet.LimitZoom.js"></script>
<script src="Leaflet.ContinuousZoom.js"></script>
<style>
* {
margin: 0;
padding: 0;
font-family: sans-serif;
}
img {
image-rendering: optimizeSpeed;
image-rendering: -moz-crisp-edges;
image-rendering: -o-crisp-edges;
image-rendering: -webkit-optimize-contrast;
image-rendering: pixelated;
image-rendering: optimize-contrast;
-ms-interpolation-mode: nearest-neighbor;
}
#map {
background: #111 !important;
}
html,
body,
#map {
height: 100%;
width: 100%;
}
#what {
position: fixed;
z-index: 1000;
top: 20px;
right: 20px;
background-color: rgba(255, 2555, 255, .7);
border-radius: 1000px;
width: 50px;
height: 50px;
text-align: center;
line-height: 50px;
color: #000;
text-decoration: none;
font-size: 25px;
box-shadow: 0 0 50px -10px #05f;
transition: all .3s;
}
#what:hover {
background-color: rgba(255, 2555, 255, .9);
box-shadow: 0 0 50px -5px #05f;
box-shadow: 123;
}
</style>
<script>
window.onload = function () {
var map = L.map('map', {
maxZoom: 12,
minZoom: 0,
crs: L.CRS.Simple,
zoomSnap: 0,
zoomDelta: 0.25
}).setView([1, 1], 1);
var southWest = map.unproject([0, 65536], 8);
var northEast = map.unproject([65536, 0], 8);
map.setMaxBounds(new L.LatLngBounds(southWest, northEast));
L.tileLayer('tiles_color/{z}/{y}/{x}.png', {
attribution: 'data: censys, image: <a href="https://github.com/ipv4map/ipv4map">ipv4map</a>',
nativeZooms: [0, 1, 2, 3, 4, 5, 6, 7, 8]
}).addTo(map);
}
</script>
</head>
<body>
<a href="https://github.com/ipv4map/ipv4map.github.io" id="what">?</a>
<div id="map"></div>
</body>