Skip to content

Commit b976efa

Browse files
committed
chore: add shaclc selector button to shacl12-core.html
1 parent b43b8e3 commit b976efa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

shacl12-core/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,14 @@
7070
for (const tabs of document.querySelectorAll(".ds-selector-tabs")) {
7171
const selectors = document.createElement("div");
7272
selectors.classList.add("selectors");
73+
74+
// Check if shaclc div exists in this tab group
75+
const hasShaclc = tabs.querySelector(".shaclc");
76+
7377
selectors.innerHTML = `
7478
<button class="selected" data-selects="turtle">Turtle</button>
7579
<button data-selects="jsonld">JSON-LD</button>
80+
${hasShaclc ? '<button data-selects="shaclc">SHACL-C</button>' : ''}
7681
`
7782

7883
tabs.prepend(selectors);

0 commit comments

Comments
 (0)