beta (#4)
Co-authored-by: mco-system <michael.costa@mcos.nc> Reviewed-on: #4
This commit was merged in pull request #4.
This commit is contained in:
14
src/thsf/static/scripts/thsf23.js
Normal file
14
src/thsf/static/scripts/thsf23.js
Normal file
@@ -0,0 +1,14 @@
|
||||
function switch_visibility(item){
|
||||
console.log(item.style.visibility);
|
||||
console.log(item.style.display);
|
||||
if (item.style.visibility == "hidden" || item.style.display == "none") {
|
||||
item.style.visibility = "visible";
|
||||
item.style.display = "block";
|
||||
} else if (item.style.visibility == "" && item.style.display == "") {
|
||||
item.style.visibility = "visible";
|
||||
item.style.display = "block";
|
||||
} else {
|
||||
item.style.visibility = "hidden";
|
||||
item.style.display = "none";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user