کتابخانه دانشنامه کتاب مقدس: تفاوت میان نسخهها
بدون خلاصۀ ویرایش |
بدون خلاصۀ ویرایش |
||
(۸ نسخهٔ میانیِ ایجادشده توسط همین کاربر نشان داده نشد) | |||
خط ۱: | خط ۱: | ||
<html lang="fa" dir="rtl"> | <html lang="fa" dir="rtl"> | ||
<head> | <head> | ||
خط ۵: | خط ۴: | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>کتابخانه انتشارات دانشنامه کتاب مقدس</title> | <title>کتابخانه انتشارات دانشنامه کتاب مقدس</title> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |||
<style> | <style> | ||
* { | * { | ||
خط ۲۳: | خط ۲۳: | ||
margin: 0 auto; | margin: 0 auto; | ||
background: white; | background: white; | ||
} | } | ||
خط ۳۰: | خط ۲۹: | ||
color: white; | color: white; | ||
padding: 20px 15px; | padding: 20px 15px; | ||
text-align: center; | text-align: center; | ||
} | } | ||
خط ۴۴: | خط ۴۲: | ||
font-size: 13px; | font-size: 13px; | ||
margin-top: 8px; | margin-top: 8px; | ||
} | } | ||
خط ۶۵: | خط ۶۲: | ||
text-align: justify; | text-align: justify; | ||
font-size: 14px; | font-size: 14px; | ||
} | } | ||
خط ۹۱: | خط ۸۷: | ||
font-size: 13px; | font-size: 13px; | ||
color: #666; | color: #666; | ||
} | } | ||
خط ۱۰۴: | خط ۹۹: | ||
display: flex; | display: flex; | ||
gap: 10px; | gap: 10px; | ||
} | } | ||
خط ۱۲۸: | خط ۱۲۲: | ||
background: white; | background: white; | ||
cursor: pointer; | cursor: pointer; | ||
} | } | ||
.searchable-select { | .searchable-select { | ||
position: relative; | position: relative; | ||
خط ۱۵۱: | خط ۱۳۶: | ||
background: white; | background: white; | ||
cursor: pointer; | cursor: pointer; | ||
text-align: right; | text-align: right; | ||
position: relative; | position: relative; | ||
خط ۱۷۵: | خط ۱۵۸: | ||
border: 1px solid #ced4da; | border: 1px solid #ced4da; | ||
border-radius: 6px; | border-radius: 6px; | ||
max-height: | max-height: 400px; | ||
overflow-y: auto; | overflow-y: auto; | ||
z-index: 1000; | z-index: 1000; | ||
خط ۱۸۸: | خط ۱۷۱: | ||
position: sticky; | position: sticky; | ||
top: 0; | top: 0; | ||
} | } | ||
خط ۱۹۷: | خط ۱۷۹: | ||
border-radius: 4px; | border-radius: 4px; | ||
font-size: 13px; | font-size: 13px; | ||
} | } | ||
.options-container { | .options-container { | ||
max-height: | max-height: 300px; | ||
overflow-y: auto; | overflow-y: auto; | ||
} | } | ||
خط ۲۱۴: | خط ۱۹۱: | ||
border-bottom: 1px solid #f1f1f1; | border-bottom: 1px solid #f1f1f1; | ||
font-size: 13px; | font-size: 13px; | ||
} | } | ||
خط ۲۳۳: | خط ۲۰۹: | ||
text-align: center; | text-align: center; | ||
padding: 15px; | padding: 15px; | ||
} | } | ||
خط ۲۵۸: | خط ۲۱۴: | ||
margin: 0 15px; | margin: 0 15px; | ||
border: 1px solid #dee2e6; | border: 1px solid #dee2e6; | ||
overflow: hidden; | overflow: hidden; | ||
background: white; | background: white; | ||
height: 500px; | height: 500px; | ||
} | } | ||
.content-header { | .content-header { | ||
padding: 12px 15px; | padding: 12px 15px; | ||
خط ۲۹۲: | خط ۲۴۶: | ||
cursor: pointer; | cursor: pointer; | ||
font-size: 12px; | font-size: 12px; | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
gap: 4px; | gap: 4px; | ||
} | } | ||
خط ۳۴۸: | خط ۲۹۳: | ||
padding: 10px 15px; | padding: 10px 15px; | ||
border-radius: 4px; | border-radius: 4px; | ||
font-size: 13px; | font-size: 13px; | ||
text-align: center; | text-align: center; | ||
خط ۳۵۷: | خط ۳۰۰: | ||
justify-content: center; | justify-content: center; | ||
gap: 6px; | gap: 6px; | ||
} | } | ||
خط ۳۶۶: | خط ۳۰۸: | ||
.view-link { | .view-link { | ||
background: #4a7c59; | background: #4a7c59; | ||
} | } | ||
خط ۳۸۱: | خط ۳۱۸: | ||
top: 0; | top: 0; | ||
right: 0; | right: 0; | ||
} | } | ||
خط ۴۲۶: | خط ۳۵۳: | ||
<div class="container"> | <div class="container"> | ||
<header class="header"> | <header class="header"> | ||
<h1>کتابخانه دانشنامه کتاب مقدس | <h1>کتابخانه دانشنامه کتاب مقدس</h1> | ||
<p class="description">مطالعه آنلاین کتابها و مقالات مسیحی | <p class="description">مطالعه آنلاین کتابها و مقالات مسیحی</p> | ||
</header> | </header> | ||
<section class="seo-content"> | <section class="seo-content"> | ||
<h2>کتابخانه جامع منابع مسیحی | <h2>کتابخانه جامع منابع مسیحی</h2> | ||
<p> | <p>کتابخانهٔ دانشنامهٔ کتاب مقدس مرجع کامل و تخصصی برای مطالعهٔ آنلاین کتابها و مقالات مسیحی است.</p> | ||
<div class="content-list"> | <div class="content-list"> | ||
<div class="content-item"> | <div class="content-item"> | ||
<h3> | <h3>کتابها</h3> | ||
<p> | <p>انتشار همهٔ کتابها در دانشنامه با اجازهٔ رسمی نویسندگان یا ناشران انجام شده است، و برای برخی آثار، مجوز چاپ مجدد نیز دریافت گردیده است. تمامی حقوق برای انتشارات دانشنامهٔ کتاب مقدس محفوظ است. | ||
نویسندگان و ناشران مسیحی میتوانند برای همکاری و انتشار آثار خود با ما در ارتباط باشند.</p> | |||
</div> | </div> | ||
<div class="content-item"> | <div class="content-item"> | ||
<h3> | <h3>مقالات</h3> | ||
<p> | <p>مقالات دانشنامه با اجازهٔ نویسندگان یا بر اساس منابع عمومی و بدون حق کپیرایت منتشر میشوند. در همهٔ موارد، اصول امانتداری و احترام به منبع اصلی رعایت شده است. | ||
پژوهشگران و نویسندگان مسیحی میتوانند برای انتشار مقالات خود با ما همکاری کنند</p> | |||
</div> | </div> | ||
<div class="content-item"> | <div class="content-item"> | ||
<h3> | <h3>فروشگاه کتاب</h3> | ||
<p> | <p>در فروشگاه کتاب دانشنامه، امکان خرید کتابهای چاپی و الکترونیکی فراهم شده است.</p> | ||
</div> | </div> | ||
</div> | </div> | ||
</section> | </section> | ||
<section class="filter-section | <section class="filter-section"> | ||
<div class="filter-row"> | <div class="filter-row"> | ||
<div class="form-group"> | <div class="form-group"> | ||
خط ۴۶۰: | خط ۳۸۵: | ||
<select id="categorySelect"> | <select id="categorySelect"> | ||
<option value="">لطفاً دستهبندی انتخاب کنید</option> | <option value="">لطفاً دستهبندی انتخاب کنید</option> | ||
<option value="کتاب">کتاب | <option value="کتاب">کتاب</option> | ||
<option value="مقاله">مقاله | <option value="مقاله">مقاله</option> | ||
<option value="فروشگاه کتاب">فروشگاه کتاب | <option value="فروشگاه کتاب">فروشگاه کتاب</option> | ||
</select> | </select> | ||
</div> | </div> | ||
<div class="form-group"> | <div class="form-group"> | ||
<label for="contentSelect"><i class="fas fa-book-open"></i> | <label for="contentSelect"><i class="fas fa-book-open"></i> انتخاب محتوا:</label> | ||
<div class="searchable-select"> | <div class="searchable-select"> | ||
<div class="select-display" id="selectDisplay"> | <div class="select-display" id="selectDisplay">لطفاً دستهبندی انتخاب کنید</div> | ||
<div class="options-list" id="optionsList"> | <div class="options-list" id="optionsList"> | ||
<div class="search-box"> | <div class="search-box"> | ||
خط ۴۷۵: | خط ۴۰۰: | ||
</div> | </div> | ||
<div class="options-container" id="optionsContainer"> | <div class="options-container" id="optionsContainer"> | ||
<div class="no-results">لطفاً | <div class="no-results">لطفاً ابتدا یک دستهبندی انتخاب کنید</div> | ||
</div> | </div> | ||
</div> | </div> | ||
خط ۴۸۷: | خط ۴۰۹: | ||
</section> | </section> | ||
<section class="content-frame | <section class="content-frame"> | ||
<div class="content-header"> | <div class="content-header"> | ||
<div class="content-title" id="contentTitle">هیچ محتوایی انتخاب نشده است</div> | <div class="content-title" id="contentTitle">هیچ محتوایی انتخاب نشده است</div> | ||
خط ۵۲۴: | خط ۴۴۶: | ||
<script> | <script> | ||
// | // دادههای واقعی | ||
const | const booksData = { | ||
'کتاب': [ | |||
{ value: 'کتاب_مسیحیت_در_ایران_تا_صدر_اسلام', text: 'کتاب مسیحیت در ایران تا صدر اسلام' }, | |||
{ value: '...', text: 'بزودی' }, | |||
{ value: '...', text: 'بزودی' } | |||
], | |||
'مقاله': [ | |||
{ value: 'مقاله_۸_تفاوت_کلیدی_بین_کاتولیکها_و_پروتستانها_نویسنده', text: 'مقاله: ۸ تفاوت کلیدی بین کاتولیکها و پروتستانها' }, | |||
{ value: 'مقاله_برادران،_ما_تحلیل%E2%80%8Cگران_سیاسی_نیستیم', text: 'مقاله: برادران، ما تحلیلگران سیاسی نیستیم' }, | |||
{ value: 'مقاله_گناه_آدمی_را_نادان_میکند', text: 'مقاله: گناه آدمی را نادان میکند' }, | |||
{ value: 'مقاله_۴_دلیل_که_چرا_کتاب_مقدس_از_تراجنسیتی_بودن_حمایت_نمی%E2%80%8Cکند', text: 'مقاله: ۴ دلیل که چرا کتاب مقدس از تراجنسیتی بودن حمایت نمیکند' }, | |||
{ value: '۱۰_معنای_یهوه', text: 'مقاله: ۱۰ معنای یهوه' }, | |||
' | { value: 'تدریس،_آموزش_و_مطالعه', text: 'مقاله: تدریس، آموزش و مطالعه' }, | ||
{ value: 'خدمت_به_خدا_یعنی_چه', text: 'مقاله: خدمت به خدا یعنی چه' }, | |||
{ value: '...', text: 'بزودی' }, | |||
{ value: '...', text: 'بزودی' }, | |||
{ value: '...', text: 'بزودی' } | |||
], | |||
'فروشگاه کتاب': [ | |||
{ value: 'کتاب_اسلحه_هایی_در_جنگ_علیه_نیروهای_شیطانی', text: 'اسلحه هایی در جنگ علیه نیروهای شیطانی' }, | |||
} | { value: 'کتاب_شناخت_عطیه_های_روح_القدس_در_تعلیم_و_عمل', text: 'شناخت عطیه های روح القدس در تعلیم و عمل' }, | ||
{ value: 'کتاب_کشف_عطیه_های_روح_القدس_در_خود', text: 'کشف عطیه های روح القدس در خود' }, | |||
{ value: 'کتاب_اسلحه_هایی_در_جنگ_علیه_نیروهای_شیطانی', text: 'اسلحه هایی در جنگ علیه نیروهای شیطانی' }, | |||
{ value: 'کتاب_گشودن_وعده_های_ابراهیم', text: 'گشودن وعده های ابراهیم' }, | |||
{ value: 'کتاب_رهبری_روحانی', text: 'کتاب رهبری روحانی' }, | |||
{ value: 'کتاب_ژنرالهای_خدا', text: 'ژنرال های خدا' }, | |||
{ value: 'بزودی', text: 'بزودی' }, | |||
{ value: 'بزودی', text: 'بزودی' }, | |||
} | { value: 'بزودی', text: 'بزودی' } | ||
] | |||
}; | |||
} | |||
} | |||
// عناصر DOM | // عناصر DOM | ||
خط ۵۷۵: | خط ۴۸۵: | ||
const optionsList = document.getElementById('optionsList'); | const optionsList = document.getElementById('optionsList'); | ||
const optionsContainer = document.getElementById('optionsContainer'); | const optionsContainer = document.getElementById('optionsContainer'); | ||
const selectedContentValue = document.getElementById('selectedContentValue'); | const selectedContentValue = document.getElementById('selectedContentValue'); | ||
const contentFrame = document.getElementById('contentFrame'); | const contentFrame = document.getElementById('contentFrame'); | ||
const iframePlaceholder = document.getElementById('iframePlaceholder'); | const iframePlaceholder = document.getElementById('iframePlaceholder'); | ||
خط ۵۹۰: | خط ۵۰۰: | ||
let currentZoom = 100; | let currentZoom = 100; | ||
let currentContent = ''; | let currentContent = ''; | ||
let currentItems = []; | |||
// وقتی دستهبندی تغییر کرد | // وقتی دستهبندی تغییر کرد | ||
خط ۶۰۴: | خط ۵۱۵: | ||
} | } | ||
// فعال کردن نمایش | |||
selectDisplay.textContent = 'برای مشاهده محتوا کلیک کنید'; | |||
selectDisplay.textContent = | |||
selectDisplay.style.color = '#333'; | selectDisplay.style.color = '#333'; | ||
selectedContentValue.value = ''; | selectedContentValue.value = ''; | ||
currentItems = booksData[selectedCategory]; | |||
resetContent(); | resetContent(); | ||
خط ۶۱۸: | خط ۵۲۶: | ||
// وقتی روی نمایش کلیک میشود | // وقتی روی نمایش کلیک میشود | ||
selectDisplay.addEventListener('click', function() { | selectDisplay.addEventListener('click', function() { | ||
if (! | if (!categorySelect.value) { | ||
alert('لطفاً ابتدا یک دستهبندی انتخاب کنید'); | |||
categorySelect.focus(); | |||
return; | |||
} | |||
if (optionsList.style.display === 'block') { | if (optionsList.style.display === 'block') { | ||
خط ۶۲۵: | خط ۵۳۷: | ||
optionsList.style.display = 'block'; | optionsList.style.display = 'block'; | ||
searchInput.value = ''; | searchInput.value = ''; | ||
// در اینجا تابع populateOptions فراخوانی میشود | |||
populateOptions(currentItems); | |||
setTimeout(() => { | setTimeout(() => { | ||
searchInput.focus(); | searchInput.focus(); | ||
خط ۶۳۴: | خط ۵۴۸: | ||
// وقتی کاربر در فیلد جستجو تایپ میکند | // وقتی کاربر در فیلد جستجو تایپ میکند | ||
searchInput.addEventListener('input', function() { | searchInput.addEventListener('input', function() { | ||
const searchTerm = this.value.toLowerCase(); | |||
const filteredItems = currentItems.filter(item => | |||
item.text.toLowerCase().includes(searchTerm) | |||
); | |||
populateOptions(filteredItems, searchTerm); | |||
}); | }); | ||
// | // پر کردن لیست گزینهها - این تابع اکنون به درستی فراخوانی میشود | ||
function | function populateOptions(itemsList, searchTerm = '') { | ||
console.log('populateOptions فراخوانی شد با', itemsList.length, 'آیتم'); | |||
optionsContainer.innerHTML = ''; | optionsContainer.innerHTML = ''; | ||
خط ۶۸۹: | خط ۵۷۴: | ||
option.className = 'option-item'; | option.className = 'option-item'; | ||
if ( | if (searchTerm) { | ||
const regex = new RegExp(`(${ | // هایلایت کردن متن جستجو شده | ||
const regex = new RegExp(`(${searchTerm})`, 'gi'); | |||
const highlightedText = item.text.replace(regex, '<span class="highlight">$1</span>'); | const highlightedText = item.text.replace(regex, '<span class="highlight">$1</span>'); | ||
option.innerHTML = highlightedText; | option.innerHTML = highlightedText; | ||
خط ۷۰۳: | خط ۵۸۹: | ||
optionsList.style.display = 'none'; | optionsList.style.display = 'none'; | ||
// نمایش محتوا | |||
currentContent = item.value; | currentContent = item.value; | ||
showContent(item.value, item.text); | showContent(item.value, item.text); | ||
خط ۷۰۹: | خط ۵۹۶: | ||
optionsContainer.appendChild(option); | optionsContainer.appendChild(option); | ||
}); | }); | ||
} | } | ||
// نمایش محتوا | // نمایش محتوا | ||
function showContent(bookValue, bookText) { | function showContent(bookValue, bookText) { | ||
const contentUrl = `https://www.pediabible.com/index.php/${bookValue}?action=render`; | const contentUrl = `https://www.pediabible.com/index.php/${bookValue}?action=render`; | ||
const wikiUrl = `https://www.pediabible.com/index.php/${bookValue}`; | const wikiUrl = `https://www.pediabible.com/index.php/${bookValue}`; | ||
خط ۷۷۰: | خط ۶۰۶: | ||
contentTitle.textContent = bookText; | contentTitle.textContent = bookText; | ||
// نمایش | // نمایش loading | ||
contentFrame.style.display = 'none'; | contentFrame.style.display = 'none'; | ||
iframePlaceholder.style.display = 'flex'; | iframePlaceholder.style.display = 'flex'; | ||
خط ۷۷۷: | خط ۶۱۳: | ||
<i class="fas fa-spinner fa-spin" style="font-size: 1.5rem; color: #3e6f73; margin-bottom: 10px;"></i> | <i class="fas fa-spinner fa-spin" style="font-size: 1.5rem; color: #3e6f73; margin-bottom: 10px;"></i> | ||
<p>در حال بارگذاری "${bookText}"...</p> | <p>در حال بارگذاری "${bookText}"...</p> | ||
</div> | </div> | ||
`; | `; | ||
خط ۷۸۴: | خط ۶۱۹: | ||
let progress = 0; | let progress = 0; | ||
const progressInterval = setInterval(() => { | const progressInterval = setInterval(() => { | ||
progress += Math.random() * | progress += Math.random() * 15; | ||
if (progress > | if (progress > 90) progress = 90; | ||
loadingBar.style.width = `${progress}%`; | loadingBar.style.width = `${progress}%`; | ||
}, 200); | }, 200); | ||
// | // بارگذاری محتوا | ||
contentFrame.src = contentUrl; | |||
contentFrame.onload = function() { | |||
clearInterval(progressInterval); | clearInterval(progressInterval); | ||
loadingBar.style.width = '100%'; | loadingBar.style.width = '100%'; | ||
خط ۷۹۷: | خط ۶۳۴: | ||
}, 500); | }, 500); | ||
contentFrame.style.display = 'block'; | contentFrame.style.display = 'block'; | ||
iframePlaceholder.style.display = 'none'; | iframePlaceholder.style.display = 'none'; | ||
applyZoom(); | applyZoom(); | ||
}; | |||
contentFrame.onerror = function() { | |||
clearInterval(progressInterval); | |||
< | loadingBar.style.width = '0%'; | ||
iframePlaceholder.style.display = 'flex'; | |||
iframePlaceholder.innerHTML = ` | |||
<p> | <div> | ||
<i class="fas fa-exclamation-triangle" style="font-size: 1.5rem; color: #dc3545; margin-bottom: 10px;"></i> | |||
<p>خطا در بارگذاری "${bookText}". لطفاً دوباره تلاش کنید.</p> | |||
</div> | |||
</ | `; | ||
contentFrame.style.display = 'none'; | |||
` | }; | ||
contentFrame. | |||
} | |||
// بهروزرسانی لینکها | // بهروزرسانی لینکها | ||
خط ۸۸۷: | خط ۷۲۱: | ||
} | } | ||
}); | }); | ||
// لاگ برای دیباگ | |||
console.log('سیستم بارگذاری شد. حالا میتوانید تست کنید:'); | |||
console.log('1. یک دستهبندی انتخاب کنید'); | |||
console.log('2. روی "برای مشاهده محتوا کلیک کنید" کلیک کنید'); | |||
console.log('3. لیست محتواها نمایش داده میشود'); | |||
</script> | </script> | ||
</body> | </body> | ||
</html> | </html> |
نسخهٔ کنونی تا ۱۶ اکتبر ۲۰۲۵، ساعت ۱۷:۵۶
کتابخانه دانشنامه کتاب مقدس
مطالعه آنلاین کتابها و مقالات مسیحی
کتابخانه جامع منابع مسیحی
کتابخانهٔ دانشنامهٔ کتاب مقدس مرجع کامل و تخصصی برای مطالعهٔ آنلاین کتابها و مقالات مسیحی است.
کتابها
انتشار همهٔ کتابها در دانشنامه با اجازهٔ رسمی نویسندگان یا ناشران انجام شده است، و برای برخی آثار، مجوز چاپ مجدد نیز دریافت گردیده است. تمامی حقوق برای انتشارات دانشنامهٔ کتاب مقدس محفوظ است. نویسندگان و ناشران مسیحی میتوانند برای همکاری و انتشار آثار خود با ما در ارتباط باشند.
مقالات
مقالات دانشنامه با اجازهٔ نویسندگان یا بر اساس منابع عمومی و بدون حق کپیرایت منتشر میشوند. در همهٔ موارد، اصول امانتداری و احترام به منبع اصلی رعایت شده است. پژوهشگران و نویسندگان مسیحی میتوانند برای انتشار مقالات خود با ما همکاری کنند
فروشگاه کتاب
در فروشگاه کتاب دانشنامه، امکان خرید کتابهای چاپی و الکترونیکی فراهم شده است.
لطفاً یک کتاب یا مقاله از لیست انتخاب کنید