We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a0ac4b commit b13e8c7Copy full SHA for b13e8c7
1 file changed
webcamstudy/src/components/TextTask.jsx
@@ -35,7 +35,6 @@ He chortled in his joy.
35
Did gyre and gimble in the wabe:
36
All mimsy were the borogoves,
37
And the mome raths outgrabe.`,
38
- // Add your other texts here
39
];
40
41
function pickRandomText() {
@@ -51,7 +50,6 @@ const TextTask = () => {
51
50
const timer = setTimeout(() => {
52
setShowCross(false);
53
}, 1000);
54
-
55
return () => clearTimeout(timer);
56
}, []);
57
@@ -75,8 +73,7 @@ const TextTask = () => {
75
73
wordBlock.classList.add("word-block");
76
74
77
if (isWord) {
78
- wordBlock.dataset.sentence = sentenceCount;
79
- wordBlock.dataset.word = wordCount;
+ wordBlock.setAttribute("data-re-aoi-name", `s${sentenceCount}-w${wordCount}`);
80
}
81
82
word.split('').forEach(char => {
0 commit comments