ln.skyscanner/templates/static/crawler.html
Harald Wolff 3d617963e9 WIP
2019-03-14 13:31:15 +01:00

81 lines
2.2 KiB
HTML

<%frame "frame.html"%>
<div>
<h1>Crawler</h1>
<div class="cpanel">
<button onclick="api.call('api/management','StartCrawler')">Start</button>
<button onclick="api.call('api/management','StopCrawler')">Stop</button>
</div>
<div class="group">
<div>Subnets</div>
<input type="text" id="tfSubnet"/><button onclick="addSubnet();">Hinzufügen</button>
<select id="selSubnets">
</select>
</div>
<div class="group">
<div>Nodes</div>
<table id="nodeTable">
<thead>
<tr>
<td>ID</td>
<td>Primary IP</td>
<td>Name</td>
<td>First Seen</td>
<td>Last Seen</td>
<td>Last Check</td>
<td></td>
</tr>
<tr>
<td></td>
<td><input type="text" name="PrimaryIP"/></td>
<td><input type="text" name="Name"/></td>
<td></td>
<td></td>
<td></td>
<td><button>+</button></td>
</tr>
</thead>
<tbody>
<tr>
<td>ID</td>
<td>Primary IP</td>
<td>Name</td>
<td>First Seen</td>
<td>Last Seen</td>
<td>Last Check</td>
</tr>
<tr>
<td>ID</td>
<td>Primary IP</td>
<td>Name</td>
<td>First Seen</td>
<td>Last Seen</td>
<td>Last Check</td>
</tr>
</tbody>
</table>
</div>
</div>
<script onload="fillSubnets();">
function addSubnet()
{
var network = $("tfSubnet").value;
alert(network);
}
function fillSubnets()
{
var subnets = api.call("api/crawler","GetSubnets");
for (var n=0;n<subnets.length;n++)
{
}
}
</script>