'use strict';dotclear.ready(()=>{if(document.body.clientWidth>=1024){return;}
const h2=document.querySelectorAll('#sidebar div div h2, #blogcustom div h2');for(const element of h2){const parent=element.parentNode;const details=document.createElement('details');const summary=document.createElement('summary');details.classList.add('widget-mini');if(parent.id)details.id=parent.id;for(const child of parent.childNodes){details.appendChild(child.cloneNode(true));}
const title=details.querySelector('h2');summary.textContent=element.textContent;title.replaceWith(summary);parent.replaceWith(details);}});