mirror of
https://github.com/friendica/friendica
synced 2025-01-09 00:04:54 +00:00
Comments in English trending_tags.tpl
This commit is contained in:
parent
14fa0528cd
commit
4f877ad6b6
1 changed files with 3 additions and 3 deletions
|
@ -40,7 +40,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function toggleTags(event) {
|
function toggleTags(event) {
|
||||||
event.preventDefault(); // Verhindert, dass der Link die Seite neu lädt
|
event.preventDefault(); // Prevents the link from reloading the page
|
||||||
var moreTags = document.getElementById('more-tags');
|
var moreTags = document.getElementById('more-tags');
|
||||||
var link = event.target.closest('a');
|
var link = event.target.closest('a');
|
||||||
var caretIcon = document.getElementById('caret-icon');
|
var caretIcon = document.getElementById('caret-icon');
|
||||||
|
@ -50,12 +50,12 @@ function toggleTags(event) {
|
||||||
moreTags.style.display = 'block';
|
moreTags.style.display = 'block';
|
||||||
linkText.textContent = 'Show Less';
|
linkText.textContent = 'Show Less';
|
||||||
link.setAttribute('aria-expanded', 'true');
|
link.setAttribute('aria-expanded', 'true');
|
||||||
caretIcon.className = 'fa fa-caret-down'; // Ändert das Icon auf "Caret Down"
|
caretIcon.className = 'fa fa-caret-down'; // Changes the icon to "Caret Down"
|
||||||
} else {
|
} else {
|
||||||
moreTags.style.display = 'none';
|
moreTags.style.display = 'none';
|
||||||
linkText.textContent = 'Show More';
|
linkText.textContent = 'Show More';
|
||||||
link.setAttribute('aria-expanded', 'false');
|
link.setAttribute('aria-expanded', 'false');
|
||||||
caretIcon.className = 'fa fa-caret-right'; // Ändert das Icon auf "Caret Right"
|
caretIcon.className = 'fa fa-caret-right'; // Changes the icon to "Caret Down"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue