diff --git a/shacl12-core/index.html b/shacl12-core/index.html index 378fca24..fbb297f3 100644 --- a/shacl12-core/index.html +++ b/shacl12-core/index.html @@ -74,12 +74,13 @@ const selectors = document.createElement("div"); selectors.classList.add("selectors"); - // Check if shaclc div exists in this tab group + // Check if JSON-LD or shaclc div exists in this tab group + const hasJsonld = tabs.querySelector(".jsonld"); const hasShaclc = tabs.querySelector(".shaclc"); selectors.innerHTML = ` - + ${hasJsonld ? '' : ''} ${hasShaclc ? '' : ''} ` @@ -1332,7 +1333,7 @@
ex:knows
as its predicate.
-
+
@@ -1382,7 +1383,7 @@
In this example, only ex:Bob
is a focus node of ex:AdultPerson
@@ -1403,7 +1404,7 @@
diff --git a/shacl12-node-expr/index.html b/shacl12-node-expr/index.html index 61fb67c8..a2bca4ab 100644 --- a/shacl12-node-expr/index.html +++ b/shacl12-node-expr/index.html @@ -73,9 +73,15 @@ for (const tabs of document.querySelectorAll(".ds-selector-tabs")) { const selectors = document.createElement("div"); selectors.classList.add("selectors"); + + // Check if JSON-LD or shaclc div exists in this tab group + const hasJsonld = tabs.querySelector(".jsonld"); + const hasShaclc = tabs.querySelector(".shaclc"); + selectors.innerHTML = ` - + ${hasJsonld ? '' : ''} + ${hasShaclc ? '' : ''} ` tabs.prepend(selectors); diff --git a/shacl12-profiling/index.html b/shacl12-profiling/index.html index e1e8238f..d3d137eb 100644 --- a/shacl12-profiling/index.html +++ b/shacl12-profiling/index.html @@ -74,9 +74,15 @@ for (const tabs of document.querySelectorAll(".ds-selector-tabs")) { const selectors = document.createElement("div"); selectors.classList.add("selectors"); + + // Check if JSON-LD or shaclc div exists in this tab group + const hasJsonld = tabs.querySelector(".jsonld"); + const hasShaclc = tabs.querySelector(".shaclc"); + selectors.innerHTML = ` - + ${hasJsonld ? '' : ''} + ${hasShaclc ? '' : ''} ` tabs.prepend(selectors); diff --git a/shacl12-rules/index.html b/shacl12-rules/index.html index 951e23dd..716917ed 100644 --- a/shacl12-rules/index.html +++ b/shacl12-rules/index.html @@ -6,7 +6,7 @@