MCPcopy Create free account
hub / github.com/TechJeeper/Printventory / navigate

Function navigate

renderer.js:19328–19338  ·  view source on GitHub ↗
(direction, event)

Source from the content-addressed store, hash-verified

19326
19327 ratingWrap.appendChild(star);
19328 }
19329
19330 const favBtn = document.createElement('button');
19331 favBtn.type = 'button';
19332 favBtn.className = 'model-favorite-btn';
19333 favBtn.setAttribute('aria-pressed', favorite ? 'true' : 'false');
19334 favBtn.title = groupMode ? 'Favorite all models in group' : 'Favorite';
19335 favBtn.textContent = favorite ? '♥' : '♡';
19336
19337 favBtn.addEventListener('click', async (e) => {
19338 e.preventDefault();
19339 e.stopPropagation();
19340 const newFavorite = !favorite;
19341 if (groupMode) {

Calls 1

updateBadgeFunction · 0.85

Tested by

no test coverage detected