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

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

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=')"
1 Like

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

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

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

1 Like