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

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


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"}
%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");
setTimeout(waitForMermaid, 250);
%script{ src: "/javascripts/cbextras.js", type: "text/javascript", "data-cookieconsent": "ignore" }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment