Skip to content

Commit b13e8c7

Browse files
please work
1 parent 0a0ac4b commit b13e8c7

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

webcamstudy/src/components/TextTask.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ He chortled in his joy.
3535
Did gyre and gimble in the wabe:
3636
All mimsy were the borogoves,
3737
And the mome raths outgrabe.`,
38-
// Add your other texts here
3938
];
4039

4140
function pickRandomText() {
@@ -51,7 +50,6 @@ const TextTask = () => {
5150
const timer = setTimeout(() => {
5251
setShowCross(false);
5352
}, 1000);
54-
5553
return () => clearTimeout(timer);
5654
}, []);
5755

@@ -75,8 +73,7 @@ const TextTask = () => {
7573
wordBlock.classList.add("word-block");
7674

7775
if (isWord) {
78-
wordBlock.dataset.sentence = sentenceCount;
79-
wordBlock.dataset.word = wordCount;
76+
wordBlock.setAttribute("data-re-aoi-name", `s${sentenceCount}-w${wordCount}`);
8077
}
8178

8279
word.split('').forEach(char => {

0 commit comments

Comments
 (0)