mobile styling updates, fix index and news page

This commit is contained in:
2025-04-09 21:36:19 +00:00
parent 7feacffd5e
commit 4a81870dba
4 changed files with 74 additions and 8 deletions

View File

@@ -11,10 +11,10 @@ jQuery(function ($) {
// Create the correct menu
let innerContent = "";
sections.forEach(link => {
let itemTitle = link.querySelector("h2:first-of-type");
let itemTitle = link.querySelector("h2:first-of-type, h3:first-of-type, h4:first-of-type, h5:first-of-type, h6:first-of-type");
if (itemTitle) {
link.setAttribute("id", itemTitle.id)
let fullUrl = url.split("#")[0] + "#" + itemTitle.id;
link.setAttribute("id", itemTitle.innerText.replace(/\W/g,'_'))
let fullUrl = url.split("#")[0] + "#" + itemTitle.innerText.replace(/\W/g,'_');
innerContent += "<li><a href=\"" + fullUrl + " \" class=''>" + itemTitle.innerText + "</a></li>"
}
});