Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data: Remove unused JavaScript #221

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
38 changes: 0 additions & 38 deletions docs/licenses/by-nc-nd/2.0/at/legalcode.de.html
Original file line number Diff line number Diff line change
Expand Up @@ -647,43 +647,5 @@ <h2>
</footer>
<script src="/wp-content/themes/vocabulary-theme/vocabulary/js/vocabulary.js">
</script>
<script>
/*
Show/Hide Functionality for expand/collapse sections in use_of_licenses.html
*/
let arrowArray = Array.from(document.getElementsByClassName("angle-down"))
arrowArray.forEach(function(arrow) {
arrow.addEventListener("click", handleArrowClicked);
});

function handleArrowClicked() {
// Toggle consideration section's screen reader announcement text (inside of icon)
if (this.dataset.consideration === "1" && this.dataset.direction === "down") {
this.firstChild.innerHTML = "Hide Considerations for Licensors"
} else if (this.dataset.consideration !== "1" && this.dataset.direction === "down") {
this.firstChild.innerHTML = "Hide Considerations for the Public"
} else if (this.dataset.consideration === "1" && this.dataset.direction === "up") {
this.firstChild.innerHTML = "Show Considerations for Licensors"
} else {
this.firstChild.innerHTML = "Show Considerations for the Public"
}
// Toggle icon between up and down
if (this.dataset.direction === "down") {
// toggle icon to up arrow icon
this.classList.remove("angle-down")
this.classList.add("angle-up")
this.dataset.direction = "up"
// show <p> tag
this.parentNode.parentNode.nextSibling.nextSibling.classList.remove("is-hidden");
} else {
// toggle icon to up arrow icon
this.classList.add("angle-down")
this.classList.remove("angle-up")
this.dataset.direction = "down"
// hide <p> tag
this.parentNode.parentNode.nextSibling.nextSibling.classList.add("is-hidden");
}
};
</script>
</body>
</html>
38 changes: 0 additions & 38 deletions docs/licenses/by-nc-nd/2.0/au/legalcode.en.html
Original file line number Diff line number Diff line change
Expand Up @@ -669,43 +669,5 @@ <h2>
</footer>
<script src="/wp-content/themes/vocabulary-theme/vocabulary/js/vocabulary.js">
</script>
<script>
/*
Show/Hide Functionality for expand/collapse sections in use_of_licenses.html
*/
let arrowArray = Array.from(document.getElementsByClassName("angle-down"))
arrowArray.forEach(function(arrow) {
arrow.addEventListener("click", handleArrowClicked);
});

function handleArrowClicked() {
// Toggle consideration section's screen reader announcement text (inside of icon)
if (this.dataset.consideration === "1" && this.dataset.direction === "down") {
this.firstChild.innerHTML = "Hide Considerations for Licensors"
} else if (this.dataset.consideration !== "1" && this.dataset.direction === "down") {
this.firstChild.innerHTML = "Hide Considerations for the Public"
} else if (this.dataset.consideration === "1" && this.dataset.direction === "up") {
this.firstChild.innerHTML = "Show Considerations for Licensors"
} else {
this.firstChild.innerHTML = "Show Considerations for the Public"
}
// Toggle icon between up and down
if (this.dataset.direction === "down") {
// toggle icon to up arrow icon
this.classList.remove("angle-down")
this.classList.add("angle-up")
this.dataset.direction = "up"
// show <p> tag
this.parentNode.parentNode.nextSibling.nextSibling.classList.remove("is-hidden");
} else {
// toggle icon to up arrow icon
this.classList.add("angle-down")
this.classList.remove("angle-up")
this.dataset.direction = "down"
// hide <p> tag
this.parentNode.parentNode.nextSibling.nextSibling.classList.add("is-hidden");
}
};
</script>
</body>
</html>
38 changes: 0 additions & 38 deletions docs/licenses/by-nc-nd/2.0/be/legalcode.fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -809,43 +809,5 @@ <h2>
</footer>
<script src="/wp-content/themes/vocabulary-theme/vocabulary/js/vocabulary.js">
</script>
<script>
/*
Show/Hide Functionality for expand/collapse sections in use_of_licenses.html
*/
let arrowArray = Array.from(document.getElementsByClassName("angle-down"))
arrowArray.forEach(function(arrow) {
arrow.addEventListener("click", handleArrowClicked);
});

