58 lines
1.8 KiB
HTML
58 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Search - magneticow</title>
|
|
|
|
<link rel="stylesheet" href="static/styles/reset.css">
|
|
<link rel="stylesheet" href="static/styles/essential.css">
|
|
<link rel="stylesheet" href="static/styles/torrents.css">
|
|
|
|
<script src="static/scripts/mustache-v2.3.0.min.js"></script>
|
|
<script src="static/scripts/common.js"></script>
|
|
<script src="static/scripts/torrents.js"></script>
|
|
|
|
<script id="row-template" type="text/x-handlebars-template">
|
|
<tr>
|
|
<td><a href="magnet:?xt=urn:btih:{{infoHash}}&dn={{name}}">
|
|
<img src="static/assets/magnet.gif" alt="Magnet link"
|
|
title="Download this torrent using magnet" /></a></td>
|
|
<td><a href="/torrents/{{infoHash}}">{{name}}</a></td>
|
|
<td>{{size}}</td>
|
|
<td>{{discoveredOn}}</td>
|
|
</tr>
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<div><a href="/"><b>magnetico<sup>w</sup></b></a>​<sub>(pre-alpha)</sub></div>
|
|
<!-- TODO: why make a GET request again? handle it client-side -->
|
|
<form action="/torrents" method="get" autocomplete="off" role="search">
|
|
<input type="search" name="query" placeholder="Search the BitTorrent DHT">
|
|
</form>
|
|
<div>
|
|
<a href="/feed" id="feed-anchor"><img src="static/assets/feed.png"
|
|
alt="feed icon" title="subscribe" /> subscribe</a>
|
|
</div>
|
|
</header>
|
|
<main>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th><!-- Magnet link --></th>
|
|
<th>Name</th>
|
|
<th>Size</th>
|
|
<th>Discovered on</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="rows">
|
|
</tbody>
|
|
</table>
|
|
</main>
|
|
<footer>
|
|
<button onclick="load();">
|
|
Load More Results
|
|
</button>
|
|
</footer>
|
|
</body>
|
|
</html> |