Skip to content

gwohlgemuth/embeds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

embeds

GitHub repo serving JS widgets as embeddable web components via jsDelivr CDN.

Embed via Script Tag

<script src="https://cdn.jsdelivr.net/gh/gwohlgemuth/embeds@v1.0.0/dist/<widget>.js"></script>
<fourier-widget></fourier-widget>

Embed via iFrame

    <iframe
      src="https://gwohlgemuth.github.io/embeds/docs/<widget>.html?v=1.0.0"
      width="100%"
      height="600"
      frameborder="0"
    ></iframe>

Available Widgets

Widget Script iFrame
fourier-widget dist/fourier-widget.js doc/fourier-widget.html

Use a version tag to bust jsDelivr cache:

git tag v1.0.0
git push --tags

Deploy

git add dist/ doc/
git commit -m "build: <widget> v1.0.0"
git tag v1.0.0
git push && git push --tags

About

GitHub repo serving JS/Svelte widgets via jsDelivr CDN

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors