-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
45 lines (37 loc) · 1.25 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>IpMap</title>
</head>
<body>
<div id="map"><p>Loading IpMap...</p></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.7.2/jquery.min.js" crossorigin="anonymous"></script>
<script src="https://cdn.rawgit.com/jquery/jquery-mousewheel/33dc8f10/jquery.mousewheel.min.js"></script>
<script src="ip_data.js"></script>
<script src="hilbert.js"></script>
<script src="color.js"></script>
<script src="ip_map.js"></script>
<script>
function parseQueryString(search) {
r = {};
var parts = search.split('&');
for(var i in parts) {
if(parts[i] != '') {
nameValue = parts[i].split('=');
r[nameValue[0]] = nameValue[1];
}
}
return r;
}
$(document).ready(function() {
map = IpMap('map', 512, 16, parseQueryString(location.search.substr(1)));
map.change(function(state) {
history.pushState({}, '', location.href.replace(location.search, '') + '?' + $.param(state));
});
});
</script>
<script>var jacquev6_ribbon_github="IpMap"</script>
<script src="https://jacquev6.github.io/ribbon.js"></script>
</body>
</html>