//Carousel let next = document.querySelector(".next"); let prev = document.querySelector(".prev"); let pages = document.getElementById("pages"); let pgctrl = document.querySelector(".pgctrl"); let slider = document.querySelector(".slider"); let carousel = document.querySelector(".carousel"); let bg = document.querySelector(".slider-bg"); //Album-cards let album_cards = document.querySelector(".album-cards"), half_img_cards = document.querySelector(".half-image-cards"); //The Database call. import { createClient } from "@supabase/supabase-js"; const supabaseUrl = "https://owbamcqdmqetrgcznxva.supabase.co"; const supabaseKey = "sb_publishable_b0fMYw5I1X97gQXJLVBnrA_-0L4qHGv"; //anon key, you cant access private stuffs or add hilarious stuffs w/ this... //(unless sending me some malicious links but I delete your msg) //the moment you notice you need an API endpoint. const supabase = createClient(supabaseUrl, supabaseKey); //the elements for the carousel if (!document) console.log("press f"); if (!next) console.log("Class next missing."); if (!prev) console.log("Class prev missing."); if (!pgctrl) console.log("Page Control missing."); if (!slider) console.log("Class slider missing."); if (!carousel) console.log("Class carousel missing."); let slider_index = 0; let touchstartX = 0; let touchendX = 0; let highlights = [], releases = [], activities = [], default_highlights = [ { img_url: "https://cdn.glitch.com/f6cb427c-2cdb-4693-bc00-9d3e2991008c%2FScreenshot%20(36).png?v=1633031087464", url: "/", title: "This page is still under construction.", preview: "The page is still under development. In cases, this page will change after reload or after a few days and a reload.", }, ]; let path_name = window.location.pathname; //Start building the page by calling data let params = new URLSearchParams(location.search); if (!params.get("release")) { if (path_name === "/") { document.title = "t404:null | Home"; build_event(0); } if (path_name === "/" || path_name === "/release" || path_name === "/release/") build_event(1); if (path_name === "/" || path_name === "/activity" || path_name === "/activity/") build_event(2); } else { let main = document.querySelector("main"); main.innerHTML = ""; /*
Formerly "Mayonaka Dancehall!!!" (:DACHiTRAX) Release.
Ghost and monsters are gathering you...
t404:null & trung-nova & AXiS
"until you reach it... the two hyper sides."
"Under the coruscating night sky, gaze into the kaleidoscopic waters..."
VNMC2023 Grand Finals Tiebreaker.
"Even if you don't remember me now, I will bring the you I once knew back from them."
*/ if(releases.length>0)album_cards.innerHTML=""; releases.forEach((a) => { let _card = document.createElement("a"), _bg_img = document.createElement("div"), _h2 = document.createElement("h2"), _p_subtitle = document.createElement("p"), _p_preview = document.createElement("p"); _card.href = a.url; _card.classList.add("card"); _bg_img.classList.add("bg-img"); _bg_img.style = "background-image: url(" + a.img_src + ");"; _h2.textContent = a.title; _p_subtitle.textContent = a.subtitle; _p_preview.textContent = a.preview; _card.appendChild(_bg_img); _card.appendChild(_h2); _card.appendChild(_p_subtitle); _card.appendChild(_p_preview); album_cards.appendChild(_card); }); } } async function init_activities(d) { if (d.error) { console.error("Error fetching data:", d.error); } else { activities = d.data; /*BOF-like Contest Releases.
Our team (Sine Fine Stellae) Achieved #2 :D
A Lake With Endless Stars is one of the soundtracks from Sine Fine Stellae produced by me, thanks to the help of Riprider500 and more people :D
(Vietnamese National Mania Championship 2023) Grand Finals Tiebreaker by me (t404:null)
Oblitus Requiem \\Against the Forsaken Legacy//
"Even if you don't remember me now, I will bring the you I once knew back from them."
Sivelia (the host of VNMC) has asked me making a custom soundtrack round for the tourney. The soundtrack get much likes and subscribers on Youtube within 2 weeks as the tournament got a big impact gained. Big thank you to all VNMC staffs for that!
???
Li4tLiAuLS0gLS4uIC0tLi4u
\-...-4buoe2v1qZuiULSrOPuzXZBn
YZt0ULSr9PuzvfuiaZwo5ZBseZB39
fuzpLxn9PurYZtz4PtzpVSlC3u3UrviaZO
???
???
???
*/ if(activities.length>0)album_cards.innerHTML=""; activities.forEach((a) => { let _card = document.createElement("a"), _bg_img = document.createElement("div"), _h2 = document.createElement("h2"), _p_subtitle = document.createElement("p"), _p_preview = document.createElement("p"); _card.href = a.url; _card.classList.add("card"); _bg_img.classList.add("bg-img"); _bg_img.style = "background-image: url(" + a.img_src + ");"; _h2.textContent = a.title; _p_subtitle.textContent = a.subtitle; _p_preview.textContent = a.preview; _card.appendChild(_bg_img); _card.appendChild(_h2); _card.appendChild(_p_subtitle); _card.appendChild(_p_preview); half_img_cards.appendChild(_card); }); } }