Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette committed Mar 2, 2024
1 parent d9a8062 commit dc1a004
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
result.textContent = `${lastValue} (${valueCount})`;

if (valueCount === 3 && !seen[value]) {
seen[value] = true;
const w = video.videoWidth;
const h = video.videoHeight;
const imgCanvas = document.createElement("canvas");
Expand All @@ -61,7 +62,11 @@
const img = document.createElement("img");
img.src = imageSrc;

const text = document.createElement("p");
text.textContent = value;

const container = document.getElementById("seen");
container.appendChild(text);
container.appendChild(img);
}

Expand Down

0 comments on commit dc1a004

Please sign in to comment.