From 55578d07734ce3753ccdf8fde1ab976e65d36db3 Mon Sep 17 00:00:00 2001 From: Oj Date: Fri, 2 Jul 2021 19:43:53 +0100 Subject: [PATCH] [SiteGen] Fix another browser bug caused by last fix --- src/siteGen/template.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/siteGen/template.html b/src/siteGen/template.html index 88a7a67..329121a 100644 --- a/src/siteGen/template.html +++ b/src/siteGen/template.html @@ -462,12 +462,12 @@ sortSelectEl.oninput = () => { switch (sortSelectEl.value) { case 'Stars': { - cards.forEach((x) => { x.style.order = 9999999999 - parseInt(x.getAttribute('data-stars')); }); + cards.forEach((x) => { x.style.order = 999 - parseInt(x.getAttribute('data-stars')); }); break; } case 'Last Updated': { - cards.forEach((x) => { x.style.order = 9999999999 - parseInt(x.getAttribute('data-last-updated')); }); + cards.forEach((x) => { x.style.order = 3000000000 - parseInt(x.getAttribute('data-last-updated')); }); break; }