1
0
mirror of https://gitlab.com/Anson-Projects/projects.git synced 2025-08-15 01:31:33 +00:00

make a cute little canvas to draw on and hook it up to some ojs

This commit is contained in:
2025-05-25 20:16:35 +00:00
parent 51c03d9213
commit 7cd96f1997
2 changed files with 115 additions and 2 deletions

View File

@@ -2,8 +2,7 @@ const kProgressiveAttr = "data-src";
let categoriesLoaded = false;
window.quartoListingCategory = (category) => {
// category is URI encoded in EJS template for UTF-8 support
category = decodeURIComponent(atob(category));
category = atob(category);
if (categoriesLoaded) {
activateCategory(category);
setCategoryHash(category);