Fixed universe loading and removing unsafe innerHTML usage

This commit is contained in:
EpicKiwi
2023-10-12 19:50:20 +02:00
parent 4fdfdbe89f
commit bd1533a17e
2 changed files with 35 additions and 13 deletions

View File

@ -444,6 +444,14 @@
</div>
</div>
<script type="module" src="/src/main.ts"></script>
<template id="ui-known-universe-item-template">
<!-- A known universe button in "opening" interface -->
<li class="hover:fill-black hover:bg-white py-2 hover:text-black flex justify-between px-4">
<button class="universe-name load-universe" title="Load this universe">Universe Name</button>
<button class="delete-universe" title="Delete this universe">🗑</button>
</li>
</template>
</body>
<p id="timeviewer" class="rounded-lg px-2 py-2 font-bold bg-white cursor-textpointer-events-none select-none text-black text-sm absolute bottom-2 right-2"></p>
</html>