Spaces:
Running
Running
Logo returns to the start of the library
Browse filesFiles changed (2)
- app.js+12-1
- index.html+3-3
231 unmodified lines232233234235236237238222 unmodified lines461462463464465466231 unmodified linesasync function getViewer() {if (viewer || viewerFailed) return viewer;try {const { createViewer } = await import(signed("./viewer.js?v=20"));viewer = createViewer();viewer.setTheme(theme());} catch (e) {222 unmodified lines$("q").addEventListener("input", (e) => { clearTimeout(t); t = setTimeout(() => { state.q = e.target.value.trim(); refresh(); }, 120); });$("sort").addEventListener("change", (e) => { state.sort = e.target.value; refresh(); });$("reset").addEventListener("click", () => { state.q = ""; $("q").value = ""; state.group = state.category = null; state.facets = {}; refresh(); });$("filters-toggle").addEventListener("click", () => {const open = $("side").classList.toggle("open");$("filters-toggle").setAttribute("aria-expanded", open ? "true" : "false");231 unmodified lines232233234235236237238222 unmodified lines461462463464465466467468469470471472473474475476477231 unmodified linesasync function getViewer() {if (viewer || viewerFailed) return viewer;try {const { createViewer } = await import(signed("./viewer.js?v=21"));viewer = createViewer();viewer.setTheme(theme());} catch (e) {222 unmodified lines$("q").addEventListener("input", (e) => { clearTimeout(t); t = setTimeout(() => { state.q = e.target.value.trim(); refresh(); }, 120); });$("sort").addEventListener("change", (e) => { state.sort = e.target.value; refresh(); });$("reset").addEventListener("click", () => { state.q = ""; $("q").value = ""; state.group = state.category = null; state.facets = {}; refresh(); });// Logo: back to the start of the library, in place (a reload would drop a private// Space's access token from the page URL).$("brand").addEventListener("click", (e) => {if (e.metaKey || e.ctrlKey || e.shiftKey || e.button !== 0) return; // let "open in new tab" worke.preventDefault();state.q = ""; $("q").value = ""; state.group = state.category = null; state.facets = {}; state.sort = "name";$("sort").value = "name";openAsset(null);refresh();document.querySelector(".results").scrollTop = 0;});$("filters-toggle").addEventListener("click", () => {const open = $("side").classList.toggle("open");$("filters-toggle").setAttribute("aria-expanded", open ? "true" : "false");
7 unmodified lines8910111213146 unmodified lines2122232425262755 unmodified lines8384858687887 unmodified lines<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Fira+Code:wght@400;500&display=swap"><link rel="stylesheet" href="style.css?v=20"><script type="importmap">{ "imports": {"three": "https://cdn.jsdelivr.net/npm/three@0.160.0/build/three.module.js",6 unmodified lines</head><body><header class="top"><a class="brand" href="./" aria-label="projectsim SimReady Library, reset"><span class="brand-mark" aria-hidden="true"></span><span class="brand-name">projectsim</span><span class="brand-product">SimReady Library</span>55 unmodified lines</aside></div><script src="app.js?v=20"></script></body></html>7 unmodified lines8910111213146 unmodified lines2122232425262755 unmodified lines8384858687887 unmodified lines<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Fira+Code:wght@400;500&display=swap"><link rel="stylesheet" href="style.css?v=21"><script type="importmap">{ "imports": {"three": "https://cdn.jsdelivr.net/npm/three@0.160.0/build/three.module.js",6 unmodified lines</head><body><header class="top"><a id="brand" class="brand" href="https://huggingface.co/spaces/projectsim/simready-library" target="_top" aria-label="projectsim SimReady Library home"><span class="brand-mark" aria-hidden="true"></span><span class="brand-name">projectsim</span><span class="brand-product">SimReady Library</span>55 unmodified lines</aside></div><script src="app.js?v=21"></script></body></html>
app.js+12-1
index.html+3-3