parent
51608c2201
commit
b132acf4ad
Before Width: | Height: | Size: 101 KiB After Width: | Height: | Size: 101 KiB |
Before Width: | Height: | Size: 185 KiB After Width: | Height: | Size: 185 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
@ -0,0 +1,30 @@ |
|||||||
|
$(document).ready(function () { |
||||||
|
$.ajax({ |
||||||
|
dataType: "json", |
||||||
|
url: "http://"+window.location.hostname+"/db.json", |
||||||
|
headers: { "Accept": "application/json"}, |
||||||
|
success: function (res) { |
||||||
|
let strCatalog = ""; |
||||||
|
res.forEach(manga => { |
||||||
|
strCatalog += '<tr>\ |
||||||
|
<td class="cover">\ |
||||||
|
<img class="thumbnail" src="img/covers/'+manga["id"]+'.jpg"/>\ |
||||||
|
</td>\ |
||||||
|
<td class="description">\ |
||||||
|
<p><b>'+manga["title"]+'</b></p>\ |
||||||
|
<p>Scanlation: ?</p>\ |
||||||
|
<p>Status: ?</p>\ |
||||||
|
<p>Chapters: ?</p>\ |
||||||
|
<p>Last update: ?</p>\ |
||||||
|
<p>\ |
||||||
|
Link:\ |
||||||
|
<a href="reader.html?id='+manga["id"]+'">reader</a>\ |
||||||
|
</p>\ |
||||||
|
</td>\ |
||||||
|
</tr>'; |
||||||
|
}); |
||||||
|
document.getElementById("titles").innerHTML = strCatalog; |
||||||
|
} |
||||||
|
}); |
||||||
|
}); |
||||||
|
|
Loading…
Reference in new issue