پرش به محتوا

کتاب مقدس آنلاین: تفاوت میان نسخه‌ها

از دانشنامه کتاب مقدس
بدون خلاصۀ ویرایش
بدون خلاصۀ ویرایش
خط ۱: خط ۱:
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<html lang="fa" dir="rtl">
<head>
<head>
خط ۷۲: خط ۷۳:
         }
         }
          
          
         .testament-selector {
         .translation-selector {
             flex: 1;
             flex: 1;
             min-width: 150px;
             min-width: 200px;
         }
         }
          
          
         .translation-selector {
         .testament-selector {
             flex: 1;
             flex: 1;
             min-width: 180px;
             min-width: 200px;
         }
         }
          
          
خط ۲۷۵: خط ۲۷۶:
             }
             }
              
              
             .testament-selector, .translation-selector {
             .translation-selector, .testament-selector {
                 width: 100%;
                 width: 100%;
             }
             }
خط ۳۶۵: خط ۳۶۶:
             direction: rtl;
             direction: rtl;
             text-align: right;
             text-align: right;
        }
        .content-frame {
            width: 100%;
            height: 100%;
            border: none;
            background: white;
         }
         }
     </style>
     </style>
خط ۳۸۲: خط ۳۷۶:
             </div>
             </div>
             <h1>کتاب مقدس - مطالعه آنلاین</h1>
             <h1>کتاب مقدس - مطالعه آنلاین</h1>
             <p class="description">مطالعه کتاب مقدس با ترجمه‌های مختلف به زبان فارسی</p>
             <p class="description">مطالعه کتاب مقدس با ترجمه‌های مختلف</p>
         </header>
         </header>
          
          
خط ۳۹۵: خط ۳۸۹:
             'pediabible.com',
             'pediabible.com',
             'www.pediabible.com',
             'www.pediabible.com',
             'localhost',
             'localhost', // برای توسعه
             '127.0.0.1'
             '127.0.0.1' // برای توسعه
         ];
         ];


خط ۴۰۷: خط ۴۰۱:
             );
             );
              
              
             if (!isAllowed) {
             console.log('🔍 بررسی دامنه:', {
                console.log('⛔ دسترسی غیرمجاز به دامنه:', currentDomain);
                دامنه_جاری: currentDomain,
             }
                مجاز: isAllowed,
                دامنه_های_مجاز: ALLOWED_DOMAINS
             });
              
              
             return isAllowed;
             return isAllowed;
خط ۴۴۵: خط ۴۴۱:
             wrapper.innerHTML = `
             wrapper.innerHTML = `
                 <div class="selector-container">
                 <div class="selector-container">
                    <div class="translation-selector selector-box">
                        <h3 class="selector-title">ترجمه</h3>
                        <select id="translation-select">
                            <option value="">انتخاب ترجمه</option>
                            <option value="farsi">ترجمه فارسی</option>
                            <option value="hejre_nou">هزاره نو</option>
                            <option value="old">ترجمه قدیم</option>
                        </select>
                    </div>
                   
                     <div class="testament-selector selector-box">
                     <div class="testament-selector selector-box">
                         <h3 class="selector-title">عهد</h3>
                         <h3 class="selector-title">عهد</h3>
                         <select id="testament-select">
                         <select id="testament-select" disabled>
                             <option value="">انتخاب عهد</option>
                             <option value="">انتخاب عهد</option>
                             <option value="old">عهد قدیم</option>
                             <option value="old">عهد قدیم</option>
                             <option value="new">عهد جدید</option>
                             <option value="new">عهد جدید</option>
                        </select>
                    </div>
                   
                    <div class="translation-selector selector-box">
                        <h3 class="selector-title">ترجمه</h3>
                        <select id="translation-select">
                            <option value="farsi">ترجمه فارسی</option>
                            <option value="old_farsi">ترجمه قدیم فارسی</option>
                            <option value="english">ترجمه انگلیسی</option>
                         </select>
                         </select>
                     </div>
                     </div>
خط ۴۸۱: خط ۴۷۸:
                  
                  
                 <div class="bible-content">
                 <div class="bible-content">
                     <h2 class="chapter-title" id="chapter-title">لطفاً کتاب و فصل مورد نظر را انتخاب کنید</h2>
                     <h2 class="chapter-title" id="chapter-title">لطفاً ترجمه، کتاب و فصل مورد نظر را انتخاب کنید</h2>
                      
                      
                     <div id="verses-container">
                     <div id="verses-container">