function handleArrowClicked() {
// Toggle consideration section's screen reader announcement text (inside of icon)
if (this.dataset.consideration === "1" && this.dataset.direction === "down") {
this.firstChild.innerHTML = "Hide Considerations for Licensors"
} else if (this.dataset.consideration !== "1" && this.dataset.direction === "down") {
this.firstChild.innerHTML = "Hide Considerations for the Public"
} else if (this.dataset.consideration === "1" && this.dataset.direction === "up") {
this.firstChild.innerHTML = "Show Considerations for Licensors"
} else {
this.firstChild.innerHTML = "Show Considerations for the Public"
}
// Toggle icon between up and down
if (this.dataset.direction === "down") {
// toggle icon to up arrow icon
this.classList.remove("angle-down")
this.classList.add("angle-up")
this.dataset.direction = "up"
// show <p> tag
this.parentNode.parentNode.nextSibling.nextSibling.classList.remove("is-hidden");
} else {
// toggle icon to up arrow icon
this.classList.add("angle-down")
this.classList.remove("angle-up")
this.dataset.direction = "down"
// hide <p> tag
this.parentNode.parentNode.nextSibling.nextSibling.classList.add("is-hidden");
}
};
</script>
</body>
</html>
38 changes: 0 additions & 38 deletions docs/licenses/by-nc-nd/2.0/be/legalcode.nl.html
Original file line number Diff line number Diff line change
Expand Up @@ -804,43 +804,5 @@ <h2>
</footer>
<script src="/wp-content/themes/vocabulary-theme/vocabulary/js/vocabulary.js">
</script>
<script>
/*
Show/Hide Functionality for expand/collapse sections in use_of_licenses.html
*/
let arrowArray = Array.from(document.getElementsByClassName("angle-down"))
arrowArray.forEach(function(arrow) {
arrow.addEventListener("click", handleArrowClicked);
});

function handleArrowClicked() {
// Toggle consideration section's screen reader announcement text (inside of icon)
if (this.dataset.consideration === "1" && this.dataset.direction === "down") {
this.firstChild.innerHTML = "Overwegingen voor licentiegevers verbergen"
} else if (this.dataset.consideration !== "1" && this.dataset.direction === "down") {
this.firstChild.innerHTML = "Overwegingen voor het publiek verbergen"
} else if (this.dataset.consideration === "1" && this.dataset.direction === "up") {
this.firstChild.innerHTML = "Overwegingen voor licentiegevers tonen"
} else {
this.firstChild.innerHTML = "Overwegingen voor het publiek tonen"
}
// Toggle icon between up and down
if (this.dataset.direction === "down") {
// toggle icon to up arrow icon
this.classList.remove("angle-down")
this.classList.add("angle-up")
this.dataset.direction = "up"
// show <p> tag
this.parentNode.parentNode.nextSibling.nextSibling.classList.remove("is-hidden");
} else {
// toggle icon to up arrow icon
this.classList.add("angle-down")
this.classList.remove("angle-up")
this.dataset.direction = "down"
// hide <p> tag
this.parentNode.parentNode.nextSibling.nextSibling.classList.add("is-hidden");
}
};
</script>
</body>
</html>
38 changes: 0 additions & 38 deletions docs/licenses/by-nc-nd/2.0/br/legalcode.pt-br.html
Original file line number Diff line number Diff line change
Expand Up @@ -621,43 +621,5 @@ <h2>
</footer>
<script src="/wp-content/themes/vocabulary-theme/vocabulary/js/vocabulary.js">
</script>
<script>
/*
Show/Hide Functionality for expand/collapse sections in use_of_licenses.html
*/
let arrowArray = Array.from(document.getElementsByClassName("angle-down"))
arrowArray.forEach(function(arrow) {
arrow.addEventListener("click", handleArrowClicked);
});

