Mar. 31st, 2026
javascript noodle question
Mar. 31st, 2026 04:01 pmhopefully this will make sense .
due to tumblr bullshit , would like to make random music embed for website . already have youtube one , and have technically functional one for bandcamp as well . however , bandcamp is particularly noodly , as bandcamp embeds use 3 different variable pieces - album ID , track ID , and album link .
what currently have is system that define these 3 pieces individually , generate 1 random number , then assemble embed into innerHTML based on that random number . definition of these variables is very messy , hard to keep track of , and would be incredibly easy to fuck up and accidentally put everything out of order .
try to figure out if there is some way of essentially " sub-array " , or if need to hack back this code and do something weirder ... think will probably put all of actual code in replies section , please hold .
due to tumblr bullshit , would like to make random music embed for website . already have youtube one , and have technically functional one for bandcamp as well . however , bandcamp is particularly noodly , as bandcamp embeds use 3 different variable pieces - album ID , track ID , and album link .
what currently have is system that define these 3 pieces individually , generate 1 random number , then assemble embed into innerHTML based on that random number . definition of these variables is very messy , hard to keep track of , and would be incredibly easy to fuck up and accidentally put everything out of order .
try to figure out if there is some way of essentially " sub-array " , or if need to hack back this code and do something weirder ... think will probably put all of actual code in replies section , please hold .
good news !
Mar. 31st, 2026 06:48 pmafter some food , some thought , and indeed some food for thought , was able to figure out javascript noodle question - very happy with result :)
come visit fae radio page ! well ... not much is there yet , only have bare minimum to test functionality . this is in alternative to kossai-radio tumblr sideblog , now that tumblr hit with some bullshit " sexually explicit " flags , but there is no list function and not sure there will be for maintenance sake .
however , script is baked directly into page , and each set of IDs is commented with exact name and source , so could view source and view janky list that way .
come visit fae radio page ! well ... not much is there yet , only have bare minimum to test functionality . this is in alternative to kossai-radio tumblr sideblog , now that tumblr hit with some bullshit " sexually explicit " flags , but there is no list function and not sure there will be for maintenance sake .
however , script is baked directly into page , and each set of IDs is commented with exact name and source , so could view source and view janky list that way .
