tags: taxonomy layout with headings all on the left

and columned lists like in the terms page for a more concicse look
This commit is contained in:
Sören Weber 2023-05-19 12:59:06 +02:00
parent 98cc7904ab
commit 5099b5b73c
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
3 changed files with 6 additions and 20 deletions
static/js

View file

@ -428,7 +428,7 @@ function initOpenapi( update, attrs ){
}
function initAnchorClipboard(){
document.querySelectorAll( 'h1~h2,h1~h3,h1~h4,h1~h5,h1~h6,.tax-container h2,.tax-container h3,.tax-container h4,.tax-container h5,.tax-container h6').forEach( function( element ){
document.querySelectorAll( 'h1~h2,h1~h3,h1~h4,h1~h5,h1~h6').forEach( function( element ){
var url = encodeURI( (document.location.origin == "null" ? (document.location.protocol + "//" + document.location.host) : document.location.origin )+ document.location.pathname);
var link = url + "#" + element.id;
var new_element = document.createElement( 'span' );