2017-05-02 12:39:53 +02:00
<!DOCTYPE html>
< html lang = "en" >
< head >
< meta charset = "utf-8" >
< meta http-equiv = "X-UA-Compatible" content = "IE=edge" >
< meta name = "viewport" content = "width=device-width, initial-scale=1" >
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
2017-05-02 13:23:04 +02:00
< title > Pantsu Nyaa< / title >
2017-05-02 12:39:53 +02:00
<!-- Latest compiled and minified CSS -->
< link rel = "stylesheet" href = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity = "sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin = "anonymous" >
<!-- Bootstrap -->
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!-- [if lt IE 9]>
< script src = "https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js" > < / script >
< script src = "https://oss.maxcdn.com/respond/1.4.2/respond.min.js" > < / script >
<![endif]-->
< / head >
< body >
< nav class = "navbar navbar-default" >
< div class = "container" >
< div class = "navbar-header" >
< button type = "button" class = "navbar-toggle collapsed" data-toggle = "collapse" data-target = "#bs-example-navbar-collapse-1" aria-expanded = "false" >
< span class = "sr-only" > Toggle navigation< / span >
< span class = "icon-bar" > < / span >
< span class = "icon-bar" > < / span >
< span class = "icon-bar" > < / span >
< / button >
2017-05-02 13:23:04 +02:00
< a class = "navbar-brand" href = "https://nyaa.pantsu.cat" > Pantsu Nyaa< / a >
2017-05-02 12:39:53 +02:00
< / div >
< div class = "collapse navbar-collapse" id = "bs-example-navbar-collapse-1" >
2017-05-02 13:23:04 +02:00
< ul class = "nav navbar-nav" >
2017-05-02 13:42:10 +02:00
< li > < a href = "https://sukebei.pantsu.cat" > Sukebei Nyaa< / a > < / li >
2017-05-02 13:23:04 +02:00
< / ul >
2017-05-02 12:39:53 +02:00
< form class = "navbar-form navbar-left" role = "search" action = "/search" method = "get" >
< div class = "form-group" >
< input name = "q" class = "form-control" placeholder = "Search" type = "text" >
< / div >
< button type = "submit" class = "btn btn-default" > Search for Torrents< / button >
< / form >
< / div >
< / div >
< / nav >
< div class = "container" >
< table class = "table" >
< tr >
< th > Name< / th >
< th > Hash< / th >
< th > Links< / th >
< / tr >
{{ range .Records}}
< tr >
< td > {{.Name}}< / td >
< td > {{.Hash}}< / td >
< td > < a href = "magnet:{{.Magnet}}" > < span class = "glyphicon glyphicon-magnet" aria-hidden = "true" > < / span > < / a >
< a href = "http://torcache.net/torrent/{{.Hash}}.torrent" > < span class = "glyphicon glyphicon-floppy-save" aria-hidden = "true" > < / span > < / a >
< / td >
< / tr >
{{end}}
< / table >
< nav aria-label = "Page navigation" >
< ul class = "pagination" >
< li >
2017-05-02 13:07:04 +02:00
< a id = "Prev" href = "/page/" aria-label = "Previous" >
2017-05-02 12:39:53 +02:00
< span aria-hidden = "true" > « < / span >
< / a >
< / li >
2017-05-02 13:07:04 +02:00
< li > < a id = "One" href = "/page/" > < / a > < / li >
< li > < a id = "Two" href = "/page/" > < / a > < / li >
< li > < a id = "Three" href = "/page/" > < / a > < / li >
< li > < a id = "Four" href = "/page/" > < / a > < / li >
< li > < a id = "Five" href = "/page/" > < / a > < / li >
2017-05-02 12:39:53 +02:00
< li >
2017-05-02 13:07:04 +02:00
< a id = "Next" href = "/page/" aria-label = "Next" >
2017-05-02 12:39:53 +02:00
< span aria-hidden = "true" > » < / span >
< / a >
< / li >
< / ul >
< / nav >
< / div >
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
< script src = "https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js" > < / script >
<!-- Include all compiled plugins (below), or include individual files as needed -->
<!-- Latest compiled and minified JavaScript -->
< script src = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity = "sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin = "anonymous" > < / script >
< script type = "text/javascript" charset = "utf-8" >
var pathArray = window.location.pathname.split( '/' );
2017-05-02 13:07:04 +02:00
var query = window.location.search;
2017-05-02 12:39:53 +02:00
var page = parseInt(pathArray[2]);
2017-05-02 13:07:04 +02:00
var pageString;
2017-05-02 14:38:07 +02:00
pageString = "/page/";
2017-05-02 13:07:04 +02:00
2017-05-02 12:39:53 +02:00
var next = page+1;
var prev = page-1
if (prev < 1 ) {
prev = 1;
}
2017-05-02 14:27:17 +02:00
2017-05-02 14:38:07 +02:00
if (isNaN(page)) {
2017-05-02 13:07:04 +02:00
next = 2;
prev = 1;
}
if (query != "") {
pageString = "/search/";
}
2017-05-02 14:27:17 +02:00
2017-05-02 12:39:53 +02:00
var one = next+1;
var two = next+2;
var three = next+3;
var four = next+4;
var five = next+5;
2017-05-02 14:32:35 +02:00
document.getElementById("One").href= pageString + one + query;
2017-05-02 12:39:53 +02:00
document.getElementById("One").innerHTML = one.toString();
2017-05-02 13:07:04 +02:00
document.getElementById("Two").href= pageString +two + query;
2017-05-02 12:39:53 +02:00
document.getElementById("Two").innerHTML = two.toString();
2017-05-02 14:32:35 +02:00
document.getElementById("Three").href= pageString +three + query;
2017-05-02 12:39:53 +02:00
document.getElementById("Three").innerHTML = three.toString();
2017-05-02 14:32:35 +02:00
document.getElementById("Four").href= pageString +four+ query;
2017-05-02 12:39:53 +02:00
document.getElementById("Four").innerHTML = four.toString();
2017-05-02 14:32:35 +02:00
document.getElementById("Five").href= pageString +five + query;
2017-05-02 12:39:53 +02:00
document.getElementById("Five").innerHTML = five.toString();
2017-05-02 14:32:35 +02:00
document.getElementById("Next").href = pageString +next + query;
document.getElementById("Prev").href = pageString +prev + query;
2017-05-02 14:27:17 +02:00
2017-05-02 12:39:53 +02:00
< / script >
2017-05-02 14:27:17 +02:00
< / body >
2017-05-02 12:39:53 +02:00
< / html >