Wijzigen voor document Huisstijl
Laatst gewijzigd door Jeeves de Butler op 07-10-2026 01:56
Van versie 21.1
gewijzigd door Jeeves de Butler
op 05-10-2026 07:36
op 05-10-2026 07:36
Opmerking bij wijziging:
Er is geen opmerking bij deze versie
Naar versie 23.1
gewijzigd door Jeeves de Butler
op 05-10-2026 07:40
op 05-10-2026 07:40
Opmerking bij wijziging:
Er is geen opmerking bij deze versie
Samenvatting
-
Objecten (2 gewijzigd, 0 toegevoegd, 0 verwijderd)
Details
- XWiki.JavaScriptExtension[0]
-
- code
-
... ... @@ -128,8 +128,29 @@ 128 128 try { verwerk(tabel); } catch (e) { /* bij een fout blijft de tabel gewoon zichtbaar */ } 129 129 }); 130 130 Array.prototype.forEach.call(document.querySelectorAll('#xwikicontent ul.wikitoc'), eigenNummering); 131 + Array.prototype.forEach.call(document.querySelectorAll('#xwikicontent .wbrb img'), scherpInfovak); 131 131 } 132 132 134 + // Infovak: het origineel tonen in plaats van de kleine XWiki-verkleining, zodat de afbeelding op een breed scherm scherp blijft. 135 + // Bij een fout terug naar de verkleining. Het oude adres blijft bewaard voor herstel(). 136 + function scherpInfovak(img) { 137 + var src = img.getAttribute('src') || ''; 138 + if (img.hasAttribute('data-wb-src') || !/[?&](width|height)=/.test(src)) { 139 + return; 140 + } 141 + var groot = origineel(src); 142 + if (groot === src) { 143 + return; 144 + } 145 + img.setAttribute('data-wb-src', src); 146 + img.addEventListener('error', function terug() { 147 + img.removeEventListener('error', terug); 148 + img.setAttribute('src', src); 149 + }); 150 + img.removeAttribute('srcset'); 151 + img.setAttribute('src', groot); 152 + } 153 + 133 133 // Inhoudsopgave: staan de nummers al in de koppen ("2.1 Mogelijkheden"), dan geen tweede nummering ervoor. 134 134 // Beslist per inhoudsopgave, zodat die in zijn geheel genummerd of ongenummerd is. 135 135 function eigenNummering(toc) { ... ... @@ -152,6 +152,10 @@ 152 152 function herstel() { 153 153 Array.prototype.forEach.call(document.querySelectorAll('#xwikicontent .wb-kaarten'), function (r) { r.remove(); }); 154 154 Array.prototype.forEach.call(document.querySelectorAll('#xwikicontent table.wb-vervangen'), function (t) { t.classList.remove('wb-vervangen'); }); 176 + Array.prototype.forEach.call(document.querySelectorAll('#xwikicontent .wbrb img[data-wb-src]'), function (img) { 177 + img.setAttribute('src', img.getAttribute('data-wb-src')); 178 + img.removeAttribute('data-wb-src'); 179 + }); 155 155 } 156 156 157 157 if (typeof window.require === 'function') {
- XWiki.StyleSheetExtension[0]
-
- Code
-
... ... @@ -111,8 +111,8 @@ 111 111 112 112 /* Groeit mee met de inhoudskolom: op een laptop als voorheen, op brede schermen ruimer voor de afbeelding */ 113 113 .floatinginfobox.wbrechts { 114 - width: 26%;115 - min-width: 2 80px;114 + width: 30%; 115 + min-width: 260px; 116 116 max-width: 460px; 117 117 margin: 0 0 16px 28px; 118 118 padding: 14px;