MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / toggle

Function toggle

assets/js/Password_Strength_Checker.js:14–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12});
13
14function toggle() {
15 if (state) {
16 document.getElementById("password").setAttribute("type", "password");
17 state = false;
18 } else {
19 document.getElementById("password").setAttribute("type", "text");
20 state = true;
21 }
22}
23function myFunction(show) {
24 show.classList.toggle("fa-eye-slash");
25}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected