2025-04-09 12:44:08 +00:00
|
|
|
import { executeCommand } from './broker.js';
|
2025-04-04 09:48:30 +00:00
|
|
|
|
|
|
|
function handleClick(): void {
|
|
|
|
console.log("Der Button wurde geklickt!");
|
|
|
|
alert("Hallo von TypeScript!");
|
|
|
|
|
|
|
|
executeCommand();
|
|
|
|
}
|
|
|
|
|
|
|
|
document.addEventListener("DOMContentLoaded", () => {
|
|
|
|
const button = document.getElementById("myButton");
|
|
|
|
button?.addEventListener("click", handleClick);
|
|
|
|
});
|