var stats = response.data;
$('#total-urls').text(stats.total);
$('#indexed-urls').text(stats.indexed);
$('#not-indexed-urls').text(stats.not_indexed);
$('#pending-urls').text(stats.pending);
createIndexingChart(stats);
}
}
});
}
function createIndexingChart(stats) {
var ctx = document.getElementById('indexing-chart').getContext('2d');
new Chart(ctx, {
type: 'doughnut',
data: {
labels: ['Индексирани', 'Неиндексирани', 'Непроверени'],
datasets: [{
data: [stats.indexed, stats.not_indexed, stats.pending],
backgroundColor: ['#46b450', '#dc3232', '#ffb900']
}]
},
options: {
responsive: true,
maintainAspectRatio: false
}
});
}
function loadRecentChecks() {
$.ajax({
url: seoIndexingChecker.ajax_url,
type: 'POST',
data: {
action: 'get_recent_checks',
nonce: seoIndexingChecker.nonce
},
success: function(response) {
if (response.success) {
$('#recent-checks').html(response.data.html);
}
}
});
}
function loadSitemapsTable() {
$.ajax({
url: seoIndexingChecker.ajax_url,
type: 'POST',
data: {
action: 'get_sitemaps_table',
nonce: seoIndexingChecker.nonce
},
success: function(response) {
if (response.success) {
$('#sitemaps-table').html(response.data.html);
}
}
});
}
function loadSitemapFilter() {
$.ajax({
url: seoIndexingChecker.ajax_url,
type: 'POST',
data: {
action: 'get_sitemap_filter_options',
nonce: seoIndexingChecker.nonce
},
success: function(response) {
if (response.success) {
$('#filter-sitemap').html(response.data.html);
}
}
});
}
function loadUrlsTable() {
var sitemapFilter = $('#filter-sitemap').val();
var statusFilter = $('#filter-status').val();
var urlFilter = $('#filter-url').val();
$('#urls-table').html('
Зареждане...
');
$.ajax({
url: seoIndexingChecker.ajax_url,
type: 'POST',
data: {
action: 'get_urls_table',
nonce: seoIndexingChecker.nonce,
sitemap_filter: sitemapFilter,
status_filter: statusFilter,
url_filter: urlFilter,
page: currentPage
},
success: function(response) {
if (response.success) {
$('#urls-table').html(response.data.html);
$('#pagination').html(response.data.pagination);
}
}
});
}
function addSingleSitemap(sitemapUrl, sitemapName) {
$.ajax({
url: seoIndexingChecker.ajax_url,
type: 'POST',
data: {
action: 'parse_sitemap',
nonce: seoIndexingChecker.nonce,
sitemap_url: sitemapUrl,
sitemap_name: sitemapName
},
success: function(response) {
if (response.success) {
alert('Sitemap добавен успешно! Намерени са ' + response.data.count + ' URL-и.');
$('#sitemap-url').val('');
$('#sitemap-name').val('');
loadSitemapsTable();
loadDashboardStats();
loadSitemapFilter();
} else {
alert('Грешка при добавяне на sitemap: ' + response.data.message);
}
}
});
}
function addMultipleSitemaps(sitemapUrls) {
$.ajax({
url: seoIndexingChecker.ajax_url,
type: 'POST',
data: {
action: 'add_multiple_sitemaps',
nonce: seoIndexingChecker.nonce,
sitemap_urls: sitemapUrls
},
success: function(response) {
if (response.success) {
alert('Добавени са ' + response.data.added_count + ' sitemap-а от общо ' + sitemapUrls.length + '.');
$('#multiple-sitemaps').val('');
loadSitemapsTable();
loadDashboardStats();
loadSitemapFilter();
} else {
alert('Грешка при добавяне на sitemap-ове.');
}
}
});
}
function autoDetectSitemaps() {
$.ajax({
url: seoIndexingChecker.ajax_url,
type: 'POST',
data: {
action: 'auto_detect_sitemaps',
nonce: seoIndexingChecker.nonce
},
success: function(response) {
if (response.success) {
"Филм от САЩ с Виго Мортенсен, Реж. Шон Пен" Отговор на Кръстословица
Отговор на Загадка към Кръстословица Филм от САЩ с Виго Мортенсен, Реж. Шон Пен
Намерихме отговорът за подсказката към кръстословицата Филм от САЩ с Виго Мортенсен, Реж. Шон Пен. Най-доброто решение се определя от оценките, популярността и честотата на търсенията. Най-вероятният отговор за тази подсказка е ИНДИAНCКИ БEГAЧ.
Кръстословица Дължина на дума Отговор Филм от САЩ с Виго Мортенсен, Реж. Шон Пен Кръстословица 15 ИНДИAНCКИ БEГAЧ
Списък със синоними за отговор на загатката към кръстословица Филм от САЩ с Виго Мортенсен, Реж. Шон Пен
ИНДИAНCКИ БEГAЧ – Филм от САЩ с Виго Мортенсен, Реж. Шон Пен
Свързани статии, прочетете още: