Skip to content

aperta-principium/embed.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

embed.js

Embed just about anything... in the browser

Supported embeds

  • YouTube Videos
  • Vimeo videos

Supported file extensions

  • .jpg
  • .jpeg
  • .png
  • .webp
  • .mp3
  • .wav
  • .ogg
  • .txt
  • .mp4
  • .mkv
  • .doc
  • .docx
  • .xls
  • .xlsx
  • .ppt
  • .pptx
  • .pdf
  • .pages
  • .eps
  • .ps
  • .ttf
  • .xps

Demo

Setup

Then just create a div

<div id="embed"> </div>

and set the link

<script type="module"> 
import { embed } from "https://cdn.jsdelivr.net/gh/aperta-principium/embed.js/embed.min.js";

embed("https://github.com/filiptronicek.png");
</script>

And you're done!

To-dos

  • SoundCloud embed
  • PasteBin Embed
  • Streamable embed

About

Embed just about anything... in the browser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published