Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
neCo2 committed Sep 2, 2024
1 parent fccccc9 commit 9024efb
Show file tree
Hide file tree
Showing 56 changed files with 8,442 additions and 2,760 deletions.
67 changes: 65 additions & 2 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,64 @@
background:black;
}
</style>
<script>
function zeroPad(number) {
let [integer, decimal] = number.split('.');
integer = integer.padStart(3, '0');
if (decimal) {
return `${integer}.${decimal}`;
}
return integer;
}

async function downloadURL(uri, short, chapter, dlLink) {
const ext = uri.match(/\.[^\.\/]+$/);
console.log(short)
if (!ext) {
return
}
var name = ""
try {
chapterMatch = chapter.match(/\d+(\.\d+)?/)
name = short + zeroPad(chapterMatch[0])
}
catch {
name = short + "_" + chapter
}

event.preventDefault();
console.log("Downloading " + uri + " as " + name)
const oldInnerHTML = dlLink.innerHTML;
dlLink.innerHTML = oldInnerHTML + " <span style='font-size:65%'>(Connecting)</span>";
const response = await fetch(uri);
const contentLength = response.headers.get('content-length');
const total = parseInt(contentLength, 10);
let loaded = 0;

const res = new Response(new ReadableStream({
async start(controller) {
const reader = response.body.getReader();
for (;;) {
const {done, value} = await reader.read();
if (done) break;
loaded += value.byteLength;
dlLink.innerHTML = oldInnerHTML + " <span style='font-size:65%'>(" + (loaded/1000000).toFixed(2) + "/" + (total/1000000).toFixed(2) +"mb)</span>";
controller.enqueue(value);
}
controller.close();
},
}));
const blob = await res.blob();
const href = window.URL.createObjectURL(blob);
const a = document.createElement("a");
a.download = name + ext;
a.target="_blank"
a.href = href;
a.click();
a.href = "";
dlLink.innerHTML = oldInnerHTML;
}
</script>
<title>404 - neCo</title>
</head>
<!--
Expand Down Expand Up @@ -73,7 +131,7 @@
</div>

</header>
<div class="refreshBanner ver4 Aver2024-08-26-07-21">
<div class="refreshBanner ver4 Aver2024-09-02-13-43">
<div>
If you are seeing this, please refresh the page without cache.<br>
(ctrl+shift+r usually)
Expand Down Expand Up @@ -115,6 +173,11 @@ <h1>404</h1>
</div>
<br>
</div>
<noscript>
<div>
JavaScript is unfortunately required to download chapters with the correct file-names.
</div>
</noscript>

</div>
<footer id="footer">
Expand All @@ -123,7 +186,7 @@ <h1>404</h1>
</div>
<span style="opacity:20%">
May your path lea<a class="nonStyled" target="_self" href="debug">d</a> you to the gardens of eternal spring.
<span style="font-size:8px;">2024-08-26 07:21</span>
<span style="font-size:8px;">2024-09-02 13:43</span>
</span>
<span style="float:right;opacity:20%">
<a target="_self" href="feeds">Feeds</a> - <a target="_self" href="contact">Contact</a>
Expand Down
2 changes: 1 addition & 1 deletion assets/css/styles.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* */
/*.ver2024-08-26-07-21*/
/*.ver2024-09-02-13-43*/
.ver4 {
display: none;
}
Expand Down
8 changes: 8 additions & 0 deletions assets/css/wrapper.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ html, body {
margin:0;
height:100% !important;
}
noscript {
background:#ff000020;
align-content:center;
}
noscript > div {
margin-left: auto;
margin-right: auto;
}
#footer {
margin:auto;
border-top: 1px solid #0000004f;
Expand Down
67 changes: 65 additions & 2 deletions assets/fun/mahjong/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,64 @@
background:black;
}
</style>
<script>
function zeroPad(number) {
let [integer, decimal] = number.split('.');
integer = integer.padStart(3, '0');
if (decimal) {
return `${integer}.${decimal}`;
}
return integer;
}

async function downloadURL(uri, short, chapter, dlLink) {
const ext = uri.match(/\.[^\.\/]+$/);
console.log(short)
if (!ext) {
return
}
var name = ""
try {
chapterMatch = chapter.match(/\d+(\.\d+)?/)
name = short + zeroPad(chapterMatch[0])
}
catch {
name = short + "_" + chapter
}

event.preventDefault();
console.log("Downloading " + uri + " as " + name)
const oldInnerHTML = dlLink.innerHTML;
dlLink.innerHTML = oldInnerHTML + " <span style='font-size:65%'>(Connecting)</span>";
const response = await fetch(uri);
const contentLength = response.headers.get('content-length');
const total = parseInt(contentLength, 10);
let loaded = 0;

const res = new Response(new ReadableStream({
async start(controller) {
const reader = response.body.getReader();
for (;;) {
const {done, value} = await reader.read();
if (done) break;
loaded += value.byteLength;
dlLink.innerHTML = oldInnerHTML + " <span style='font-size:65%'>(" + (loaded/1000000).toFixed(2) + "/" + (total/1000000).toFixed(2) +"mb)</span>";
controller.enqueue(value);
}
controller.close();
},
}));
const blob = await res.blob();
const href = window.URL.createObjectURL(blob);
const a = document.createElement("a");
a.download = name + ext;
a.target="_blank"
a.href = href;
a.click();
a.href = "";
dlLink.innerHTML = oldInnerHTML;
}
</script>
<title>Yaku - neCo</title>
</head>
<!--
Expand Down Expand Up @@ -73,7 +131,7 @@
</div>

