پرش به محتوا

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

از دانشنامه کتاب مقدس
بدون خلاصۀ ویرایش
بدون خلاصۀ ویرایش
 
(۲۷ نسخهٔ میانیِ ایجادشده توسط همین کاربر نشان داده نشد)
خط ۶۵: خط ۶۵:
             gap: 8px;
             gap: 8px;
             margin-bottom: 12px;
             margin-bottom: 12px;
             font-size: 0.9rem;
             font-size: 1.1rem;
             color: var(--dark-color);
             color: var(--dark-color);
             direction: rtl;
             direction: rtl;
خط ۱۰۲: خط ۱۰۲:
          
          
         .description {
         .description {
             color: var(--accent-color);
             color:#808080;
             font-size: 1rem;
             font-size:1rem;
             font-style: italic;
             font-style: italic;
             margin-top: 5px;
             margin-top: 5px;
خط ۲۳۴: خط ۲۳۴:
             gap: 8px;
             gap: 8px;
             padding: 12px 20px;
             padding: 12px 20px;
             background-color: var(--accent-color);
             background-color: #87CEEB;
             color: white;
             color: #000000;
             text-decoration: none;
             text-decoration: none;
             border-radius: 6px;
             border-radius: 6px;
خط ۲۷۵: خط ۲۷۵:
             margin-bottom: 15px;
             margin-bottom: 15px;
             font-size: 1.5rem;
             font-size: 1.5rem;
        }
        .info-message {
            text-align: center;
            padding: 10px;
            background: #e7f3ff;
            border-radius: 5px;
            margin-top: 10px;
            font-size: 0.9rem;
            color: #0066cc;
         }
         }


خط ۳۹۰: خط ۴۰۰:
                 <span class="breadcrumb-current">کتاب مقدس</span>
                 <span class="breadcrumb-current">کتاب مقدس</span>
             </nav>
             </nav>
             <h1>کتاب مقدس</h1>
             <h1>کتاب مقدس آنلاین</h1>
             <p class="description">مطالعه کتاب مقدس با ترجمه‌های مختلف</p>
             <p class="description">مطالعه ترجمه‌های مختلف بصورت کاربردی با واژه نامه تخصصی<br>
ترجمهٔ هزارهٔ نو و مژده هم‌اکنون قابل مطالعه‌اند و عهد جدید کامل شده است. واژه‌نامه‌ها به‌صورت روزانه و با دقت در حال اتصال و به‌روزرسانی هستند تا خدمتی ماندگار برای نسل حال و آیندگان در خداوند به‌جا بگذاریم.</p>
         </div>
         </div>
          
          
خط ۵۸۸: خط ۵۹۹:
                             </div>
                             </div>
                         </div>
                         </div>
                    </div>
                   
                    <div class="info-message">
                        <i class="fas fa-info-circle"></i>
                        واژه ها در همین پنجره نمایش داده می‌شوند. برای تجربه بهتر مطالعه واژه در تب جدید: راست کلیک → Open in new tab
                     </div>
                     </div>
                      
                      
