Skip to content

Script

Own files

Place these script and link tags in your web page:

index.html
html
<link rel="stylesheet" href="../path/to/speccer.min.css" />
<script src="../path/to/speccer.js"></script>

<script>
  // exposed by the UMD build when using data-manual
  window.speccer();
</script>

Or with a CDN

index.html
html
<link
  rel="stylesheet"
  href="https://unpkg.com/@phun-ky/speccer/dist/speccer.min.css"
/>
<script src="https://unpkg.com/@phun-ky/speccer/dist/speccer.js"></script>

<script>
  // exposed by the UMD build when using data-manual
  window.speccer();
</script>

Important

If any SVG options are used, remember to add the required svg element to the document.