Spaces:
Running
Running
Update background.js
Browse files- background.js +5 -0
background.js
CHANGED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
document.addEventListener('DOMContentLoaded', () => {
|
2 |
+
const bgImageDiv = document.querySelector('.bg-image');
|
3 |
+
const unsplashURL = 'https://source.unsplash.com/1600x900/?developer';
|
4 |
+
bgImageDiv.style.backgroundImage = `url(${unsplashURL})`;
|
5 |
+
});
|