summaryrefslogtreecommitdiff
path: root/2026/examples/example_teleia/dist/snippets
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2026-06-18 20:50:57 -0400
committerLLLL Colonq <llll@colonq>2026-06-18 20:50:57 -0400
commit3e71883391a672916f2a1a759da81c1add104cc7 (patch)
tree1169ed7124e57e5ddc30c19889d92a354d60a04d /2026/examples/example_teleia/dist/snippets
parentbc3df06fcf93e804a9e7afe49c1a277b67429e54 (diff)
Add teleia example dist
Diffstat (limited to '2026/examples/example_teleia/dist/snippets')
-rw-r--r--2026/examples/example_teleia/dist/snippets/teleia-727bf4351691f1c8/src/helpers.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/2026/examples/example_teleia/dist/snippets/teleia-727bf4351691f1c8/src/helpers.js b/2026/examples/example_teleia/dist/snippets/teleia-727bf4351691f1c8/src/helpers.js
new file mode 100644
index 0000000..fb2a1a0
--- /dev/null
+++ b/2026/examples/example_teleia/dist/snippets/teleia-727bf4351691f1c8/src/helpers.js
@@ -0,0 +1,21 @@
+let resized = false;
+
+export async function js_track_resized_setup() {
+ window.addEventListener("resize", () => {
+ resized = true;
+ });
+}
+
+export function js_poll_resized() {
+ let ret = resized;
+ resized = false;
+ return ret;
+}
+
+export function js_bundt_api_server() {
+ return globalThis.apiServer || "http://localhost:8000/api";
+}
+
+export function js_bundt_secure_api_server() {
+ return globalThis.secureApiServer || "http://localhost:8000/api";
+}