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

Function disable

assets/js/shellsort.js:142–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140
141// function to disable the button
142function disable()
143{
144 // To disable the button "Generate New Array"
145 document.getElementById("Button1").disabled = true;
146 document.getElementById("Button1").style.backgroundColor = "#d8b6ff";
147
148 // To disable the button "Shell Sort"
149 document.getElementById("Button2").disabled = true;
150 document.getElementById("Button2").style.backgroundColor = "#d8b6ff";
151}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected