4 Commits

Author SHA1 Message Date
gitea
022186964d [no ci] prepare new Version 2025-02-12 04:26:25 +00:00
gitea
4604be151b [no ci] release 1.0.5 2025-02-12 04:26:19 +00:00
e906c38630 Merge pull request 'redesigns page to fit inside 800x600' (#27) from redesign into main
All checks were successful
CI / deploy (push) Successful in 4m53s
Reviewed-on: #27
2025-02-12 05:21:31 +01:00
035445ac3f redesigns page to fit inside 800x600
All checks were successful
CI / deploy (push) Successful in 4m25s
CI / deploy (pull_request) Successful in 4m32s
2025-02-12 05:12:16 +01:00
2 changed files with 8 additions and 12 deletions

View File

@@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.arindy</groupId>
<artifactId>dice-tower</artifactId>
<version>1.0.5-SNAPSHOT</version>
<version>1.0.6-SNAPSHOT</version>
<properties>
<compiler-plugin.version>3.13.0</compiler-plugin.version>

View File

@@ -364,13 +364,13 @@
<p>Shows only my Results in this room</p>
</div>
<div hidden id="save-dice-hint">
This saves your current theme and theme color for current Name
<p>This saves your current theme and theme color for <a id="save-dice-hint-name"></a></p>
</div>
<div hidden id="command-hint">
Example Commands: "1d6", "2d8 1d100", "1d4 and 1d6", "2d20 & 1d2, "5d6+10"
<p>Example Commands: "1d6", "2d8 1d100", "1d4 and 1d6", "2d20 & 1d2, "5d6+10"</p>
</div>
<div hidden id="room-hint">
How is your character called?
<p>How is your character called?</p>
</div>
<div style="margin-top: 20px; flex-grow: 1" id="how-to">
@@ -435,10 +435,11 @@
document.getElementById('all-results').hidden = !document.getElementById('gm').checked;
document.getElementById('all-results-urls').style.display = document.getElementById('gm').checked ? 'fles' : 'none';
document.getElementById('nameH').innerHTML = '<strong style="font-size:x-large;">' + document.getElementById('name').value + '</strong>';
document.getElementById('save-dice-hint-name').innerHTML = '<strong>' + document.getElementById('name').value + '</strong>';
document.getElementById('roomLabel').hidden = true;
document.getElementById('nameLabel').hidden = true;
document.getElementById('nameH').hidden = false;
document.getElementById('room-hint').innerHTML = 'Room: <strong style="font-size:medium;">' + document.getElementById('room').value + '</strong>';
document.getElementById('room-hint').innerHTML = '<p>Room: <strong style="font-size:medium;">' + document.getElementById('room').value + '</strong></p>';
document.getElementById('overlayLabel').innerHTML = 'Dice-Overlay for <strong>' + document.getElementById('name').value + '</strong>';
document.title = document.getElementById('name').value + ' - Dice-Tower';
@@ -544,7 +545,7 @@
popover.forEach((e) => {
const target = document.querySelector("#" + e.getAttribute("popovertarget"));
e.addEventListener("mouseover", () => {
showSnackbar(target.innerHTML, true);
showSnackbar(target.innerHTML);
});
e.addEventListener("mouseout", () => {
@@ -577,17 +578,12 @@
showSnackbar("<i class='fa-regular fa-copy'></i> Link copied to clipboard: <br/>" + copyText.value);
}
function showSnackbar(message, keepOpen = false) {
function showSnackbar(message) {
let snackbar = document.getElementById("snackbar");
let snackbarContainer = document.getElementById("snackbar-container");
snackbar.innerHTML = message;
snackbar.className = "show";
snackbarContainer.className = "show";
if (!keepOpen) {
setTimeout(function () {
hideSnackbar();
}, 5000);
}
}
function hideSnackbar() {