Local Weather, don't know why the background images doesn't show up [CLOSED]

Local Weather, don't know why the background images doesn't show up [CLOSED]
0

#1

Hey, I am on the last stages of my local weather but I don’t know why the background images doesn’t show up?


#2

You should wrap the image URLs in url(), like

querySelector("body").style["background-image"] = "url('https://images.unsplash.com/photo-1452561802015-953ab78c4526?dpr=1&auto=compress,format&fit=crop&w=1477&h=&q=80&cs=tinysrgb&crop=')"

#3

Hey. Haven’t you already got two answers for this issue?

You’re missing the “url()” wrapping.


#4

OMG :tired_face:, I always forgot that. I promise I won’t forget it anymore…
Thank you very much @kevcomedia and @noyb