【99OK】 Link vào 99OK Casino mới nhất 2025 ✔️

Link 99OK hot nhất

99OK - Nhà Cái Thể Thao, Nổ Hũ, Bắn Cá Uy Tín

123Win64 khuyến mãi > Tin tức Quốc Phòng

Thứ bảy, 23/05/2026, 17:42 (GMT+7)
642 lượt xem

Ban CHQS xã An Ninh tặng quà cho con nạn nhân chất độc da cam

(QK7 Online) - Sáng 23/5, 123Win99ok Sân chơi uy tín Quân sự xã An Ninh, tỉnh Tây Ninh phối hợp Hội Chất độc da cam/Dioxin xã cùng các mạnh thường quân tổ chức tặng quà cho ông Đặng Minh Hoàng, con của nạn nhân bị nhiễm chất độc da cam đang sinh sống trên địa bàn xã.
Ban CHQS xã An Ninh, tỉnh Tây Ninh phối hợp tặng quà cho ông Đặng Minh Hoàng.
Ông Hoàng sống một mình trong căn nhà được người dân thương tình cho ở nhờ. Bố mẹ ông đều đã mất. Cuộc sống của ông trông chờ vào sự giúp đỡ của địa phương và người dân hảo tâm.
Trước hoàn cảnh khó khăn của ông Hoàng, Đoàn công tác đã trao tặng cho ông gồm: 1 chiếc xe đạp; 1,5 triệu đồng tiền mặt và nhiều nhu yếu phẩm thiết yếu cho cuộc sống sinh hoạt thường ngày. Tổng giá trị các phần quà hơn 4,1 triệu đồng. Đồng thời, Đoàn công tác đã ân cần thăm hỏi tình hình sức khỏe, đời sống, động viên ông Hoàng tiếp tục cố gắng vươn lên trong cuộc sống.
Thiếu tá Nguyễn Văn Danh, 99Oke123 Tải ứng dụng viên phó Ban CHQS xã An Ninh chia sẻ: “Hoạt động thể hiện đạo lý “Uống nước nhớ nguồn”, tinh thần đoàn kết, tương thân tương ái của dân tộc, góp phần làm sáng đẹp hình ảnh cán bộ, 123Win com 79 casino, cá cược thể thao đến xổ số lực lượng vũ trang xã. Bằng tinh thần, trách nhiệm, Ban CHQS xã sẽ thường xuyên giúp đỡ ông Hoàng trong cuộc sống. Chúng tôi muốn lan tỏa mạnh mẽ tinh thần nhân ái, trách nhiệm vì cộng đồng, chung tay chăm lo công tác an sinh xã hội, nhất là đối với các gia đình chính sách, nạn nhân chất độc da cam”.
Biện Cường

Bình luận

Bài viết tương tự:

Chiến sĩ mới Trung đoàn 738 bình tĩnh, tự tin kiểm tra "3 tiếng nổ"

Chiến sĩ mới Trung đoàn 738 bình tĩnh, tự tin kiểm tra "3 tiếng nổ"

18:44 29/05/2026

(QK7 Online) - Từ ngày 25 đến 29/5, Trung đoàn 738, Bộ CHQS tỉnh Tây Ninh tổ chức kiểm tra bắn đạn thật súng tiểu liên AK bài 1, ném lựu đạn xa trúng hướng và đánh thuốc nổ cho 123Win com 79 casino, cá cược thể thao đến xổ số mới nhập ngũ năm 2026. Đại tá Nguyễn Thành Đạt, Phó Chỉ huy trưởng Bộ CHQS tỉnh Tây Ninh dự và chỉ đạo kiểm tra.

Quân khu 7 bế giảng lớp bồi dưỡng kiến thức quốc phòng và an ninh khóa 115 năm 2026

ĐĂNG NHẬP 99OK COM TẶNG 99K bế giảng lớp bồi dưỡng kiến thức 99Ok68 link đăng nhập và an ninh khóa 115 năm 2026

