Posts by Thales Henrique • 134 points
20 posts
-
-1
votes1
answer143
viewsQ: Transforming an object into an array
I have the return of such an object: response = { 1: "Julio", 2: "Rubens", 3: "Narciso", 4: "Elton", 5: "Junior" } and would like to create an array with all names, e.g.: array = ["Julio", "Rubens",…
javascriptasked Thales Henrique 134 -
0
votes1
answer102
viewsQ: Break line with <img> and <p> inside an <ion-button> - IONIC 5
I have the following HTML: <ion-grid fixed> <ion-row> <ion-col size="12"> <ion-button (click)="go('adopt')" class="button" color="dark"> <img…
-
0
votes1
answer43
viewsA: Capture Touchevent from the device to use it on the screen
I found the bug need to be using only index [1] only in res; And was using in touches also the corrected code was like this: const posicaoAnterior = { x: res[0].touches[0].clientX - rect.left, y:…
-
0
votes1
answer43
viewsQ: Capture Touchevent from the device to use it on the screen
I have the following Javascript code, but it does not capture touch commands, anyone knows why? If I’m using some incorrect syntax or something? private capturarEventoTouch(componente:…
-
-1
votes1
answer126
viewsQ: How to keep the line of a bootstrap table active looking
would like to know how to keep a row as active from the table by default, without passing the mouse, in case it would be to be selected one of 4 options available in each row. Ex: In case I leave…
-
1
votes1
answer32
viewsQ: Split a button to change the background of part of it
I would like to do the same on this button in the chaos, split to use the 4 with the gray background and the rest in the common white, Obs. I’m using the Bootstrap 4 button.…
-
0
votes1
answer1190
viewsQ: Placing an image with in a React component
I am using an React component with the following code: import React from 'react' import './styles.css' import logo from './icons/logo.svg' import { FontAwesomeIcon } from…
-
0
votes5
answers388
viewsQ: How to exclude only a certain data from a React state
Today I have the following constant: const alunos = [{ id: 1, nome: 'Julia', curso: 'Enfermagem', }, { id: 2, nome: 'Isabela', curso: 'Veterinária' }] but I would need to just erase the id data,…
-
1
votes1
answer28
viewsQ: Storing data from a constant as props
I have the following constant: const: lista = [{ id: 1, poke: 'Pikachu', desc: 'Pokemon do tipo elétrico', }, { id: 2, poke: 'Squirtle', desc: 'Pokemon do tipo água', }] And I need a component to…
-
2
votes2
answers52
viewsQ: How you use < as text
I would like to know how I could use the symbol as text in my HTML code for example I would like to write < The Majestic > only between the symbols of major and minor.
-
0
votes0
answers40
viewsQ: Add dollar sign and complete value that was consumed by an API
I have following problem my page, I would like to show up R$ and that the amount was completed. I have the following HTML: <!-- <INICIO CARDS> --> <div class="primeira-card">…
-
0
votes1
answer44
viewsQ: Problem consuming API data and transferring a SRC to the ID
I have the following HTML code: <main> <blockquote class="blockquote text-center">Últimos produtos</blockquote> <!-- <INICIO CARDS> --> <div…
-
0
votes1
answer61
viewsQ: Consume this JSON because I am encountering an error
I have this JSON: API JSON But when I consume it I get this error VM414 index.html:1 Access to fetch at 'https://thaleshenrique38.000webhostapp.com/products.json' from origin 'http://127.0.0.1:5500'…
-
-1
votes1
answer994
viewsQ: Consume a JSON with Javascript!
I have a JSON with the following data of some products: Name Photo Price And I have some HTML cards that I would like them to present themselves there; how could I consume this JSON to show it…
-
1
votes1
answer4261
viewsQ: Limit Python number input 3
Using the following code I want to limit from 0 to 2000 the number that can be informed by the variable in a import collections num = int(input('Digite um número inteiro: ')) #Inputar número inteiro…
-
0
votes1
answer110
viewsQ: Pass a given sequence of times in Python 3
I have the following sequence: {1,4,12,28,45,22} I need a variable for example: seguinte = input(num('Insira um número: ')) According to the number given, he would pass the last item to the…
-
0
votes3
answers250
viewsA: How to make an html page start at a certain position?
All right Vinicius? You can use the anchoring method! If you have an ID of the exact location you want to take the user, just anchor it in this way: <a href="#topo">LINK</a> <div…
htmlanswered Thales Henrique 134 -
0
votes1
answer448
viewsQ: Find the largest sequence using Python
I have the following code: import collections num = int(input('Digite um número inteiro: ')) #Inputar número inteiro binario = bin(num)[2:] #Cortar o 0b sequence = binario collection =…
-
0
votes0
answers31
viewsQ: How to put a show more inside a table/form?
Hello good morning guys I have a wordpress website, and what I want to do today is add a button/ text before sending an existing table, so that if the user click the button/ text appears another…
-
1
votes1
answer31
viewsQ: Overwrite arrow to return to top on videos, images, etc
I’m not getting over the arrow to get back to the top that is fixed on my page. Always when it goes through images, videos and some applications that use Javascript it disappears. I would like to…