JAYASWAROOP commited on
Commit
12fbf19
·
verified ·
1 Parent(s): 04fb2c7

Update background.js

Browse files
Files changed (1) hide show
  1. 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
+ });