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

Function disable

assets/js/bubblevisualiser.js:112–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110
111// function to disable the button
112function disable()
113{
114 // To disable the button "Generate New Array"
115 document.getElementById("Button1").disabled = true;
116 document.getElementById("Button1").style.backgroundColor = "#d8b6ff";
117
118 // To disable the button "Bubble Sort"
119 document.getElementById("Button2").disabled = true;
120 document.getElementById("Button2").style.backgroundColor = "#d8b6ff";
121}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected