function load_random_site() {
const webring_all_url = "https://aidang.cc/webring/all";
fetch(webring_all_url)
.then((response) => response.json())
.then((obj) => {
const entries = obj; // TODO: remove myself from the list
const entries_cleaned = obj.filter((item) => {
console.log(item);
return true;
return !item.is({
name: "jjanzen's website",
url: "https://jjanzen.ca",
});
});
console.log(entries_cleaned);
const entry = entries[Math.floor(Math.random() * entries.length)];
// window.location.href = entry.url;
});
}
function load_webring() {
const webring_url = "https://aidang.cc/webring/https://jjanzen.ca";
const webring_container = document.getElementById("cssa-webring-container");
fetch(webring_url)
.then((response) => response.json())
.then((obj) => {
const webring_html = `