From 821e939b3dd6501a5cf1cc7a9fd5966fcee37a0a Mon Sep 17 00:00:00 2001 From: Arindy Date: Mon, 10 Feb 2025 16:38:29 +0100 Subject: [PATCH 1/3] adds a dice preview --- src/main/resources/templates/pub/index.html | 80 +++++++++++++++------ 1 file changed, 59 insertions(+), 21 deletions(-) diff --git a/src/main/resources/templates/pub/index.html b/src/main/resources/templates/pub/index.html index 9fef7d7..b8aa961 100644 --- a/src/main/resources/templates/pub/index.html +++ b/src/main/resources/templates/pub/index.html @@ -107,6 +107,21 @@ color:#fff !important; background-color:#333333dd !important } + + #dice-box { + position: relative; + box-sizing: border-box; + width: 100%; + height: 100%; + background: transparent; + background-size: cover; + } + + #dice-box canvas { + width: 100%; + height: 100%; + margin: 20px + } @@ -122,27 +137,15 @@
-
-
-

Only open Overlay once, unless you want multiple results

-

Query Params you can Change:

-
    -
  • scale changes the size of the dice (any value over 1; remove param or set -1 to keep the dice)
  • -
  • clearAfter time until dice are cleared (in seconds)
  • -
-
+ + +
-
-
-

Shows all Results in this room

-
+
-
-
-

Shows only my Results in this room

-
+
@@ -161,10 +164,11 @@

- -
- This saves your current theme and theme color for current Name -
+
+ + + +

Example Commands: "1d6", "2d8 1d100", "1d4 and 1d6", "2d20 & 1d2, "5d6+10"

@@ -179,6 +183,23 @@ +
+

Only open Overlay once, unless you want multiple results

+

Query Params you can Change:

+ +
+
+

Shows all Results in this room

+
+
+

Shows only my Results in this room

+
+
+ This saves your current theme and theme color for current Name +
+