chaowenguo
commited on
Commit
·
9afe549
1
Parent(s):
4a130a3
Update index.js
Browse files
index.js
CHANGED
@@ -10,7 +10,7 @@ for (const button of globalThis.document.querySelectorAll('div[style*="justify-c
|
|
10 |
for (const episode of await globalThis.fetch('https://backend.chaowenguo.eu.org/list', {method:'post', body:event.target.textContent}).then(_ => _.json()))
|
11 |
{
|
12 |
const hyperlink = globalThis.document.createElement('a')
|
13 |
-
|
14 |
hyperlink.textContent = episode
|
15 |
list.appendChild(hyperlink)
|
16 |
}
|
|
|
10 |
for (const episode of await globalThis.fetch('https://backend.chaowenguo.eu.org/list', {method:'post', body:event.target.textContent}).then(_ => _.json()))
|
11 |
{
|
12 |
const hyperlink = globalThis.document.createElement('a')
|
13 |
+
hyperlink.href = ['', event.target.textContent, episode].join('/')
|
14 |
hyperlink.textContent = episode
|
15 |
list.appendChild(hyperlink)
|
16 |
}
|