mobile styling updates, fix index and news page
This commit is contained in:
@@ -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>"
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user