Skip to content

Commit

Permalink
Call unsplash random picture endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
p0wen committed Sep 17, 2020
1 parent e293581 commit 2ec4e7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ function changeBackground() {
}
else if (bgimage == "random") {
// use random background from unsplash
setrandombg();
document.getElementById("myDiv").style.backgroundImage = "url('https://source.unsplash.com/random/1600x800')"
};
});
});
}
}

//get today's date for all kinds of function
let currDate = new Date();
Expand Down

0 comments on commit 2ec4e7f

Please sign in to comment.