Skip to content

Commit

Permalink
OpenCodeLaw: fix for now
Browse files Browse the repository at this point in the history
Signed-off-by: kiranpranay <pranaybannu12@gmail.com>
  • Loading branch information
KiranPranay committed Aug 27, 2023
1 parent 2c336a5 commit 17299ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/opencodelaw.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ fetch(src)
navSectionSubLi.classList.add("nav-list");
const navSectionSubLink = document.createElement("a");
navSectionSubLink.classList.add("nav-a");
navSectionSubLink.href = `${navArticleId}/section${index + 1}`;
navSectionSubLink.href = `${navArticleId}-section${index + 1}`;
navSectionSubLink.textContent = `${index + 1}. ${section.title}`;
navSectionSubLi.appendChild(navSectionSubLink);
navSectionUl.appendChild(navSectionSubLi);
Expand Down Expand Up @@ -179,7 +179,7 @@ fetch(src)
articleContainer.appendChild(sectionContainer);
sections.forEach((section, index) => {
const sectionContainerH3 = document.createElement("h3");
sectionContainerH3.id = `${articleId}/section${index + 1}`;
sectionContainerH3.id = `${articleId}-section${index + 1}`;
sectionContainerH3.classList.add("heading-secondary");
sectionContainerH3.textContent = `${index + 1}. ${section.title}`;
sectionContainer.appendChild(sectionContainerH3);
Expand Down

0 comments on commit 17299ec

Please sign in to comment.