“picsum.photos/200/300.jpg” is the URL that shows the image randomly.
I set up the css like this
.card {
background-image: url("picsum.photos/200/300.jpg");
}
And in the Front Template, I added this
<script>
var img = document.createElement('img');
img.src = 'picsum.photos/200/300?random=' + Math.random();
document.querySelector('.card').style.backgroundImage = 'url(' + img.src + ')';
</script>
I wanted a background image that changed randomly.
It works, but…

The top toolbar is not working as I intended.
Is there any way to apply a background image except for the top toolbar?

