aboutsummaryrefslogtreecommitdiff
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
parent312cddf2c2b6fd715e3133095c4562c78807b236 (diff)
downloadFlightCore-182160de1066a303ae337a50aca6c48f84c5c61b.tar.gz
FlightCore-182160de1066a303ae337a50aca6c48f84c5c61b.zip
Remove elements from template application
-rw-r--r--dist/index.html7
-rw-r--r--src-ui/src/main.ts34
2 files changed, 21 insertions, 20 deletions
diff --git a/dist/index.html b/dist/index.html
index a6ae6d83..909742d1 100644
--- a/dist/index.html
+++ b/dist/index.html
@@ -16,9 +16,10 @@
-->
<button id="omni-button", class="locked">Loading...</button>
<install-location-holder>EMPTY</install-location-holder>
- <div class="hello">Click for Hello</div>
- <counter-button>ADD</counter-button>
- <counter-result>.</counter-result>
+ <!-- <div class="hello">Click for Hello</div> -->
+ <!-- <counter-button>ADD</counter-button> -->
+ <!-- <counter-result>.</counter-result> -->
+
<panic-button>Panic Button</panic-button>
<backend-ping class="server"></backend-ping>
</body>
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 () {