create account

Construye galerías de imágenes con Hive Translator 🇪🇸 🇬🇧 by noakmilo

View this thread on: hive.blogpeakd.comecency.com
· @noakmilo · (edited)
$0.86
Construye galerías de imágenes con Hive Translator 🇪🇸 🇬🇧
<center>

[![](https://ipfs-3speak.b-cdn.net/ipfs/bafkreifh3sqzlrv7ukcvrewkzjkaf6ummysrk7d5qqux7prcpqylvpq42u/)](https://3speak.tv/watch?v=noakmilo/inhqafhc)

▶️ [Watch on 3Speak](https://3speak.tv/watch?v=noakmilo/inhqafhc)

</center>

---

![gallery.png](https://files.peakd.com/file/peakd-hive/noakmilo/23wXR5a9G379jtuysNAQ7dhxETCCYkqi6h45k6bAfzG3XcixtsLWUU5Usd16akMfgTseD.png)


<details>
<summary>ENGLISH VERSION</summary><p>
Hello dear HiveDevs friends, today I come to present you one of the last functions I have added to HiveTranslator.com. But first let me have a small pitch.

Hive Translator is a translator and text formatter for Hive, developed by me, from Cuba 🇨🇺 for the blockchain. It is an accessibility tool that allows users to build bilingual posts for communities that allow it. And by the way, overcome the language barrier.

The feature I present to you today has little to do with the main function of the app. But it has been quite demanded by the community. It is an option of format to add image galleries to our posts. For this, it simply uses some javascript running on Flask to concatenate the markdown codes of images with those of a table and build a gallery. Next I show you the code fragment of said function.
</p></details>

<p>
Hola queridos amigos de HiveDevs, hoy vengo a presentarles una de las últimas funciones que he agregado a HiveTranslator.com. Pero antes permítanme un pequño pitch.

Hive Translator es un traductor y maquetador de textos para Hive, desarrollado por mí, desde Cuba 🇨🇺 para la blockchain. Se trata de una herramienta de accesibilidad que permite a los usuarios construír posts bilingues para las comunidades que así lo permitan. Y de paso, sortear la barrera lingüística.

El feature que les presento hoy no tiene mucho que ver con la función principal del app. Pero sí ha sido bastante demandada por la comunidiad. Se trata de una opción de formato para agregar galerías de imágenes a nuestros posts. Para ello, simplemente utiliza algo de javascript corriendo sobre Flask para concatenar los códigos markdown de imágenes con los de una tabla y construir una galería. A continuación les muestro el fragmento de código de dicha función.

```
function buildGallery() {
   var textarea = document.getElementById('input-text');
   var startPos = textarea.selectionStart;
   var selectedText = textarea.value.substring(startPos);
   var img1 = document.getElementById('image1');
   var img2 = document.getElementById('image2');
   var img3 = document.getElementById('image3');
   var dialogo = document.getElementById("gallery");
   var replacement;
                
   if (img3.value !== "") {
      replacement = '|' + img1.value + '|' + img2.value + '|' + img3.value + '|' + '\n' + '|-|-|-|' + '\n';
      } else {
            replacement = '|' + img1.value + '|' + img2.value + '|' + '\n' + '|-|-|' + '\n';
      }

      textarea.value = textarea.value.substring(0, startPos) + replacement + selectedText;
   dialogo.style.display = "none";
 }

```

## Apoya este post

- Rebloguea el post 🔁 
- Comparte en las redes sociales #Web2 🔗
- Comenta para debatir y gana recompensas manuales 💬

## Recursos empleados

|**RECURSO / RESOURCE**|**FUENTE / SOURCE**|
|-|-|
|**Edición / Edition:** |@noakmilo|
|**Texto / Text:**|@noakmilo| 
|**Imágenes / Pictures:**|Canva, @noakmilo, Hive Translator, Google Analytics, OpenAI|

---

▶️ [3Speak](https://3speak.tv/watch?v=noakmilo/inhqafhc)
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 4 others
properties (23)
authornoakmilo
permlinkinhqafhc
categoryhive-139531
json_metadata"{"tags":["hivedevs","devs","cuba","python","buildinpublic","javascript","mvp","html","css","frontend"],"app":"3speak/0.3.0","type":"3speak/video","image":["https://files.peakd.com/file/peakd-hive/noakmilo/23wXR5a9G379jtuysNAQ7dhxETCCYkqi6h45k6bAfzG3XcixtsLWUU5Usd16akMfgTseD.png"],"video":{"info":{"platform":"3speak","title":"Contruye galerías de imágenes con Hive Translator 🇪🇸 🇬🇧","author":"noakmilo","permlink":"inhqafhc","duration":338.766667,"filesize":58825218,"file":"ipfs://bafybeieojjp2qvvrux52qsbzomypnptoi5ssqddmvskehjddgt3hnld2ty","lang":"es","firstUpload":false,"ipfs":null,"ipfsThumbnail":null,"video_v2":"ipfs://QmfZ4YmtjQ9Vx44bieaD3pvtnS6zRESA8YMYYL8C5gNj6V/manifest.m3u8","sourceMap":[{"type":"video","url":"ipfs://QmfZ4YmtjQ9Vx44bieaD3pvtnS6zRESA8YMYYL8C5gNj6V/manifest.m3u8","format":"m3u8"},{"type":"thumbnail","url":"ipfs://bafkreifh3sqzlrv7ukcvrewkzjkaf6ummysrk7d5qqux7prcpqylvpq42u"}]},"content":{"description":"![gallery.png](https://files.peakd.com/file/peakd-hive/noakmilo/23wXR5a9G379jtuysNAQ7dhxETCCYkqi6h45k6bAfzG3XcixtsLWUU5Usd16akMfgTseD.png)\r\n\r\n\r\n<details>\r\n<summary>ENGLISH VERSION</summary><p>\r\nHello dear HiveDevs friends, today I come to present you one of the last functions I have added to HiveTranslator.com. But first let me have a small pitch.\r\n\r\nHive Translator is a translator and text formatter for Hive, developed by me, from Cuba 🇨🇺 for the blockchain. It is an accessibility tool that allows users to build bilingual posts for communities that allow it. And by the way, overcome the language barrier.\r\n\r\nThe feature I present to you today has little to do with the main function of the app. But it has been quite demanded by the community. It is an option of format to add image galleries to our posts. For this, it simply uses some javascript running on Flask to concatenate the markdown codes of images with those of a table and build a gallery. Next I show you the code fragment of said function.\r\n</p></details>\r\n\r\n<p>\r\nHola queridos amigos de HiveDevs, hoy vengo a presentarles una de las últimas funciones que he agregado a HiveTranslator.com. Pero antes permítanme un pequño pitch.\r\n\r\nHive Translator es un traductor y maquetador de textos para Hive, desarrollado por mí, desde Cuba 🇨🇺 para la blockchain. Se trata de una herramienta de accesibilidad que permite a los usuarios construír posts bilingues para las comunidades que así lo permitan. Y de paso, sortear la barrera lingüística.\r\n\r\nEl feature que les presento hoy no tiene mucho que ver con la función principal del app. Pero sí ha sido bastante demandada por la comunidiad. Se trata de una opción de formato para agregar galerías de imágenes a nuestros posts. Para ello, simplemente utiliza algo de javascript corriendo sobre Flask para concatenar los códigos markdown de imágenes con los de una tabla y construir una galería. A continuación les muestro el fragmento de código de dicha función.\r\n\r\n```\r\nfunction buildGallery() {\r\n var textarea = document.getElementById('input-text');\r\n var startPos = textarea.selectionStart;\r\n var selectedText = textarea.value.substring(startPos);\r\n var img1 = document.getElementById('image1');\r\n var img2 = document.getElementById('image2');\r\n var img3 = document.getElementById('image3');\r\n var dialogo = document.getElementById(\"gallery\");\r\n var replacement;\r\n \r\n if (img3.value !== \"\") {\r\n replacement = '|' + img1.value + '|' + img2.value + '|' + img3.value + '|' + '\\n' + '|-|-|-|' + '\\n';\r\n } else {\r\n replacement = '|' + img1.value + '|' + img2.value + '|' + '\\n' + '|-|-|' + '\\n';\r\n }\r\n\r\n textarea.value = textarea.value.substring(0, startPos) + replacement + selectedText;\r\n dialogo.style.display = \"none\";\r\n }\r\n\r\n```\r\n\r\n## Apoya este post\r\n\r\n- Rebloguea el post 🔁 \r\n- Comparte en las redes sociales #Web2 🔗\r\n- Comenta para debatir y gana recompensas manuales 💬\r\n\r\n## Recursos empleados\r\n\r\n|**RECURSO / RESOURCE**|**FUENTE / SOURCE**|\r\n|-|-|\r\n|**Edición / Edition:** |@noakmilo|\r\n|**Texto / Text:**|@noakmilo| \r\n|**Imágenes / Pictures:**|Canva, @noakmilo, Hive Translator, Google Analytics, OpenAI|","tags":["hivedevs","devs","cuba","python","buildinpublic","javascript","mvp","html","css","frontend","translation"]}},"users":["noakmilo"],"format":"markdown"}"
created2023-05-22 19:04:06
last_update2023-05-22 20:59:15
depth0
children9
last_payout2023-05-29 19:04:06
cashout_time1969-12-31 23:59:59
total_payout_value0.408 HBD
curator_payout_value0.447 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,497
author_reputation316,979,969,664,499
root_title"Construye galerías de imágenes con Hive Translator 🇪🇸 🇬🇧"
beneficiaries
0.
accountactifit-he
weight100
1.
accountspk.beneficiary
weight900
2.
accountthreespeakleader
weight100
max_accepted_payout100,000.000 HBD
percent_hbd10,000
post_id123,736,726
net_rshares1,947,873,340,480
author_curate_reward""
vote details (68)
@avdesing ·
Impresionante las nuevas funcionalidades @noakmilo, que genial como está quedando. Que genio!! 

Saludos Kmilo!✨
👍  
properties (23)
authoravdesing
permlinkre-noakmilo-rv2rhx
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2023.5.1"}
created2023-05-22 19:29:57
last_update2023-05-22 19:29:57
depth1
children0
last_payout2023-05-29 19:29:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length112
author_reputation655,363,725,011,207
root_title"Construye galerías de imágenes con Hive Translator 🇪🇸 🇬🇧"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id123,737,385
net_rshares0
author_curate_reward""
vote details (1)
@creacioneslelys ·
Yo te felicito por tu empeño por proporcionarnos esta nueva herramienta e ir actualizándola para mejorarla. Espero aprender sobre esto 😃 pronto. Muchos saludos @noakmilo 
properties (22)
authorcreacioneslelys
permlinkre-noakmilo-rv2sht
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2023.5.1"}
created2023-05-22 19:51:36
last_update2023-05-22 19:51:36
depth1
children0
last_payout2023-05-29 19:51:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length170
author_reputation514,391,288,433,000
root_title"Construye galerías de imágenes con Hive Translator 🇪🇸 🇬🇧"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id123,737,873
net_rshares0
@davidpena21 ·
Saludos amigo, muchas felicidades por todo ese trabajo que está haciendo para facilitar el trabajo a muchos hivers, todavía no le he probado, pero he visto cada uno de los videos y las funciones que les están implementando son geniales, además un gran trabajo de programación. Muy útil para crear esas galerías, siempre se aprende algo nuevo en hive, por eso esas clases son de gran ayuda. Muchas felicidades amigo. 
properties (22)
authordavidpena21
permlinkre-noakmilo-2023522t203645158z
categoryhive-139531
json_metadata{"tags":["hivedevs","devs","cuba","python","buildinpublic","javascript","mvp","html","css","frontend"],"app":"ecency/3.0.31-vision","format":"markdown+html"}
created2023-05-23 00:36:45
last_update2023-05-23 00:36:45
depth1
children1
last_payout2023-05-30 00:36:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length416
author_reputation722,698,654,492,492
root_title"Construye galerías de imágenes con Hive Translator 🇪🇸 🇬🇧"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id123,744,384
net_rshares0
@noakmilo ·
Muchisimas gracias por el apoyo amigo.<div><a href="https://engage.hivechain.app">![](https://i.imgur.com/XsrNmcl.png)</a></div>
properties (22)
authornoakmilo
permlinkre-1684877732178
categoryhive-139531
json_metadata{"app":"engage"}
created2023-05-23 21:35:33
last_update2023-05-23 21:35:33
depth2
children0
last_payout2023-05-30 21:35:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length128
author_reputation316,979,969,664,499
root_title"Construye galerías de imágenes con Hive Translator 🇪🇸 🇬🇧"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id123,770,167
net_rshares0
@filoriologo ·
Te estoy stalkeando y me díi cuenta que no había visto este video. Tengo que ponerlo aprueba lo antes posible. Lo pruebo y te aviso que tal, pero, esta funcionalidad esta genial. 
properties (22)
authorfiloriologo
permlinkre-noakmilo-rvxszv
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2023.6.2"}
created2023-06-08 13:48:00
last_update2023-06-08 13:48:00
depth1
children0
last_payout2023-06-15 13:48:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length179
author_reputation468,823,075,645,050
root_title"Construye galerías de imágenes con Hive Translator 🇪🇸 🇬🇧"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id124,264,655
net_rshares0
@janusmolinovsky ·
Genial

properties (22)
authorjanusmolinovsky
permlinkre-noakmilo-rv3aqj
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2023.5.1"}
created2023-05-23 02:25:30
last_update2023-05-23 02:25:30
depth1
children1
last_payout2023-05-30 02:25:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length8
author_reputation79,008,928,338,935
root_title"Construye galerías de imágenes con Hive Translator 🇪🇸 🇬🇧"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id123,746,531
net_rshares0
@noakmilo ·
🥰<div><a href="https://engage.hivechain.app">![](https://i.imgur.com/XsrNmcl.png)</a></div>
properties (22)
authornoakmilo
permlinkre-1684877744279
categoryhive-139531
json_metadata{"app":"engage"}
created2023-05-23 21:35:45
last_update2023-05-23 21:35:45
depth2
children0
last_payout2023-05-30 21:35:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length91
author_reputation316,979,969,664,499
root_title"Construye galerías de imágenes con Hive Translator 🇪🇸 🇬🇧"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id123,770,170
net_rshares0
@yecier ·
Bueno puedo decir que aprendí algo que no sabía sobre poder hacer galerías en Hive. ¿Kmilo no has pensado subir estos videos a Youtube una vez pasen los 7 días? No solo le das la primicia a Hive sino que (si lograr monetizar) le alargas la vida recaudatoria al video hasta el infinito y sobre todo encuentras un público allí que no conoce la web3 y que puedes atraer hasta Hive.

Casi pienso que se me había jodido el fan de la laptop viendo el video jajaja. 
properties (22)
authoryecier
permlinkre-noakmilo-2023523t16439839z
categoryhive-139531
json_metadata{"tags":["hivedevs","devs","cuba","python","buildinpublic","javascript","mvp","html","css","frontend"],"app":"ecency/3.0.31-vision","format":"markdown+html"}
created2023-05-23 21:04:36
last_update2023-05-23 21:04:36
depth1
children1
last_payout2023-05-30 21:04:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length459
author_reputation61,189,950,927,997
root_title"Construye galerías de imágenes con Hive Translator 🇪🇸 🇬🇧"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id123,769,475
net_rshares0
@noakmilo ·
Puede ser, pero tengo mi canal de Youtube tan desorganizado que me pesa jajajajaj... gracias mil por el apoyo bro!
properties (22)
authornoakmilo
permlinkre-yecier-rv4qu6
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2023.5.1"}
created2023-05-23 21:10:57
last_update2023-05-23 21:10:57
depth2
children0
last_payout2023-05-30 21:10:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length114
author_reputation316,979,969,664,499
root_title"Construye galerías de imágenes con Hive Translator 🇪🇸 🇬🇧"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id123,769,593
net_rshares0