خط ۶۱۴: خط ۶۳۰:
                     name: 'ترجمه قدیم',
                     name: 'ترجمه قدیم',
                     baseUrl: 'https://www.pediabible.com/index.php?title=',
                     baseUrl: 'https://www.pediabible.com/index.php?title=',
                    // برای ترجمه قدیم از الگوی ساده با displayName استفاده می‌کنیم
                     getPageTitle: function(bookDisplayName, chapter) {
                     getPageTitle: function(bookDisplayName, chapter) {
                         return `${bookDisplayName} فصل ${chapter}`;
                         return `${bookDisplayName} فصل ${chapter}`;
خط ۶۲۲: خط ۶۳۷:
                     name: 'هزاره نو',
                     name: 'هزاره نو',
                     baseUrl: 'https://www.pediabible.com/index.php?title=',
                     baseUrl: 'https://www.pediabible.com/index.php?title=',
                    // برای ترجمه‌های جدید از displayName + نام ترجمه استفاده می‌کنیم
                     getPageTitle: function(bookDisplayName, chapter) {
                     getPageTitle: function(bookDisplayName, chapter) {
                         return `${bookDisplayName} هزاره نو فصل ${chapter}`;
                         return `${bookDisplayName} هزاره نو فصل ${chapter}`;
خط ۷۵۳: خط ۷۶۷:
                 chapterTitle.textContent = `${translationName} - ${bookName} - فصل ${currentChapter}`;
                 chapterTitle.textContent = `${translationName} - ${bookName} - فصل ${currentChapter}`;
                  
                  
                // استفاده از الگوی مناسب برای هر ترجمه
                 const pageTitle = translations[currentTranslation].getPageTitle(bookDisplayName, currentChapter);
                 const pageTitle = translations[currentTranslation].getPageTitle(bookDisplayName, currentChapter);
               
                // استفاده از action=render برای نمایش فقط محتوای اصلی
                 const contentUrl = `${translations[currentTranslation].baseUrl}${encodeURIComponent(pageTitle)}&action=render`;
                 const contentUrl = `${translations[currentTranslation].baseUrl}${encodeURIComponent(pageTitle)}&action=render`;
                  
                  
خط ۷۶۶: خط ۷۷۷:
                         frameborder="0"
                         frameborder="0"
                         loading="lazy"
                         loading="lazy"
                        sandbox="allow-scripts allow-same-origin allow-forms allow-popups"
                         allowfullscreen>
                         allowfullscreen>
                     </iframe>
                     </iframe>
                 `;
                 `;
                  
                  
                 // لینک صفحه کامل برای باز کردن در تب جدید
                 // اضافه کردن sandbox به iframe برای امنیت بیشتر
                const iframe = document.getElementById('content-iframe');
               
                 wikiPageLink.href = `${translations[currentTranslation].baseUrl}${encodeURIComponent(pageTitle)}`;
                 wikiPageLink.href = `${translations[currentTranslation].baseUrl}${encodeURIComponent(pageTitle)}`;
                 wikiPageLink.style.display = 'flex';
                 wikiPageLink.style.display = 'flex';
                 updateNavigationButtons();
                 updateNavigationButtons();
               
                // 🔄 اضافه کردن مدیریت لینک‌های داخلی
                setupSimpleLinkHandler();
            }
            // 🔧 سیستم ساده مدیریت لینک‌های داخلی
            function setupSimpleLinkHandler() {
                const iframe = document.getElementById('content-iframe');
               
                iframe.onload = function() {
                    try {
                        const iframeDoc = iframe.contentDocument || iframe.contentWindow.document;
                        const links = iframeDoc.querySelectorAll('a');
                       
                        links.forEach(link => {
                            // بررسی تمام لینک‌ها به pediabible.com
                            if (link.href && link.href.includes('pediabible.com')) {
                                link.onclick = function(e) {
                                    e.preventDefault();
                                    e.stopPropagation();
                                   
                                    const url = new URL(this.href);
                                    let titleParam = url.searchParams.get('title');
                                   
                                    // اگر title وجود ندارد، از مسیر استخراج کنیم
                                    if (!titleParam) {
                                        const pathParts = url.pathname.split('/');
                                        const lastPart = pathParts[pathParts.length - 1];
                                        if (lastPart === 'index.php') {
                                            titleParam = url.searchParams.get('title');
                                        } else {
                                            // استخراج عنوان از مسیر
                                            titleParam = decodeURIComponent(lastPart);
                                        }
                                    }
                                   
                                    if (titleParam) {
                                        // بارگذاری صفحه جدید در iframe با action=render
                                        const newUrl = `${translations[currentTranslation].baseUrl}${encodeURIComponent(titleParam)}&action=render`;
                                        iframe.src = newUrl;
                                       
                                        // به‌روزرسانی لینک و عنوان
                                        wikiPageLink.href = `${translations[currentTranslation].baseUrl}${encodeURIComponent(titleParam)}`;
                                        chapterTitle.textContent = `صفحه: ${decodeURIComponent(titleParam)}`;
                                    }
                                };
                            }
                        });
                    } catch (error) {
                        // خطا را نادیده بگیر - به برنامه آسیب نمی‌زند
                        console.log('خطا در مدیریت لینک‌ها:', error);
                    }
                };
             }
             }



نسخهٔ کنونی تا ‏۱۱ اکتبر ۲۰۲۵، ساعت ۲۲:۰۹

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

کتاب مقدس آنلاین

مطالعه ترجمه‌های مختلف بصورت کاربردی با واژه نامه تخصصی
ترجمهٔ هزارهٔ نو و مژده هم‌اکنون قابل مطالعه‌اند و عهد جدید کامل شده است. واژه‌نامه‌ها به‌صورت روزانه و با دقت در حال اتصال و به‌روزرسانی هستند تا خدمتی ماندگار برای نسل حال و آیندگان در خداوند به‌جا بگذاریم.