mirror of
https://github.com/t404owo/t404null.git
synced 2025-12-12 18:08:47 +00:00
Merge pull request #16 from t404owo/main
latest pull request to update the site
This commit is contained in:
@@ -79,16 +79,20 @@ if (!params.get("release")) {
|
||||
supabase
|
||||
.from("events")
|
||||
.select("title, context, bg_src")
|
||||
.or("event_type.eq.release,event_type.eq.highlight_release")//
|
||||
.eq("event_id", id)
|
||||
.then((d) => {
|
||||
let res = d.data;
|
||||
if (res !== null && res.length > 0) {
|
||||
let _pg = document.createElement("div"),
|
||||
_box = document.createElement("div"),
|
||||
_longbr = document.createElement("div"),
|
||||
_h1 = document.createElement("h1"),
|
||||
title = document.createElement("strong"),
|
||||
data = res[0];
|
||||
|
||||
_longbr.classList.add("long-break");
|
||||
|
||||
_pg.classList.add("release-track");
|
||||
_pg.style =
|
||||
"background-image: url(" +
|
||||
@@ -102,6 +106,7 @@ if (!params.get("release")) {
|
||||
|
||||
|
||||
main.appendChild(_pg);
|
||||
_box.appendChild(_longbr);
|
||||
_pg.appendChild(_box);
|
||||
_box.appendChild(_h1);
|
||||
_h1.appendChild(title);
|
||||
|
||||
Reference in New Issue
Block a user