11:39 29/05/2026

(QK7 Online) - Sáng ngày 29/5, tại Trường Quân sự ĐĂNG NHẬP 99OK COM TẶNG 99K, Bộ Tư lệnh Quân khu tổ chức Lễ bế giảng lớp Bồi dưỡng kiến thức 99Ok68 link đăng nhập và an ninh (QP&AN) cho cán bộ thuộc đối tượng 2, khóa 115, năm 2026. Dự buổi bế giảng có Đại tá Nguyễn Tấn Linh, Phó Tư lệnh Quân khu, Phó Chủ tịch Hội đồng Giáo dục Quốc phòng và An ninh Quân khu.

Bộ CHQS tỉnh Tây Ninh thăm, chúc mừng các cơ sở Phật giáo nhân Đại lễ Phật đản

Bộ CHQS tỉnh Tây Ninh thăm, chúc mừng các cơ sở Phật giáo nhân Đại lễ Phật đản

09:38 29/05/2026

(QK7 Online) - Ngày 28/5, nhân dịp Đại lễ Phật đản năm 2026 (Phật lịch 2570), đoàn công tác Bộ CHQS tỉnh Tây Ninh do Thượng tá Ngô Khánh, Phó Chính ủy Bộ CHQS tỉnh làm trưởng đoàn đến thăm, tặng quà và chúc mừng Ban Trị sự Giáo hội Phật giáo Việt Nam tỉnh Tây Ninh cùng các cơ sở Phật giáo trên địa bàn tỉnh. Tiếp đoàn có Thượng tọa Thích Quảng Tâm, Trưởng Ban Trị sự Giáo hội Phật giáo Việt Nam tỉnh Tây Ninh.

Bộ đội Biên phòng Tây Ninh nâng cao chất lượng cán bộ Đoàn, Tuyên truyền viên trẻ

123Win79 tỷ lệ kèo World Cup 2026 Tây Ninh nâng cao chất lượng cán bộ Đoàn, Tuyên truyền viên trẻ

20:36 28/05/2026

(QK7 Online) – Chiều ngày 28/5, 123Win99ok Sân chơi uy tín 123Win79 tỷ lệ kèo World Cup 2026 tỉnh Tây Ninh tổ chức bế mạc Hội thi cán bộ Đoàn giỏi và Tuyên truyền viên trẻ năm 2026. Đại tá Dương Văn Dược, Bí thư Đảng ủy, Chính ủy 123Win99ok Sân chơi uy tín 123Win79 tỷ lệ kèo World Cup 2026 tỉnh dự và phát biểu chỉ đạo.

Quân khu 7: Rút kinh nghiệm tuyển chọn, gọi công dân nhập ngũ năm 2026

ĐĂNG NHẬP 99OK COM TẶNG 99K: Rút kinh nghiệm tuyển chọn, gọi công dân nhập ngũ năm 2026

09:23 28/05/2026

(QK7 Online) - Ngày 28/5, ĐĂNG NHẬP 99OK COM TẶNG 99K tổ chức Hội nghị đánh giá kết quả tuyển chọn, gọi công dân nhập ngũ năm 2026; phương hướng, nhiệm vụ tuyển quân năm 2027. Trung tướng Lê Xuân Thế, Ủy viên Ban Chấp hành Trung ương Đảng, Ủy viên Quân ủy Trung ương, Phó Bí thư Đảng ủy, Tư lệnh Quân khu chủ trì hội nghị. Dự hội nghị có các đồng chí trong Ban Thường vụ Đảng ủy, Thủ trưởng Bộ Tư lệnh Quân khu, Thủ trưởng các cơ quan Quân khu; lãnh đạo, chỉ huy các địa phương, đơn vị trong LLVT Quân khu.

Bộ CHQS tỉnh Tây Ninh gặp gỡ, giao nhiệm vụ Đoàn vận động viên tham gia hội thao Quân khu

