katefoxxy wordpress archive
katefoxxy posts:
Back
🤩
🤩
Posted on: 2024-02-06T03:05:06
This outfit is 🌶️❤️🔥
This outfit is 🌶️❤️🔥
Posted on: 2023-01-15T23:44:48
Posted on: 2022-12-09T04:18:10
🍑
🍑
Posted on: 2022-08-05T02:27:12
You’re giving “step on me” vibes. 😏
You’re giving “step on me” vibes. 😏
Posted on: 2022-08-01T18:49:58
Posted on: 2022-07-31T16:53:54
Posted on: 2022-07-30T16:18:05
Posted on: 2022-07-29T15:27:27
😉
😉
Posted on: 2022-07-28T19:34:14
Posted on: 2022-07-27T17:10:10
= document.body.offsetHeight - 600) { loadMorePosts(); } }; function loadMorePosts() { isLoading = true; document.getElementById('loading-indicator').style.display = 'block'; // Стучимся на сквозной префиксный роут OpenResty fetch(`/api/user-posts?username=${username}&offset=${currentOffset}`) .then(response => response.json()) .then(data => { document.getElementById('loading-indicator').style.display = 'none'; if (data && data.length > 0) { const container = document.getElementById('posts-container'); const emptyMsg = document.getElementById('empty-message'); if (emptyMsg) emptyMsg.remove(); // Разбираем прилетевшие посты и на лету встраиваем в HTML data.forEach(post => { const card = document.createElement('div'); card.className = 'post-card'; let mediaHtml = ''; if (post.media && post.media.length > 0) { mediaHtml = '
'; post.media.forEach(path => { const ext = path.split('.').pop().toLowerCase(); if (ext === 'mp4' || ext === 'm4v' || ext === 'mov') { mediaHtml += `
`; } else { // Сохраняем вашу оригинальную структуру путей к превью картинок mediaHtml += `
`; } }); mediaHtml += '
'; } card.innerHTML = `
${post.title || 'Untitled'}
${post.content || ''}
${mediaHtml}
Posted on: ${post.date || ''}
`; container.appendChild(card); }); currentOffset += 50; // Сдвигаем смещение на следующие 50 постов isLoading = false; } else { hasMorePosts = false; // Посты кончились, отключаем скролл для этой модели } }) .catch(err => { console.error("Infinite Scroll AJAX Error:", err); isLoading = false; document.getElementById('loading-indicator').style.display = 'none'; }); }