</header>
<div class="refreshBanner ver4 Aver2024-08-26-07-21">
<div class="refreshBanner ver4 Aver2024-09-02-13-43">
<div>
If you are seeing this, please refresh the page without cache.<br>
(ctrl+shift+r usually)
Expand Down Expand Up @@ -1220,6 +1278,11 @@ <h1>Yakuman</h1>
</div>
<br>
</div>
<noscript>
<div>
JavaScript is unfortunately required to download chapters with the correct file-names.
</div>
</noscript>

</div>
<footer id="footer">
Expand All @@ -1228,7 +1291,7 @@ <h1>Yakuman</h1>
</div>
<span style="opacity:20%">
May your path lea<a class="nonStyled" target="_self" href="debug">d</a> you to the gardens of eternal spring.
<span style="font-size:8px;">2024-08-26 07:21</span>
<span style="font-size:8px;">2024-09-02 13:43</span>
</span>
<span style="float:right;opacity:20%">
<a target="_self" href="feeds">Feeds</a> - <a target="_self" href="contact">Contact</a>
Expand Down
75 changes: 73 additions & 2 deletions assets/fun/zw/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,64 @@
background:black;
}
</style>
<script>
function zeroPad(number) {
let [integer, decimal] = number.split('.');
integer = integer.padStart(3, '0');
if (decimal) {
return `${integer}.${decimal}`;
}
return integer;
}

async function downloadURL(uri, short, chapter, dlLink) {
const ext = uri.match(/\.[^\.\/]+$/);
console.log(short)
if (!ext) {
return
}
var name = ""
try {
chapterMatch = chapter.match(/\d+(\.\d+)?/)
name = short + zeroPad(chapterMatch[0])
}
catch {
name = short + "_" + chapter
}

event.preventDefault();
console.log("Downloading " + uri + " as " + name)
const oldInnerHTML = dlLink.innerHTML;
dlLink.innerHTML = oldInnerHTML + " <span style='font-size:65%'>(Connecting)</span>";
const response = await fetch(uri);
const contentLength = response.headers.get('content-length');
const total = parseInt(contentLength, 10);
let loaded = 0;

const res = new Response(new ReadableStream({
async start(controller) {
const reader = response.body.getReader();
for (;;) {
const {done, value} = await reader.read();
if (done) break;
loaded += value.byteLength;
dlLink.innerHTML = oldInnerHTML + " <span style='font-size:65%'>(" + (loaded/1000000).toFixed(2) + "/" + (total/1000000).toFixed(2) +"mb)</span>";
controller.enqueue(value);
}
controller.close();
},
}));
const blob = await res.blob();
const href = window.URL.createObjectURL(blob);
const a = document.createElement("a");
a.download = name + ext;
a.target="_blank"
a.href = href;
a.click();
a.href = "";
dlLink.innerHTML = oldInnerHTML;
}
</script>
<title>ZW Fun - neCo</title>
</head>
<!--
Expand Down Expand Up @@ -73,7 +131,7 @@
</div>

</header>
<div class="refreshBanner ver4 Aver2024-08-26-07-21">
<div class="refreshBanner ver4 Aver2024-09-02-13-43">
<div>
If you are seeing this, please refresh the page without cache.<br>
(ctrl+shift+r usually)
Expand Down Expand Up @@ -392,6 +450,14 @@














Expand All @@ -404,6 +470,11 @@
</div>
<br>
</div>
<noscript>
<div>
JavaScript is unfortunately required to download chapters with the correct file-names.
</div>
</noscript>

</div>
<footer id="footer">
Expand All @@ -412,7 +483,7 @@
</div>
<span style="opacity:20%">
May your path lea<a class="nonStyled" target="_self" href="debug">d</a> you to the gardens of eternal spring.
<span style="font-size:8px;">2024-08-26 07:21</span>
<span style="font-size:8px;">2024-09-02 13:43</span>
</span>
<span style="float:right;opacity:20%">
<a target="_self" href="feeds">Feeds</a> - <a target="_self" href="contact">Contact</a>
Expand Down
Binary file added assets/resources/purchase_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/resources/purchase_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/resources/purchase_03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/resources/purchase_04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/resources/purchase_05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 9024efb

Please sign in to comment.