Commit 4efb72bc authored by Brandon Lyon's avatar Brandon Lyon 💬

Merge branch 'bl-fix-mermaid-20191010b' into 'master'

bl-fix-mermaid-20191010g

See merge request !36608
parents 027696e2 c7ebdb6a
Pipeline #102191752 passed with stages
in 16 minutes and 27 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