blob: 3d19c9c075e560973bd46541047cae7a2962df50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/**
* Highlights and selects an effect for in-character chat.
* If the same effect button is selected, then the effect is canceled.
* @param {string} effect the new effect to be selected
*/
export function toggleEffect(button) {
if (button.classList.contains('dark')) {
button.className = 'client_button';
} else {
button.className = 'client_button dark';
}
}
window.toggleEffect = toggleEffect;
|