-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexamples.js
More file actions
2 lines (2 loc) · 1006 Bytes
/
examples.js
File metadata and controls
2 lines (2 loc) · 1006 Bytes
1
2
import{b as a,c as l}from"./chunk-NOOHX3VG.js";import"./chunk-FW4363Y4.js";a();document.getElementById("theme-toggle").replaceWith(l());var s=["editable","file","duckdb","fractal","market","raycasting","evictions","nypd","streaming","covid","webcam","movies","superstore","olympics","dataset"];function h(c,n){let t=[];for(let e=0;e<c.length;e+=n)t.push(c.slice(e,e+n));return t}var u=document.getElementById("examples-grid"),r=document.createElement("table"),i=document.createElement("tbody");for(let c of h(s,2)){let n=document.createElement("tr");for(let t of c){let e=document.createElement("td"),o=document.createElement("a");o.href=`/block.html?example=${t}`;let p=document.createElement("br");o.appendChild(p);let m=document.createElement("h4");m.textContent=t,o.appendChild(m);let d=document.createElement("img");d.width=400,d.src=`/blocks/${t}/preview.png`,o.appendChild(d),e.appendChild(o),n.appendChild(e)}i.appendChild(n)}r.appendChild(i);u.appendChild(r);
//# sourceMappingURL=examples.js.map