Write JS to extract word onclick and store in JSON.

Completed Posted 7 years ago Paid on delivery
Completed Paid on delivery

Write Javascript code that populates a JSON object with information onclick of a word on an HTML page. The text could be formatted as follows:

-------------

Tú me dices que no es cierto que te mueres por mí 


si es verdad que no te gusto no te acerques así


me dijeron que te encanta que se mueran por ti


buscando al que se enamora para hacerlo sufrir.


Si me dices que me amas no te voy a creer (no)


Tú me dices que me quieres y no puedes ser fiel (no)

Me dejaste manejando solo y triste mujer (no)

Te confieso si lo quieres saber, si lo quieres saber.

------------------

From any clicked word, three JSON entries should be produced:

- the clicked word.

- the whole sentence in which the word is found.

- the same sentence, but with the clicked word blanked out.

As seen above, the text can contain diacritics, therefore UTF-8 formatting is necessary

JavaScript

Project ID: #12069766

About the project

8 proposals Remote project Active 7 years ago

Awarded to:

$25 USD in 1 day
(12 Reviews)
3.9

8 freelancers are bidding on average $51 for this job

caww5

Hi I can do it for you I work with Json/ajax/javascript/php every day You can be shure this project i can complete I just need to understand it more clear

$222 USD in 1 day
(3 Reviews)
2.6
bessemzitouni

Hi, I can develop this script for you at very low cost as i am experienced designers and developers. i want to have long term relations with my clients that's why working at very good prices. Hope you will give me a ch More

$30 USD in 1 day
(1 Review)
1.4
vikas8530

I have extensive work experience with JavaScript and related technologies.

$30 USD in 1 day
(2 Reviews)
1.2
abbasjami47

4+ years in web development. Specialist in WORDPRESS, CODEIGNITER, E-COMMERCE, CMS, CORE PHP, PROPERTY, RENTAL, TOURISM, PAYMENT GATEWAYS, PAYPAL, GOOGLE and RESPONSIVE DESIGNS. Bringing 4 years of WEB DEVELOPMENT More

$25 USD in 1 day
(0 Reviews)
0.0
oatsybob

I can do this task quickly and efficiently. I'm new to this site, so I'm keen to establish a good reputation.

$20 USD in 2 days
(0 Reviews)
0.0
yugankpant

A proposal has not yet been provided

$25 USD in 2 days
(0 Reviews)
0.0
knightaj

i have been working in js for more than 2 years!! i can gt this sorted quickly..

$30 USD in 1 day
(0 Reviews)
0.0