From 6543271d218185c358fe9e4d439c2d82bfc63291 Mon Sep 17 00:00:00 2001 From: Maye85 Date: Wed, 22 May 2024 23:21:08 -0500 Subject: [PATCH 1/8] primera prueba de commit y push --- package-lock.json | 4 ++-- src/index.html | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index ef1c093..b531843 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "card-validation", + "name": "text-analyzer", "version": "1.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "card-validation", + "name": "text-analyzer", "version": "1.0.0", "license": "MIT", "devDependencies": { diff --git a/src/index.html b/src/index.html index 3f32ea9..2a52ade 100644 --- a/src/index.html +++ b/src/index.html @@ -8,6 +8,7 @@ +

holis

\ No newline at end of file From 46ea6b0c363e18beb74c207f4f213aaaf602a384 Mon Sep 17 00:00:00 2001 From: Maye85 Date: Wed, 22 May 2024 23:55:04 -0500 Subject: [PATCH 2/8] =?UTF-8?q?a=C3=B1ado=20mi=20nombre?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.html b/src/index.html index 2a52ade..6d7d568 100644 --- a/src/index.html +++ b/src/index.html @@ -9,6 +9,7 @@

holis

+

Mayerling

\ No newline at end of file From 83b95e00367342aa8ca495e7c1c9f4e0f42c880f Mon Sep 17 00:00:00 2001 From: Maye85 Date: Thu, 23 May 2024 02:01:05 -0500 Subject: [PATCH 3/8] =?UTF-8?q?se=20agreg=C3=B3=20texto=20y=20color=20de?= =?UTF-8?q?=20fondo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.html | 18 ++++++++++++++++-- src/style.css | 21 +++++++++++++++++++++ 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/src/index.html b/src/index.html index 6d7d568..8a4438b 100644 --- a/src/index.html +++ b/src/index.html @@ -8,8 +8,22 @@ -

holis

-

Mayerling

+
+

Analizador de texto

+
+

Te presentamos una herramienta para contar las metricas de textos, que te ayudará a saber la cantidad de palabras para establecer tus tarifas en traduccioes

+ +
    +
  • CARACTERES
  • +
  • CARACTERES SIN ESPACIOS
  • +
  • PALABRAS
  • +
  • NÚMEROS
  • +
  • SUMA DE NÚMEROS
  • +
  • PROMEDIO DE LONGITUD
  • +
+
+

Mayerling Hernandez

