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();
+ + + @@ -205,49 +272,16 @@ $news_items = $stmt->fetchAll();Gerne können Sie Ihre Meinung zu bestehenden Beiträgen auch durch die Kommentarfunktion äußern.
+Klicken Sie auf eine offene Aufgabe und melden Sie die Erledigung mit einem Foto-Nachweis.
+Verwenden Sie die Adresssuche rechts, um schnell den richtigen Ort auf der Mitmachkarte zu finden.
- - - - - - - + @@ -404,6 +438,7 @@ $news_items = $stmt->fetchAll(); // Category Definitions from Database const CATEGORIES = = json_encode(get_categories(), JSON_UNESCAPED_UNICODE) ?>; + const TASK_CATEGORIES = = json_encode(get_task_categories(), JSON_UNESCAPED_UNICODE) ?>; // Admin Status from PHP Session const IS_ADMIN = = (function_exists('is_admin') && is_admin()) ? 'true' : 'false' ?>; 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 += '