Answer the question
In order to leave comments, you need to log in
How to count from 0 and beyond?
Above is a screenshot of what the timer looks like. Each digit is a stylized span. It is necessary to make it so that the countdown goes from 0 to infinity with an interval of a certain number of seconds (then I will set it myself).
In general, I figured out how to make a countdown from 0 to infinity, but I didn’t figure out how to make it so that when the number 9 is reached, it becomes 0 in this span, and writes 1,2,3 in the span on the left .. Well, in general, it’s clear that I want each number to be styled like on the screen. Well, I didn’t figure out how to reset at 00:00 hours)
I think this is a simple question for experts and I hope that you will help me in this matter. Thank you very much in advance!
Answer the question
In order to leave comments, you need to log in
Something like this?
SELECT *
FROM `images_category`
WHERE `id` NOT IN (
SELECT `images_category`.`id`
FROM `images_category`
JOIN `images_to_category` ON (`images_category`.`id` = `images_to_category`.`id_category`)
WHERE `images_to_category`.`id_file` = 15 )
If I understood the task correctly, then something like this
SELECT *
FROM images_category
Left Join images_to_category
ON images_category.id = images_to_category.id_category
AND images_to_category.id_file = 15
WHERE images_to_category.id_category is null
A fixed number of digits of the number is displayed, zeros are substituted for the missing ones:
function output(value) {
const digits = document.querySelectorAll('селектор span`ов');
const { length } = digits;
Array
.from(`${value}`.padStart(length, 0).slice(-length))
.forEach((n, i) => digits[i].innerText = n);
}
function output(value) {
document.querySelector('селектор родительского элемента span`ов').innerHTML = Array
.from(`${value}`, n => `<span>${n}</span>`)
.join('');
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question