Commit c7ebdb6a authored by Brandon Lyon's avatar Brandon Lyon 💬

bl-fix-mermaid-20191010g

parent 13f62aa1
Pipeline #102186927 passed with stages
in 12 minutes and 13 seconds
......@@ -80,13 +80,15 @@
= partial "includes/layout/scripts"
%script{ "data-cookieconsent": "ignore"}
_st('install','Z4n7msKyctXXfJs66EKx','2.0.0');
%script{ type: "text/javascript", "data-cookieconsent": "ignore" }
var script = document.querySelector('#mermaidscriptsource');
script.addEventListener('load', function(){
function waitForMermaid(){
if(typeof mermaid !== 'undefined'){
mermaid.init(undefined, ".mermaid");
});
}else{
setTimeout(waitForMermaid, 250);
}
}
%script{ src: "/javascripts/cbextras.js", type: "text/javascript", "data-cookieconsent": "ignore" }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment