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,15 +79,19 @@ if (!params.get("release")) {
|
|||||||
supabase
|
supabase
|
||||||
.from("events")
|
.from("events")
|
||||||
.select("title, context, bg_src")
|
.select("title, context, bg_src")
|
||||||
|
.or("event_type.eq.release,event_type.eq.highlight_release")//
|
||||||
.eq("event_id", id)
|
.eq("event_id", id)
|
||||||
.then((d) => {
|
.then((d) => {
|
||||||
let res = d.data;
|
let res = d.data;
|
||||||
if (res !== null && res.length > 0) {
|
if (res !== null && res.length > 0) {
|
||||||
let _pg = document.createElement("div"),
|
let _pg = document.createElement("div"),
|
||||||
_box = document.createElement("div"),
|
_box = document.createElement("div"),
|
||||||
|
_longbr = document.createElement("div"),
|
||||||
_h1 = document.createElement("h1"),
|
_h1 = document.createElement("h1"),
|
||||||
title = document.createElement("strong"),
|
title = document.createElement("strong"),
|
||||||
data = res[0];
|
data = res[0];
|
||||||
|
|
||||||
|
_longbr.classList.add("long-break");
|
||||||
|
|
||||||
_pg.classList.add("release-track");
|
_pg.classList.add("release-track");
|
||||||
_pg.style =
|
_pg.style =
|
||||||
@@ -102,6 +106,7 @@ if (!params.get("release")) {
|
|||||||
|
|
||||||
|
|
||||||
main.appendChild(_pg);
|
main.appendChild(_pg);
|
||||||
|
_box.appendChild(_longbr);
|
||||||
_pg.appendChild(_box);
|
_pg.appendChild(_box);
|
||||||
_box.appendChild(_h1);
|
_box.appendChild(_h1);
|
||||||
_h1.appendChild(title);
|
_h1.appendChild(title);
|
||||||
|
|||||||
Reference in New Issue
Block a user