6 lines
232 B
TypeScript
6 lines
232 B
TypeScript
const footer_buttons = document.getElementsByClassName("footer_buttons")[0].children as HTMLCollectionOf<HTMLInputElement>;
|
|
for (let button of footer_buttons) {
|
|
button.onclick = () => {
|
|
location.href = button.id;
|
|
}
|
|
} |