All Questions

2
answers

Format echo number with 'k', 'kk', and so on

In several places on the internet you can view number formatting such as "150k", "1kk". Most people know that 150k is 150,000 and 1kk is 1,000,000. EXAMPLE: ThatwouldbeusefulbecausesometimesImovewithbignumbers,whichaestheticallyisbad,becauses...
asked on 18.02.2015 / 04:33
6
answers

How to remove 2 digits from each list item?

I have a list / array: var lista['01.um','02.dois','03.tres'] I need to create a new list like this: lista['01','02','03'] I know little about Groovy and Java, what is the correct way to create the list?     
asked on 19.06.2016 / 20:55
4
answers

How to return the last record of an array with Javascript or jQuery?

I'm doing a custom search filter where the user can select the brand and the characteristics of the product and I return the id of them. But I wanted to return only the last record of my arrays where they contain all the information I need....
asked on 17.09.2015 / 14:43
5
answers

Hide the last 4 numbers of a string [closed]

I have a string of the value 187.10.61.291 , I want a function that takes the last 4 numbers and transforms it into * . Example of expected result:    192.1**.*.* or 192.16*.**.* or 192.168.***.* or 19...
asked on 30.09.2016 / 04:45
1
answer

Text "leaks" behind th using CSS position sticky

I'm using position: sticky; in <thead> of a table where I assign a background color to <th> . My intention is that when the page scrolls, the header remains visible because the table has many rows and this make...
asked on 05.12.2018 / 21:54
4
answers

Error Loop Java Class Scanner

When I use the nextLine () method in place of next () in the code below, code interactions are skipped and some fields are left blank. import java.util.Scanner; public class turma { public static void main (String args[]) { final...
asked on 28.10.2014 / 07:51
5
answers

How to put a colored layer over an image?

div { background: #000; width: 640px; height: 640px; opacity: 0.2; position: absolute; z-index: 99; } <span> <div></div> <img src="https://scontent.cdninstagram.com/t51.2885-15/e15/11909170_99939...
asked on 12.01.2017 / 05:06
3
answers

Turn m: s in seconds

How to transform a value into seconds? For example: 01:32, in case it would be 92 seconds. I would like to do this in php, I already searched the net but found nothing.     
asked on 14.04.2018 / 02:57
5
answers

Count characters while typing [closed]

I'm developing a sales site and it has a product that sells by letter. Ex. Each 10 real letter. If the person wants to name it, add the value: Ex. Betinho (7 letters) R $ 70,00. I need to do this via input text.     
asked on 03.08.2017 / 15:08
3
answers

Why are you concatenating instead of adding?

My code is concatenating instead of adding. what would be my mistake?. var cFinal = 0; var cFabrica = prompt("Insira o valor de fabrica do veículo"); var comissao = 0.28 * cFabrica; var imposto = 0.45 * cFabrica; cFinal = cFabrica + comissao +...
asked on 30.08.2017 / 20:59