From 8f29cc38ab4174c5e1094406c604aef4467205ab Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Mon, 9 May 2022 17:22:32 +0000 Subject: [PATCH] prove we can pass data from python to JS Signed-off-by: Xe Iaso --- main_view.html | 66 ++++++-------------------------------------------- 1 file changed, 8 insertions(+), 58 deletions(-) diff --git a/main_view.html b/main_view.html index f418e70..ba16cd5 100644 --- a/main_view.html +++ b/main_view.html @@ -8,67 +8,17 @@ function getUID() { return call_plugin_method("whoami", {}); } + + function onReady() { + let heading = document.getElementById("heading"); + let id = getUID(); + + heading.innerText = `Hello ${id}`; + } -

Hello World

+

Hello World

-
Buttons
-
-
Buttons
-
-
-
Button field
-
-
-
-
-
-
Another button field
-
-
-
-
-
-
-
- - -
Disabled button field (with icon) -
-
-
-
-
-
-
-
- -
Describing button field -
-
-
-
Here's some info to help you go about your day, clicking - buttons...
-
-
-