پرش به محتوا

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

از دانشنامه کتاب مقدس
بدون خلاصۀ ویرایش
بدون خلاصۀ ویرایش
 
(۴۲ نسخهٔ میانیِ ایجادشده توسط همین کاربر نشان داده نشد)
خط ۳۸: خط ۳۸:
         #mw-header,
         #mw-header,
         #header,
         #header,
         .header,
         .header {
        #mw-navigation,
        #mw-panel,
        #footer,
        .mw-footer {
             display: none !important;
             display: none !important;
         }
         }
خط ۶۹: خط ۶۵:
             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>
             `;
             `;
        }
        // تابع برای اضافه کردن target="_blank" به تمام لینک‌های داخل iframe
        function addTargetBlankToIframeLinks() {
            const iframe = document.getElementById('content-iframe');
            if (!iframe) return;
           
            iframe.addEventListener('load', function() {
                try {
                    const iframeDoc = iframe.contentDocument || iframe.contentWindow.document;
                   
                    // مخفی کردن هدرها و فوترها در داخل iframe
                    const elementsToHide = iframeDoc.querySelectorAll(
                        '#mw-navigation, #mw-panel, #footer, .mw-footer, .mw-header, header, .header'
                    );
                    elementsToHide.forEach(el => {
                        el.style.display = 'none';
                    });
                   
                    // اضافه کردن target="_blank" به تمام لینک‌ها
                    const links = iframeDoc.querySelectorAll('a');
                    links.forEach(link => {
                        if (link.href &&
                            !link.href.startsWith('javascript:') &&
                            !link.href.startsWith('#')) {
                            link.setAttribute('target', '_blank');
                            link.setAttribute('rel', 'noopener noreferrer');
                        }
                    });
                   
                    console.log(`✅ ${links.length} لینک پردازش شد`);
                } catch (error) {
                    console.log('⚠️ امکان دسترسی به محتوای iframe وجود ندارد (محدودیت CORS)');
                }
            });
         }
         }


خط ۶۲۷: خط ۵۹۹:
                             </div>
                             </div>
                         </div>
                         </div>
                    </div>
                   
                    <div class="info-message">
                        <i class="fas fa-info-circle"></i>
                        واژه ها در همین پنجره نمایش داده می‌شوند. برای تجربه بهتر مطالعه واژه در تب جدید: راست کلیک → Open in new tab
                     </div>
                     </div>
                      
                      
خط ۷۸۰: خط ۷۵۷:
             });
             });


             // نمایش فصل با iframe
             // نمایش فصل با iframe - فقط محتوای اصلی
             function displayChapterWithIframe() {
             function displayChapterWithIframe() {
                 const bookIndex = parseInt(currentBook);
                 const bookIndex = parseInt(currentBook);
خط ۷۹۰: خط ۷۶۷:
                 chapterTitle.textContent = `${translationName} - ${bookName} - فصل ${currentChapter}`;
                 chapterTitle.textContent = `${translationName} - ${bookName} - فصل ${currentChapter}`;
                  
                  
                // استفاده از الگوی مناسب برای هر ترجمه
                 const pageTitle = translations[currentTranslation].getPageTitle(bookDisplayName, currentChapter);
                 const pageTitle = translations[currentTranslation].getPageTitle(bookDisplayName, currentChapter);
               
                 const contentUrl = `${translations[currentTranslation].baseUrl}${encodeURIComponent(pageTitle)}&action=render`;
                // ساخت URL بدون action=render
                 const contentUrl = `${translations[currentTranslation].baseUrl}${encodeURIComponent(pageTitle)}`;
                  
                  
                 versesContainer.innerHTML = `
                 versesContainer.innerHTML = `
خط ۸۰۳: خط ۷۷۷:
                         frameborder="0"
                         frameborder="0"
                         loading="lazy"
                         loading="lazy"
                        sandbox="allow-scripts allow-same-origin allow-forms allow-popups"
                         allowfullscreen>
                         allowfullscreen>
                     </iframe>
                     </iframe>
                 `;
                 `;
                  
                  
                 // لینک صفحه کامل برای باز کردن در تب جدید
                 // اضافه کردن sandbox به iframe برای امنیت بیشتر
                 wikiPageLink.href = contentUrl;
                const iframe = document.getElementById('content-iframe');
               
                 wikiPageLink.href = `${translations[currentTranslation].baseUrl}${encodeURIComponent(pageTitle)}`;
                 wikiPageLink.style.display = 'flex';
                 wikiPageLink.style.display = 'flex';
               
                // اضافه کردن ویژگی باز کردن لینک‌ها در پنجره جدید
                addTargetBlankToIframeLinks();
                 updateNavigationButtons();
                 updateNavigationButtons();
             }
             }

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

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

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

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