Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Fix JS error + Seeding Mobile View

https://my.mixtape.moe/cvmemz.png
Cette révision appartient à :
akuma06 2017-05-18 02:49:48 +02:00
Parent 09ec192d0f
révision 4a52a1f3e3
2 fichiers modifiés avec 21 ajouts et 8 suppressions

Voir le fichier

@ -34,13 +34,12 @@ for(var i in list) {
e.innerText = new Date(e.innerText).toLocaleString(lang);
}
var list = document.getElementsByClassName("date-comments");
for(var i in list) {
var e = list[i];
e.title = e.innerText;
e.innerText = new Date(e.title).toLocaleDateString(lang, { year: "numeric", month: "short", day: "numeric"}) + " ";
$(e).append($('<span class="hidden-xs"></span>').text(new Date(e.title).toLocaleTimeString(lang, { hour:"numeric", minute:"numeric" })))
$(".date-comments").each(function(index, el) {
$(this).attr("title", el.innerText);
$(this).text(new Date($(this).attr("title")).toLocaleDateString(lang, { year: "numeric", month: "short", day: "numeric"}) + " ");
$(this).append($('<span class="hidden-xs"></span>').text(new Date($(this).attr("title")).toLocaleTimeString(lang, { hour:"numeric", minute:"numeric" })))
}
);
/*Fixed-Navbar offset fix*/
window.onload = function() {
var shiftWindow = function() { scrollBy(0, -70) };

Voir le fichier

@ -70,11 +70,15 @@
<p><a href="{{.WebsiteLink}}">{{.WebsiteLink}}</a></p>
<hr>
{{end}}
<div class="row">
<div class="col-md-12 col-xs-6">
<div class="row">
<div class="col-md-4">{{T "seeders"}}</div>
<div class="col-md-4">{{T "leechers"}}</div>
<div class="col-md-4">{{T "completed"}}</div>
</div>
</div>
<div class="col-md-12 col-xs-6">
<div class="row">
{{if .LastScrape.IsZero}}
<div class="col-md-12" align="center">{{T "unknown"}}</div>
@ -82,9 +86,19 @@
<div class="col-md-4">{{.Seeders}}</div>
<div class="col-md-4">{{.Leechers}}</div>
<div class="col-md-4"><span class="completed" style="">{{.Completed}}</span></div>
<div class="col-md-4">{{T "last_scraped"}}</div>
<div class="col-md-8 date-short">{{ formatDateRFC .LastScrape }}</div>
{{end}}
</div>
</div>
<div class="col-md-12 col-xs-12">
<div class="row">
{{if not .LastScrape.IsZero}}
<div class="col-md-4 col-xs-8">{{T "last_scraped"}}</div>
<div class="col-md-8 col-xs-4 date-short">{{ formatDateRFC .LastScrape }}</div>
{{end}}
</div>
</div>
</div>
<div class="row">
<div class="col-md-8">
<div class="proSeedBar">
<div class="seeds" style="width: {{ calcWidthSeed .Seeders .Leechers }}%;"></div>