2022-03-04 03:34:45 +00:00
|
|
|
<script src="https://cdn.jsdelivr.net/npm/d3@6.7.0/dist/d3.min.js" integrity="sha256-+7jaYCp29O1JusNWHaYtgUn6EhuP0VaFuswhNV06MyI=" crossorigin="anonymous"></script>
|
2021-07-18 17:02:53 +00:00
|
|
|
<h3>Interactive Graph</h3>
|
2021-07-18 13:35:42 +00:00
|
|
|
<div id="graph-container"></div>
|
|
|
|
<style>
|
|
|
|
:root {
|
2021-07-18 16:06:36 +00:00
|
|
|
--g-node: var(--secondary);
|
|
|
|
--g-node-active: var(--primary);
|
|
|
|
--g-node-inactive: var(--visited);
|
|
|
|
--g-link: var(--outlinegray);
|
|
|
|
--g-link-active: #5a7282;
|
2021-07-18 13:35:42 +00:00
|
|
|
}
|
|
|
|
</style>
|
2022-03-04 02:07:51 +00:00
|
|
|
{{ $js := resources.Get "js/graph.js" | resources.Fingerprint "md5" }}
|
|
|
|
<script src="{{ $js.Permalink }}"></script>
|
2021-07-18 13:35:42 +00:00
|
|
|
<script>
|
2022-03-04 02:07:51 +00:00
|
|
|
drawGraph(
|
|
|
|
{{strings.TrimRight "/" .Page.Permalink}},
|
|
|
|
{{strings.TrimRight "/" .Site.BaseURL}},
|
|
|
|
{{$.Site.Data.graphConfig.paths}},
|
|
|
|
{{$.Site.Data.graphConfig.depth}},
|
|
|
|
{{$.Site.Data.graphConfig.enableDrag}},
|
|
|
|
{{$.Site.Data.graphConfig.enableLegend}},
|
|
|
|
{{$.Site.Data.graphConfig.enableZoom}}
|
|
|
|
)
|
2021-12-23 22:05:27 +00:00
|
|
|
</script>
|