Build the complete Assignment 5 manual on trusted branch pushes
Assignment 5 manual PDF / manual (push) Successful in 47s

This commit is contained in:
Codex (authorized Assignment 5 implementation)
2026-10-07 01:27:17 +00:00
parent fa9a32f8a9
commit c74087a93b
49 changed files with 6160 additions and 0 deletions
@@ -0,0 +1,20 @@
class ColorButtonController {
constructor(buttonId, color) {
this.button = document.getElementById(buttonId);
this.color = color;
}
changeBackground() {
document.body.style.backgroundColor = this.color;
}
bind() {
this.button.addEventListener("click", () => this.changeBackground());
}
}
const blueButton = new ColorButtonController("blueBtn", "blue");
const redButton = new ColorButtonController("redBtn", "red");
blueButton.bind();
redButton.bind();