Skip to main content

Calendar

April 2081
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1
2
3
document.addEventListener("DOMContentLoaded", function() { function limitTeaserItems() { const articles = document.querySelectorAll(".items article"); articles.forEach(article => { const header = article.querySelector("header h3 span"); if (header && header.textContent.trim() === "News") { //PUT THE NAME OF THE TEASER HERE const subteasers = article.querySelectorAll(".subteasers .subteaser"); if (subteasers.length > 6) { // IF SUBTEASERS EQUAL THIS NUMBER LONG for (let i = 6; i < subteasers.length; i++) { // LIMIT TO THIS NUMBER LONG subteasers[i].style.display = "none"; } } } }); } limitTeaserItems(); });