پرش به محتوا

تست: تفاوت میان نسخه‌ها

از دانشنامه کتاب مقدس
بدون خلاصۀ ویرایش
بدون خلاصۀ ویرایش
 
(۱۰ نسخهٔ میانیِ ایجادشده توسط همین کاربر نشان داده نشد)
خط ۱: خط ۱:
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<html lang="fa" dir="rtl">
<head>
<head>
     <meta charset="UTF-8" />
     <meta charset="UTF-8">
     <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.5.0/css/all.min.css" />
    <meta name="description" content="مطالعه آنلاین کتاب‌های مقدس شامل عیسی، انجیل متی، مزامیر، پیدایش و مقالات تخصصی درباره مسیح، تثلیث، نجات و روح القدس در کتابخانه پدیا بایبل">
    <meta name="keywords" content="کتاب مقدس, انجیل, عیسی مسیح, مقالات مذهبی, کتابخانه آنلاین, مزامیر, پیدایش, تثلیث, روح القدس, نجات, پدیا بایبل">
    <meta name="author" content="پدیا بایبل">
    <meta name="robots" content="index, follow">
    <link rel="canonical" href="https://www.pediabible.com/library" />
   
    <!-- Open Graph Meta Tags -->
     <meta property="og:title" content="کتابخانه پدیا بایبل - مطالعه آنلاین کتاب‌ها و مقالات مذهبی">
    <meta property="og:description" content="مطالعه آنلاین کتاب‌های مقدس و مقالات تخصصی مذهبی">
    <meta property="og:type" content="website">
    <meta property="og:url" content="https://www.pediabible.com/library">
    <meta property="og:image" content="https://www.pediabible.com/images/logo.png">
    <meta property="og:locale" content="fa_IR">
   
    <!-- Twitter Card Meta Tags -->
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="کتابخانه پدیا بایبل - مطالعه آنلاین کتاب‌ها و مقالات مذهبی">
    <meta name="twitter:description" content="مطالعه آنلاین کتاب‌های مقدس و مقالات تخصصی مذهبی">
   
     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
   
    <!-- داده‌های ساختاریافته Schema.org -->
    <script type="application/ld+json">
    {
        "@context": "https://schema.org",
        "@type": "CollectionPage",
        "name": "کتابخانه پدیا بایبل",
        "description": "مطالعه آنلاین کتاب‌ها و مقالات مذهبی",
        "url": "https://www.pediabible.com/library",
        "publisher": {
            "@type": "Organization",
            "name": "پدیا بایبل",
            "url": "https://www.pediabible.com",
            "logo": {
                "@type": "ImageObject",
                "url": "https://www.pediabible.com/images/logo.png"
            }
        },
        "mainEntity": {
            "@type": "ItemList",
            "numberOfItems": 8,
            "itemListElement": [
                {
                    "@type": "Book",
                    "position": 1,
                    "name": "عیسی",
                    "url": "https://www.pediabible.com/index.php/عیسی",
                    "description": "مطالعه کتاب عیسی - زندگی و تعالیم حضرت عیسی مسیح"
                },
                {
                    "@type": "Book",
                    "position": 2,
                    "name": "انجیل متی",
                    "url": "https://www.pediabible.com/index.php/انجیل_متی",
                    "description": "انجیل متی - اولین انجیل از انجیل‌های چهارگانه"
                },
                {
                    "@type": "Book",
                    "position": 3,
                    "name": "مزامیر",
                    "url": "https://www.pediabible.com/index.php/مزامیر",
                    "description": "مزامیر - کتاب نیایش و مناجات"
                },
                {
                    "@type": "Book",
                    "position": 4,
                    "name": "پیدایش",
                    "url": "https://www.pediabible.com/index.php/پیدایش",
                    "description": "پیدایش - اولین کتاب تورات"
                },
                {
                    "@type": "Article",
                    "position": 5,
                    "name": "مسیح",
                    "url": "https://www.pediabible.com/index.php/مسیح",
                    "description": "مقالات تخصصی درباره مسیحشناسی"
                },
                {
                    "@type": "Article",
                    "position": 6,
                    "name": "تثلیث",
                    "url": "https://www.pediabible.com/index.php/تثلیث",
                    "description": "مطالعات تخصصی درباره مفهوم تثلیث"
                },
                {
                    "@type": "Article",
                    "position": 7,
                    "name": "نجات",
                    "url": "https://www.pediabible.com/index.php/نجات",
                    "description": "مقالات درباره نجات و رستگاری"
                },
                {
                    "@type": "Article",
                    "position": 8,
                    "name": "روح القدس",
                    "url": "https://www.pediabible.com/index.php/روح_القدس",
                    "description": "مطالعات تخصصی درباره روح القدس"
                }
            ]
        },
        "breadcrumb": {
            "@type": "BreadcrumbList",
            "itemListElement": [
                {
                    "@type": "ListItem",
                    "position": 1,
                    "name": "خانه",
                    "item": "https://www.pediabible.com"
                },
                {
                    "@type": "ListItem",
                    "position": 2,
                    "name": "کتابخانه",
                    "item": "https://www.pediabible.com/library"
                }
            ]
        }
    }
    </script>
   
     <style>
     <style>
         * {
         * {
خط ۱۱: خط ۱۲۹:
             padding: 0;
             padding: 0;
             box-sizing: border-box;
             box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
        }
        :root {
            --primary: #2c5530;
            --secondary: #4a7c59;
            --light: #f8f9fa;
            --border: #dee2e6;
            --text: #333;
         }
         }
       
         body {
         body {
             background: #f0f2f5;
             font-family: Tahoma, Arial, sans-serif;
             color: var(--text);
             background-color: #f6f6f6;
             padding: 15px;
             color: #333;
             line-height: 1.6;
             line-height: 1.6;
            padding: 0;
            margin: 0;
         }
         }
       
         .container {
         .container {
             max-width: 1000px;
             max-width: 100%;
             margin: 0 auto;
             margin: 0;
             background: white;
             background: white;
             border-radius: 10px;
             padding: 0;
            box-shadow: 0 2px 12px rgba(0,0,0,0.08);
            overflow: hidden;
         }
         }
       
         .header {
         .header {
             background: linear-gradient(135deg, var(--primary), var(--secondary));
             background: linear-gradient(135deg, #3e6f73, #4a7c59);
             color: white;
             color: white;
             padding: 24px 20px;
             padding: 20px 15px;
            margin-bottom: 15px;
             text-align: center;
             text-align: center;
         }
         }
         .header h1 {
       
             font-size: 26px;
        h1 {
            margin: 0;
            font-size: 22px;
            font-weight: 700;
        }
       
        .description {
            color: rgba(255,255,255,0.9);
            font-size: 13px;
            margin-top: 8px;
            line-height: 1.5;
        }
       
        .seo-content {
            background: #fff;
            padding: 20px 15px;
            margin: 0 15px 15px;
            border-radius: 8px;
            border: 1px solid #e9ecef;
        }
       
         .seo-content h2 {
            color: #3e6f73;
            margin-bottom: 15px;
            font-size: 18px;
        }
       
        .seo-content p {
            margin-bottom: 15px;
            text-align: justify;
             font-size: 14px;
            line-height: 1.8;
        }
       
        .content-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 15px;
            margin-top: 15px;
        }
       
        .content-item {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 6px;
            border-left: 4px solid #3e6f73;
        }
       
        .content-item h3 {
            color: #3e6f73;
             margin-bottom: 8px;
             margin-bottom: 8px;
            font-size: 15px;
        }
       
        .content-item p {
            font-size: 13px;
            color: #666;
            margin: 0;
         }
         }
         .header p {
       
             opacity: 0.95;
         .filter-section {
             font-size: 14px;
             margin: 0 15px 15px;
            background: #f8f9fa;
            padding: 15px;
             border: 1px solid #dee2e6;
         }
         }
         .section {
       
             padding: 20px;
         .filter-row {
             display: flex;
            gap: 10px;
            margin-bottom: 0;
         }
         }
       
         .form-group {
         .form-group {
             margin-bottom: 20px;
             flex: 1;
         }
         }
       
         label {
         label {
             display: block;
             display: block;
             margin-bottom: 8px;
             margin-bottom: 6px;
             font-weight: 600;
             font-weight: 600;
             color: #444;
             color: #495057;
            font-size: 13px;
         }
         }
       
         select {
         select {
             width: 100%;
             width: 100%;
             padding: 12px;
             padding: 10px 12px;
             border: 1px solid var(--border);
             border: 1px solid #ced4da;
             border-radius: 8px;
             border-radius: 6px;
             font-size: 15px;
             font-size: 13px;
             background: white;
             background: white;
             direction: rtl;
             cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid #e9ecef;
         }
         }
       
        select:focus {
            outline: none;
            border-color: #3e6f73;
            box-shadow: 0 0 0 2px rgba(62, 111, 115, 0.1);
        }
       
         select:disabled {
         select:disabled {
             background-color: #f5f5f5;
             background-color: #f8f9fa;
             color: #999;
             color: #6c757d;
            cursor: not-allowed;
            border-color: #dee2e6;
         }
         }
         .btn {
       
             display: block;
         .content-frame {
             width: 100%;
             margin: 0 15px;
             padding: 14px;
            border: 1px solid #dee2e6;
             background: var(--primary);
             border-radius: 0;
             color: white;
             overflow: hidden;
             border: none;
             background: white;
             border-radius: 8px;
            height: calc(100vh - 250px);
             font-size: 16px;
            min-height: 400px;
        }
       
        .content-header {
            padding: 12px 15px;
             background: #f8f9fa;
             border-bottom: 1px solid #dee2e6;
             display: flex;
            justify-content: space-between;
             align-items: center;
        }
       
        .content-title {
             font-weight: 600;
             font-weight: 600;
            color: #3e6f73;
            font-size: 14px;
        }
       
        .content-controls {
            display: flex;
            gap: 8px;
        }
       
        .control-btn {
            background: white;
            border: 1px solid #dee2e6;
            border-radius: 4px;
            padding: 6px 12px;
             cursor: pointer;
             cursor: pointer;
             transition: all 0.2s;
            font-size: 12px;
             margin-top: 10px;
             transition: all 0.3s ease;
            display: flex;
            align-items: center;
             gap: 4px;
            font-weight: 600;
            color: #495057;
         }
         }
         .btn:hover:not(:disabled) {
       
             background: #254528;
         .control-btn:hover {
             transform: translateY(-2px);
             background: #3e6f73;
             color: white;
            border-color: #3e6f73;
         }
         }
         .btn:disabled {
       
             background: #ccc;
         .iframe-container {
             cursor: not-allowed;
            width: 100%;
            height: calc(100% - 50px);
            position: relative;
        }
       
        .clean-frame {
             width: 100%;
            height: 100%;
            border: none;
             background: white;
         }
         }
         .stats {
       
         .iframe-placeholder {
             display: flex;
             display: flex;
             justify-content: space-around;
             align-items: center;
             background: var(--light);
             justify-content: center;
            padding: 14px;
             height: 100%;
             border-radius: 8px;
             color: #6c757d;
             margin: 20px 0;
             font-size: 14px;
             font-size: 14px;
            color: #555;
        }
        .stat {
             text-align: center;
             text-align: center;
            padding: 20px;
            background: white;
         }
         }
         .stat strong {
          
            color: var(--primary);
         .action-buttons {
            font-size: 18px;
            display: block;
        }
         .recent {
            margin-top: 25px;
        }
        .recent h3 {
            margin-bottom: 12px;
            color: var(--primary);
             display: flex;
             display: flex;
            justify-content: space-between;
             align-items: center;
             align-items: center;
            padding: 12px 15px;
            background-color: #f8f9fa;
            border-top: 1px solid #dee2e6;
             gap: 8px;
             gap: 8px;
         }
         }
         .recent-list {
       
         .wiki-link, .site-link, .view-link {
            background: #3e6f73;
            color: white;
            text-decoration: none;
            font-weight: 600;
            padding: 10px 15px;
            border-radius: 4px;
            border: none;
            cursor: pointer;
            font-size: 13px;
            text-align: center;
            flex: 1;
             display: flex;
             display: flex;
             flex-wrap: wrap;
             align-items: center;
             gap: 10px;
            justify-content: center;
             gap: 6px;
            transition: all 0.3s ease;
        }
       
        .site-link {
            background: #6c757d;
        }
       
        .view-link {
            background: #4a7c59;
        }
       
        .wiki-link:hover, .site-link:hover, .view-link:hover {
            opacity: 0.9;
            transform: translateY(-1px);
        }
       
        .loading-bar {
            height: 2px;
            background: linear-gradient(90deg, #8fb996, #3e6f73);
            width: 0%;
            transition: width 0.4s ease;
            position: absolute;
            top: 0;
            right: 0;
         }
         }
         .recent-item {
       
             background: #eef5ee;
         .breadcrumb {
             padding: 10px 14px;
             background: #f8f9fa;
             border-radius: 6px;
             padding: 10px 15px;
             cursor: pointer;
             margin-bottom: 15px;
             font-size: 14px;
             border-bottom: 1px solid #dee2e6;
            transition: all 0.2s;
             font-size: 13px;
         }
         }
         .recent-item:hover {
       
             background: var(--primary);
         .breadcrumb a {
             color: white;
             color: #3e6f73;
             text-decoration: none;
         }
         }
         .empty {
       
            color: #888;
         .breadcrumb a:hover {
            font-style: italic;
             text-decoration: underline;
             text-align: center;
            padding: 15px;
         }
         }
         @media (max-width: 600px) {
       
             .stats {
         @media (max-width: 768px) {
             .filter-row {
                 flex-direction: column;
                 flex-direction: column;
                gap: 12px;
             }
             }
             .header h1 {
           
                 font-size: 22px;
            .content-frame {
                height: calc(100vh - 280px);
                min-height: 350px;
            }
           
            .action-buttons {
                flex-direction: column;
            }
           
            .wiki-link, .site-link, .view-link {
                width: 100%;
            }
           
            .content-header {
                flex-direction: column;
                gap: 8px;
                align-items: flex-start;
            }
           
            .content-controls {
                width: 100%;
                justify-content: space-between;
            }
           
             .header {
                padding: 15px 10px;
            }
           
            h1 {
                 font-size: 20px;
            }
           
            .description {
                font-size: 12px;
            }
           
            .content-list {
                grid-template-columns: 1fr;
             }
             }
         }
         }
خط ۱۵۸: خط ۴۵۸:
</head>
</head>
<body>
<body>
    <!-- Breadcrumb Navigation -->
    <nav class="breadcrumb" aria-label="breadcrumb">
        <a href="https://www.pediabible.com">خانه</a> /
        <span>کتابخانه</span>
    </nav>
     <div class="container">
     <div class="container">
         <div class="header">
         <header class="header">
             <h1>کتابخانه پدیا بایبل</h1>
             <h1>کتابخانه پدیا بایبل</h1>
             <p>مرجع تخصصی پژوهش و تحلیل کتاب مقدس — انتخاب کتاب یا مقاله و مشاهده در سایت اصلی</p>
             <p class="description">مطالعه آنلاین کتاب‌ها و مقالات مذهبی شامل کتاب‌های مقدس و مقالات تخصصی</p>
         </div>
         </header>


         <div class="section">
         <!-- محتوای سئو -->
             <div class="stats">
        <section class="seo-content">
                 <div class="stat">
            <h2>کتابخانه جامع منابع مذهبی</h2>
                     <i class="fas fa-book"></i> کتاب‌ها
            <p>کتابخانه پدیا بایبل مرجع کامل و تخصصی برای مطالعه آنلاین کتاب‌های مقدس و مقالات مذهبی است. در این کتابخانه می‌توانید به منابع معتبر و جامعی از متون دینی دسترسی داشته باشید.</p>
                     <strong id="bookCount">4</strong>
           
             <div class="content-list">
                 <div class="content-item">
                     <h3>کتاب‌های مقدس</h3>
                     <p>مطالعه کتاب‌های مقدس از جمله عیسی، انجیل متی، مزامیر، پیدایش و دیگر متون مذهبی با ترجمه‌های معتبر</p>
                 </div>
                 </div>
                 <div class="stat">
                 <div class="content-item">
                     <i class="fas fa-file-alt"></i> مقالات
                     <h3>مقالات تخصصی</h3>
                     <strong id="articleCount">4</strong>
                     <p>مقالات متعدد درباره موضوعات مذهبی مانند مسیح، تثلیث، نجات، روح القدس و دیگر مفاهیم دینی</p>
                 </div>
                 </div>
                 <div class="stat">
                 <div class="content-item">
                     <i class="fas fa-history"></i> مطالعه شده
                     <h3>مطالعه آنلاین</h3>
                     <strong id="readCount">0</strong>
                    <p>امکان مطالعه تمامی منابع به صورت آنلاین با قابلیت‌های پیشرفته مانند بزرگ‌نمایی و مشاهده مستقیم</p>
                </div>
                <div class="content-item">
                    <h3>منابع معتبر</h3>
                     <p>دسترسی به منابع معتبر و مورد تأیید مراجع دینی برای مطالعه و تحقیق</p>
                 </div>
                 </div>
             </div>
             </div>
        </section>


             <div class="form-group">
        <section class="filter-section" aria-label="فیلترهای جستجو">
                <label for="category"><i class="fas fa-folder"></i> دسته‌بندی</label>
             <div class="filter-row">
                <select id="category">
                <div class="form-group">
                    <option value="">انتخاب کنید </option>
                    <label for="categorySelect"><i class="fas fa-folder"></i> دسته‌بندی:</label>
                    <option value="کتاب">کتاب</option>
                    <select id="categorySelect">
                    <option value="مقاله">مقاله</option>
                        <option value="">لطفاً دسته‌بندی انتخاب کنید</option>
                 </select>
                        <option value="کتاب">کتاب</option>
                        <option value="مقاله">مقاله</option>
                    </select>
                 </div>
               
                <div class="form-group">
                    <label for="contentSelect"><i class="fas fa-book-open"></i> انتخاب محتوا:</label>
                    <select id="contentSelect" disabled>
                        <option value="">ابتدا دسته‌بندی را انتخاب کنید</option>
                    </select>
                </div>
             </div>
             </div>
 
        </section>
             <div class="form-group">
       
                 <label for="content"><i class="fas fa-book-open"></i> انتخاب محتوا</label>
        <section class="content-frame" aria-label="محتوای مطالعه">
                 <select id="content" disabled>
             <div class="content-header">
                     <option>— ابتدا دسته‌بندی را انتخاب کنید </option>
                <div class="content-title" id="contentTitle">هیچ محتوایی انتخاب نشده است</div>
                 </select>
                 <div class="content-controls">
                    <button class="control-btn" id="zoomOut"><i class="fas fa-search-minus"></i> کوچک‌نمایی</button>
                    <button class="control-btn" id="zoomIn"><i class="fas fa-search-plus"></i> بزرگ‌نمایی</button>
                    <button class="control-btn" id="directView"><i class="fas fa-external-link-alt"></i> مشاهده مستقیم</button>
                </div>
            </div>
            <div class="loading-bar" id="loadingBar"></div>
            <div class="iframe-container">
                 <div class="iframe-placeholder" id="iframePlaceholder">
                     <div>
                        <i class="fas fa-book-open" style="font-size: 2rem; color: #6c757d; margin-bottom: 10px;"></i>
                        <p>لطفاً یک کتاب یا مقاله از لیست انتخاب کنید</p>
                    </div>
                </div>
                 <iframe id="contentFrame" class="clean-frame" src="about:blank" style="display: none;" title="محتوای مطالعه"></iframe>
             </div>
             </div>
 
            <div class="action-buttons">
            <button id="goBtn" class="btn" disabled>
                <a id="siteLink" href="#" class="site-link" target="_blank" rel="noopener noreferrer" style="display: none;">
                <i class="fas fa-external-link-alt"></i> مشاهده در سایت پدیا بایبل
                    <i class="fas fa-home"></i>
            </button>
                    مشاهده صفحه در سایت اصلی
        </div>
                </a>
 
                <a id="wikiLink" href="#" class="wiki-link" target="_blank" rel="noopener noreferrer" style="display: none;">
        <div class="section recent">
                    <i class="fab fa-wikipedia-w"></i>
            <h3><i class="fas fa-history"></i> مطالب مطالعه‌شده اخیر</h3>
                    مشاهده صفحه کامل در ویکی
            <div class="recent-list" id="recentList">
                </a>
                <div class="empty">هیچ مطلبی اخیراً باز نشده است.</div>
                <a id="viewLink" href="#" class="view-link" target="_blank" rel="noopener noreferrer" style="display: none;">
                    <i class="fas fa-eye"></i>
                    مشاهده صفحه
                </a>
             </div>
             </div>
         </div>
         </section>
     </div>
     </div>


     <script>
     <script>
         const data = {
        // داده‌های ساده
             کتاب: [
         const booksData = {
             'کتاب': [
                 { value: 'عیسی', text: 'عیسی' },
                 { value: 'عیسی', text: 'عیسی' },
                 { value: 'انجیل_متی', text: 'انجیل متی' },
                 { value: 'انجیل_متی', text: 'انجیل متی' },
خط ۲۱۷: خط ۵۶۰:
                 { value: 'پیدایش', text: 'پیدایش' }
                 { value: 'پیدایش', text: 'پیدایش' }
             ],
             ],
             مقاله: [
             'مقاله': [
                 { value: 'مسیح', text: 'مسیح' },
                 { value: 'مسیح', text: 'مسیح' },
                 { value: 'تثلیث', text: 'تثلیث' },
                 { value: 'تثلیث', text: 'تثلیث' },
خط ۲۲۵: خط ۵۶۸:
         };
         };


         const categorySelect = document.getElementById('category');
        // عناصر
         const contentSelect = document.getElementById('content');
         const categorySelect = document.getElementById('categorySelect');
         const goBtn = document.getElementById('goBtn');
         const contentSelect = document.getElementById('contentSelect');
         const recentList = document.getElementById('recentList');
        const contentFrame = document.getElementById('contentFrame');
         const bookCountEl = document.getElementById('bookCount');
        const iframePlaceholder = document.getElementById('iframePlaceholder');
         const articleCountEl = document.getElementById('articleCount');
        const wikiLink = document.getElementById('wikiLink');
         const readCountEl = document.getElementById('readCount');
        const siteLink = document.getElementById('siteLink');
        const viewLink = document.getElementById('viewLink');
         const contentTitle = document.getElementById('contentTitle');
         const zoomIn = document.getElementById('zoomIn');
         const zoomOut = document.getElementById('zoomOut');
         const directView = document.getElementById('directView');
         const loadingBar = document.getElementById('loadingBar');


         let selectedCategory = '';
         let currentZoom = 100;
         let selectedContent = '';
         let currentContent = '';


         // بارگذاری تاریخچه از localStorage
         // وقتی دسته‌بندی تغییر کرد
         let readHistory = JSON.parse(localStorage.getItem('pediabible_history')) || [];
         categorySelect.addEventListener('change', function() {
 
             const selectedCategory = this.value;
        // به‌روزرسانی آمار
              
        function updateStats() {
             if (!selectedCategory) {
             bookCountEl.textContent = data.کتاب.length;
             articleCountEl.textContent = data.مقاله.length;
             readCountEl.textContent = readHistory.length;
        }
 
        // پر کردن لیست محتوا
        function populateContent() {
            contentSelect.innerHTML = '';
            const items = data[selectedCategory] || [];
            if (items.length === 0) {
                const opt = document.createElement('option');
                opt.text = 'محتوایی یافت نشد';
                contentSelect.appendChild(opt);
                 contentSelect.disabled = true;
                 contentSelect.disabled = true;
                 goBtn.disabled = true;
                 contentSelect.innerHTML = '<option value="">ابتدا دسته‌بندی را انتخاب کنید</option>';
                resetContent();
                 return;
                 return;
             }
             }
 
           
             items.forEach(item => {
            // پر کردن لیست محتواها
                 const opt = document.createElement('option');
            contentSelect.disabled = false;
                 opt.value = item.value;
            contentSelect.innerHTML = '<option value="">لطفاً محتوا انتخاب کنید</option>';
                 opt.text = item.text;
              
                 contentSelect.appendChild(opt);
            booksData[selectedCategory].forEach(item => {
                 const option = document.createElement('option');
                 option.value = item.value;
                 option.textContent = item.text;
                 contentSelect.appendChild(option);
             });
             });
           
            resetContent();
        });


            contentSelect.disabled = false;
         // وقتی محتوا تغییر کرد
        }
         contentSelect.addEventListener('change', function() {
 
            const selectedValue = this.value;
         // نمایش تاریخچه
            const selectedText = this.options[this.selectedIndex].text;
         function renderRecent() {
           
             if (readHistory.length === 0) {
             if (!selectedValue) {
                 recentList.innerHTML = '<div class="empty">هیچ مطلبی اخیراً باز نشده است.</div>';
                 resetContent();
                 return;
                 return;
             }
             }
           
            currentContent = selectedValue;
            showContent(selectedValue, selectedText);
        });


             recentList.innerHTML = '';
        // نمایش محتوا
             const last5 = readHistory.slice(-5).reverse();
        function showContent(bookValue, bookText) {
             last5.forEach(item => {
            const contentUrl = `https://www.pediabible.com/index.php/${bookValue}?action=render`;
                 const div = document.createElement('div');
            const wikiUrl = `https://www.pediabible.com/index.php/${bookValue}`;
                 div.className = 'recent-item';
            const siteUrl = `https://www.pediabible.com/index.php/${bookValue}`;
                 div.textContent = `${item.text} (${item.category})`;
           
                 div.onclick = () => {
            contentTitle.textContent = bookText;
                     categorySelect.value = item.category;
           
                    selectedCategory = item.category;
            // نمایش loading
                    populateContent();
            contentFrame.style.display = 'none';
                    contentSelect.value = item.value;
             iframePlaceholder.style.display = 'flex';
                     selectedContent = item.value;
             iframePlaceholder.innerHTML = `
                     goBtn.disabled = false;
                <div>
                    openContent();
                    <i class="fas fa-spinner fa-spin" style="font-size: 1.5rem; color: #3e6f73; margin-bottom: 10px;"></i>
                };
                    <p>در حال بارگذاری "${bookText}"...</p>
                recentList.appendChild(div);
                </div>
             });
            `;
           
            // نوار پیشرفت
            let progress = 0;
             const progressInterval = setInterval(() => {
                 progress += Math.random() * 15;
                 if (progress > 90) progress = 90;
                 loadingBar.style.width = `${progress}%`;
            }, 200);
           
            // بارگذاری محتوا
            contentFrame.src = contentUrl;
           
            contentFrame.onload = function() {
                clearInterval(progressInterval);
                 loadingBar.style.width = '100%';
                setTimeout(() => {
                     loadingBar.style.width = '0%';
                }, 500);
               
                contentFrame.style.display = 'block';
                iframePlaceholder.style.display = 'none';
                applyZoom();
            };
           
            contentFrame.onerror = function() {
                clearInterval(progressInterval);
                loadingBar.style.width = '0%';
                iframePlaceholder.style.display = 'flex';
                iframePlaceholder.innerHTML = `
                     <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';
            };
           
            // به‌روزرسانی لینک‌ها
            wikiLink.href = wikiUrl;
            wikiLink.style.display = 'flex';
           
            siteLink.href = siteUrl;
            siteLink.style.display = 'flex';
           
            viewLink.href = contentUrl;
             viewLink.style.display = 'flex';
         }
         }


         // باز کردن صفحه
         // مشاهده مستقیم
         function openContent() {
         directView.addEventListener('click', function() {
             if (!selectedCategory || !selectedContent) return;
             if (currentContent) {
 
                const directUrl = `https://www.pediabible.com/index.php/${currentContent}`;
            const url = `https://www.pediabible.com/index.php/${selectedContent}`;
                window.open(directUrl, '_blank', 'noopener,noreferrer');
            window.open(url, '_blank');
            }
        });


            // اضافه کردن به تاریخچه
        // کنترل بزرگ‌نمایی
            const newItem = {
        function applyZoom() {
                category: selectedCategory,
             contentFrame.style.zoom = `${currentZoom}%`;
                value: selectedContent,
                text: contentSelect.options[contentSelect.selectedIndex]?.text || selectedContent
            };
 
             // جلوگیری از تکرار
            const exists = readHistory.some(
                item => item.category === newItem.category && item.value === newItem.value
            );
 
            if (!exists) {
                readHistory.push(newItem);
                localStorage.setItem('pediabible_history', JSON.stringify(readHistory));
                updateStats();
                renderRecent();
            }
         }
         }


         // event listeners
         zoomIn.addEventListener('click', function() {
        categorySelect.addEventListener('change', () => {
             if (currentZoom < 150) {
            selectedCategory = categorySelect.value;
                 currentZoom += 10;
             if (selectedCategory) {
                 applyZoom();
                populateContent();
            } else {
                 contentSelect.disabled = true;
                 goBtn.disabled = true;
             }
             }
         });
         });


         contentSelect.addEventListener('change', () => {
         zoomOut.addEventListener('click', function() {
            selectedContent = contentSelect.value;
            if (currentZoom > 50) {
             goBtn.disabled = !selectedContent;
                currentZoom -= 10;
                applyZoom();
             }
         });
         });


         goBtn.addEventListener('click', openContent);
         function resetContent() {
 
            currentContent = '';
        // راه‌اندازی اولیه
            contentTitle.textContent = 'هیچ محتوایی انتخاب نشده است';
        updateStats();
            contentFrame.style.display = 'none';
         renderRecent();
            iframePlaceholder.style.display = 'flex';
            iframePlaceholder.innerHTML = `
                <div>
                    <i class="fas fa-book-open" style="font-size: 1.5rem; color: #6c757d; margin-bottom: 10px;"></i>
                    <p>لطفاً یک کتاب یا مقاله از لیست انتخاب کنید</p>
                </div>
            `;
            wikiLink.style.display = 'none';
            siteLink.style.display = 'none';
            viewLink.style.display = 'none';
            contentFrame.src = 'about:blank';
            loadingBar.style.width = '0%';
         }
     </script>
     </script>
</body>
</body>
</html>
</html>

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

کتابخانه پدیا بایبل - مطالعه آنلاین کتاب‌ها و مقالات مذهبی | پدیا بایبل

کتابخانه پدیا بایبل

مطالعه آنلاین کتاب‌ها و مقالات مذهبی شامل کتاب‌های مقدس و مقالات تخصصی

کتابخانه جامع منابع مذهبی

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

کتاب‌های مقدس

مطالعه کتاب‌های مقدس از جمله عیسی، انجیل متی، مزامیر، پیدایش و دیگر متون مذهبی با ترجمه‌های معتبر

مقالات تخصصی

مقالات متعدد درباره موضوعات مذهبی مانند مسیح، تثلیث، نجات، روح القدس و دیگر مفاهیم دینی

مطالعه آنلاین

امکان مطالعه تمامی منابع به صورت آنلاین با قابلیت‌های پیشرفته مانند بزرگ‌نمایی و مشاهده مستقیم

منابع معتبر

دسترسی به منابع معتبر و مورد تأیید مراجع دینی برای مطالعه و تحقیق

هیچ محتوایی انتخاب نشده است

لطفاً یک کتاب یا مقاله از لیست انتخاب کنید