Skip to content

Embedding

Andrew Wilkey edited this page Apr 9, 2019 · 2 revisions

By default, CViTjs is designed to be used as a standalone page, but it is fairly easy to embed.

Include in the Page Head:

<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script src="build/cvit.min.js"></script>

Include in the Page Body

<div class="container" id="cvit-app" />

The CViTjs script automatically mounts its elements to that container, and most of the CSS is bundled as part of the build process, requiring very little extra intervention.

Clone this wiki locally