️ Use the gif format for the buttons

It'll improve performances
This commit is contained in:
Kazhnuz 2025-02-16 14:30:23 +01:00
parent 0bb7f8c4cf
commit 3cfd3b77d6

View file

@ -26,7 +26,7 @@ function createFilename(prideflag, text, now = false) {
.replaceAll("&", "and") .replaceAll("&", "and")
.replaceAll("+", "") .replaceAll("+", "")
.toLowerCase(); .toLowerCase();
return `${prideflag.name.en.toLowerCase()}-${adaptedText}${now?'-now':''}.png`; return `${prideflag.name.en.toLowerCase()}-${adaptedText}${now?'-now':''}.gif`;
} }
function createButton(source, x, y, text, gravity) { function createButton(source, x, y, text, gravity) {