diff --git a/public/index.php b/public/index.php index e39fac9..75613c0 100644 --- a/public/index.php +++ b/public/index.php @@ -130,34 +130,69 @@ $news_items = $stmt->fetchAll();
- -
+ +

- Start + Hinweise

+
+ + +
+

+ Aufgaben + +

+ @@ -173,7 +208,39 @@ $news_items = $stmt->fetchAll();
- + +
+
+
+ + +
+

+ Neuigkeiten + +

+
@@ -205,49 +272,16 @@ $news_items = $stmt->fetchAll();

Kommentieren

Gerne können Sie Ihre Meinung zu bestehenden Beiträgen auch durch die Kommentarfunktion äußern.

+

Aufgaben erledigen

+

Klicken Sie auf eine offene Aufgabe und melden Sie die Erledigung mit einem Foto-Nachweis.

+

Suchen

Verwenden Sie die Adresssuche rechts, um schnell den richtigen Ort auf der Mitmachkarte zu finden.

- - - - - - -
-

- Neuigkeiten - -

-
+ @@ -404,6 +438,7 @@ $news_items = $stmt->fetchAll(); // Category Definitions from Database const CATEGORIES = ; + const TASK_CATEGORIES = ; // Admin Status from PHP Session const IS_ADMIN = ; diff --git a/public/js/app.js b/public/js/app.js index 89fb140..35ccd09 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -898,24 +898,24 @@ function updateStatistics() { const total = contributionsData.length; // Counts per Category - const counts = {}; - contributionsData.forEach(function (f) { - const cat = f.properties.category; - counts[cat] = (counts[cat] || 0) + 1; - }); + // const counts = {}; + // contributionsData.forEach(function (f) { + // const cat = f.properties.category; + // counts[cat] = (counts[cat] || 0) + 1; + // }); - let html = '

' + total + ' Beiträge insgesamt

'; + let html = '

' + total + ' Hinweise insgesamt

'; - for (const key in CATEGORIES) { - const cat = CATEGORIES[key]; - const count = counts[key] || 0; - if (count > 0) { - html += '
' + - categoryIcon(cat) + ' ' + - cat.label + ': ' + count + - '
'; - } - } + // for (const key in CATEGORIES) { + // const cat = CATEGORIES[key]; + // const count = counts[key] || 0; + // if (count > 0) { + // html += '
' + + // categoryIcon(cat) + ' ' + + // cat.label + ': ' + count + + // '
'; + // } + // } container.innerHTML = html; }