Silly self eating js

This commit is contained in:
Logan 2024-09-06 01:33:57 -05:00
parent 0bfaf89391
commit 99216b9dd4
50 changed files with 211 additions and 5 deletions

162
music/albums.json Normal file
View file

@ -0,0 +1,162 @@
[
{
"name": "27 Demos",
"artist": "Margo Guryan ",
"link": "27_demos"
},
{
"name": "Choose your Weapon",
"artist": "Hiatus Kaiyote",
"link": "choose_your_weapon"
},
{
"name": "Ciao! Baby",
"artist": "The Marshmallow Kisses",
"link": "ciao_baby"
},
{
"name": "Cosmos",
"artist": "Yuji Ohno",
"link": "cosmos"
},
{
"name": "Deep Breakfast",
"artist": "Ray Lynch",
"link": "deep_breakfast"
},
{
"name": "Departing",
"artist": "Jesus Molina",
"link": "departing"
},
{
"name": "Dune",
"artist": "David Matthews",
"link": "dune"
},
{
"name": "Each and Every Word Leaves Me Here Alone",
"artist": "Foreground Eclipse",
"link": "fge_1"
},
{
"name": "Missing, Loving, Suffering",
"artist": "Foreground Eclipse",
"link": "fge_2"
},
{
"name": "Funky Stuff",
"artist": " Jiro Inagaki",
"link": "funky_stuff"
},
{
"name": "the first glass beach album",
"artist": "Glass Beach",
"link": "glass_beach"
},
{
"name": "God's Trashmen Sent to Right the Mess",
"artist": "Fievel is Glauque",
"link": "gods_trashmen"
},
{
"name": "H.A.Q.Q.",
"artist": "Liturgy",
"link": "haqq"
},
{
"name": "Her Abiding Memory",
"artist": "Pitcher56",
"link": "her_abiding_memory"
},
{
"name": "High Society",
"artist": "Enon",
"link": "high_society"
},
{
"name": "Hold Your Horse Is",
"artist": "Hella",
"link": "hold_your_horse_is"
},
{
"name": "Hylics 2 Original Soundtrack",
"artist": "Chuck Salamone",
"link": "hylics2"
},
{
"name": "Iron Hummer Alternative",
"artist": "IRONBUNNY",
"link": "ironbunny"
},
{
"name": "ITEKOMA HITS",
"artist": "Otoboke Beaver",
"link": "itekoma_hits"
},
{
"name": "Live at Bush Hall",
"artist": "Black Country, New Road",
"link": "live_at_bush_hall"
},
{
"name": "Los Desamores de Dewey Martino",
"artist": "Dewey Martino",
"link": "los_desamores_de_dewey_martino"
},
{
"name": "MACROCOSM",
"artist": "BALTHVS",
"link": "macrocosm"
},
{
"name": "Make Up City",
"artist": "CASIOPEA",
"link": "make_up_city"
},
{
"name": "Mass Teen Fainting",
"artist": "Plumtree",
"link": "mass_teen_fainting"
},
{
"name": "Mint Jams",
"artist": "CASIOPEA",
"link": "mint_jams"
},
{
"name": "an anxious object",
"artist": "mouse on the keys",
"link": "mouse_on_the_keys"
},
{
"name": "My Caution Line",
"artist": "Citrobal",
"link": "my_caution_line"
},
{
"name": "New History Warfare Vol. 3: To See More Light",
"artist": "Colin Stetson",
"link": "new_history_warfare_3"
},
{
"name": "New Levels New Devils",
"artist": "Polyphia",
"link": "new_levels_new_devils"
},
{
"name": "Oncle Jazz",
"artist": "Men I Trust",
"link": "oncle_jazz"
},
{
"name": "One Year Madness",
"artist": "Golemm",
"link": "one_year_madness"
},
{
"name": "Parousia",
"artist": "XI",
"link": "parousia"
}
]

View file

@ -1,5 +1,31 @@
# Music # Music
My favorite songs, albums, and artists My favorite songs, albums, and artists
## albums ## albums
<script id="albums">
const thisScript = document.getElementById("albums");
fetch("/music/albums.json")
.then((response) => response.json())
.then((json) => {
let html = "";
for (let i = 0; i < json.length; i++) {
let album = json[i];
let link = "/res/albums/" + album.link + ".webp";
let name = album.name;
let artist = album.artist;
let template = `<figure>
<img src="${link}">
<figcaption>
<b>${name}</b><br/><em>${artist}</em>
</figcaption>
</figure>`;
html = html.concat(template);
}
let section = document.createElement("section");
section.innerHTML = html;
thisScript.replaceWith(section); // lol
});
</script>
## artists ## artists
## songs ## songs

BIN
res/albums/27_demos.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

BIN
res/albums/ciao_baby.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

BIN
res/albums/cosmos.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

BIN
res/albums/departing.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

BIN
res/albums/dune.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

BIN
res/albums/fge_1.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

BIN
res/albums/fge_2.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

BIN
res/albums/funky_stuff.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
res/albums/glass_beach.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

BIN
res/albums/haqq.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

BIN
res/albums/hylics2.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

BIN
res/albums/ironbunny.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
res/albums/macrocosm.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
res/albums/mint_jams.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 KiB

BIN
res/albums/oncle_jazz.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

BIN
res/albums/parousia.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

BIN
res/albums/plantasia.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

BIN
res/albums/saved.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

BIN
res/albums/short_short.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

BIN
res/albums/tokyo-to.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

BIN
res/albums/trilogy.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

BIN
res/albums/twighlight.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

BIN
res/albums/visions.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

BIN
res/albums/wlfgrl.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
res/albums/www.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

View file

@ -81,9 +81,27 @@ h1 {
padding-bottom: 0.2em; padding-bottom: 0.2em;
} }
img { section {
width: 40%; content-align: center;
height: auto; text-align: center;
align-content: center;
margin: auto;
} }
figure {
display: inline-block;
width: 10em;
max-height: 14em;
margin: auto;
padding: 0.8em;
}
figcaption {
margin-top: 0.4em;
line-height: 110%;
}
img {
display: block;
width: 100%
}