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