Alforoan
Alforoan
RReactiflux
Created by Alforoan on 10/27/2023 in #help-js
alforoan – 00-44 Oct 27
no worries
6 replies
RReactiflux
Created by Alforoan on 10/27/2023 in #help-js
alforoan – 00-44 Oct 27
but it goes str8 to e
6 replies
RReactiflux
Created by Alforoan on 10/27/2023 in #help-js
alforoan – 00-44 Oct 27
so if i typed "ddddd" for 'pull' and typed "d' after, p in pendant shoudl be marked wrong
6 replies
RReactiflux
Created by Alforoan on 10/27/2023 in #help-js
alforoan – 00-44 Oct 27
No description
6 replies
RReactiflux
Created by Alforoan on 10/27/2023 in #help-js
alforoan – 00-44 Oct 27
https://jsfiddle.net/5yjpubs8/ problem: if the word i have to type is "dispose " (last letter is an empty string) and i type something like "ffffffff" (last letter is an f instead of an empty string) game.j index becomes 1 if i type the start of the next word even though it should start at index of 0
6 replies
RReactiflux
Created by Alforoan on 10/24/2023 in #help-js
alforoan – 05-45 Oct 24
highlightedWord += `<span class="highlight">${word[j]}</span>
highlightedWord += `<span class="highlight">${word[j]}</span>
`; so for that instead of word[j] i would be putting the matching word or something?
16 replies
RReactiflux
Created by Alforoan on 10/24/2023 in #help-js
alforoan – 05-45 Oct 24
no idc about that, i just want what i want to work lol
16 replies
RReactiflux
Created by Alforoan on 10/24/2023 in #help-js
alforoan – 05-45 Oct 24
i see what u mean
16 replies
RReactiflux
Created by Alforoan on 10/24/2023 in #help-js
alforoan – 05-45 Oct 24
oh wait
16 replies
RReactiflux
Created by Alforoan on 10/24/2023 in #help-js
alforoan – 05-45 Oct 24
but that wouldnt highlight each letter tho right
16 replies
RReactiflux
Created by Alforoan on 10/24/2023 in #help-js
alforoan – 05-45 Oct 24
wdym? like <span> for start of the word and </span> for the end of the word?
16 replies
RReactiflux
Created by Alforoan on 10/24/2023 in #help-js
alforoan – 05-45 Oct 24
no worries 🙂
16 replies
RReactiflux
Created by Alforoan on 10/24/2023 in #help-js
alforoan – 05-45 Oct 24
because of my
i === currentIndex
i === currentIndex
check, only the next word is highlighted, but otherwise other words would have similar issues
16 replies
RReactiflux
Created by Alforoan on 10/24/2023 in #help-js
alforoan – 05-45 Oct 24
is that right
16 replies
RReactiflux
Created by Alforoan on 10/24/2023 in #help-js
alforoan – 05-45 Oct 24
the way i see it is in the nested for loop
highlightedWord += `<span class="highlight">${word[j]}</span>`;
highlightedWord += `<span class="highlight">${word[j]}</span>`;
that is the reason why letters in other words are highlighted
16 replies
RReactiflux
Created by Alforoan on 10/24/2023 in #help-js
alforoan – 05-45 Oct 24
i guessi couldn't really understand why that'd cause the issue i'm having
16 replies
RReactiflux
Created by Alforoan on 10/24/2023 in #help-js
alforoan – 05-45 Oct 24
my problem is when i type matching letters, some letters in other words also get highlighted
16 replies
RReactiflux
Created by Alforoan on 10/24/2023 in #help-js
alforoan – 05-45 Oct 24
yes, so if you ever played play.typeracer.com, that's exactly how i want it to be. it highlights the current word as u type it correctly, press spacebar when the current word is fully matched = delete the input, start typing the next word
16 replies
RReactiflux
Created by Alforoan on 10/24/2023 in #help-js
alforoan – 05-45 Oct 24
16 replies