function handleArrowClicked() {
// Toggle consideration section's screen reader announcement text (inside of icon)
if (this.dataset.consideration === "1" && this.dataset.direction === "down") {
this.firstChild.innerHTML = "Hide Considerations for Licensors"
} else if (this.dataset.consideration !== "1" && this.dataset.direction === "down") {
this.firstChild.innerHTML = "Hide Considerations for the Public"
} else if (this.dataset.consideration === "1" && this.dataset.direction === "up") {
this.firstChild.innerHTML = "Show Considerations for Licensors"
} else {
this.firstChild.innerHTML = "Show Considerations for the Public"
}
// Toggle icon between up and down
if (this.dataset.direction === "down") {
// toggle icon to up arrow icon
this.classList.remove("angle-down")
this.classList.add("angle-up")
this.dataset.direction = "up"
// show <p> tag
this.parentNode.parentNode.nextSibling.nextSibling.classList.remove("is-hidden");
} else {
// toggle icon to up arrow icon
this.classList.add("angle-down")
this.classList.remove("angle-up")
this.dataset.direction = "down"
// hide <p> tag
this.parentNode.parentNode.nextSibling.nextSibling.classList.add("is-hidden");
}
};
</script>
</body>
</html>
38 changes: 0 additions & 38 deletions docs/licenses/by-nc-nd/2.0/ca/legalcode.en.html
Original file line number Diff line number Diff line change
Expand Up @@ -732,43 +732,5 @@ <h2>
</footer>
<script src="/wp-content/themes/vocabulary-theme/vocabulary/js/vocabulary.js">
</script>
<script>
/*
Show/Hide Functionality for expand/collapse sections in use_of_licenses.html
*/
let arrowArray = Array.from(document.getElementsByClassName("angle-down"))
arrowArray.forEach(function(arrow) {
arrow.addEventListener("click", handleArrowClicked);
});

function handleArrowClicked() {
// Toggle consideration section's screen reader announcement text (inside of icon)
if (this.dataset.consideration === "1" && this.dataset.direction === "down") {
this.firstChild.innerHTML = "Hide Considerations for Licensors"
} else if (this.dataset.consideration !== "1" && this.dataset.direction === "down") {
this.firstChild.innerHTML = "Hide Considerations for the Public"
} else if (this.dataset.consideration === "1" && this.dataset.direction === "up") {
this.firstChild.innerHTML = "Show Considerations for Licensors"
} else {
this.firstChild.innerHTML = "Show Considerations for the Public"
}
// Toggle icon between up and down
if (this.dataset.direction === "down") {
// toggle icon to up arrow icon
this.classList.remove("angle-down")
this.classList.add("angle-up")
this.dataset.direction = "up"
// show <p> tag
this.parentNode.parentNode.nextSibling.nextSibling.classList.remove("is-hidden");
} else {
// toggle icon to up arrow icon
this.classList.add("angle-down")
this.classList.remove("angle-up")
this.dataset.direction = "down"
// hide <p> tag
this.parentNode.parentNode.nextSibling.nextSibling.classList.add("is-hidden");
}
};
</script>
</body>
</html>
38 changes: 0 additions & 38 deletions docs/licenses/by-nc-nd/2.0/ca/legalcode.fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -722,43 +722,5 @@ <h2>
</footer>
<script src="/wp-content/themes/vocabulary-theme/vocabulary/js/vocabulary.js">
</script>
<script>
/*
Show/Hide Functionality for expand/collapse sections in use_of_licenses.html
*/
let arrowArray = Array.from(document.getElementsByClassName("angle-down"))
arrowArray.forEach(function(arrow) {
arrow.addEventListener("click", handleArrowClicked);
});