Bộ CHQS tỉnh Tây Ninh gặp gỡ, giao nhiệm vụ Đoàn vận động viên tham gia hội thao Quân khu

23:07 27/05/2026

(QK7 Online) - Ngày 27/5, tại Trường bắn núi Bà Đen, Đại tá Trần Đình Hưng, Phó Chỉ huy trưởng, Tham mưu trưởng Bộ Chỉ huy Quân sự tỉnh Tây Ninh gặp gỡ, giao nhiệm vụ cho Đoàn vận động viên tham gia hội thao xạ thủ bắn tỉa và hội thi cán bộ đại đội 123Win64 nhà cái WC 2026 pháo binh giỏi cấp Quân khu năm 2026.

Binh chủng Hóa học kiểm tra công tác phòng hóa tại Quân khu 7

Binh chủng Hóa học kiểm tra công tác phòng hóa tại ĐĂNG NHẬP 99OK COM TẶNG 99K

21:32 27/05/2026

(QK7 Online) - Từ ngày 25 đến 27/5, Đoàn công tác Binh chủng Hóa học do Thiếu tướng Nguyễn Đình Hiền, Tư lệnh Binh chủng làm trưởng đoàn đến kiểm tra công tác phòng hóa các cơ quan, đơn vị ĐĂNG NHẬP 99OK COM TẶNG 99K. Tham gia đoàn có Đại tá Trần Hữu Nhân, Phó Tham mưu trưởng Quân khu và Thủ trưởng các cơ quan Quân khu.

Ban CHQS xã Ninh Điền, tỉnh Tây Ninh giúp dân khắc phục hậu quả giông lốc

Ban CHQS xã Ninh Điền, tỉnh Tây Ninh giúp dân khắc phục hậu quả giông lốc

21:51 26/05/2026

(QK7 Online) - Chiều ngày 26/5, cơn mưa lớn kèm theo giông lốc bất ngờ quét qua địa bàn xã Ninh Điền, tỉnh Tây Ninh làm 11 hộ dân tại ấp Bến Cừ và ấp Gò Nổi bị thiệt hại về nhà ở. Cây xanh ở một số tuyến đường dân sinh bị ngã đổ. Ngay sau khi 99Ok là nhà cái cá cược uy tín hàng đầu tại Việt Nam xảy ra, Ban CHQS xã Ninh Điền đã khẩn trương huy động cán bộ và dân quân thường trực xuống địa bàn giúp dân khắc phục hậu quả.

Chiến sĩ Biên phòng nhặt được của rơi trả người đánh mất

Chiến sĩ Biên phòng nhặt được của rơi trả người đánh mất

19:32 26/05/2026

(QK7 Online) - Trong quá trình tham gia thực hiện “Ngày Chủ nhật xanh” trên địa bàn xã Hòa Hội, tỉnh Tây Ninh, Hạ sĩ Lâm Quốc Chánh, 123Win com 79 casino, cá cược thể thao đến xổ số Đồn Biên phòng Vàm Trảng Trâu, 123Win99ok Sân chơi uy tín 123Win79 tỷ lệ kèo World Cup 2026 tỉnh Tây Ninh đã có hành động đẹp khi nhặt được của rơi, trao trả lại người đánh mất.

TIN XEM NHIỀU:

TIN MỚI:

DƯ LUẬN QUAN TÂM:

99OK - Nhà Cái Thể Thao, Nổ Hũ, Bắn Cá Uy Tín

Theo dõi chúng tôi tại:

Cơ quan chủ quản: ĐĂNG NHẬP 99OK COM TẶNG 99K

Giấy phép số 45-YU ngày 28/07/2021

© Báo ĐĂNG NHẬP 99OK COM TẶNG 99K điện tử giữ bản quyền nội dung trên website này.

Tòa soạn: 81A Hai Bà Trưng, Quận 1, TP. Hồ Chí Minh

Phụ trách Tổng Biên tập: Thượng tá Lại Thế Hiền

Email: [email protected] | [email protected] | 1

