Loading your card of the day...
{% schema %}
{
"name": "Tarot card of the day",
"target": "section",
"settings": []
}
{% endschema %}
```
```javascript
// assets/tarot-daily.js
document.addEventListener('DOMContentLoaded', async () => {
const el = document.getElementById('roxy-tarot-daily');
if (!el) return;
const customerId = el.dataset.customerId || 'guest';
const res = await fetch(`/apps/roxy/tarot/daily?customer=${customerId}`, {
headers: { Accept: 'application/json' },
});
if (!res.ok) {
el.innerHTML = 'Could not load today card.
';
return;
}
const data = await res.json();
el.innerHTML = `