1 <?xml version=
"1.0" standalone=
"no"?>
2 <svg width=
"315px" height=
"445px" version=
"1.1" xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink">
3 <svg viewBox=
"0 0 21000 29700" id=
"thetarget">
6 function insertRect(x,y,w,h) {
7 const rect = document.createElementNS(
"http://www.w3.org/2000/svg",
"rect");
8 rect.setAttribute(
"x", x.toString());
9 rect.setAttribute(
"y", y.toString());
10 rect.setAttribute(
"height", h.toString());
11 rect.setAttribute(
"width", w.toString());
12 document.getElementById(
"thetarget").appendChild(rect);
21 for (let row =
0; row <=
60; row++) {
22 for (let col =
0; col <=
360; col++) {
23 insertRect(baseleft + col*coldiff + row, basetop + rowdiff*row, width, height);