Afficher la pageDiscussionAnciennes révisionsLiens de retourHaut de page Cette page est en lecture seule. Vous pouvez afficher le texte source, mais ne pourrez pas le modifier. Contactez votre administrateur si vous pensez qu'il s'agit d'une erreur. <CSS> /* H6 Level 6 headlines */ h6 { font-size: 13px; text-decoration: underline; font-style: italic; } </CSS><JS> /* H6 Level 6 headlines */ jQuery(function() { if (typeof h6 === 'undefined') { h6 = true; function trimByChar(string, character) { const first = [...string] .findIndex(char => char !== character); const last = [...string].reverse().findIndex(char => char !== character); return string.substring(first, string.length - last); } function transform_h($parent, $h, h) { var id = trimByChar($h.text().trim() .replaceAll(' ', '_') .replaceAll('/', '_') .replaceAll('\\', '_') .replaceAll(',', '_') .replaceAll(';', '_') .replaceAll(':', '_') .replaceAll('.', '_') .replaceAll('!', '_') .replaceAll('?', '_') .replaceAll('*', '_') .replaceAll('+', '_') .replaceAll('(', '_') .replaceAll(')', '_') .replaceAll('[', '_') .replaceAll(']', '_') .replaceAll('{', '_') .replaceAll('}', '_') .replaceAll('#', '_') .replaceAll('|', '_') .replaceAll('@', '_') .replaceAll('&', '_') .replaceAll("'", '_') .replaceAll('"', '_') .replaceAll('__', '_'), '_'); var anchor = '<a class="anchorjs-link " href="#' + id + '" aria-label="Anchor link for: ' + $h.text() + '" data-anchorjs-icon="" style="font-family: anchorjs-icons; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1; padding-left: 0.375em;"></a>'; $parent.replaceWith('<h' + h + ' id="' + id + '">' + $h.html() + anchor + '</h' + h + '>'); } jQuery("p > .wrap_h1").each(function() { transform_h(jQuery(this).parent(), jQuery(this), 1); }); jQuery("p > .wrap_h2").each(function() { transform_h(jQuery(this).parent(), jQuery(this), 2); }); jQuery("p > .wrap_h3").each(function() { transform_h(jQuery(this).parent(), jQuery(this), 3); }); jQuery("p > .wrap_h4").each(function() { transform_h(jQuery(this).parent(), jQuery(this), 4); }); jQuery("p > .wrap_h5").each(function() { transform_h(jQuery(this).parent(), jQuery(this), 5); }); jQuery("p > .wrap_h6").each(function() { transform_h(jQuery(this).parent(), jQuery(this), 6); }) jQuery(".wrap_h1").each(function() { transform_h(jQuery(this), jQuery(this), 1); }); jQuery(".wrap_h2").each(function() { transform_h(jQuery(this), jQuery(this), 2); }); jQuery(".wrap_h3").each(function() { transform_h(jQuery(this), jQuery(this), 3); }); jQuery(".wrap_h4").each(function() { transform_h(jQuery(this), jQuery(this), 4); }); jQuery(".wrap_h5").each(function() { transform_h(jQuery(this), jQuery(this), 5); }); jQuery(".wrap_h6").each(function() { transform_h(jQuery(this), jQuery(this), 6); }); } }); </JS> js/h6.txt Dernière modification : 2023/02/14 16:00de avillepreux