<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/crontab-editor/dist/style.css">
</head>
<body>
...
<input id="text-field" type="text" value="* * * * *">
<div id="crontab-popover-wrapper"></div>
...
<script type="module">
import CrontabEditor from 'https://cdn.jsdelivr.net/npm/crontab-editor/dist/index.js';
const editor = new CrontabEditor(
document.getElementById('text-field'),
document.getElementById('crontab-popover-wrapper'),
);
</script>
...
</body>- Clean up CSS and document classes for easier external styling.
- Update
rollupconfig to eliminate need for imports and the client import can use jsdelivr's default file directly