mirror of
https://github.com/JuLi0n21/homepage.git
synced 2026-04-19 15:20:05 +00:00
trusting kami with this one
This commit is contained in:
@@ -52,10 +52,10 @@ let shuffeld = [
|
|||||||
'https://fshare.kami.boo/u/8f5b50a9-567b-4563-9fd6-0d35fafed4f9.jpg'
|
'https://fshare.kami.boo/u/8f5b50a9-567b-4563-9fd6-0d35fafed4f9.jpg'
|
||||||
].sort(() => Math.random() - .5);
|
].sort(() => Math.random() - .5);
|
||||||
|
|
||||||
/*const response = await fetch('https://fshare.kami.boo/api/server/folder/cmm9jbqvt00025omwu5cnpw9i')
|
const response = await fetch('https://fshare.kami.boo/api/server/folder/cmm9jbqvt00025omwu5cnpw9i')
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
const files = data.files.map(f => `https://fshare.kami.boo${f.url}`).sort(() => Math.random() - .5);
|
const files = data.files.map(f => `https://fshare.kami.boo/raw${f.url.substring(2)}`).sort(() => Math.random() - .5);
|
||||||
const middle = Math.round(files.length / 2);
|
const middle = Math.round(files.length / 2);
|
||||||
shuffeld = files.slice(0,middle);
|
shuffeld = files.slice(0,middle);
|
||||||
images = files.slice(middle);
|
images = files.slice(middle);
|
||||||
@@ -66,7 +66,7 @@ if (response.ok) {
|
|||||||
console.error("FAILED TO FETCH", response.status, response.statusText, errorBody);
|
console.error("FAILED TO FETCH", response.status, response.statusText, errorBody);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
|
|||||||
Reference in New Issue
Block a user