خط ۴۸۷: خط ۴۸۴:
                             <div class="placeholder">
                             <div class="placeholder">
                                 <i class="fas fa-book-open"></i>
                                 <i class="fas fa-book-open"></i>
                                 <p>برای مطالعه کتاب مقدس، لطفاً ابتدا عهد، ترجمه، سپس کتاب و فصل مورد نظر خود را انتخاب کنید.</p>
                                 <p>برای مطالعه کتاب مقدس، لطفاً ابتدا ترجمه، سپس عهد، کتاب و فصل مورد نظر خود را انتخاب کنید.</p>
                             </div>
                             </div>
                         </div>
                         </div>
خط ۵۰۰: خط ۴۹۷:
                         <a href="#" class="wiki-link" id="wiki-page-link" target="_blank" style="display: none;">
                         <a href="#" class="wiki-link" id="wiki-page-link" target="_blank" style="display: none;">
                             <i class="fas fa-external-link-alt"></i>
                             <i class="fas fa-external-link-alt"></i>
                             مشاهده در ویکی
                             صفحه کامل
                         </a>
                         </a>
                          
                          
خط ۵۱۱: خط ۵۰۸:
             `;
             `;


             // داده‌های کامل کتاب‌های مقدس با نام‌های فارسی
             // داده‌های ترجمه‌های مختلف
             const bibleData = {
             const translations = {
                 old: [
                 'farsi': {
                    { name: "پیدایش", chapters: 50, displayName: "پیدایش" },
                    name: 'ترجمه فارسی',
                    { name: "خروج", chapters: 40, displayName: "خروج" },
                    baseUrl: 'https://www.pediabible.com/index.php?title=',
                    { name: "لاویان", chapters: 27, displayName: "لاویان" },
                    bookNames: {
                    { name: "اعداد", chapters: 36, displayName: "اعداد" },
                        old: [
                    { name: "تثنیه", chapters: 34, displayName: "تثنیه" },
                            { name: "پیدایش", chapters: 50, displayName: "پیدایش" },
                    { name: "یوشع", chapters: 24, displayName: "یوشع" },
                            { name: "خروج", chapters: 40, displayName: "خروج" },
                    { name: "داوران", chapters: 21, displayName: "داوران" },
                            { name: "لاویان", chapters: 27, displayName: "لاویان" },
                    { name: "روت", chapters: 4, displayName: "روت" },
                            { name: "اعداد", chapters: 36, displayName: "اعداد" },
                    { name: "اول سموئیل", chapters: 31, displayName: "اول سموئیل" },
                            { name: "تثنیه", chapters: 34, displayName: "تثنیه" },
                    { name: "دوم سموئیل", chapters: 24, displayName: "دوم سموئیل" },
                            { name: "یوشع", chapters: 24, displayName: "یوشع" },
                    { name: "اول پادشاهان", chapters: 22, displayName: "اول پادشاهان" },
                            { name: "داوران", chapters: 21, displayName: "داوران" },
                    { name: "دوم پادشاهان", chapters: 25, displayName: "دوم پادشاهان" },
                            { name: "روت", chapters: 4, displayName: "روت" },
                    { name: "اول تواریخ", chapters: 29, displayName: "اول تواریخ" },
                            { name: "اول سموئیل", chapters: 31, displayName: "اول سموئیل" },
                    { name: "دوم تواریخ", chapters: 36, displayName: "دوم تواریخ" },
                            { name: "دوم سموئیل", chapters: 24, displayName: "دوم سموئیل" }
                    { name: "عزرا", chapters: 10, displayName: "عزرا" },
                        ],
                    { name: "نحمیا", chapters: 13, displayName: "نحمیا" },
                        new: [
                    { name: "استر", chapters: 10, displayName: "استر" },
                            { name: "متی", chapters: 28, displayName: "انجیل متی" },
                    { name: "ایوب", chapters: 42, displayName: "ایوب" },
                            { name: "مرقس", chapters: 16, displayName: "انجیل مرقس" },
                     { name: "مزامیر", chapters: 150, displayName: "مزامیر" },
                            { name: "لوقا", chapters: 24, displayName: "انجیل لوقا" },
                    { name: "امثال سلیمان", chapters: 31, displayName: "امثال سلیمان" },
                            { name: "یوحنا", chapters: 21, displayName: "انجیل یوحنا" },
                    { name: "جامعه", chapters: 12, displayName: "جامعه" },
                            { name: "اعمال رسولان", chapters: 28, displayName: "اعمال رسولان" }
                    { name: "غزل غزلهای سلیمان", chapters: 8, displayName: "غزل غزلهای سلیمان" },
                        ]
                     { name: "اشعیا", chapters: 66, displayName: "اشعیا" },
                     }
                     { name: "ارمیا", chapters: 52, displayName: "ارمیا" },
                },
                     { name: "مراثی ارمیا", chapters: 5, displayName: "مراثی ارمیا" },
                'hejre_nou': {
                    { name: "حزقیال", chapters: 48, displayName: "حزقیال" },
                     name: 'هزاره نو',
                    { name: "دانیال", chapters: 12, displayName: "دانیال" },
                     baseUrl: 'https://www.pediabible.com/index.php?title=',
                    { name: "هوشع", chapters: 14, displayName: "هوشع" },
                     bookNames: {
                    { name: "یوئیل", chapters: 3, displayName: "یوئیل" },
                        old: [
                    { name: "عاموس", chapters: 9, displayName: "عاموس" },
                            { name: "پیدایش (هزاره نو)", chapters: 50, displayName: "پیدایش هزاره نو" },
                    { name: "عوبدیا", chapters: 1, displayName: "عوبدیا" },
                            { name: "خروج (هزاره نو)", chapters: 40, displayName: "خروج هزاره نو" },
                    { name: "یونس", chapters: 4, displayName: "یونس" },
                            { name: "لاویان (هزاره نو)", chapters: 27, displayName: "لاویان هزاره نو" },
                    { name: "میکا", chapters: 7, displayName: "میکا" },
                            { name: "اعداد (هزاره نو)", chapters: 36, displayName: "اعداد هزاره نو" },
                    { name: "ناحوم", chapters: 3, displayName: "ناحوم" },
                            { name: "تثنیه (هزاره نو)", chapters: 34, displayName: "تثنیه هزاره نو" },
                    { name: "حبقوق", chapters: 3, displayName: "حبقوق" },
                            { name: "یوشع (هزاره نو)", chapters: 24, displayName: "یوشع هزاره نو" },
                    { name: "صفنیا", chapters: 3, displayName: "صفنیا" },
                            { name: "داوران (هزاره نو)", chapters: 21, displayName: "داوران هزاره نو" },
                    { name: "حجی", chapters: 2, displayName: "حجی" },
                            { name: "روت (هزاره نو)", chapters: 4, displayName: "روت هزاره نو" },
                    { name: "زکریا", chapters: 14, displayName: "زکریا" },
                            { name: "اول سموئیل (هزاره نو)", chapters: 31, displayName: "اول سموئیل هزاره نو" },
                    { name: "ملاکی", chapters: 4, displayName: "ملاکی" }
                            { name: "دوم سموئیل (هزاره نو)", chapters: 24, displayName: "دوم سموئیل هزاره نو" }
                ],
                        ],
                new: [
                        new: [
                    { name: "متی", chapters: 28, displayName: "انجیل متی" },
                            { name: "متی (هزاره نو)", chapters: 28, displayName: "انجیل متی هزاره نو" },
                    { name: "مرقس", chapters: 16, displayName: "انجیل مرقس" },
                            { name: "مرقس (هزاره نو)", chapters: 16, displayName: "انجیل مرقس هزاره نو" },
                    { name: "لوقا", chapters: 24, displayName: "انجیل لوقا" },
                            { name: "لوقا (هزاره نو)", chapters: 24, displayName: "انجیل لوقا هزاره نو" },
                    { name: "یوحنا", chapters: 21, displayName: "انجیل یوحنا" },
                            { name: "یوحنا (هزاره نو)", chapters: 21, displayName: "انجیل یوحنا هزاره نو" },
                    { name: "اعمال رسولان", chapters: 28, displayName: "اعمال رسولان" },
                            { name: "اعمال رسولان (هزاره نو)", chapters: 28, displayName: "اعمال رسولان هزاره نو" }
                     { name: "رومیان", chapters: 16, displayName: "رومیان" },
                        ]
                    { name: "اول قرنتیان", chapters: 16, displayName: "اول قرنتیان" },
                     }
                    { name: "دوم قرنتیان", chapters: 13, displayName: "دوم قرنتیان" },
                },
                     { name: "غلاطیان", chapters: 6, displayName: "غلاطیان" },
                'old': {
                     { name: "افسسیان", chapters: 6, displayName: "افسسیان" },
                     name: 'ترجمه قدیم',
                     { name: "فیلیپیان", chapters: 4, displayName: "فیلیپیان" },
                     baseUrl: 'https://www.pediabible.com/index.php?title=',
                    { name: "کولسیان", chapters: 4, displayName: "کولسیان" },
                     bookNames: {
                    { name: "اول تسالونیکیان", chapters: 5, displayName: "اول تسالونیکیان" },
                        old: [
                    { name: "دوم تسالونیکیان", chapters: 3, displayName: "دوم تسالونیکیان" },
                            { name: "پیدایش (قدیم)", chapters: 50, displayName: "پیدایش ترجمه قدیم" },
                    { name: "اول تیموتائوس", chapters: 6, displayName: "اول تیموتائوس" },
                            { name: "خروج (قدیم)", chapters: 40, displayName: "خروج ترجمه قدیم" },
                    { name: "دوم تیموتائوس", chapters: 4, displayName: "دوم تیموتائوس" },
                            { name: "لاویان (قدیم)", chapters: 27, displayName: "لاویان ترجمه قدیم" },
                    { name: "طیطوس", chapters: 3, displayName: "طیطوس" },
                            { name: "اعداد (قدیم)", chapters: 36, displayName: "اعداد ترجمه قدیم" },
                    { name: "فلیمون", chapters: 1, displayName: "فلیمون" },
                            { name: "تثنیه (قدیم)", chapters: 34, displayName: "تثنیه ترجمه قدیم" },
                    { name: "عبرانیان", chapters: 13, displayName: "عبرانیان" },
                            { name: "یوشع (قدیم)", chapters: 24, displayName: "یوشع ترجمه قدیم" },
                    { name: "یعقوب", chapters: 5, displayName: "یعقوب" },
                            { name: "داوران (قدیم)", chapters: 21, displayName: "داوران ترجمه قدیم" },
                    { name: "اول پطرس", chapters: 5, displayName: "اول پطرس" },
                            { name: "روت (قدیم)", chapters: 4, displayName: "روت ترجمه قدیم" },
                    { name: "دوم پطرس", chapters: 3, displayName: "دوم پطرس" },
                            { name: "اول سموئیل (قدیم)", chapters: 31, displayName: "اول سموئیل ترجمه قدیم" },
                    { name: "اول یوحنا", chapters: 5, displayName: "اول یوحنا" },
                            { name: "دوم سموئیل (قدیم)", chapters: 24, displayName: "دوم سموئیل ترجمه قدیم" }
                    { name: "دوم یوحنا", chapters: 1, displayName: "دوم یوحنا" },
                        ],
                    { name: "سوم یوحنا", chapters: 1, displayName: "سوم یوحنا" },
                        new: [
                    { name: "یهودا", chapters: 1, displayName: "یهودا" },
                            { name: "متی (قدیم)", chapters: 28, displayName: "انجیل متی ترجمه قدیم" },
                    { name: "مکاشفه", chapters: 22, displayName: "مکاشفه" }
                            { name: "مرقس (قدیم)", chapters: 16, displayName: "انجیل مرقس ترجمه قدیم" },
                ]
                            { name: "لوقا (قدیم)", chapters: 24, displayName: "انجیل لوقا ترجمه قدیم" },
            };
                            { name: "یوحنا (قدیم)", chapters: 21, displayName: "انجیل یوحنا ترجمه قدیم" },
 
                            { name: "اعمال رسولان (قدیم)", chapters: 28, displayName: "اعمال رسولان ترجمه قدیم" }
            // پایگاه‌های داده برای ترجمه‌های مختلف
                        ]
            const translationBases = {
                    }
                 'farsi': 'https://fa.wikipedia.org/wiki/',
                 }
                'old_farsi': 'https://fa.wikipedia.org/wiki/',
                'english': 'https://en.wikipedia.org/wiki/'
            };
 
            // الگوهای عنوان برای ترجمه‌های مختلف
            const translationPatterns = {
                'farsi': (bookDisplayName, chapter) => `${bookDisplayName}_فصل_${chapter}`,
                'old_farsi': (bookDisplayName, chapter) => `${bookDisplayName}_فصل_${chapter}_(ترجمه_قدیم)`,
                'english': (bookDisplayName, chapter) => `${bookDisplayName}_Chapter_${chapter}`
             };
             };


             // عناصر DOM
             // عناصر DOM
            const translationSelect = document.getElementById('translation-select');
             const testamentSelect = document.getElementById('testament-select');
             const testamentSelect = document.getElementById('testament-select');
            const translationSelect = document.getElementById('translation-select');
             const bookSelect = document.getElementById('book-select');
             const bookSelect = document.getElementById('book-select');
             const chapterSelect = document.getElementById('chapter-select');
             const chapterSelect = document.getElementById('chapter-select');
خط ۶۱۱: خط ۵۹۹:


             // متغیرهای وضعیت فعلی
             // متغیرهای وضعیت فعلی
            let currentTranslation = '';
             let currentTestament = '';
             let currentTestament = '';
            let currentTranslation = 'farsi';
             let currentBook = '';
             let currentBook = '';
             let currentChapter = 1;
             let currentChapter = 1;
            // رویداد تغییر ترجمه
            translationSelect.addEventListener('change', function() {
                currentTranslation = this.value;
               
                if (currentTranslation) {
                    testamentSelect.disabled = false;
                    testamentSelect.value = '';
                    bookSelect.disabled = true;
                    bookSelect.innerHTML = '<option value="">انتخاب کتاب</option>';
                    chapterSelect.disabled = true;
                    chapterSelect.innerHTML = '<option value="">انتخاب فصل</option>';
                    resetContent();
                } else {
                    resetAll();
                }
            });


             // رویداد تغییر عهد
             // رویداد تغییر عهد
خط ۶۲۴: خط ۶۲۹:
                     bookSelect.innerHTML = '<option value="">انتخاب کتاب</option>';
                     bookSelect.innerHTML = '<option value="">انتخاب کتاب</option>';
                      
                      
                     bibleData[currentTestament].forEach((book, index) => {
                     translations[currentTranslation].bookNames[currentTestament].forEach((book, index) => {
                         const option = document.createElement('option');
                         const option = document.createElement('option');
                         option.value = index;
                         option.value = index;
خط ۶۳۵: خط ۶۴۰:
                     resetContent();
                     resetContent();
                 } else {
                 } else {
                     resetAll();
                     bookSelect.disabled = true;
                }
                    bookSelect.innerHTML = '<option value="">انتخاب کتاب</option>';
            });
                    chapterSelect.disabled = true;
 
                    chapterSelect.innerHTML = '<option value="">انتخاب فصل</option>';
            // رویداد تغییر ترجمه
                     resetContent();
            translationSelect.addEventListener('change', function() {
                currentTranslation = this.value;
                if (currentBook !== '' && currentChapter) {
                     displayChapterContent();
                 }
                 }
             });
             });
خط ۶۵۶: خط ۶۵۷:
                      
                      
                     const bookIndex = parseInt(currentBook);
                     const bookIndex = parseInt(currentBook);
                     const chaptersCount = bibleData[currentTestament][bookIndex].chapters;
                     const chaptersCount = translations[currentTranslation].bookNames[currentTestament][bookIndex].chapters;
                      
                      
                     for (let i = 1; i <= chaptersCount; i++) {
                     for (let i = 1; i <= chaptersCount; i++) {
خط ۶۸۰: خط ۶۸۱:
                  
                  
                 if (currentChapter) {
                 if (currentChapter) {
                     displayChapterContent();
                     displayChapterWithIframe();
                 } else {
                 } else {
                     resetContent();
                     resetContent();
خط ۶۸۶: خط ۶۸۷:
             });
             });


             // نمایش محتوای فصل
             // نمایش فصل با iframe - فقط محتوای اصلی
             function displayChapterContent() {
             function displayChapterWithIframe() {
                 const bookIndex = parseInt(currentBook);
                 const bookIndex = parseInt(currentBook);
                 const bookData = bibleData[currentTestament][bookIndex];
                 const bookData = translations[currentTranslation].bookNames[currentTestament][bookIndex];
                 const bookName = bookData.name;
                 const bookName = bookData.name;
                 const bookDisplayName = bookData.displayName;
                 const bookDisplayName = bookData.displayName;
                const translationName = translations[currentTranslation].name;
                  
                  
                 chapterTitle.textContent = `${bookName} - فصل ${currentChapter} (${getTranslationName(currentTranslation)})`;
                 chapterTitle.textContent = `${translationName} - ${bookName} - فصل ${currentChapter}`;
                  
                  
                 // محتوای نمونه برای نمایش
                const pageTitle = `${bookDisplayName} فصل ${currentChapter}`;
                 const sampleContent = generateSampleContent(bookName, currentChapter, currentTranslation);
                 // استفاده از action=render برای نمایش فقط محتوای اصلی
                 const contentUrl = `${translations[currentTranslation].baseUrl}${encodeURIComponent(pageTitle)}&action=render`;
                  
                  
                 versesContainer.innerHTML = `
                 versesContainer.innerHTML = `
                     <div class="content-display">
                     <iframe
                         <div style="padding: 20px; line-height: 2; font-size: 1.1rem; text-align: justify;">
                        id="content-iframe"
                            <h3 style="text-align: center; color: var(--primary-color); margin-bottom: 20px;">
                         src="${contentUrl}"  
                                ${bookName} - فصل ${currentChapter}
                        class="content-display"
                            </h3>
                        frameborder="0"
                            <div style="direction: rtl; text-align: right;">
                        loading="lazy"
                                ${sampleContent}
                         allowfullscreen>
                            </div>
                     </iframe>
                            <div style="margin-top: 30px; padding: 15px; background: var(--light-color); border-radius: 5px; border-right: 4px solid var(--secondary-color);">
                                <strong>ترجمه:</strong> ${getTranslationName(currentTranslation)}<br>
                                <strong>کتاب:</strong> ${bookName}<br>
                                <strong>فصل:</strong> ${currentChapter}
                            </div>
                         </div>
                     </div>
                 `;
                 `;
                  
                  
                 // لینک ویکی (نمونه)
                 // لینک صفحه کامل برای باز کردن در تب جدید
                const pageTitle = translationPatterns[currentTranslation](bookDisplayName, currentChapter);
                 wikiPageLink.href = `${translations[currentTranslation].baseUrl}${encodeURIComponent(pageTitle)}`;
                const baseUrl = translationBases[currentTranslation];
                 wikiPageLink.href = `${baseUrl}${encodeURIComponent(pageTitle)}`;
                 wikiPageLink.style.display = 'flex';
                 wikiPageLink.style.display = 'flex';
                 updateNavigationButtons();
                 updateNavigationButtons();
            }
            // تولید محتوای نمونه
            function generateSampleContent(bookName, chapter, translation) {
                const samples = {
                    'farsi': [
                        `در ابتدا خدا آسمانها و زمین را آفرید. و زمین تهی و بایر بود، و تاریکی بر روی لجه. و روح خدا سطح آبها را فرو پوشانید.`,
                        `خدا گفت: «نور بشود» و نور شد. و خدا نور را دید که نیکوست، و خدا نور را از تاریکی جدا کرد.`,
                        `و خدا نور را روز نامید، و تاریکی را شب. و شام بود و صبح بود، روز اول.`
                    ],
                    'old_farsi': [
                        `در ابتدا خدا آسمان و زمین را بیافرید. و زمین ویران و تهی بود، و تاریکی بر روی لجه. و روح خدا بر روی آبها حرکت می‌کرد.`,
                        `و خدا گفت: «روشنی بشود» پس روشنی شد. و خدا روشنی را دید که نیکوست، و خدا روشنی را از تاریکی جدا ساخت.`,
                        `و خدا روشنی را روز خواند، و تاریکی را شب. پس شامگاه بود و بامداد بود، روز یکم.`
                    ],
                    'english': [
                        `In the beginning God created the heaven and the earth. And the earth was without form, and void; and darkness was upon the face of the deep. And the Spirit of God moved upon the face of the waters.`,
                        `And God said, Let there be light: and there was light. And God saw the light, that it was good: and God divided the light from the darkness.`,
                        `And God called the light Day, and the darkness he called Night. And the evening and the morning were the first day.`
                    ]
                };
               
                const content = samples[translation] || samples['farsi'];
                let html = '';
               
                content.forEach((verse, index) => {
                    html += `<p style="margin-bottom: 15px;"><strong>آیه ${index + 1}:</strong> ${verse}</p>`;
                });
               
                return html;
            }
            // تابع برای دریافت نام ترجمه
            function getTranslationName(translationCode) {
                const translationNames = {
                    'farsi': 'فارسی',
                    'old_farsi': 'فارسی قدیم',
                    'english': 'انگلیسی'
                };
                return translationNames[translationCode] || 'فارسی';
             }
             }


             function updateNavigationButtons() {
             function updateNavigationButtons() {
                 const bookIndex = parseInt(currentBook);
                 const bookIndex = parseInt(currentBook);
                 const chaptersCount = bibleData[currentTestament][bookIndex].chapters;
                 const chaptersCount = translations[currentTranslation].bookNames[currentTestament][bookIndex].chapters;
                  
                  
                 prevChapterBtn.disabled = currentChapter <= 1;
                 prevChapterBtn.disabled = currentChapter <= 1;
خط ۷۷۶: خط ۷۳۰:
                     currentChapter--;
                     currentChapter--;
                     chapterSelect.value = currentChapter;
                     chapterSelect.value = currentChapter;
                     displayChapterContent();
                     displayChapterWithIframe();
                 }
                 }
             });
             });
