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

Function disable

assets/js/quicksort.js:145–154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143 window.location.reload();
144 }
145 function disable()
146{
147 // To disable the button "Generate New Array"
148 document.getElementById("Button1").disabled = true;
149 document.getElementById("Button1").style.backgroundColor = "#d8b6ff";
150
151 // To disable the button "Quick Sort"
152 document.getElementById("Button2").disabled = true;
153 document.getElementById("Button2").style.backgroundColor = "#d8b6ff";
154}
155
156// Calling generate_idx function
157generate_idx();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected