2020-01-03 17:07:50 +00:00
|
|
|
|
<!doctype html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<%- partial("_partial/head") %>
|
|
|
|
|
<body>
|
|
|
|
|
<%- partial("_partial/header") %>
|
|
|
|
|
<main class="main">
|
|
|
|
|
<%- body %>
|
|
|
|
|
<%- partial("_partial/arrow") %>
|
|
|
|
|
</main>
|
|
|
|
|
<%- partial("_partial/aside") %>
|
|
|
|
|
<%- partial("_partial/toolbar") %>
|
|
|
|
|
<!-- partial("_partial/search") -->
|
|
|
|
|
<%- partial("_partial/particles") %>
|
|
|
|
|
<%- js("https://cdn.jsdelivr.net/gh/meethigher/cdn@9.0/js/jquery.min.js") %>
|
|
|
|
|
<%- js("https://cdn.jsdelivr.net/gh/meethigher/cdn@9.0/js/particles.min.js") %>
|
|
|
|
|
<%- js("https://cdn.jsdelivr.net/gh/meethigher/cdn@9.0/js/app.js") %>
|
|
|
|
|
<%- js("https://cdn.jsdelivr.net/gh/meethigher/cdn@11/js/layer/layer.js") %>
|
|
|
|
|
<%- js("js/meethigher.js") %>
|
|
|
|
|
<%- js("js/toolbar.js") %>
|
2020-10-01 00:06:00 +00:00
|
|
|
|
<%- js("js/svg-pan-zoom.min.js") %>
|
|
|
|
|
<script src='https://cdnjs.cloudflare.com/ajax/libs/viz.js/1.7.1/viz.js'></script>
|
|
|
|
|
<script>
|
|
|
|
|
String.prototype.replaceAll = function(search, replacement) {
|
|
|
|
|
var target = this;
|
|
|
|
|
return target.split(search).join(replacement);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
let vizObjects = document.querySelectorAll('.graphviz');
|
|
|
|
|
|
|
|
|
|
for (let item of vizObjects) {
|
|
|
|
|
let svg = undefined;
|
|
|
|
|
try {
|
|
|
|
|
//svg = Viz(item.textContent.replaceAll('–', '--'), 'svg');
|
|
|
|
|
svg = Viz(item.textContent, 'svg');
|
|
|
|
|
var panZoomTiger = svgPanZoom(svg, {
|
|
|
|
|
controlIconsEnabled: true,
|
|
|
|
|
fit: true,
|
|
|
|
|
center: true,
|
|
|
|
|
});
|
|
|
|
|
} catch(e) {
|
|
|
|
|
//svg = `<pre class="error">${e}</pre>`;
|
|
|
|
|
console.log("got "+e);
|
|
|
|
|
}
|
|
|
|
|
item.outerHTML = svg;
|
|
|
|
|
}
|
|
|
|
|
</script>
|
2020-01-03 17:07:50 +00:00
|
|
|
|
</body>
|
|
|
|
|
</html>
|