Skip to content

Commit

Permalink
remove unused JavaScript (bring branch up-to-date with main)
Browse files Browse the repository at this point in the history
  • Loading branch information
TimidRobot committed Sep 23, 2024
1 parent 34249f2 commit b6102f9
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 228 deletions.
38 changes: 0 additions & 38 deletions docs/licenses/by-nc-nd/4.0/legalcode.sk.html
Original file line number Diff line number Diff line change
Expand Up @@ -1063,43 +1063,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-sa/4.0/legalcode.sk.html
Original file line number Diff line number Diff line change
Expand Up @@ -1116,43 +1116,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/4.0/legalcode.sk.html
Original file line number Diff line number Diff line change
Expand Up @@ -1063,43 +1063,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-nd/4.0/legalcode.sk.html
Original file line number Diff line number Diff line change
Expand Up @@ -1051,43 +1051,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-sa/4.0/legalcode.sk.html
Original file line number Diff line number Diff line change
Expand Up @@ -1104,43 +1104,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/4.0/legalcode.sk.html
Original file line number Diff line number Diff line change
Expand Up @@ -1051,43 +1051,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>

0 comments on commit b6102f9

Please sign in to comment.