✷milkteamoon✷

milkteamoon.neocities.org

213,132 views
78 followers
9,981 updates
0 tips
milkteamoon updated their site.
1 week ago
4 likes
vulpecula's avatar vulpecula 1 week ago

see soooooo many media logs with these cool filters for types of media.....how do you do it? I want to implement it on mine so bad but idk where to start!!

1 like
milkteamoon's avatar milkteamoon 1 week ago

I am so shit at javascript and iirc i took this from a gallery page and frankensteined it into something functional for my purposes. This is the script I use: https://milkteamoon.neocities.org/js/media.js. It works by setting each media div with a data-category "tag" and then setting the buttons with the tag class at the top with the same data-filter "tag" to filter for each. Hope that makes sense??

1 like
milkteamoon's avatar milkteamoon 1 week ago

I think you also need to have a hidden class also with "display:none" to remove the items when they are not clicked!

1 like
vulpecula's avatar vulpecula 1 week ago

ohhh yes I see!! thank you sooo much, gonna play around with this on the weekend :D

1 like

Website Stats

Last updated 1 week ago
CreatedJul 9, 2023

Tags

ocs writing personal tma