mirror of https://github.com/logos-co/roadmap.git
1 line
318 B
JavaScript
1 line
318 B
JavaScript
|
function addTitleToCodeBlocks(){for(var b=document.getElementsByClassName("highlight"),a=0;a<b.length;a++)if(b[a].title.length){let c=document.createElement("div");if(b[a].getElementsByClassName("code-title").length)continue;c.textContent=b[a].title,c.classList.add("code-title"),b[a].insertBefore(c,b[a].firstChild)}}
|