Questions tagged as 'contador'

1
answer

How do I add decimal places in a counter?

I need a countdown timer but since my knowledge is still timid in js , in that code I do not know how to add "0" in the hour, minute, and second fields. As it returns me only full numbers (ex: 0: 1: 7). In math.floor how do I add...
asked by 21.03.2017 / 20:37
2
answers

How to get and count images with php?

How can I count and get the image of each of these code elements in php? I can not use a 'multiple' input file because it will not only be these lines, as below, it will be somewhat dynamic, and it may contain other elements (textarea for exampl...
asked by 26.10.2015 / 22:51
1
answer

javascript / html counter

I need to make an application in javascript / jquery / html that counts the clicks of the user on the button and when the counter reaches 10 it locks the button and displays an alert, I do not know why it is not displaying. Anyone know?...
asked by 23.09.2017 / 21:35
2
answers

Counter in python

Well I'm doing a screenshot program but I want it to replace in the file name when saving, the characters "XX", by the print number. Ex: ScreenShotXX.jpg in "XX" I want to put the print number ex: 01, 02 Code used: import pyscreenshot as Image...
asked by 11.02.2017 / 15:16
4
answers

Countdown in JS - How to insert a "zero" in front of numbers smaller than 9?

I found a very simple and functional script to do countdown, but it has a problem; when the counter reaches 9, it no longer has two characters, something that ends up spoiling quite the alignment I had to do to structure the CSS. Does anyone kno...
asked by 01.11.2017 / 13:30
1
answer

Days countdown to a future event

A system that registers curricula, the curriculum is active for months after the registration date, which in my table is the variable $ row_curriculos ['created']; I was able to create the php that says the date that ends the registration....
asked by 19.06.2017 / 22:13
1
answer

How to invoke countdown timer with each click on the button?

I want to develop something simple, but that's making me frustrated. I will try to express myself in the best way possible. To make things simpler here, I'm just bringing as a example a randomized Photo Gallery, which, by clicking on the "...
asked by 21.03.2017 / 23:16
1
answer

python count of different words with only one counter?

I have this code: palavras = dataClean.split() count = 1 for palavra, frequencia in palavras: aleatorio = random.uniform(0.0, 1.0) if aleatorio < 0.5: count += 1 contProb[palavra] = count count = 0 print(contProb)...
asked by 16.12.2018 / 02:38
1
answer

How do I put a countdown timer on more than one publication on the page?

Good morning! I have the following problem, I have the view below that works as a timeline, inside it I have some publications. I get to each of the publications and get the amount in minutes that are missing to expire / start. The problem is th...
asked by 27.07.2018 / 14:28
4
answers

Count number of records in a MySql table with PHP?

People, I have a database with a table called "users", and I would like to know how I can, through PHP, count how many records there are in this table, and then give an echo to show this amount on the page. Please help me !!     
asked by 02.06.2018 / 17:22