StandWithUkraine icon indicating copy to clipboard operation
StandWithUkraine copied to clipboard

Feature suggestion: Javascript DOM & NPM installable

Open maietta opened this issue 2 years ago • 0 comments

This could be made into a nice HTML/JS/CSS widget and made injectable into DOM via native Javascript.

Being able to install via NPM would be sweet, like so:

npm i standwithukraine

For injecting the SVG into the DOM, something akin to this could work:

document.getElementById('container').insertAdjacentHTML('beforeend', '<object data="banner2.svg" height="auto" width="100%" />');

Just an idea:

I am not well versed in setting up an NPM package.

maietta avatar Mar 07 '22 04:03 maietta