diff --git a/.drone.yml b/.drone.yml index 9130249..4dd7584 100644 --- a/.drone.yml +++ b/.drone.yml @@ -47,6 +47,10 @@ steps: ssh_key: from_secret: gitea-ssh-key +trigger: + ref: + - refs/tags/v* + --- kind: pipeline name: release diff --git a/web/index.css b/web/index.css index bdc80aa..1c20522 100644 --- a/web/index.css +++ b/web/index.css @@ -28,12 +28,21 @@ animation: blinker 2s ease infinite; } +html { + height: 100%; +} + +body { + height: 100%; +} + main { padding-top: 0 !important; + height: 100%; } .timer-container-div { - height: 100vh; + height: 100%; display: flex; align-items: center; justify-content: center; @@ -50,4 +59,21 @@ main { top: 0; left: 0; cursor: pointer; +} + +.hide-before-init { + display: none; +} + +.remote-connection-card { + position: absolute; + bottom: 10px; + left: 0; + background-color: var(--background-color); + width: 100%; +} + +details { + border-bottom: 0; + padding-bottom: 0; } \ No newline at end of file diff --git a/web/index.html b/web/index.html index 95a841c..4ec1f8a 100644 --- a/web/index.html +++ b/web/index.html @@ -30,47 +30,72 @@ - -
+
+

Initializing...

+
+

OK! .. READY! ... GO!

-

+

(connected)

-

+

-
+
+
- Remote connection - +
+

If you want to automatically transfer the time to a computer, follow these steps:

+
-

To send the times to a computer, please enter a password here:

-
- - - Make sure, this is exactly the same on your computer! - -
+
    +
  • Enter a password and press tap connect
  • + +
  • +
    + + + Make sure, this is exactly the same on your computer! + +
    +
  • +
  • Download the receiver tool from here to your computer +
  • +
  • Start the receiver tool on your computer
  • +
  • Enter the same password on the receiver tool and click connect
  • +
  • Done!
  • +
-

Connected

- +
    +
  • Download the receiver tool from here to your computer +
  • +
  • Start the receiver tool on your computer
  • +
  • Enter the password '' on the receiver tool and click connect
  • +
  • Done!
  • +
  • +

    If you no longer want to send the time, tap Disconnect

    + +
  • +
+
+ Remote connection
+

Connecting...

diff --git a/web/js/index.js b/web/js/index.js index 06e5afa..18b1e45 100644 --- a/web/js/index.js +++ b/web/js/index.js @@ -59,4 +59,14 @@ function Timer() { }, 10); }, }; -} \ No newline at end of file +} + +const event = new Event('wasm-loaded'); +wasm_bindgen('lib/crypto_helper_bg.wasm').then(() => { + document.dispatchEvent(event); +}); + +document.addEventListener("alpine:init", () => { + document.getElementsByClassName("hide-after-init").item(0).outerHTML = "" + document.getElementsByClassName("hide-before-init").item(0).classList.remove("hide-before-init") +}); \ No newline at end of file