+
\ No newline at end of file diff --git a/src/style.css b/src/style.css index e69de29..ac96f08 100644 --- a/src/style.css +++ b/src/style.css @@ -0,0 +1,21 @@ +h1 { + color: rgb(251, 251, 252); + font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; + +} + +h2{ + color:rgba(208, 185, 250, 0.808); + font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; + font-size: medium; +} +p { + color:rgb(57, 12, 129); + font-family: 'Times New Roman', Times, serif; + font-size: small +} + +html { + background: linear-gradient(to bottom,#8e59b6,#DEB4FF); +} + From be66211d89698f2c7887462b5c1e9a396a953767 Mon Sep 17 00:00:00 2001 From: Maye85 Date: Fri, 24 May 2024 11:34:35 -0500 Subject: [PATCH 4/8] primeros experimentos con el JS --- src/analyzer.js | 26 +++++++++++++------------- src/index.js | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/analyzer.js b/src/analyzer.js index 85797a8..edc9843 100644 --- a/src/analyzer.js +++ b/src/analyzer.js @@ -1,22 +1,22 @@ -const analyzer = { - getWordCount: (text) => { +const analyzer = { + getWordCount(text) { //TODO: esta función debe retornar el recuento de palabras que se encuentran en el parámetro `text` de tipo `string`. - }, - getCharacterCount: (text) => { + } + getCharacterCount(text) { //TODO: esta función debe retornar el recuento de caracteres que se encuentran en el parámetro `text` de tipo `string`. - }, - getCharacterCountExcludingSpaces: (text) => { + } + getCharacterCountExcludingSpaces(text) { //TODO: esta función debe retornar el recuento de caracteres excluyendo espacios y signos de puntuación que se encuentran en el parámetro `text` de tipo `string`. - }, - getAverageWordLength: (text) => { + } + getAverageWordLength(text) { //TODO: esta función debe retornar la longitud media de palabras que se encuentran en el parámetro `text` de tipo `string`. - }, - getNumberCount: (text) => { + } + getNumberCount(text) { //TODO: esta función debe retornar cúantos números se encuentran en el parámetro `text` de tipo `string`. - }, - getNumberSum: (text) => { + } + getNumberSum(text) { //TODO: esta función debe retornar la suma de todos los números que se encuentran en el parámetro `text` de tipo `string`. - }, + } }; export default analyzer; diff --git a/src/index.js b/src/index.js index 58ba255..c667484 100644 --- a/src/index.js +++ b/src/index.js @@ -1,3 +1,3 @@ import analyzer from './analyzer.js'; -//TODO: escuchar eventos del DOM e invocar los métodos del objeto `analyzer` \ No newline at end of file +//TODO: escuchar eventos del DOM e invocar los métodos del objeto `analyzer` From 4205defbced133a501318f62f04d67260971dbd5 Mon Sep 17 00:00:00 2001 From: Maye85 Date: Fri, 24 May 2024 18:15:08 -0500 Subject: [PATCH 5/8] arreglos al wordCount --- src/analyzer.js | 25 +++++++++++++------------ src/index.html | 19 +++++++++++++++++-- src/index.js | 12 ++++++++++++ src/style.css | 26 ++++++++++++++++++++++++++ 4 files changed, 68 insertions(+), 14 deletions(-) diff --git a/src/analyzer.js b/src/analyzer.js index edc9843..d187b97 100644 --- a/src/analyzer.js +++ b/src/analyzer.js @@ -1,20 +1,21 @@ -const analyzer = { - getWordCount(text) { +const analyzer = { + getWordCount: (text) => { //TODO: esta función debe retornar el recuento de palabras que se encuentran en el parámetro `text` de tipo `string`. - } - getCharacterCount(text) { + + }, + getCharacterCount: (text) => { //TODO: esta función debe retornar el recuento de caracteres que se encuentran en el parámetro `text` de tipo `string`. - } - getCharacterCountExcludingSpaces(text) { + }, + getCharacterCountExcludingSpaces: (text) => { //TODO: esta función debe retornar el recuento de caracteres excluyendo espacios y signos de puntuación que se encuentran en el parámetro `text` de tipo `string`. - } - getAverageWordLength(text) { + }, + getAverageWordLength: (text) => { //TODO: esta función debe retornar la longitud media de palabras que se encuentran en el parámetro `text` de tipo `string`. - } - getNumberCount(text) { + }, + getNumberCount: (text) => { //TODO: esta función debe retornar cúantos números se encuentran en el parámetro `text` de tipo `string`. - } - getNumberSum(text) { + }, + getNumberSum: (text) => { //TODO: esta función debe retornar la suma de todos los números que se encuentran en el parámetro `text` de tipo `string`. } }; diff --git a/src/index.html b/src/index.html index 6d7d568..92dd7ea 100644 --- a/src/index.html +++ b/src/index.html @@ -8,8 +8,23 @@ -

holis

-

Mayerling

+
+

Analizador de texto

+
+

Te presentamos una herramienta para contar las metricas de textos, que te ayudará a saber la cantidad de palabras para establecer tus tarifas en traducciones

+ +
    +
  • CARACTERES
  • +
  • CARACTERES SIN ESPACIOS
  • +
  • PALABRAS
  • +
  • NÚMEROS
  • +
  • SUMA DE NÚMEROS
  • +
  • PROMEDIO DE LONGITUD
  • +
+ +
+

Mayerling Hernandez

+
\ No newline at end of file diff --git a/src/index.js b/src/index.js index c667484..8600529 100644 --- a/src/index.js +++ b/src/index.js @@ -1,3 +1,15 @@ import analyzer from './analyzer.js'; //TODO: escuchar eventos del DOM e invocar los métodos del objeto `analyzer` + +//console.log("si estoy contando"); + +const textareas = document.getElementsByName("textarea"); +const textarea = textareas[0]; +//console.log(textarea); + +textarea.addEventListener("input",() => { + + const wordCount = analyzer.getWordCount(textarea.value); + console.log("recuento",wordCount); +}); \ No newline at end of file diff --git a/src/style.css b/src/style.css index e69de29..55b52fd 100644 --- a/src/style.css +++ b/src/style.css @@ -0,0 +1,26 @@ +h1 { + color: rgb(251, 251, 252); + font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; + +} + +h2{ + color:rgba(208, 185, 250, 0.808); + font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; + font-size: medium; +} +p { + color:rgb(57, 12, 129); + font-family: 'Times New Roman', Times, serif; + font-size: small +} + +html { + background: linear-gradient(to bottom,#8e59b6,#DEB4FF); +} + +#limpiar { + background-color: rgb(235, 240, 239); + text-align: center; + border-radius: 35px; +} \ No newline at end of file From 9220cf65b1b7fc4e6c1c5ef28d5570e33ab7c791 Mon Sep 17 00:00:00 2001 From: Maye85 Date: Sat, 25 May 2024 09:11:29 -0500 Subject: [PATCH 6/8] cam index.html cambio lisette --- src/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.html b/src/index.html index 92dd7ea..e719e7f 100644 --- a/src/index.html +++ b/src/index.html @@ -11,6 +11,7 @@

Analizador de texto

+

Este es el q va a subir lisette

Te presentamos una herramienta para contar las metricas de textos, que te ayudará a saber la cantidad de palabras para establecer tus tarifas en traducciones

From a07eaa8bc4fc5533f3fbfcb973a6c579d61a849c Mon Sep 17 00:00:00 2001 From: Maye85 Date: Sun, 26 May 2024 03:32:13 -0500 Subject: [PATCH 7/8] intento de darle funcionalidad al boton reset --- src/index.html | 7 ++----- src/index.js | 7 +++++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/index.html b/src/index.html index e2a5425..9f6a5f9 100644 --- a/src/index.html +++ b/src/index.html @@ -12,12 +12,9 @@

Analizador de texto

-

Este es el q va a subir lisette

Te presentamos una herramienta para contar las metricas de textos, que te ayudará a saber la cantidad de palabras para establecer tus tarifas en traducciones

- - - +
  • CARACTERES
  • CARACTERES SIN ESPACIOS
  • @@ -27,7 +24,7 @@

    Te presentamos una herramienta para contar las metricas de textos, que te ay
  • PROMEDIO DE LONGITUD
- +