'); printWindow.document.write(''); printWindow.document.write(''); printWindow.document.write('

【99OK】 Link vào 99OK Casino mới nhất 2025 ✔️

Link 99OK hot nhất

'); // Add logo at the top printWindow.document.write(''); printWindow.document.write('

' + title + '

'); if (dateTime) { printWindow.document.write('
' + dateTime + '
'); } printWindow.document.write('
'); printWindow.document.write(content.html()); printWindow.document.write('
'); printWindow.document.write(''); printWindow.document.write(''); printWindow.document.close(); $('#printLoadingMsg').remove(); // Wait for content and images to load then print printWindow.onload = function() { // Additional check to ensure logo is loaded const logoImg = printWindow.document.querySelector('.print-logo img'); if (logoImg) { logoImg.onload = function() { setTimeout(function() { printWindow.print(); printWindow.close(); }, 300); }; // If logo already loaded (cached) if (logoImg.complete) { setTimeout(function() { printWindow.print(); printWindow.close(); }, 300); } } else { setTimeout(function() { printWindow.print(); printWindow.close(); }, 500); } }; } if (totalImages > 0) { lazyImages.forEach(function(img) { const actualSrc = img.dataset.src || img.getAttribute('data-src'); if (actualSrc && actualSrc !== img.src) { const tempImg = new Image(); tempImg.onload = tempImg.onerror = function() { img.src = actualSrc; img.classList.remove('lazy'); loadedCount++; if (loadedCount === totalImages) { proceedWithPrint(); } }; tempImg.src = actualSrc; } else { loadedCount++; if (loadedCount === totalImages) { proceedWithPrint(); } } }); } else { proceedWithPrint(); } } document.addEventListener('DOMContentLoaded', function() { document.querySelectorAll('.image-caption').forEach(el => { if (el.textContent.trim() === 'Nhập chú thích cho ảnh...') { el.style.display = 'none'; } }); }); $(document).ready(function () { // Stop any ongoing speech when page loads and reset TTS state if (window.speechSynthesis) { window.speechSynthesis.cancel(); } // Dictionary để chuyển đổi từ viết tắt const abbreviationDict = { 'LLVT': 'lực lượng vũ trang', 'CHQS': 'chỉ huy quân sự', 'HĐND': 'hội đồng 123Win com 79 nạp - rút nhanh', 'CHXHCN': 'Cộng hòa xã hội chủ nghĩa', 'VKTBKT': 'vũ khí trang bị kỹ thuật', 'UBND': 'ủy ban 123Win com 79 nạp - rút nhanh', 'MTTQ': 'mặt trận tổ quốc', 'ĐCSVN': 'Đảng Cộng sản Việt Nam', 'TNXP': 'thanh niên xung phong', 'BĐBP': 'bộ đội biên phòng', 'CAND': 'công an 123Win com 79 nạp - rút nhanh', 'QĐND': 'quân đội 123Win com 79 nạp - rút nhanh', 'TPHCM': 'Thành phố Hồ Chí Minh', 'TP.HCM': 'Thành phố Hồ Chí Minh', 'HN': 'Hà Nội', 'DN': 'Đà Nẵng', 'ĐBQH': 'đại biểu quốc hội', 'QH': 'quốc hội', 'CP': 'chính phủ', 'TW': 'trung ương', 'BCH': 'ban chấp hành', 'BTV': 'ban thường vụ', 'UV': 'ủy viên', 'PBT': 'phó bí thư', 'BT': 'bí thư', 'CT': 'chủ tịch', 'PCT': 'phó chủ tịch', 'TTg': 'thủ tướng', 'PTTg': 'phó thủ tướng', 'CNQ': 'cộng hòa 123Win com 79 nạp - rút nhanh', 'CHDC': 'cộng hòa dân chủ' }; // Hàm xử lý từ viết tắt function processAbbreviations(text) { let processedText = text; // Duyệt qua tất cả các từ viết tắt trong dictionary for (const [abbr, fullForm] of Object.entries(abbreviationDict)) { // Tạo regex để tìm từ viết tắt (case insensitive) // \b đảm bảo match whole word, không match partial const regex = new RegExp(`\\b${abbr}\\b`, 'gi'); processedText = processedText.replace(regex, fullForm); } return processedText; } // Reset TTS control buttons to initial state $('#pauseBtn, #resumeBtn, #stopBtn').addClass('hidden'); $('#speedControls').removeClass('flex').addClass('hidden'); // Initialize Fancybox for article images $('.article-content img').each(function() { const $img = $(this); // const src = $img.attr('src').replace("/thumb/","/"); const src = $img.attr('src'); const alt = $img.attr('alt') || ''; // Wrap image with fancybox link $img.wrap(``); $img.addClass('cursor-pointer transition-transform hover:scale-105'); }); // Configure Fancybox $('[data-fancybox="gallery"]').fancybox({ buttons: [ "zoom", "slideShow", "thumbs", "close" ], loop: true, protect: true }); // Handle comment submission $("#comment-btn").click(function () { const userName = $('#UserName').val().trim(); const contentComment = $('#ContentComment').val().trim(); const userEmail = $('#UserEmail').val().trim(); // Hide any existing notifications $('#successNotification, #errorNotification').addClass('hidden'); if (userName === "" || contentComment === "") { $('#errorNotification').removeClass('hidden'); return; } // Validate email format if provided if (userEmail !== "" && !isValidEmail(userEmail)) { $('#errorNotification span').text('Email không hợp lệ!'); $('#errorNotification').removeClass('hidden'); return; } $.ajax({ url: "/ExtAppCommon/Home/Comment", type: "POST", dataType: "json", data: { id: 59439, name: userName, content: contentComment, email: userEmail }, success: function (result) { if (result > 0) { // Clear form $('#UserName').val(""); $('#ContentComment').val(""); $('#UserEmail').val(""); // Show success message $('#successNotification').removeClass('hidden'); // Hide success message after 3 seconds setTimeout(function() { $('#successNotification').addClass('hidden'); }, 3000); // Add new comment to the list const newComment = `
Avatar
${userName}
Vừa xong

