Как реализовать, чтобы данный скрипт срабатывал раз в 6 сек.?
$(function() {
$('#transactions_filters, #transactions_cont').html(function() {
return $(this).html().replace(/Продажи/g, "Оплаты")
});
$('#transactions_filters, #transactions_cont').html(function() {
return $(this).html().replace(/продажи/g, "оплаты")
});
$('#transactions_filters, #transactions_cont').html(function() {
return $(this).html().replace(/Продажа/g, "Оплата")
});
$('#transactions_filters, #transactions_cont').html(function() {
return $(this).html().replace(/продажа/g, "оплата")
});
$('#transactions_filters, #transactions_cont').html(function() {
return $(this).html().replace(/заказа/g, "квитанции")
});
$('#transactions_filters, #transactions_cont').html(function() {
return $(this).html().replace(/Заказа/g, "Квитанции")
});
$('#transactions_filters, #transactions_cont').html(function() {
return $(this).html().replace(/Заказ/g, "Квитанция")
});
$('#transactions_filters, #transactions_cont').html(function() {
return $(this).html().replace(/заказ/g, "квитанция")
});
$('#transactions_filters, #transactions_cont').html(function() {
return $(this).html().replace(/балло/g, "балл.")
});
$('#transactions_filters, #transactions_cont').html(function() {
return $(this).html().replace(/товар/g, "квитанция")
});
$('#transactions_filters, #transactions_cont').html(function() {
return $(this).html().replace(/Товар/g, "Квитанция")
});
$('#transactions_filters, #transactions_cont').html(function() {
return $(this).html().replace(/товара/g, "квитанции")
});
$('#transactions_filters, #transactions_cont').html(function() {
return $(this).html().replace(/Товара/g, "Квитанции")
});
});
setInterval(() => {
$(function() {
$('#transactions_filters, #transactions_cont').html(function() {
return $(this).html().replace(/Продажи/g, "Оплаты")
});
$('#transactions_filters, #transactions_cont').html(function() {
return $(this).html().replace(/продажи/g, "оплаты")
});
$('#transactions_filters, #transactions_cont').html(function() {
return $(this).html().replace(/Продажа/g, "Оплата")
});
$('#transactions_filters, #transactions_cont').html(function() {
return $(this).html().replace(/продажа/g, "оплата")
});
$('#transactions_filters, #transactions_cont').html(function() {
return $(this).html().replace(/заказа/g, "квитанции")
});
$('#transactions_filters, #transactions_cont').html(function() {
return $(this).html().replace(/Заказа/g, "Квитанции")
});
$('#transactions_filters, #transactions_cont').html(function() {
return $(this).html().replace(/Заказ/g, "Квитанция")
});
$('#transactions_filters, #transactions_cont').html(function() {
return $(this).html().replace(/заказ/g, "квитанция")
});
$('#transactions_filters, #transactions_cont').html(function() {
return $(this).html().replace(/балло/g, "балл.")
});
$('#transactions_filters, #transactions_cont').html(function() {
return $(this).html().replace(/товар/g, "квитанция")
});
$('#transactions_filters, #transactions_cont').html(function() {
return $(this).html().replace(/Товар/g, "Квитанция")
});
$('#transactions_filters, #transactions_cont').html(function() {
return $(this).html().replace(/товара/g, "квитанции")
});
$('#transactions_filters, #transactions_cont').html(function() {
return $(this).html().replace(/Товара/g, "Квитанции")
});
});
}, 6000);
Основные этапы разработки сайта для стоматологической клиники
Продвижение своими сайтами как стратегия роста и независимости