کتاب مقدس آنلاین: تفاوت میان نسخهها
ظاهر
بدون خلاصۀ ویرایش |
بدون خلاصۀ ویرایش |
||
خط ۱۳۳: | خط ۱۳۳: | ||
min-width: 120px; | min-width: 120px; | ||
text-align: center; | text-align: center; | ||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
gap: 5px; | |||
} | } | ||
خط ۱۴۵: | خط ۱۴۹: | ||
.wiki-link { | .wiki-link { | ||
display: inline- | display: inline-flex; | ||
align-items: center; | |||
justify-content: center; | |||
gap: 5px; | |||
padding: 8px 16px; | padding: 8px 16px; | ||
background-color: var(--accent-color); | background-color: var(--accent-color); | ||
خط ۱۸۱: | خط ۱۸۸: | ||
.iframe-container { | .iframe-container { | ||
margin-top: 15px; | margin-top: 15px; | ||
width: 100%; | |||
} | } | ||
.view-controls { | |||
.view- | |||
display: flex; | display: flex; | ||
gap: 8px; | gap: 8px; | ||
justify-content: center; | justify-content: center; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
margin-bottom: 15px; | |||
} | } | ||
خط ۲۱۴: | خط ۲۰۷: | ||
transition: all 0.3s; | transition: all 0.3s; | ||
font-size: 0.85rem; | font-size: 0.85rem; | ||
display: flex; | |||
align-items: center; | |||
gap: 5px; | |||
} | } | ||
خط ۲۴۳: | خط ۲۳۹: | ||
margin-bottom: 12px; | margin-bottom: 12px; | ||
font-size: 1.2rem; | font-size: 1.2rem; | ||
} | |||
.current-display { | |||
text-align: center; | |||
margin-bottom: 10px; | |||
padding: 8px; | |||
background: #f8f9fa; | |||
border-radius: 5px; | |||
font-size: 0.9rem; | |||
} | } | ||
خط ۲۹۶: | خط ۳۰۱: | ||
.navigation { | .navigation { | ||
flex-direction: | flex-direction: row; | ||
gap: 8px; | gap: 8px; | ||
margin-top: 20px; | margin-top: 20px; | ||
خط ۳۰۲: | خط ۳۰۷: | ||
.nav-btn, .wiki-link { | .nav-btn, .wiki-link { | ||
min-width: auto; | min-width: auto; | ||
flex: 1; | |||
} | } | ||
.view-controls { | |||
.view- | |||
gap: 6px; | gap: 6px; | ||
} | } | ||
خط ۳۲۱: | خط ۳۱۸: | ||
padding: 5px 10px; | padding: 5px 10px; | ||
font-size: 0.8rem; | font-size: 0.8rem; | ||
flex: 1; | |||
justify-content: center; | |||
} | } | ||
.clean-iframe { | .clean-iframe { | ||
height: 400px; | height: 400px; | ||
border-radius: 0; | |||
border-left: none; | |||
border-right: none; | |||
} | } | ||
خط ۳۳۰: | خط ۳۳۲: | ||
padding: 12px; | padding: 12px; | ||
font-size: 0.85rem; | font-size: 0.85rem; | ||
} | |||
.current-display { | |||
font-size: 0.85rem; | |||
margin-bottom: 8px; | |||
} | } | ||
} | } | ||
خط ۳۳۸: | خط ۳۴۵: | ||
} | } | ||
. | .navigation { | ||
flex-wrap: nowrap; | |||
} | |||
.nav-btn, .wiki-link { | |||
font-size: 0.8rem; | |||
padding: 6px 8px; | |||
} | |||
.view-controls { | |||
flex-direction: row; | |||
} | } | ||
.view-btn { | .view-btn { | ||
width: | width: auto; | ||
} | } | ||
} | } | ||
خط ۴۵۲: | خط ۴۶۷: | ||
<div class="navigation"> | <div class="navigation"> | ||
<button class="nav-btn" id="prev-chapter" disabled>فصل قبلی</button> | <button class="nav-btn" id="prev-chapter" disabled>⏪ فصل قبلی</button> | ||
<a href="#" class="wiki-link" id="wiki-page-link" target="_blank" style="display: none;">مشاهده در ویکی</a> | <a href="#" class="wiki-link" id="wiki-page-link" target="_blank" style="display: none;">📖 مشاهده در ویکی</a> | ||
<button class="nav-btn" id="next-chapter" disabled>فصل بعدی</button> | <button class="nav-btn" id="next-chapter" disabled>فصل بعدی ⏩</button> | ||
</div> | </div> | ||
</div> | </div> | ||
خط ۵۸۲: | خط ۵۹۷: | ||
versesContainer.innerHTML = ` | versesContainer.innerHTML = ` | ||
<div class="iframe-container"> | <div class="iframe-container"> | ||
<div class=" | <div class="current-display"> | ||
📖 در حال نمایش: <strong>${bookName} فصل ${currentChapter}</strong> | |||
</div> | |||
<div class="view-controls"> | |||
<button class="view-btn ${currentViewMode === 'render' ? 'active' : ''}" data-mode="render">🧹 نمایش تمیز</button> | |||
<button class="view-btn ${currentViewMode === 'full' ? 'active' : ''}" data-mode="full">📄 صفحه کامل</button> | |||
<a href="${fullPageUrl}" class="view-btn" target="_blank">🔄 باز کردن در تب جدید</a> | |||
</div> | </div> | ||
<iframe | <iframe | ||
خط ۶۰۲: | خط ۶۱۷: | ||
// اضافه کردن رویداد به دکمههای نمایش | // اضافه کردن رویداد به دکمههای نمایش | ||
document.querySelectorAll('.view-btn').forEach(btn => { | document.querySelectorAll('.view-btn[data-mode]').forEach(btn => { | ||
btn.addEventListener('click', function() { | btn.addEventListener('click', function() { | ||
const mode = this.getAttribute('data-mode'); | const mode = this.getAttribute('data-mode'); | ||
خط ۶۱۰: | خط ۶۲۵: | ||
wikiPageLink.href = fullPageUrl; | wikiPageLink.href = fullPageUrl; | ||
wikiPageLink.style.display = 'inline- | wikiPageLink.style.display = 'inline-flex'; | ||
updateNavigationButtons(); | updateNavigationButtons(); | ||
} | } | ||
خط ۶۳۱: | خط ۶۴۶: | ||
} | } | ||
document.querySelectorAll('.view-btn').forEach(btn => { | document.querySelectorAll('.view-btn[data-mode]').forEach(btn => { | ||
btn.classList.remove('active'); | btn.classList.remove('active'); | ||
}); | }); |
نسخهٔ ۷ اکتبر ۲۰۲۵، ساعت ۲۲:۳۶
<!DOCTYPE html>
کتاب مقدس
مطالعه آنلاین کتاب مقدس به زبان فارسی