JS text selection bug fix
Budget: $10 – $30 USD
Before you bid!!! You should have a real iPhone to test this. If you don't have please don't bid. Also the text might seem long, but it's simple, just trying to explain exactly what's needed.
Check this Codepen link: https://codepen.io/profitable/pen/PoddoQp
Please make sure you can fix the code so that the following works perfectly as there are some bugs now:
1- If the blue button is "1", it will select any clicked word even if duplicate words exists (try clicking is, it selects is from the first word).
2- If you click the blue button it becomes "2" and should allows selecting any two words that are next to each other whether the first word is clicked first or the 2nd word is clicked first. (Try selecting word + is)
3- If you click on the blue button again, it becomes "3", so it should allow you to select any 3 words that are next to each other whether you clicked them in order or not.
PS: The above should word perfectly on Chrome for iPhone (not emulator). Currently it only works if you click the first letter of the word. Also your fix should not affect the way mark.js currently works on the page.
Check this Codepen link: https://codepen.io/profitable/pen/PoddoQp
Please make sure you can fix the code so that the following works perfectly as there are some bugs now:
1- If the blue button is "1", it will select any clicked word even if duplicate words exists (try clicking is, it selects is from the first word).
2- If you click the blue button it becomes "2" and should allows selecting any two words that are next to each other whether the first word is clicked first or the 2nd word is clicked first. (Try selecting word + is)
3- If you click on the blue button again, it becomes "3", so it should allow you to select any 3 words that are next to each other whether you clicked them in order or not.
PS: The above should word perfectly on Chrome for iPhone (not emulator). Currently it only works if you click the first letter of the word. Also your fix should not affect the way mark.js currently works on the page.