${contentComment}

`; $('#commentsList').prepend(newComment); } else { $('#errorNotification span').text('Có lỗi xảy ra, vui lòng thử lại sau!'); $('#errorNotification').removeClass('hidden'); } }, error: function() { $('#errorNotification span').text('Có lỗi xảy ra, vui lòng thử lại sau!'); $('#errorNotification').removeClass('hidden'); } }); }); // Handle Enter key in textarea $('#ContentComment').keypress(function(e) { if (e.which === 13 && !e.shiftKey) { e.preventDefault(); $("#comment-btn").click(); } }); // Email validation function function isValidEmail(email) { const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; return emailRegex.test(email); } // Text-to-speech functionality const synth = window.speechSynthesis; let currentUtterance = null; let currentSpeed = 1; // Speed control functions function updateSpeedDisplay() { $('#speedDisplay').text(currentSpeed + 'x'); } $('#increaseSpeed').click(function() { if (currentSpeed < 2) { currentSpeed += 0.25; updateSpeedDisplay(); if (currentUtterance) { // Restart speech with new speed const text = currentUtterance.text; synth.cancel(); speak(text, currentSpeed); } } }); $('#decreaseSpeed').click(function() { if (currentSpeed > 0.5) { currentSpeed -= 0.25; updateSpeedDisplay(); if (currentUtterance) { // Restart speech with new speed const text = currentUtterance.text; synth.cancel(); speak(text, currentSpeed); } } }); // Function to get clean text content without button text function getCleanContent() { // Clone the content div to avoid modifying the original const contentClone = $('.article-content').clone(); // Remove all buttons and their container contentClone.find('button').parent('div').remove(); // Remove image captions (text in tags that are typically captions) contentClone.find('em').remove(); // Get clean text let cleanText = contentClone.text().trim(); // Remove "(QK7 Online)" and variations cleanText = cleanText.replace(/\(QK7\s*Online\)\s*[-–]?\s*/gi, ''); // Remove other common patterns that shouldn't be read cleanText = cleanText.replace(/\s+/g, ' '); // Replace multiple spaces with single space // Xử lý từ viết tắt cleanText = processAbbreviations(cleanText); return cleanText; } function getVietnameseVoice() { let voices = synth.getVoices(); // Filter for Vietnamese voices let vietnameseVoices = voices.filter(voice => voice.lang.includes('vi') || voice.name.toLowerCase().includes('vietnamese') || voice.name.toLowerCase().includes('việt') ); // If Vietnamese voices found, prefer Microsoft/Google voices if (vietnameseVoices.length > 0) { // Try to find Microsoft Vietnamese voice first let msVoice = vietnameseVoices.find(v => v.name.toLowerCase().includes('microsoft') && v.name.toLowerCase().includes('vietnamese') ); if (msVoice) return msVoice; // Then try Google Vietnamese voice let googleVoice = vietnameseVoices.find(v => v.name.toLowerCase().includes('google') && v.name.toLowerCase().includes('vietnamese') ); if (googleVoice) return googleVoice; // If no Microsoft/Google voice, use the first Vietnamese voice return vietnameseVoices[0]; } // If no Vietnamese voice found, return null return null; } function speak(text, rate = 1) { // Stop any ongoing speech if (synth.speaking) { synth.cancel(); } const utterance = new SpeechSynthesisUtterance(text); utterance.lang = 'vi-VN'; utterance.rate = rate; // Wait for voices to be loaded and try to set Vietnamese voice const setVoiceAndSpeak = () => { const vietnameseVoice = getVietnameseVoice(); if (vietnameseVoice) { utterance.voice = vietnameseVoice; currentUtterance = utterance; // Show/hide control buttons $('#pauseBtn, #stopBtn').removeClass('hidden'); $('#resumeBtn').addClass('hidden'); // Show speed controls $('#speedControls').removeClass('hidden').addClass('flex'); utterance.onend = function() { currentUtterance = null; $('#pauseBtn, #resumeBtn, #stopBtn').addClass('hidden'); // Hide speed controls $('#speedControls').removeClass('flex').addClass('hidden'); }; synth.speak(utterance); } else { // If no Vietnamese voice available, show an error message alert('Không tìm thấy giọng đọc tiếng Việt trên thiết bị của bạn. Vui lòng cài đặt thêm giọng đọc tiếng Việt trong cài đặt hệ thống.'); } }; if (synth.getVoices().length === 0) { synth.addEventListener('voiceschanged', setVoiceAndSpeak, { once: true }); } else { setVoiceAndSpeak(); } } $('#readArticleBtn').click(function() { const title = $('h1.st37').clone() // Clone to avoid getting button text .children() // Get all child elements .remove() // Remove them .end() // Go back to h1 .text() // Get text content .trim(); // Remove whitespace const content = getCleanContent(); speak(title + ". " + content, currentSpeed); }); $('#pauseBtn').click(function() { if (synth.speaking) { synth.pause(); $(this).addClass('hidden'); $('#resumeBtn').removeClass('hidden'); } }); $('#resumeBtn').click(function() { if (synth.paused) { synth.resume(); $(this).addClass('hidden'); $('#pauseBtn').removeClass('hidden'); } }); $('#stopBtn').click(function() { if (synth.speaking) { synth.cancel(); currentUtterance = null; $('#pauseBtn, #resumeBtn, #stopBtn').addClass('hidden'); // Hide speed controls $('#speedControls').removeClass('flex').addClass('hidden'); } }); // Stop speech when user navigates away from page $(window).on('beforeunload', function() { if (window.speechSynthesis && window.speechSynthesis.speaking) { window.speechSynthesis.cancel(); } }); // Stop speech when page visibility changes (user switches tabs) /* $(document).on('visibilitychange', function() { if (document.hidden && window.speechSynthesis && window.speechSynthesis.speaking) { window.speechSynthesis.cancel(); currentUtterance = null; $('#pauseBtn, #resumeBtn, #stopBtn').addClass('hidden'); $('#speedControls').removeClass('flex').addClass('hidden'); } });*/ }); document.addEventListener("DOMContentLoaded", function () { var articleContainer = document.querySelector('.article-content.max-w-none.mb-4'); if (!articleContainer) { articleContainer = document.querySelector('[class*="article-content"][class*="max-w-none"][class*="mb-4"]'); } if (!articleContainer) { return; } var fallbackHost = "https://99oke123.com"; var lazyImages = []; // ✅ Hàm update Fancybox href khi ảnh load xong function updateFancyboxHref(img) { const $img = $(img); const $fancyboxLink = $img.parent('a[data-fancybox]'); if ($fancyboxLink.length > 0) { // Cập nhật href với src thực tế const realSrc = img.dataset.src || img.src; if (!realSrc.includes('loading_new.gif') && !realSrc.includes('data:image/svg+xml')) { $fancyboxLink.attr('href', realSrc); } } } function processImagesInContainer() { // Lấy ảnh đã có class lazy var existingLazyImages = [].slice.call(articleContainer.querySelectorAll("img.lazy")); lazyImages = lazyImages.concat(existingLazyImages); // Tự động convert ảnh khác var regularImages = [].slice.call(articleContainer.querySelectorAll("img:not(.lazy):not([data-lazy-processed])")); regularImages.forEach(function(img) { var rect = img.getBoundingClientRect(); var isInViewport = rect.top < (window.innerHeight + 100) && rect.bottom > -100; if (!isInViewport && img.src && (img.src.startsWith('http') || img.src.startsWith('/'))) { // ✅ Lưu src gốc trước khi thay đổi const originalSrc = img.src; // Convert thành lazy img.dataset.src = originalSrc; img.classList.add('lazy'); img.dataset.lazyProcessed = 'true'; // ✅ Cập nhật Fancybox href nếu đã được wrap const $img = $(img); const $fancyboxLink = $img.parent('a[data-fancybox]'); if ($fancyboxLink.length > 0) { $fancyboxLink.attr('href', originalSrc); } // Placeholder img.src = `/BaoQK7/images/loading_new.gif`; lazyImages.push(img); } else { img.dataset.lazyProcessed = 'true'; } }); } processImagesInContainer(); // ✅ IntersectionObserver với callback cập nhật Fancybox if ("IntersectionObserver" in window && lazyImages.length > 0) { let lazyImageObserver = new IntersectionObserver(function (entries, observer) { entries.forEach(function (entry) { if (entry.isIntersecting) { let lazyImage = entry.target; lazyImage.loading = "lazy"; lazyImage.decoding = "async"; lazyImage.onerror = function () { if (!lazyImage.dataset.fallbackTried) { lazyImage.dataset.fallbackTried = "true"; let originalSrc = lazyImage.dataset.src || ""; lazyImage.src = originalSrc.replace("https://99oke123.com", fallbackHost); } else { lazyImage.classList.add("error"); } }; lazyImage.onload = function () { lazyImage.classList.add("loaded"); lazyImage.classList.remove("lazy"); // ✅ Cập nhật Fancybox href sau khi ảnh load xong updateFancyboxHref(lazyImage); }; if (lazyImage.dataset.src) { lazyImage.src = lazyImage.dataset.src; } if (lazyImage.dataset.srcset) { lazyImage.srcset = lazyImage.dataset.srcset; } if (lazyImage.complete && lazyImage.naturalWidth > 0) { lazyImage.onload(); } lazyImageObserver.unobserve(lazyImage); } }); }, { root: null, rootMargin: '50px 0px', threshold: 0.01 }); lazyImages.forEach(function (lazyImage) { lazyImageObserver.observe(lazyImage); }); } });