Compare commits
1 Commits
c2b09a9d55
...
2f4ab95d7a
Author | SHA1 | Date | |
---|---|---|---|
![]() |
2f4ab95d7a |
@ -203,7 +203,7 @@
|
|||||||
<div style="display: flex; flex-direction: row; justify-content: space-between; align-items: baseline; margin: 20px 25px;">
|
<div style="display: flex; flex-direction: row; justify-content: space-between; align-items: baseline; margin: 20px 25px;">
|
||||||
<label for="command">Command </label>
|
<label for="command">Command </label>
|
||||||
<input type="text" id="command" style="flex-grow: 1" onkeyup="roll(event)"/>
|
<input type="text" id="command" style="flex-grow: 1" onkeyup="roll(event)"/>
|
||||||
<button hidden id="roll" onclick="roll()">Roll 🎲</button>
|
<button hidden id="roll" onclick="roll()">Roll 🞂</button>
|
||||||
<button popovertarget="command-hint" data-trigger="hover" class="overlayButton">🛈</button>
|
<button popovertarget="command-hint" data-trigger="hover" class="overlayButton">🛈</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
resultText += '<br/>  D' + result.sides + ': [' + values.map(value => value === 1 ? '<strong style="color: red">' + value + '</strong>' : value === result.sides ? '<strong style="color: green">' + value + '</strong>' : value).join(' + ') + (result.modifier > 0 ? ' <a style="text-decoration: underline">+' + result.modifier + '</a>' : result.modifier < 0 ? ' <a style="text-decoration: underline">' + result.modifier + '</a>' : '') + '] = <strong style="font-size: x-large">' + result.value + '</strong> '
|
resultText += '<br/>  D' + result.sides + ': [' + values.map(value => value === 1 ? '<strong style="color: red">' + value + '</strong>' : value === result.sides ? '<strong style="color: green">' + value + '</strong>' : value).join(' + ') + (result.modifier > 0 ? ' <a style="text-decoration: underline">+' + result.modifier + '</a>' : result.modifier < 0 ? ' <a style="text-decoration: underline">' + result.modifier + '</a>' : '') + '] = <strong style="font-size: x-large">' + result.value + '</strong> '
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
node.innerHTML = '<strong style="text-shadow: 2px 2px 10px ' + data.themeColor + ';">' + data.name + ':</strong> 🎲 ' + resultText
|
node.innerHTML = '<strong style="text-shadow: 2px 2px 10px ' + data.themeColor + ';">' + data.name + ':</strong> 🎲 ' + resultText
|
||||||
name.appendChild(node)
|
name.appendChild(node)
|
||||||
document.getElementById('results').insertBefore(name, document.getElementById('results').firstChild);
|
document.getElementById('results').insertBefore(name, document.getElementById('results').firstChild);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user