       const dialog = document.getElementById('demo-dialog');
            const showDialog = document.getElementById('show-demo-dialog');

            showDialog.addEventListener('click', () => {
                dialog.showModal();
            });
        </script>
    </body>
</html>
