Skip to content

Instantly share code, notes, and snippets.

@notionparallax
notionparallax / basic_techtree.js
Last active June 6, 2018 01:56 — forked from magjac/index.html
d3-graphviz Basic Example
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://unpkg.com/viz.js@1.8.0/viz.js" type="javascript/worker"></script>
<script src="https://unpkg.com/d3-graphviz@1.4.0/build/d3-graphviz.min.js"></script>
<div id="graph" style="text-align: center;"></div>
<script>

This is a plugin meant for Jekyll.

It's a fork of joelverhagen's youtube plugin. This version is for bootstrap responsive embed.

Width and height don't really mean anything as they are overridden by the bootstrap aspect ratio class name.

Example use:

Easily embed a YouTube video. Just drop this file in your _plugins directory.