Skip to content

Commit

Permalink
Added expand/collapse all for Moderation page FAQ
Browse files Browse the repository at this point in the history
  • Loading branch information
FredrikBergelin committed Jan 11, 2025
1 parent 47ea85e commit 7b4dc35
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/backend/templates/views/markdown/moderation.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,11 @@ Understand that an appeal is a chance to convince the moderation team that they

## **Frequently asked questions**

<button onclick="expandAllFAQ()">Expand All</button>
<button onclick="collapseAllFAQ()">Collapse All</button>

<details>
<summary>**How do I know what I have been banned for, and how long my ban will last?**</summary>
<summary>How do I know what I have been banned for, and how long my ban will last?</summary>
* Upon logging into the FAF client, banned players will be shown a message that will state when their ban expires in the UTC time zone, the length of their ban, the reason for why they were banned, and the replayID of the game that led to the ban (if applicable).
</details>

Expand Down Expand Up @@ -209,3 +212,13 @@ Understand that an appeal is a chance to convince the moderation team that they
<summary>I have been banned for smurfing, but I do not own a second account. What do I do?</summary>
* Contact the moderation team through the moderation support ticket system. It is possible that our smurf-detection systems have wrongly identified you, and if that is the case we’ll do our best to clear it up quickly.
</details>

<script>
function expandAllFAQ() {
document.querySelectorAll("details").forEach(detail => detail.open = true);
}

function collapseAllFAQ() {
document.querySelectorAll("details").forEach(detail => detail.open = false);
}
</script>

0 comments on commit 7b4dc35

Please sign in to comment.