mirror of
https://git.roussel.pro/telecom-paris/pact.git
synced 2026-02-09 02:20:17 +01:00
11 lines
279 B
JavaScript
11 lines
279 B
JavaScript
class AudioPage {
|
|
constructor() {
|
|
this.isEnabled = false;
|
|
this.DOMElement = document.getElementById("audio");
|
|
|
|
}
|
|
set enabled(isEnabled) {
|
|
this.isEnabled = isEnabled;
|
|
this.DOMElement.style.display = isEnabled ? "block" : "none";
|
|
}
|
|
} |