- = $helper->picture("images/people/{$data['id']}-original.webp", 'jpg', ['class' => 'cover' ]) ?>
+ = $helper->img($data['image'], ['class' => 'cover' ]) ?>
= $data['name'] ?>
@@ -40,7 +40,7 @@ use function Aviat\AnimeClient\getLocalImg;
= $component->media(
$series['titles'],
$url->generate("{$mediaType}.details", ['id' => $series['slug']]),
- $helper->picture("images/{$type}/{$sid}.webp")
+ $helper->img($series['image'], ['width' => 220])
) ?>
@@ -69,7 +69,7 @@ use function Aviat\AnimeClient\getLocalImg;
$medias[] = $component->media(
$series['titles'],
$url->generate('anime.details', ['id' => $series['slug']]),
- $helper->picture("images/anime/{$sid}.webp")
+ $helper->img($series['image'], ['width' => 220])
);
}
$media = implode('', array_map('mb_trim', $medias));
diff --git a/frontEndSrc/js/base/sort-tables.js b/frontEndSrc/js/base/sort-tables.js
index c8525b7b..aaeace54 100644
--- a/frontEndSrc/js/base/sort-tables.js
+++ b/frontEndSrc/js/base/sort-tables.js
@@ -7,10 +7,10 @@ const LightTableSorter = (() => {
let textA = text(a);
let textB = text(b);
console.log("Comparing " + textA + " and " + textB)
-
+
if(th.classList.contains("numeric")){
- arrayA = textA.replace('episodes: ','').replace('-',0).split("/");
- arrayB = textB.replace('episodes: ','').replace('-',0).split("/");
+ let arrayA = textA.replace('episodes: ','').replace('-',0).split("/");
+ let arrayB = textB.replace('episodes: ','').replace('-',0).split("/");
if(arrayA.length > 1) {
textA = parseInt(arrayA[0],10) / parseInt(arrayA[1],10);
textB = parseInt(arrayB[0],10) / parseInt(arrayB[1],10);
diff --git a/frontEndSrc/js/template-helpers.js b/frontEndSrc/js/template-helpers.js
index bc7510d3..b83af63a 100644
--- a/frontEndSrc/js/template-helpers.js
+++ b/frontEndSrc/js/template-helpers.js
@@ -58,9 +58,7 @@ export function renderSearchResults (type, data, isCollection = false) {