portfolio / background.js
JAYASWAROOP's picture
Update background.js
12fbf19 verified
raw
history blame contribute delete
255 Bytes
document.addEventListener('DOMContentLoaded', () => {
const bgImageDiv = document.querySelector('.bg-image');
const unsplashURL = 'https://source.unsplash.com/1600x900/?developer';
bgImageDiv.style.backgroundImage = `url(${unsplashURL})`;
});