@tadevel/decision2021
v0.0.45
Published
Just another odd year
Downloads
23
Readme
🗳️ Tadevel Decision 2021
Just include the script in your awesome website, and style it
<style>
decision2021-roll {
--primary-color: cornflowerblue;
}
</style>
<decision2021-roll></decision2021-roll>
<script async src="https://unpkg.com/@tadevel/decision2021@latest"></script>
Or maybe use a responsive and AMP-compatible iframe
<iframe data-tadevel-decision2021 frameborder="0" scrolling="no" src="https://unpkg.com/@tadevel/decision2021@latest/dist/roll.html" width="100%" height="400"></iframe>
<script>
(()=>{
let i = document.querySelector('iframe[data-tadevel-decision2021]: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>