wip
This commit is contained in:
1 parent
28e7f03313
commit
208a27266a
2 files changed
+3
-1
No files matched your search
@@ -90,7 +90,7 @@ class StatsMedianAverage extends StatsOverviewWidget
|
|||||||
$draw = $data['results']['d'] ? number_format(Round::odd($total_home / $data['results']['d']), 2) : 0;
|
$draw = $data['results']['d'] ? number_format(Round::odd($total_home / $data['results']['d']), 2) : 0;
|
||||||
$lost = $data['results']['l'] ? number_format(Round::odd($total_home / $data['results']['l']), 2) : 0;
|
$lost = $data['results']['l'] ? number_format(Round::odd($total_home / $data['results']['l']), 2) : 0;
|
||||||
|
|
||||||
dd($win, $draw, $lost);
|
// dd($win, $draw, $lost);
|
||||||
} else {
|
} else {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,8 +22,10 @@ function animate(element, end, duration = 500, fixtotwo) {
|
|||||||
const currentCount = Math.round(end * easedProgress * 100) / 100;
|
const currentCount = Math.round(end * easedProgress * 100) / 100;
|
||||||
|
|
||||||
if (fixtotwo) {
|
if (fixtotwo) {
|
||||||
|
console.log("fix2");
|
||||||
element.innerHTML = currentCount.toFixed(2);
|
element.innerHTML = currentCount.toFixed(2);
|
||||||
} else {
|
} else {
|
||||||
|
console.log("fixNone");
|
||||||
element.innerHTML = currentCount;
|
element.innerHTML = currentCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user