This commit is contained in:
salam committed 2026-08-29 12:45:37 +02:00
1 parent ef8ade1814
commit 8f6beac89b
4 files changed
+14 -19

No files matched your search

+3 -3
View File
@@ -153,7 +153,7 @@ class StatsMedianAverage extends StatsOverviewWidget
$boxes[] = Stat::make('Total', self::template_box2($total_home))
->description(fn() => new HtmlString($date_events))
->extraAttributes([
'x-init' => "console.log('number-of-events'); animate('number-of-events', $total_home);",
'x-init' => "animate('number-of-events', $total_home);",
'class' => 'box-info',
]);
@@ -177,7 +177,7 @@ class StatsMedianAverage extends StatsOverviewWidget
$boxes[] = Stat::make($statistic_type, self::template_box1($expectations_home, $expectations_away))
->description('Expected Values')
->extraAttributes([
'x-init' => "console.log('expectations_home, expectations_away'); animate('expectations_home', $expectations_home); animate('expectations_away', $expectations_away)",
'x-init' => "animate('expectations_home', $expectations_home); animate('expectations_away', $expectations_away)",
'class' => 'box-yellow',
]);
@@ -187,7 +187,7 @@ class StatsMedianAverage extends StatsOverviewWidget
$boxes[] = Stat::make('Total', self::template_box2($total_home))
->description(fn() => new HtmlString($date_events))
->extraAttributes([
'x-init' => "console.log('number-of-events'); animate('number-of-events', $total_home);",
'x-init' => "animate('number-of-events', $total_home);",
'class' => 'box-info',
]);