mirror of
https://github.com/cwinfo/yggdrasil-map
synced 2025-06-26 16:19:24 +00:00
Remove unfinished features
This commit is contained in:
@ -5,8 +5,6 @@
|
||||
<title>fc00::/8</title>
|
||||
<script src="static/jquery-2.0.3.min.js"></script>
|
||||
<script src="static/jquery.autocomplete.min.js"></script>
|
||||
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro|Droid+Sans|Duru+Sans|Quattrocento+Sans|Open+Sans' rel='stylesheet' type='text/css'>
|
||||
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css" />
|
||||
<link href='static/style.css' rel='stylesheet' type='text/css'>
|
||||
</head>
|
||||
<body>
|
||||
@ -14,9 +12,6 @@
|
||||
<h1>fc00<span class="grey">::/8</span></h1>
|
||||
|
||||
<ul>
|
||||
<li><a href="/network">Network</a></li>
|
||||
<li><a href="/world-map">World map</a></li>
|
||||
<li><a href="/tools">Tools</a></li>
|
||||
<li><tt>{{ ip }}</tt></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -1,9 +0,0 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div id="content-wrapper">
|
||||
<h2>Ping</h2>
|
||||
<input type="text" value="{{ ip }}">
|
||||
<h2>Traceroute</h2>
|
||||
</div>
|
||||
{% endblock %}
|
@ -1,40 +0,0 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div id="content-wrapper">
|
||||
<div id="map"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<script src="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js"></script>
|
||||
<script type="text/javascript">
|
||||
"use strict";
|
||||
|
||||
var nodes = {{ nodes|tojson|safe }}
|
||||
|
||||
var map = L.map('map').setView([0, 0], 2);
|
||||
|
||||
L.tileLayer('http://otile{s}.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.jpg', {
|
||||
subdomains: '1234',
|
||||
minZoom: 2,
|
||||
maxZoom: 7,
|
||||
noWrap: true
|
||||
}).addTo(map);
|
||||
|
||||
|
||||
for (var i = 0; i < nodes.length; ++i) {
|
||||
var node = nodes[i];
|
||||
|
||||
node.circle = L.circle([node.latitude, node.longitude], 5000, {
|
||||
// color: 'red',
|
||||
stroke: false,
|
||||
fillColor: 'red',
|
||||
fillOpacity: 1
|
||||
}).addTo(map);
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user