work-around take-two

This commit is contained in:
Greg Gauthier 2024-06-28 19:48:06 +01:00
parent ba6269dde0
commit ab61ceadfe

View File

@ -18,16 +18,18 @@
<div id="toolPanel"></div>
<script>
document.getElementById("dieroller").addEventListener("click", function() {
loadContent("rolldice.html?t="+new Date().getTime());
});
document.addEventListener('DOMContentLoaded', function () {
document.getElementById("dieroller").addEventListener("click", function () {
loadContent("rolldice.html?t=" + new Date().getTime());
});
document.getElementById("chargen").addEventListener("click", function() {
loadContent("chargen.html?t="+new Date().getTime());
});
document.getElementById("chargen").addEventListener("click", function () {
loadContent("chargen.html?t=" + new Date().getTime());
});
document.getElementById("encounter").addEventListener("click", function() {
loadContent("encounter.html?t="+new Date().getTime());
document.getElementById("encounter").addEventListener("click", function () {
loadContent("encounter.html?t=" + new Date().getTime());
});
});
function loadContent(pageUrl) {