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

Function disable

assets/js/heapsort.js:152–161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150
151// function to disable the button
152function disable()
153{
154 // To disable the button "Generate New Array"
155 document.getElementById("Button1").disabled = true;
156 document.getElementById("Button1").style.backgroundColor = "#d8b6ff";
157
158 // To disable the button "Heap Sort"
159 document.getElementById("Button2").disabled = true;
160 document.getElementById("Button2").style.backgroundColor = "#d8b6ff";
161}
162// Calling generate_idx function
163generate_idx();
164

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected