Update about.js
This commit is contained in:
parent
06746bc4a1
commit
4a11447e13
|
|
@ -1,3 +1,9 @@
|
||||||
function hideImg() {
|
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= ""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue