8 أبريل, 2025

أعلان الهيدر

// عناوين خلاصات RSS const rssFeeds = [ "https://feeds.bbci.co.uk/news/education/rss.xml", "https://feeds.bbci.co.uk/news/technology/rss.xml", // ... أضف المزيد من عناوين RSS هنا ]; // وقت الانتظار بين كل منشور (بالدقائق) const postInterval = 60; // 60 دقيقة (ساعة) // نصوص إضافية (اختياري) const additionalTexts = [ "عندك", "كملت", // ... أضف المزيد من النصوص هنا ]; // وظيفة لإنشاء منشور جديد function createPost(feedUrl, title, description, imageUrl) { // إنشاء عنصر منشور جديد const postElement = document.createElement('div'); postElement.classList.add('post'); // إضافة عنوان المنشور const titleElement = document.createElement('h2'); titleElement.textContent = title; postElement.appendChild(titleElement); // إضافة وصف المنشور const descriptionElement = document.createElement('p'); descriptionElement.textContent = description; postElement.appendChild(descriptionElement); // إضافة صورة المنشور (إذا كانت موجودة) if (imageUrl) { const imageElement = document.createElement('img'); imageElement.src = imageUrl; imageElement.alt = title; postElement.appendChild(imageElement); } // إضافة نص إضافي (اختياري) const randomAdditionalText = additionalTexts[Math.floor(Math.random() * additionalTexts.length)]; if (randomAdditionalText) { const additionalTextElement = document.createElement('p'); additionalTextElement.textContent = randomAdditionalText; postElement.appendChild(additionalTextElement); } // إضافة المنشور إلى مدونة بلوجر const blogContainer = document.querySelector('.blog-posts'); blogContainer.appendChild(postElement); } // دالة لتنزيل وتحليل خلاصة RSS async function fetchAndParseFeed(feedUrl) { const response = await fetch(feedUrl); const textData = await response.text(); const parser = new DOMParser(); const xmlDoc = parser.parseFromString(textData, 'application/xml'); const items = xmlDoc.getElementsByTagName('item'); // حدد العنصر العشوائي const randomItem = items[Math.floor(Math.random() * items.length)]; // استخرج عنوان ووصف وصورة المقالة const title = randomItem.querySelector('title').textContent; const description = randomItem.querySelector('description').textContent; const imageUrl = randomItem.querySelector('media:thumbnail') ? randomItem.querySelector('media:thumbnail').getAttribute('url') : null; // إنشاء منشور جديد createPost(feedUrl, title, description, imageUrl); } // دالة بدء النشر التلقائي async function startAutoPosting() { for (const feedUrl of rssFeeds) { await fetchAndParseFeed(feedUrl); await new Promise(resolve => setTimeout(resolve, postInterval * 60000)); // انتظر الوقت المحدد بين كل منشور } } // تشغيل النشر التلقائي عند تحميل الصفحة window.onload = startAutoPosting;

الأحد، 9 ديسمبر 2018

الرئيسية ring tone free app android-bast ringtone app

ring tone free app android-bast ringtone app

We have selected the 101 most popular ringtones from the world's largest mobile phone ringtone library, and you can use these excellent ringtones for free when you download this app. This is the top ringtones on the ringtone list, the TOP 101, which includes a variety of styles of sound effects, stunning 3D surround sound, beautiful pop music, effects, happy holiday ringtones , The latest personalized ringtones.

هناك تعليق واحد:

يتم التشغيل بواسطة Blogger.