function handleArrowClicked() {
// Toggle consideration section's screen reader announcement text (inside of icon)
if (this.dataset.consideration === "1" && this.dataset.direction === "down") {
this.firstChild.innerHTML = "Hide Considerations for Licensors"
} else if (this.dataset.consideration !== "1" && this.dataset.direction === "down") {
this.firstChild.innerHTML = "Hide Considerations for the Public"
} else if (this.dataset.consideration === "1" && this.dataset.direction === "up") {
this.firstChild.innerHTML = "Show Considerations for Licensors"
} else {
this.firstChild.innerHTML = "Show Considerations for the Public"
}
// Toggle icon between up and down
if (this.dataset.direction === "down") {
// toggle icon to up arrow icon
this.classList.remove("angle-down")
this.classList.add("angle-up")
this.dataset.direction = "up"
// show <p> tag
this.parentNode.parentNode.nextSibling.nextSibling.classList.remove("is-hidden");
} else {
// toggle icon to up arrow icon
this.classList.add("angle-down")
this.classList.remove("angle-up")
this.dataset.direction = "down"
// hide <p> tag
this.parentNode.parentNode.nextSibling.nextSibling.classList.add("is-hidden");
}
};
</script>
</body>
</html>
38 changes: 0 additions & 38 deletions docs/licenses/by-nc-nd/2.0/cl/legalcode.es.html
Original file line number Diff line number Diff line change
Expand Up @@ -813,43 +813,5 @@ <h2>
</footer>
<script src="/wp-content/themes/vocabulary-theme/vocabulary/js/vocabulary.js">
</script>
<script>
/*
Show/Hide Functionality for expand/collapse sections in use_of_licenses.html
*/
let arrowArray = Array.from(document.getElementsByClassName("angle-down"))
arrowArray.forEach(function(arrow) {
arrow.addEventListener("click", handleArrowClicked);
});

function handleArrowClicked() {
// Toggle consideration section's screen reader announcement text (inside of icon)
if (this.dataset.consideration === "1" && this.dataset.direction === "down") {
this.firstChild.innerHTML = "Hide Considerations for Licensors"
} else if (this.dataset.consideration !== "1" && this.dataset.direction === "down") {
this.firstChild.innerHTML = "Hide Considerations for the Public"
} else if (this.dataset.consideration === "1" && this.dataset.direction === "up") {
this.firstChild.innerHTML = "Show Considerations for Licensors"
} else {
this.firstChild.innerHTML = "Show Considerations for the Public"
}
// Toggle icon between up and down
if (this.dataset.direction === "down") {
// toggle icon to up arrow icon
this.classList.remove("angle-down")
this.classList.add("angle-up")
this.dataset.direction = "up"
// show <p> tag
this.parentNode.parentNode.nextSibling.nextSibling.classList.remove("is-hidden");
} else {
// toggle icon to up arrow icon
this.classList.add("angle-down")
this.classList.remove("angle-up")
this.dataset.direction = "down"
// hide <p> tag
this.parentNode.parentNode.nextSibling.nextSibling.classList.add("is-hidden");
}
};
</script>
</body>
</html>
38 changes: 0 additions & 38 deletions docs/licenses/by-nc-nd/2.0/de/legalcode.de.html
Original file line number Diff line number Diff line change
Expand Up @@ -651,43 +651,5 @@ <h2>
</footer>
<script src="/wp-content/themes/vocabulary-theme/vocabulary/js/vocabulary.js">
</script>
<script>
/*
Show/Hide Functionality for expand/collapse sections in use_of_licenses.html
*/
let arrowArray = Array.from(document.getElementsByClassName("angle-down"))
arrowArray.forEach(function(arrow) {
arrow.addEventListener("click", handleArrowClicked);
});

function handleArrowClicked() {
// Toggle consideration section's screen reader announcement text (inside of icon)
if (this.dataset.consideration === "1" && this.dataset.direction === "down") {
this.firstChild.innerHTML = "Hide Considerations for Licensors"
} else if (this.dataset.consideration !== "1" && this.dataset.direction === "down") {
this.firstChild.innerHTML = "Hide Considerations for the Public"
} else if (this.dataset.consideration === "1" && this.dataset.direction === "up") {
this.firstChild.innerHTML = "Show Considerations for Licensors"
} else {
this.firstChild.innerHTML = "Show Considerations for the Public"
}
// Toggle icon between up and down
if (this.dataset.direction === "down") {
// toggle icon to up arrow icon
this.classList.remove("angle-down")
this.classList.add("angle-up")
this.dataset.direction = "up"
// show <p> tag
this.parentNode.parentNode.nextSibling.nextSibling.classList.remove("is-hidden");
} else {
// toggle icon to up arrow icon
this.classList.add("angle-down")
this.classList.remove("angle-up")
this.dataset.direction = "down"
// hide <p> tag
this.parentNode.parentNode.nextSibling.nextSibling.classList.add("is-hidden");
}
};
</script>
</body>
</html>
Loading