Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CharlesAMoss/24ded870a65481c89df10c73e8198843 to your computer and use it in GitHub Desktop.
Save CharlesAMoss/24ded870a65481c89df10c73e8198843 to your computer and use it in GitHub Desktop.
griddle me this
const entry = document.getElementById("entry");
// every journey begins with one step
const svg = document.createElement("svg");
svg.setAttribute("width", "100%");
svg.setAttribute("height", "100%");
const g = document.createElement("g");
const box = document.createElement("rect");
box.setAttribute("width", 10);
box.setAttribute("height", 10);
box.setAttribute("stroke", 1);
// box.setAttribute("fill", color);
// box.setAttribute("id", identity);
g.appendChild(box);
svg.appendChild(g);
entry.appendChild(svg);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment