I'm a beginner coder so I hope that what I explain below makes some sense (forgive me if it doesn't), but I would like to have the background change based on the user's location.
For example, if the user is located in London, England and the current weather there is that it is snowing, I would like for the background to be animated with snow drifting downward. Likewise, if there is someone living in Sydney, Australia where it might be currently storming, I would like for the background to show thunder and lightning.
The problem that I have is the pre-defined name spaces (??). Based on the Wix API, the terms in the template code that I would want to use are not predefined and they error out.
My other problem is that even if I get this set up in the back-end module, how would I really call it in the front-end code? Using ".background.src =" will only apply to strings so I doubt this is the way. I am guessing my best bet would be to use Wix-fetch but I'm not sure.
Is what I would like to achieve even possible? If yes, do I have the right approach and what am I missing?
Thank you in advance!