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

Function disable

assets/js/insertionsort.js:145–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected