Compare commits
4 Commits
c385c4f9d8
...
1.0.5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
022186964d | ||
|
|
4604be151b | ||
| e906c38630 | |||
| 035445ac3f |
2
pom.xml
2
pom.xml
@@ -4,7 +4,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>de.arindy</groupId>
|
<groupId>de.arindy</groupId>
|
||||||
<artifactId>dice-tower</artifactId>
|
<artifactId>dice-tower</artifactId>
|
||||||
<version>1.0.5-SNAPSHOT</version>
|
<version>1.0.6-SNAPSHOT</version>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<compiler-plugin.version>3.13.0</compiler-plugin.version>
|
<compiler-plugin.version>3.13.0</compiler-plugin.version>
|
||||||
|
|||||||
@@ -304,7 +304,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="results" hidden class="w3-panel w3-theme-l6 w3-card w3-display-container"
|
<div id="results" hidden class="w3-panel w3-theme-l6 w3-card w3-display-container"
|
||||||
style="padding: 25px; flex-grow: 1; margin-bottom: auto">
|
style="padding: 25px; flex-grow: 1; margin-bottom: auto">
|
||||||
<iframe id="resultFrame" title="results" style="width: 100%; height: 85%; overflow: hidden; border: 0"
|
<iframe id="resultFrame" title="results" style="width: 100%; height: 100%; overflow: hidden; border: 0"
|
||||||
onload="this.height=this.contentWindow.document.body.scrollHeight;"></iframe>
|
onload="this.height=this.contentWindow.document.body.scrollHeight;"></iframe>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -364,13 +364,13 @@
|
|||||||
<p>Shows only my Results in this room</p>
|
<p>Shows only my Results in this room</p>
|
||||||
</div>
|
</div>
|
||||||
<div hidden id="save-dice-hint">
|
<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>
|
||||||
<div hidden id="command-hint">
|
<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>
|
||||||
<div hidden id="room-hint">
|
<div hidden id="room-hint">
|
||||||
How is your character called?
|
<p>How is your character called?</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="margin-top: 20px; flex-grow: 1" id="how-to">
|
<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').hidden = !document.getElementById('gm').checked;
|
||||||
document.getElementById('all-results-urls').style.display = document.getElementById('gm').checked ? 'fles' : 'none';
|
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('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('roomLabel').hidden = true;
|
||||||
document.getElementById('nameLabel').hidden = true;
|
document.getElementById('nameLabel').hidden = true;
|
||||||
document.getElementById('nameH').hidden = false;
|
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.getElementById('overlayLabel').innerHTML = 'Dice-Overlay for <strong>' + document.getElementById('name').value + '</strong>';
|
||||||
document.title = document.getElementById('name').value + ' - Dice-Tower';
|
document.title = document.getElementById('name').value + ' - Dice-Tower';
|
||||||
|
|
||||||
@@ -544,7 +545,7 @@
|
|||||||
popover.forEach((e) => {
|
popover.forEach((e) => {
|
||||||
const target = document.querySelector("#" + e.getAttribute("popovertarget"));
|
const target = document.querySelector("#" + e.getAttribute("popovertarget"));
|
||||||
e.addEventListener("mouseover", () => {
|
e.addEventListener("mouseover", () => {
|
||||||
showSnackbar(target.innerHTML, true);
|
showSnackbar(target.innerHTML);
|
||||||
});
|
});
|
||||||
|
|
||||||
e.addEventListener("mouseout", () => {
|
e.addEventListener("mouseout", () => {
|
||||||
@@ -577,17 +578,12 @@
|
|||||||
showSnackbar("<i class='fa-regular fa-copy'></i> Link copied to clipboard: <br/>" + copyText.value);
|
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 snackbar = document.getElementById("snackbar");
|
||||||
let snackbarContainer = document.getElementById("snackbar-container");
|
let snackbarContainer = document.getElementById("snackbar-container");
|
||||||
snackbar.innerHTML = message;
|
snackbar.innerHTML = message;
|
||||||
snackbar.className = "show";
|
snackbar.className = "show";
|
||||||
snackbarContainer.className = "show";
|
snackbarContainer.className = "show";
|
||||||
if (!keepOpen) {
|
|
||||||
setTimeout(function () {
|
|
||||||
hideSnackbar();
|
|
||||||
}, 5000);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function hideSnackbar() {
|
function hideSnackbar() {
|
||||||
|
|||||||
Reference in New Issue
Block a user