abobykin / bingo

Bingo game for the website about productivity
0 stars 0 forks source link

TextArea and list of chores #4

Open Reasonab1e opened 3 months ago

Reasonab1e commented 3 months ago

@abobykin

I applied this code so that the textarea is filled list of chores after clicking on button generate, but it is filling without spaces and with commas, how can I fix this?

bandicam 2024-07-05 16-02-29-848

bandicam 2024-07-05 16-06-19-404

abobykin commented 3 months ago

You should use this method please - https://ru.stackoverflow.com/questions/939268/%D0%9A%D0%B0%D0%BA-%D0%B8%D0%B7-%D0%BC%D0%B0%D1%81%D1%81%D0%B8%D0%B2-%D0%BF%D0%B5%D1%80%D0%B5%D0%B2%D0%B5%D1%81%D1%82%D0%B8-%D0%B2-%D1%81%D1%82%D1%80%D0%BE%D0%BA%D1%83-%D0%B1%D0%B5%D0%B7-%D0%B7%D0%B0%D0%BF%D1%8F%D1%82%D1%8B%D1%85

join

And then combine this to knowledge about special symbol (for magic will happen with moving the next string element into the new line) from this article - https://sky.pro/wiki/html/dobavlyaem-perenosy-strok-v-html-textarea-s-pomoschyu-js/

Pleasant surprise for less worrying, this content is in Russian language this time !

@Reasonab1e

Reasonab1e commented 3 months ago

@abobykin Well, everything is done, thank you, it seems to be working. so now I need to make sure that the text that I enter into the textarea replaces the standard to-do list, how can I do this functionality?

bandicam 2024-07-06 13-17-03-622

abobykin commented 3 months ago

@Reasonab1e Well, I suggest the next way:

Ask me a question here on the go when you will start and spend some time on this, if complications you don't know how to "google" will find you.

Happy coding !

@Reasonab1e

abobykin commented 3 months ago

@Reasonab1e By the way start to hang on a ticket the label "in progress" by yourself during your work on something. It's needed for better view who is doing what )

Thank you!

abobykin commented 2 months ago

@Reasonab1e Maybe this may help:

Another approach is to check if the .value of textarea field is empty (.length of this string === 0) and only then set this default array of chores, otherwise use the .value of textarea field with chores.

ASK any questions regarding coding this task if you have them.

abobykin commented 2 months ago

@Reasonab1e ?

abobykin commented 2 months ago

@Reasonab1e Hello.

Where is the place in code you probably had stuck (where something's not working as expected maybe) and explanation would be helpful.

You could please ask any question, I will be glad to help, really !