Skip to content

Commit

Permalink
add function toggle_all()
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Dec 28, 2021
1 parent 9d12ae5 commit 3ce9ee1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion FAIme/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ <h1> FAI.me. Build your own customized
overridden without any further confirmation</b>.</p>

<p>
<a href="#" onclick="toggle_visibility('adv');toggle_visibility('adv2');toggle_visibility('adv3');" >Toggle</a> between basic/advanced settings
<a href="#" onclick="toggle_all()" >Toggle</a> between basic/advanced settings
</p>
<form action="/cgi/faime.cgi" method="post" enctype="multipart/form-data">

Expand Down Expand Up @@ -210,6 +210,12 @@ <h1> FAI.me. Build your own customized
else
e.style.display = 'none';
}

function toggle_all() {
toggle_visibility('adv');
toggle_visibility('adv2');
toggle_visibility('adv3');
}
//-->
</script>
</body>
Expand Down

0 comments on commit 3ce9ee1

Please sign in to comment.