aboutsummaryrefslogtreecommitdiff
path: root/src-ui/src/main.ts
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-01 20:12:28 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-01 20:12:28 +0200
commit182160de1066a303ae337a50aca6c48f84c5c61b (patch)
tree50dcb4e9f0f4ed1d5674a9c0284fe04e409c0864 /src-ui/src/main.ts
parent312cddf2c2b6fd715e3133095c4562c78807b236 (diff)
downloadFlightCore-182160de1066a303ae337a50aca6c48f84c5c61b.tar.gz
FlightCore-182160de1066a303ae337a50aca6c48f84c5c61b.zip
Remove elements from template application
Diffstat (limited to 'src-ui/src/main.ts')
-rw-r--r--src-ui/src/main.ts34
1 files changed, 17 insertions, 17 deletions
diff --git a/src-ui/src/main.ts b/src-ui/src/main.ts
index 6eaee030..c4a69554 100644
--- a/src-ui/src/main.ts
+++ b/src-ui/src/main.ts
@@ -14,9 +14,9 @@ var globalState = {
document.addEventListener("DOMContentLoaded", async function () {
// get the elements
- const helloEl = $("div.hello")! as HTMLElement;
- let counterButtonEl = $("counter-button") as HTMLElement;
- let counterResultEl = $("counter-result") as HTMLElement;
+ // const helloEl = $("div.hello")! as HTMLElement;
+ // let counterButtonEl = $("counter-button") as HTMLElement;
+ // let counterResultEl = $("counter-result") as HTMLElement;
let pingEl = $("backend-ping")! as HTMLElement;
let panicButtonEl = $("panic-button") as HTMLElement;
let installLocationHolderEl = $("install-location-holder") as HTMLElement;
@@ -84,20 +84,20 @@ document.addEventListener("DOMContentLoaded", async function () {
alert("TODO");
});
- // counter button click
- counterButtonEl.addEventListener("pointerup", async function () {
- const result = await invoke("add_count", { num: 1 }) as string;
- counterResultEl.textContent = result;
- });
-
- // hello click
- helloEl.addEventListener("pointerup", async function () {
- const result = await invoke("hello_world") as string;
- helloEl.textContent = result;
- setTimeout(function () {
- helloEl.textContent = "Click again";
- }, 1000);
- })
+ // // counter button click
+ // counterButtonEl.addEventListener("pointerup", async function () {
+ // const result = await invoke("add_count", { num: 1 }) as string;
+ // counterResultEl.textContent = result;
+ // });
+
+ // // hello click
+ // helloEl.addEventListener("pointerup", async function () {
+ // const result = await invoke("hello_world") as string;
+ // helloEl.textContent = result;
+ // setTimeout(function () {
+ // helloEl.textContent = "Click again";
+ // }, 1000);
+ // })
// panic button click
panicButtonEl.addEventListener("pointerup", async function () {