I am working on a site where, basically, I want users to be able to upload their own background images. I have most of the work done but the uploads are referenced using tags, such as {tag_image1_value}, {tag_image2_value}, etc which returns /exampleImage1.jpg, /exampleImage2.jpg, etc.
The problem is I can only use those in HTML pages and the background variables are stored in a .js file. Is it easily doable to somehow declare those variables in the webpage instead of the .js file or can I move the entire script to the HTML page?
I’ve played around trying both but never got it to work.
I read how to change the backgrounds globally and when I didn’t see what I needed I started trying to fix it myself. I guess I should have kept reading.