@tadevel/decision2023
v0.0.34
Published
Just another odd year
Downloads
77
Readme
🗳️ Tadevel Decision 2023
Just include the script in your awesome website, and style it
<style>
decision2023-roll {
--primary-color: cornflowerblue;
}
</style>
<decision2023-roll></decision2023-roll>
<script async src="https://unpkg.com/@tadevel/decision2023@latest"></script>
Or maybe use a responsive and AMP-compatible iframe
<iframe data-tadevel-decision2023 frameborder="0" scrolling="no" src="https://unpkg.com/@tadevel/decision2023@latest/dist/roll.html" width="100%" height="400"></iframe>
<script>
(()=>{
let i = document.querySelector('iframe[data-tadevel-decision2023]:not([data-tadevel-init])');
i.setAttribute('data-tadevel-init', '');
window.addEventListener('message', e=>{
if (e.source == i.contentWindow && e.data.height) {
i.height = e.data.height;
}
});
})()
</script>