کتاب مقدس آنلاین: تفاوت میان نسخهها
ظاهر
	
	
| بدون خلاصۀ ویرایش | بدون خلاصۀ ویرایش | ||
| (۴۱ نسخهٔ میانیِ ایجادشده توسط همین کاربر نشان داده نشد) | |||
| خط ۳۰: | خط ۳۰: | ||
|              padding: 0; |              padding: 0; | ||
|              margin: 0; |              margin: 0; | ||
|         } | |||
|         /* مخفی کردن هدرهای اضافی ویکی */ | |||
|         body > header:first-child, | |||
|         .wiki-header, | |||
|         .mw-header, | |||
|         #mw-header, | |||
|         #header, | |||
|         .header { | |||
|             display: none !important; | |||
|          } |          } | ||
| خط ۵۵: | خط ۶۵: | ||
|              gap: 8px; |              gap: 8px; | ||
|              margin-bottom: 12px; |              margin-bottom: 12px; | ||
|              font-size:  |              font-size: 1.1rem; | ||
|              color: var(--dark-color); |              color: var(--dark-color); | ||
|              direction: rtl; |              direction: rtl; | ||
| خط ۹۲: | خط ۱۰۲: | ||
|          .description { |          .description { | ||
|              color:  |              color:#808080; | ||
|              font-size: 1rem; |              font-size:1rem; | ||
|              font-style: italic; |              font-style: italic; | ||
|              margin-top: 5px; |              margin-top: 5px; | ||
| خط ۱۷۳: | خط ۱۸۳: | ||
|          .content-display { |          .content-display { | ||
|              width: 100%; |              width: 100%; | ||
|              height: 650px; | |||
|              border: 1px solid var(--border-color); |              border: 1px solid var(--border-color); | ||
|              border-radius: 6px; |              border-radius: 6px; | ||
|              background: white; |              background: white; | ||
|          } |          } | ||
| خط ۲۶۴: | خط ۲۳۴: | ||
|              gap: 8px; |              gap: 8px; | ||
|              padding: 12px 20px; |              padding: 12px 20px; | ||
|              background-color:  |              background-color: #87CEEB; | ||
|              color:  |              color: #000000; | ||
|              text-decoration: none; |              text-decoration: none; | ||
|              border-radius: 6px; |              border-radius: 6px; | ||
| خط ۲۹۱: | خط ۲۶۱: | ||
|          } |          } | ||
|          . |          .access-denied { | ||
|              text-align: center; |              text-align: center; | ||
|              padding: 40px; |              padding: 40px; | ||
|              color:  |             background: #fee; | ||
|             border-radius: 8px; | |||
|             border: 2px solid #f5c6cb; | |||
|              color: #721c24; | |||
|             margin-top: 20px; | |||
|          } |          } | ||
|          . |          .access-denied h3 { | ||
|              color: #721c24; | |||
|              margin-bottom: 15px; |              margin-bottom: 15px; | ||
|              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; | |||
|          } |          } | ||
| خط ۳۴۶: | خط ۳۳۰: | ||
|              .content-display { |              .content-display { | ||
|                  height: 500px; | |||
|              } |              } | ||
| خط ۳۶۳: | خط ۳۴۶: | ||
|          @media (max-width: 480px) { |          @media (max-width: 480px) { | ||
|              .content-display { |              .content-display { | ||
|                  height: 450px; | |||
|              } |              } | ||
| خط ۴۱۸: | خط ۴۰۰: | ||
|                  <span class="breadcrumb-current">کتاب مقدس</span> |                  <span class="breadcrumb-current">کتاب مقدس</span> | ||
|              </nav> |              </nav> | ||
|              <h1>کتاب مقدس</h1> |              <h1>کتاب مقدس آنلاین</h1> | ||
|              <p class="description">مطالعه  |              <p class="description">مطالعه ترجمههای مختلف بصورت کاربردی با واژه نامه تخصصی<br> | ||
| ترجمهٔ هزارهٔ نو و مژده هماکنون قابل مطالعهاند و عهد جدید کامل شده است. واژهنامهها بهصورت روزانه و با دقت در حال اتصال و بهروزرسانی هستند تا خدمتی ماندگار برای نسل حال و آیندگان در خداوند بهجا بگذاریم.</p> | |||
|          </div> |          </div> | ||
| خط ۴۲۸: | خط ۴۱۱: | ||
|      <script> |      <script> | ||
|         // 🔒 سیستم حفاظتی - بررسی دامنه مجاز | |||
|         const ALLOWED_DOMAINS = [ | |||
|             'pediabible.com', | |||
|             'www.pediabible.com', | |||
|             'localhost', | |||
|             '127.0.0.1' | |||
|         ]; | |||
|         // تابع بررسی مجاز بودن دامنه | |||
|         function isDomainAllowed() { | |||
|             const currentDomain = window.location.hostname; | |||
|             console.log('🔍 بررسی دامنه:', currentDomain); | |||
|             // اگر روی فایل محلی هستیم، اجازه بده | |||
|             if (!currentDomain || currentDomain === '' || currentDomain === 'null') { | |||
|                 console.log('✅ فایل محلی - مجاز'); | |||
|                 return true; | |||
|             } | |||
|             const isAllowed = ALLOWED_DOMAINS.some(domain => { | |||
|                 const match = currentDomain === domain || currentDomain.endsWith('.' + domain); | |||
|                 if (match) { | |||
|                     console.log(`✅ دامنه ${currentDomain} مجاز است`); | |||
|                 } | |||
|                 return match; | |||
|             }); | |||
|             if (!isAllowed) { | |||
|                 console.log(`❌ دامنه ${currentDomain} غیرمجاز است`); | |||
|             } | |||
|             return isAllowed; | |||
|         } | |||
|         // تابع نمایش پیام دسترسی غیرمجاز | |||
|         function showAccessDenied() { | |||
|             const wrapper = document.getElementById('content-wrapper'); | |||
|             wrapper.innerHTML = ` | |||
|                 <div class="access-denied"> | |||
|                     <h3><i class="fas fa-ban"></i> دسترسی محدود شده</h3> | |||
|                     <p>این صفحه فقط بر روی دامنه <strong>pediabible.com</strong> قابل دسترسی است.</p> | |||
|                     <p>دامنه فعلی: <code>${window.location.hostname}</code></p> | |||
|                     <p>لطفاً از <a href="https://www.pediabible.com" style="color: #721c24; text-decoration: underline;">سایت اصلی</a> بازدید کنید.</p> | |||
|                 </div> | |||
|             `; | |||
|         } | |||
|         // تابع اصلی بارگذاری برنامه | |||
|         function loadApplication() { | |||
|             console.log('🚀 شروع بارگذاری با بررسی امنیتی...'); | |||
|             if (!isDomainAllowed()) { | |||
|                 console.log('❌ دسترسی غیرمجاز - نمایش پیام خطا'); | |||
|                 showAccessDenied(); | |||
|                 return; | |||
|             } | |||
|             console.log('✅ دامنه مجاز - بارگذاری برنامه اصلی'); | |||
|             // اگر دامنه مجاز باشد، برنامه اصلی بارگذاری میشود | |||
|             initializeBibleApp(); | |||
|         } | |||
|          // دادههای کامل کتابهای مقدس |          // دادههای کامل کتابهای مقدس | ||
|          const bibleBooks = { |          const bibleBooks = { | ||
| خط ۵۵۴: | خط ۵۹۹: | ||
|                              </div> |                              </div> | ||
|                          </div> |                          </div> | ||
|                     </div> | |||
|                     <div class="info-message"> | |||
|                         <i class="fas fa-info-circle"></i> | |||
|                         واژه ها در همین پنجره نمایش داده میشوند. برای تجربه بهتر مطالعه واژه در تب جدید: راست کلیک → Open in new tab  | |||
|                      </div> |                      </div> | ||
| خط ۷۰۱: | خط ۷۵۱: | ||
|                  if (currentChapter) { |                  if (currentChapter) { | ||
|                      displayChapterWithIframe(); | |||
|                  } else { |                  } else { | ||
|                      resetContent(); |                      resetContent(); | ||
| خط ۷۰۷: | خط ۷۵۷: | ||
|              }); |              }); | ||
|              // نمایش محتوای  |              // نمایش فصل با iframe - فقط محتوای اصلی | ||
|              function displayChapterWithIframe() { | |||
|                  const bookIndex = parseInt(currentBook); |                  const bookIndex = parseInt(currentBook); | ||
|                  const bookData = bibleBooks[currentTestament][bookIndex]; |                  const bookData = bibleBooks[currentTestament][bookIndex]; | ||
| خط ۷۱۷: | خط ۷۶۷: | ||
|                  chapterTitle.textContent = `${translationName} - ${bookName} - فصل ${currentChapter}`; |                  chapterTitle.textContent = `${translationName} - ${bookName} - فصل ${currentChapter}`; | ||
|                  const pageTitle = translations[currentTranslation].getPageTitle(bookDisplayName, currentChapter); | |||
|                 const contentUrl = `${translations[currentTranslation].baseUrl}${encodeURIComponent(pageTitle)}&action=render`; | |||
|                  versesContainer.innerHTML = ` |                  versesContainer.innerHTML = ` | ||
|                      < |                      <iframe  | ||
|                         id="content-iframe" | |||
|                         src="${contentUrl}"  | |||
|                      </ |                         class="content-display" | ||
|                         frameborder="0" | |||
|                         loading="lazy" | |||
|                          sandbox="allow-scripts allow-same-origin allow-forms allow-popups" | |||
|                          allowfullscreen> | |||
|                      </iframe> | |||
|                  `; |                  `; | ||
|                  //  |                  // اضافه کردن sandbox به iframe برای امنیت بیشتر | ||
|                  const  |                  const iframe = document.getElementById('content-iframe'); | ||
|                  wikiPageLink.href = `${translations[currentTranslation].baseUrl}${encodeURIComponent(pageTitle)}`; | |||
|                  wikiPageLink.href =  | |||
|                  wikiPageLink.style.display = 'flex'; |                  wikiPageLink.style.display = 'flex'; | ||
|                  updateNavigationButtons(); |                  updateNavigationButtons(); | ||
|              } |              } | ||
| خط ۷۹۶: | خط ۸۰۲: | ||
|                      currentChapter--; |                      currentChapter--; | ||
|                      chapterSelect.value = currentChapter; |                      chapterSelect.value = currentChapter; | ||
|                      displayChapterWithIframe(); | |||
|                  } |                  } | ||
|              }); |              }); | ||
| خط ۸۰۷: | خط ۸۱۳: | ||
|                      currentChapter++; |                      currentChapter++; | ||
|                      chapterSelect.value = currentChapter; |                      chapterSelect.value = currentChapter; | ||
|                      displayChapterWithIframe(); | |||
|                  } |                  } | ||
|              }); |              }); | ||
| خط ۸۳۶: | خط ۸۴۲: | ||
|              } |              } | ||
|              console.log('✅ برنامه کتاب مقدس بارگذاری شد'); |              console.log('✅ برنامه کتاب مقدس روی دامنه مجاز بارگذاری شد'); | ||
|          } |          } | ||
|          // شروع برنامه |          // 🔒 شروع برنامه با بررسی امنیتی | ||
|          document.addEventListener('DOMContentLoaded', function() { |          document.addEventListener('DOMContentLoaded', function() { | ||
|              console.log('🚀 شروع بارگذاری  |              console.log('🚀 شروع بارگذاری با بررسی امنیتی...'); | ||
|              loadApplication(); | |||
|         }); | |||
|         // 🔒 جلوگیری از دسترسی به توابع از کنسول | |||
|         Object.defineProperty(window, 'translations', { | |||
|             value: null, | |||
|             writable: false, | |||
|             configurable: false | |||
|          }); |          }); | ||
|      </script> |      </script> | ||
| </body> | </body> | ||
| </html> | </html> | ||
نسخهٔ کنونی تا ۱۱ اکتبر ۲۰۲۵، ساعت ۲۲:۰۹
کتاب مقدس آنلاین
مطالعه ترجمههای مختلف بصورت کاربردی با واژه نامه تخصصی
ترجمهٔ هزارهٔ نو و مژده هماکنون قابل مطالعهاند و عهد جدید کامل شده است. واژهنامهها بهصورت روزانه و با دقت در حال اتصال و بهروزرسانی هستند تا خدمتی ماندگار برای نسل حال و آیندگان در خداوند بهجا بگذاریم.