خط ۷۸۲: خط ۷۳۶:
             nextChapterBtn.addEventListener('click', function() {
             nextChapterBtn.addEventListener('click', function() {
                 const bookIndex = parseInt(currentBook);
                 const bookIndex = parseInt(currentBook);
                 const chaptersCount = bibleData[currentTestament][bookIndex].chapters;
                 const chaptersCount = translations[currentTranslation].bookNames[currentTestament][bookIndex].chapters;
                  
                  
                 if (currentChapter < chaptersCount) {
                 if (currentChapter < chaptersCount) {
                     currentChapter++;
                     currentChapter++;
                     chapterSelect.value = currentChapter;
                     chapterSelect.value = currentChapter;
                     displayChapterContent();
                     displayChapterWithIframe();
                 }
                 }
             });
             });


             function resetContent() {
             function resetContent() {
                 chapterTitle.textContent = 'لطفاً کتاب و فصل مورد نظر را انتخاب کنید';
                 chapterTitle.textContent = 'لطفاً ترجمه، کتاب و فصل مورد نظر را انتخاب کنید';
                 versesContainer.innerHTML = `
                 versesContainer.innerHTML = `
                     <div class="instructions">
                     <div class="instructions">
                         <div class="placeholder">
                         <div class="placeholder">
                             <i class="fas fa-book-open"></i>
                             <i class="fas fa-book-open"></i>
                             <p>برای مطالعه کتاب مقدس، لطفاً ابتدا عهد، ترجمه، سپس کتاب و فصل مورد نظر خود را انتخاب کنید.</p>
                             <p>برای مطالعه کتاب مقدس، لطفاً ابتدا ترجمه، سپس عهد، کتاب و فصل مورد نظر خود را انتخاب کنید.</p>
                         </div>
                         </div>
                     </div>
                     </div>
خط ۸۰۷: خط ۷۶۱:


             function resetAll() {
             function resetAll() {
                testamentSelect.disabled = true;
                testamentSelect.innerHTML = '<option value="">انتخاب عهد</option>';
                 bookSelect.disabled = true;
                 bookSelect.disabled = true;
                 bookSelect.innerHTML = '<option value="">انتخاب کتاب</option>';
                 bookSelect.innerHTML = '<option value="">انتخاب کتاب</option>';
خط ۸۱۴: خط ۷۷۰:
             }
             }


             console.log('✅ برنامه کتاب مقدس با ترجمه‌های مختلف روی دامنه مجاز بارگذاری شد');
             console.log('✅ برنامه کتاب مقدس روی دامنه مجاز بارگذاری شد');
         }
         }


خط ۸۲۴: خط ۷۸۰:


         // 🔒 جلوگیری از دسترسی به توابع از کنسول
         // 🔒 جلوگیری از دسترسی به توابع از کنسول
         Object.defineProperty(window, 'bibleData', {
         Object.defineProperty(window, 'translations', {
             value: null,
             value: null,
             writable: false,
             writable: false,

نسخهٔ ‏۸ اکتبر ۲۰۲۵، ساعت ۰۳:۵۸

<!DOCTYPE html> کتاب مقدس - مطالعه آنلاین

کتاب مقدس - مطالعه آنلاین

مطالعه کتاب مقدس با ترجمه‌های مختلف