Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature suggestion: Javascript DOM & NPM installable #8

Open
maietta opened this issue Mar 7, 2022 · 0 comments
Open

Feature suggestion: Javascript DOM & NPM installable #8

maietta opened this issue Mar 7, 2022 · 0 comments

Comments

@maietta
Copy link

maietta commented Mar 7, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant