Skip to content

Commit

Permalink
Updated pages
Browse files Browse the repository at this point in the history
  • Loading branch information
reionize committed Jul 20, 2024
1 parent f582f12 commit 997b7c6
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions temp.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,20 @@
.then(function(response) {
response.text().then(function(text) {
pixels = text;
});
});
console.log(pixels);
const cols = pixels.trim().split(" ");
for (const c of cols) {
console.log(c);
for (let i=0; i<8; i++) {
let cell = rows[i].insertCell();
cell.textContent = c.charAt(i);
console.log(pixels);
const cols = pixels.trim().split(" ");
for (const c of cols) {
// console.log(c);
for (let i=0; i<8; i++) {
let cell = rows[i].insertCell();
let d = c.charAt(i);
cell.textContent = d;
if (d === "0") { cell.style="color: #fefefa;" }
else if (d === "1") { cell.style="background-color: #28282a;" }
}
}
});
});
}
</script>
</head>
Expand Down

0 comments on commit 997b7c6

Please sign in to comment.