blob: 375c67b34678b1280493a84bc13f5f9fed01e391 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/**
* Triggered when the showname checkboc is clicked
* @param {MouseEvent} event
*/
export function showname_click(_event: Event | null) {
localStorage.setItem(
"showname",
String((<HTMLInputElement>document.getElementById("showname")).checked),
);
localStorage.setItem(
"ic_chat_name",
(<HTMLInputElement>document.getElementById("ic_chat_name")).value,
);
const css_s = <HTMLAnchorElement>document.getElementById("nameplate_setting");
if ((<HTMLInputElement>document.getElementById("showname")).checked) {
css_s.href = "styles/shownames.css";
} else {
css_s.href = "styles/nameplates.css";
}
}
window.showname_click = showname_click;
|