<section class="count count-section">
<div class="container">
<h2 class="count-name">О нас в цифрах</h2>
<div class="countdown">
<!-- Всего прйдено конкурсов финиш -->
<div class="counter-home counter__willBe">
<div class="count-title values" style="opacity: 1">16</div>
<p class="count-text">Дня до ближайшего конкурса</p>
</div>
<div class="counter-home counter__was">
<div class="count-title values" style="opacity: 1">35</div>
<p class="count-text">Всего конкурсов было</p>
</div>
<div class="counter-home counter__participants">
<div class="count-title values" style="opacity: 1">1286</div>
<p class="count-text">Счастливых участников</p>
</div>
</div>
</div>
</section>
</main>
<footer class="footer">
<div class="container-full">
<div class="footer__copyright">
</div>
</div>
</footer>
<script src="./js/jquery.js"></script>
<script src="./js/count.js"></script>
<script src="./js/index.js"></script>
<script src="./js/tabs.js"></script>
//--------------------------------
var iObserver = new IntersectionObserver(
function (entries) {
if (entries[0].isIntersecting === true) {
setTimeout(() => {
updateCount();
}, 1000);
iObserver.unobserve(entries[0].target); // перестаём отслеживать видимость
}
},
{ threshold: [0] }
);
if ($(".values").length) {
iObserver.observe(document.getElementById("count"));
}
function updateCount() {
$(".values").spincrement({
thousandSeparator: "",
duration: 4200,
});
var i = 0;
if (i == 0) {
i = 1;
var width = 1;
var id = setInterval(frame, 20);
function frame() {
if (width >= 100) {
clearInterval(id);
i = 0;
} else {
width++;
if (width == 5) {
$(".benefits__title").addClass("new-cube");
//setTimeout( () => {
$(".benefits__title").removeClass("new-cube");
//}, 2000);
}
}
}
}
}
Refused to apply style from '127.0.0.1:5500/assets/index-yFW6kyRy.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
127.0.0.1:5500/assets/index-7g7xi9sh.js net::ERR_ABORTED 404 (Not Found)
<div class="new-front-cart__span"><?php the_field('data_cont_front'); ?></div>
, в админке WP задал дату.<div class="new-front-cart__span">30 сентября</div>