This commit is contained in:
Bjørn Erik Pedersen 2018-12-12 09:06:42 +01:00
commit b17a61a605
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F
199 changed files with 10860 additions and 22630 deletions

View file

@ -0,0 +1,10 @@
let article = document.getElementById('prose')
if (article) {
let codeBlocks = article.getElementsByTagName('code')
for (let [key, codeBlock] of Object.entries(codeBlocks)){
var widthDif = codeBlock.scrollWidth - codeBlock.clientWidth
if (widthDif > 0)
codeBlock.parentNode.classList.add('expand')
}
}