Update about.js

This commit is contained in:
Joshua Killen 2020-04-17 12:51:08 +01:00
parent 06746bc4a1
commit 4a11447e13
1 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
function hideImg() {
document.getElementById("headImg").classList.toggle("show");
var targetImg = document.getElementById("headImg")
if (targetImg.style.backgroundImage == "") {
targetImg.style.backgroundImage= "url('internet.png')"
}else if (targetImg.style.backgroundImage == "url('internet.png')") {
targetImg.style.backgroundImage= ""
}
}