Projektauswertung hinzugefügt
This commit is contained in:
@@ -113,6 +113,21 @@ async function loadUserStats() {
|
||||
|
||||
// Beim Laden der Seite
|
||||
document.addEventListener('DOMContentLoaded', async function() {
|
||||
// Blur-Effekt für aktuelle Überstunden: Standard = geblurrt, bei Hover klar
|
||||
(function initOvertimeBlur() {
|
||||
const overtimeCard = document.querySelector('.stat-card-overtime');
|
||||
if (!overtimeCard) return;
|
||||
const valueEl = overtimeCard.querySelector('#currentOvertime');
|
||||
if (!valueEl) return;
|
||||
|
||||
overtimeCard.addEventListener('mouseenter', () => {
|
||||
valueEl.classList.remove('stat-value-blurred');
|
||||
});
|
||||
|
||||
overtimeCard.addEventListener('mouseleave', () => {
|
||||
valueEl.classList.add('stat-value-blurred');
|
||||
});
|
||||
})();
|
||||
// Letzte Woche vom Server laden
|
||||
try {
|
||||
const response = await fetch('/api/user/last-week');
|
||||
|
||||
Reference in New Issue
Block a user