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 .