diff --git a/zhetic-poc/db.json b/zhetic-poc/db.json index 2e4514f..9635fd7 100644 --- a/zhetic-poc/db.json +++ b/zhetic-poc/db.json @@ -2,5 +2,4 @@ { "id" : "0", "title" : "Boku no Kokoro no Yabai Yatsu", "cid" : "bafybeihnoou2av5w2bzmwkl6hi25scyzz6sjwdfqp4cwq2ikf6dfmev3ta", "pageNo" : "18" }, { "id" : "1", "title" : "Otoyomegatari", "cid" : "bafybeigfivshobq4h5x5qwmttgqimaufmcjl6hpjcrsedj7wxxduphp7g4", "pageNo" : "39" }, { "id" : "2", "title" : "Spy X Family", "cid" : "bafybeibgnpbredeofwp364qomqpth55a6ui3oiy2ucm35fo3eimquoeob4", "pageNo" : "71" } -] - +] \ No newline at end of file diff --git a/zhetic-poc/img/bokuyaba_cover.jpg b/zhetic-poc/img/covers/0.jpg similarity index 100% rename from zhetic-poc/img/bokuyaba_cover.jpg rename to zhetic-poc/img/covers/0.jpg diff --git a/zhetic-poc/img/otoyomegatari_cover.jpg b/zhetic-poc/img/covers/1.jpg similarity index 100% rename from zhetic-poc/img/otoyomegatari_cover.jpg rename to zhetic-poc/img/covers/1.jpg diff --git a/zhetic-poc/img/spyxfamily_cover.jpg b/zhetic-poc/img/covers/2.jpg similarity index 100% rename from zhetic-poc/img/spyxfamily_cover.jpg rename to zhetic-poc/img/covers/2.jpg diff --git a/zhetic-poc/index.html b/zhetic-poc/index.html index 649f967..1428002 100644 --- a/zhetic-poc/index.html +++ b/zhetic-poc/index.html @@ -13,9 +13,6 @@ | Contributing | Contact | -
    
This service is 99% distributed. This means you should start seeding before you start reading and accessing the content. Install an ipfs client and connect through the http gateway it provides for you. This website is just a list of files hosted on a distributed network, a tracker, if you will. For the best possible experience we also recommend that you install the ipfs-companion browser plugin. This does not mean you should rely on the public gateway, because this site would not be able to stay up.
diff --git a/zhetic-poc/js/catalog.js b/zhetic-poc/js/catalog.js
new file mode 100644
index 0000000..8a210a5
--- /dev/null
+++ b/zhetic-poc/js/catalog.js
@@ -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 += '
'+manga["title"]+'
\ +Scanlation: ?
\ +Status: ?
\ +Chapters: ?
\ +Last update: ?
\ +\ + Link:\ + reader\ +
\ +     - This part could be js driven and pull the metadata from some kind of database, alternatively from ipfs through the public gateway at ipfs.io. The manga pages would be pulled from localhost and displayed in a built-in manga reader.
+ Generated from /db.json
- ![]() ![]() |
Boku no Kokoro no Yabai Yatsu @@ -34,35 +33,7 @@Chapters: x Last update: recently - |
-
- ![]() |
-
- Otoyomegatari -Scanlation: idgaf -Status: ongoing -Chapters: x -Last update: recently - - |
-
- ![]() |
-
- Spy x Family -Scanlation: idgaf -Status: ongoing -Chapters: x -Last update: recently -Link: - QmQvdWNqGU8q5c2DyqwxhVfYZt8Cw8PFxAQD6zHfR49ojc + reader |