پرش به محتوا

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

از دانشنامه کتاب مقدس
بدون خلاصۀ ویرایش
بدون خلاصۀ ویرایش
 
(۲۳ نسخهٔ میانیِ ایجادشده توسط همین کاربر نشان داده نشد)
خط ۱: خط ۱:
<!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>
    <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">
     <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>
        :root {
            --primary-color: #2c3e50;
            --secondary-color: #3e6f73;
            --accent-color: #A52A2A;
            --light-color: #f8f5f2;
            --dark-color: #3E2723;
            --border-color: #D2B48C;
        }
       
         * {
         * {
             margin: 0;
             margin: 0;
خط ۲۷: خط ۱۳۶:
             color: #333;
             color: #333;
             line-height: 1.6;
             line-height: 1.6;
             padding: 20px;
             padding: 0;
            margin: 0;
         }
         }
          
          
         .container {
         .container {
             max-width: 1200px;
             max-width: 100%;
             margin: 0 auto;
             margin: 0;
             background: white;
             background: white;
             padding: 20px;
             padding: 0;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
         }
         }
          
          
         .header {
         .header {
             background-color: white;
             background: linear-gradient(135deg, #3e6f73, #4a7c59);
             color: #3e6f73;
             color: white;
             padding: 20px;
             padding: 20px 15px;
            border-radius: 8px;
             margin-bottom: 15px;
             margin-bottom: 20px;
             text-align: center;
             text-align: center;
            border: 2px solid #3e6f73;
         }
         }
          
          
         h1 {
         h1 {
             margin: 0;
             margin: 0;
             font-size: 28px;
             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;
             color: #3e6f73;
             font-weight: bold;
            margin-bottom: 8px;
             font-size: 15px;
         }
         }
          
          
         .description {
         .content-item p {
            font-size: 13px;
             color: #666;
             color: #666;
            font-size: 16px;
             margin: 0;
             margin-top: 10px;
            line-height: 1.6;
         }
         }
          
          
         .filter-section {
         .filter-section {
             margin-bottom: 20px;
             margin: 0 15px 15px;
            background: #f8f9fa;
            padding: 15px;
            border: 1px solid #dee2e6;
         }
         }
          
          
         .filter-row {
         .filter-row {
             display: flex;
             display: flex;
             gap: 15px;
             gap: 10px;
             margin-bottom: 15px;
             margin-bottom: 0;
         }
         }
          
          
خط ۷۹: خط ۲۳۴:
         label {
         label {
             display: block;
             display: block;
             margin-bottom: 5px;
             margin-bottom: 6px;
             font-weight: bold;
             font-weight: 600;
             color: #495057;
             color: #495057;
            font-size: 13px;
         }
         }
          
          
         /* استایل برای select با جستجو */
         select {
        .custom-select-container {
            position: relative;
        }
       
        .custom-select {
             width: 100%;
             width: 100%;
             padding: 10px;
             padding: 10px 12px;
             border: 1px solid #ced4da;
             border: 1px solid #ced4da;
             border-radius: 4px;
             border-radius: 6px;
             font-size: 16px;
             font-size: 13px;
             background: white;
             background: white;
             cursor: pointer;
             cursor: pointer;
             appearance: none;
             transition: all 0.3s ease;
             -webkit-appearance: none;
             border: 1px solid #e9ecef;
             -moz-appearance: none;
        }
             background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
       
             background-repeat: no-repeat;
        select:focus {
             background-position: left 10px center;
             outline: none;
             background-size: 16px;
             border-color: #3e6f73;
             padding-left: 35px;
            box-shadow: 0 0 0 2px rgba(62, 111, 115, 0.1);
        }
       
        select:disabled {
             background-color: #f8f9fa;
             color: #6c757d;
             cursor: not-allowed;
             border-color: #dee2e6;
         }
         }
          
          
         .custom-select-dropdown {
         .content-frame {
             position: absolute;
             margin: 0 15px;
             top: 100%;
             border: 1px solid #dee2e6;
             left: 0;
             border-radius: 0;
             right: 0;
             overflow: hidden;
             background: white;
             background: white;
             border: 1px solid #ced4da;
             height: calc(100vh - 250px);
            border-radius: 4px;
             min-height: 400px;
            margin-top: 5px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
             z-index: 1000;
            display: none;
            max-height: 300px;
            overflow: hidden;
         }
         }
          
          
         .search-box {
         .content-header {
             padding: 10px;
             padding: 12px 15px;
            border-bottom: 1px solid #eee;
             background: #f8f9fa;
             background: #f8f9fa;
            border-bottom: 1px solid #dee2e6;
            display: flex;
            justify-content: space-between;
            align-items: center;
         }
         }
          
          
         .search-box input {
         .content-title {
             width: 100%;
             font-weight: 600;
            padding: 8px 12px;
             color: #3e6f73;
             border: 1px solid #ddd;
            border-radius: 4px;
             font-size: 14px;
             font-size: 14px;
         }
         }
          
          
         .options-container {
         .content-controls {
             max-height: 250px;
             display: flex;
             overflow-y: auto;
             gap: 8px;
         }
         }
          
          
         .option-item {
         .control-btn {
             padding: 10px 12px;
            background: white;
            border: 1px solid #dee2e6;
            border-radius: 4px;
             padding: 6px 12px;
             cursor: pointer;
             cursor: pointer;
             border-bottom: 1px solid #f0f0f0;
             font-size: 12px;
             transition: background-color 0.2s;
             transition: all 0.3s ease;
        }
            display: flex;
       
            align-items: center;
        .option-item:hover {
            gap: 4px;
             background-color: #e9ecef;
            font-weight: 600;
             color: #495057;
         }
         }
          
          
         .option-item:last-child {
         .control-btn:hover {
            border-bottom: none;
             background: #3e6f73;
        }
       
        .option-item.selected {
             background-color: #3e6f73;
             color: white;
             color: white;
        }
             border-color: #3e6f73;
       
        select {
            width: 100%;
            padding: 10px;
            border: 1px solid #ced4da;
             border-radius: 4px;
            font-size: 16px;
            background: white;
        }
       
        .content-frame {
            margin-top: 20px;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            overflow: hidden;
            background: white;
            height: 600px;
            position: relative;
         }
         }
          
          
         .iframe-container {
         .iframe-container {
             width: 100%;
             width: 100%;
             height: 100%;
             height: calc(100% - 50px);
             position: relative;
             position: relative;
         }
         }
خط ۱۹۲: خط ۳۲۷:
             border: none;
             border: none;
             background: white;
             background: white;
            display: block;
         }
         }
          
          
خط ۲۰۱: خط ۳۳۵:
             height: 100%;
             height: 100%;
             color: #6c757d;
             color: #6c757d;
             font-size: 18px;
             font-size: 14px;
             text-align: center;
             text-align: center;
             padding: 20px;
             padding: 20px;
خط ۲۰۹: خط ۳۴۳:
         .action-buttons {
         .action-buttons {
             display: flex;
             display: flex;
             justify-content: flex-end;
             justify-content: space-between;
             align-items: center;
             align-items: center;
             padding: 15px;
             padding: 12px 15px;
             background-color: #f8f9fa;
             background-color: #f8f9fa;
             border-top: 1px solid #dee2e6;
             border-top: 1px solid #dee2e6;
            gap: 8px;
         }
         }
          
          
         .wiki-link {
         .wiki-link, .site-link, .view-link {
             background-color: #3e6f73;
             background: #3e6f73;
             color: white !important;
             color: white;
             text-decoration: none;
             text-decoration: none;
             font-weight: bold;
             font-weight: 600;
             padding: 10px 20px;
             padding: 10px 15px;
            border: 1px solid #3e6f73;
             border-radius: 4px;
             border-radius: 4px;
             transition: all 0.3s;
            border: none;
            cursor: pointer;
            font-size: 13px;
            text-align: center;
            flex: 1;
            display: flex;
            align-items: center;
            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;
        }
       
        .breadcrumb {
            background: #f8f9fa;
            padding: 10px 15px;
            margin-bottom: 15px;
            border-bottom: 1px solid #dee2e6;
            font-size: 13px;
        }
       
        .breadcrumb a {
            color: #3e6f73;
            text-decoration: none;
         }
         }
          
          
         .wiki-link:hover {
         .breadcrumb a:hover {
             background-color: #2d5257;
             text-decoration: underline;
            color: white !important;
         }
         }
          
          
خط ۲۳۶: خط ۴۱۴:
                 flex-direction: column;
                 flex-direction: column;
             }
             }
           
             .content-frame {
             .content-frame {
                 height: 500px;
                 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>
             <div class="description">
             <p class="description">مطالعه آنلاین کتاب‌ها و مقالات مذهبی شامل کتاب‌های مقدس و مقالات تخصصی</p>
                در این بخش می‌توانید کتاب‌ها و مقالات مختلف را مطالعه کنید.
        </header>
                 برای شروع، دسته‌بندی و سپس مورد مورد نظر خود را انتخاب نمایید.
 
        <!-- محتوای سئو -->
        <section class="seo-content">
            <h2>کتابخانه جامع منابع مذهبی</h2>
            <p>کتابخانه پدیا بایبل مرجع کامل و تخصصی برای مطالعه آنلاین کتاب‌های مقدس و مقالات مذهبی است. در این کتابخانه می‌توانید به منابع معتبر و جامعی از متون دینی دسترسی داشته باشید.</p>
           
            <div class="content-list">
                <div class="content-item">
                    <h3>کتاب‌های مقدس</h3>
                    <p>مطالعه کتاب‌های مقدس از جمله عیسی، انجیل متی، مزامیر، پیدایش و دیگر متون مذهبی با ترجمه‌های معتبر</p>
                </div>
                <div class="content-item">
                    <h3>مقالات تخصصی</h3>
                    <p>مقالات متعدد درباره موضوعات مذهبی مانند مسیح، تثلیث، نجات، روح القدس و دیگر مفاهیم دینی</p>
                </div>
                <div class="content-item">
                    <h3>مطالعه آنلاین</h3>
                    <p>امکان مطالعه تمامی منابع به صورت آنلاین با قابلیت‌های پیشرفته مانند بزرگ‌نمایی و مشاهده مستقیم</p>
                </div>
                 <div class="content-item">
                    <h3>منابع معتبر</h3>
                    <p>دسترسی به منابع معتبر و مورد تأیید مراجع دینی برای مطالعه و تحقیق</p>
                </div>
             </div>
             </div>
         </div>
         </section>
       
 
         <div class="filter-section">
         <section class="filter-section" aria-label="فیلترهای جستجو">
             <div class="filter-row">
             <div class="filter-row">
                 <div class="form-group">
                 <div class="form-group">
                     <label for="categorySelect">دسته‌بندی:</label>
                     <label for="categorySelect"><i class="fas fa-folder"></i> دسته‌بندی:</label>
                     <select id="categorySelect">
                     <select id="categorySelect">
                         <option value="">لطفاً دسته‌بندی انتخاب کنید</option>
                         <option value="">لطفاً دسته‌بندی انتخاب کنید</option>
خط ۲۶۴: خط ۵۰۷:
                  
                  
                 <div class="form-group">
                 <div class="form-group">
                     <label for="bookSelect">انتخاب محتوا:</label>
                     <label for="contentSelect"><i class="fas fa-book-open"></i> انتخاب محتوا:</label>
                     <div class="custom-select-container">
                     <select id="contentSelect" disabled>
                        <select id="bookSelect" class="custom-select" disabled>
                        <option value="">ابتدا دسته‌بندی را انتخاب کنید</option>
                            <option value="">ابتدا دسته‌بندی را انتخاب کنید</option>
                    </select>
                        </select>
                       
                        <div class="custom-select-dropdown" id="customDropdown">
                            <div class="search-box">
                                <input type="text" id="dropdownSearch" placeholder="جستجو در محتواها...">
                            </div>
                            <div class="options-container" id="optionsContainer">
                                <!-- options here will be populated by JavaScript -->
                            </div>
                        </div>
                    </div>
                 </div>
                 </div>
             </div>
             </div>
         </div>
         </section>
          
          
         <div class="content-frame">
         <section class="content-frame" aria-label="محتوای مطالعه">
            <div class="content-header">
                <div class="content-title" id="contentTitle">هیچ محتوایی انتخاب نشده است</div>
                <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-container">
                 <div class="iframe-placeholder" id="iframePlaceholder">
                 <div class="iframe-placeholder" id="iframePlaceholder">
                     <div>
                     <div>
                         <i class="fas fa-book-open" style="font-size: 3rem; color: #6c757d; margin-bottom: 15px;"></i>
                         <i class="fas fa-book-open" style="font-size: 2rem; color: #6c757d; margin-bottom: 10px;"></i>
                         <p>لطفاً یک کتاب یا مقاله از لیست انتخاب کنید</p>
                         <p>لطفاً یک کتاب یا مقاله از لیست انتخاب کنید</p>
                     </div>
                     </div>
                 </div>
                 </div>
                 <iframe id="contentFrame" class="clean-frame" src="about:blank" style="display: none;"></iframe>
                 <iframe id="contentFrame" class="clean-frame" src="about:blank" style="display: none;" title="محتوای مطالعه"></iframe>
             </div>
             </div>
             <div class="action-buttons">
             <div class="action-buttons">
                 <a id="wikiLink" href="#" class="wiki-link" target="_blank" style="display: none;">
                <a id="siteLink" href="#" class="site-link" target="_blank" rel="noopener noreferrer" style="display: none;">
                    <i class="fas fa-home"></i>
                    مشاهده صفحه در سایت اصلی
                </a>
                 <a id="wikiLink" href="#" class="wiki-link" target="_blank" rel="noopener noreferrer" style="display: none;">
                    <i class="fab fa-wikipedia-w"></i>
                     مشاهده صفحه کامل در ویکی
                     مشاهده صفحه کامل در ویکی
                </a>
                <a id="viewLink" href="#" class="view-link" target="_blank" rel="noopener noreferrer" style="display: none;">
                    <i class="fas fa-eye"></i>
                    مشاهده صفحه
                 </a>
                 </a>
             </div>
             </div>
         </div>
         </section>
     </div>
     </div>


     <script>
     <script>
         // داده‌های کتاب‌ها و مقالات
         // داده‌های ساده
         const booksData = {
         const booksData = {
             'کتاب': [
             'کتاب': [
خط ۳۱۸: خط ۵۶۸:
         };
         };


         // عناصر DOM
         // عناصر
         const categorySelect = document.getElementById('categorySelect');
         const categorySelect = document.getElementById('categorySelect');
         const bookSelect = document.getElementById('bookSelect');
         const contentSelect = document.getElementById('contentSelect');
        const customSelect = document.querySelector('.custom-select');
        const customDropdown = document.getElementById('customDropdown');
        const dropdownSearch = document.getElementById('dropdownSearch');
        const optionsContainer = document.getElementById('optionsContainer');
         const contentFrame = document.getElementById('contentFrame');
         const contentFrame = document.getElementById('contentFrame');
         const iframePlaceholder = document.getElementById('iframePlaceholder');
         const iframePlaceholder = document.getElementById('iframePlaceholder');
         const wikiLink = document.getElementById('wikiLink');
         const wikiLink = document.getElementById('wikiLink');
        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 isDropdownOpen = false;
         let currentZoom = 100;
         let currentCategory = '';
         let currentContent = '';


         // پر کردن لیست کتاب‌ها بر اساس دسته‌بندی
         // وقتی دسته‌بندی تغییر کرد
         function updateBookList() {
         categorySelect.addEventListener('change', function() {
             const selectedCategory = categorySelect.value;
             const selectedCategory = this.value;
            currentCategory = selectedCategory;
              
              
             if (!selectedCategory) {
             if (!selectedCategory) {
                 // اگر دسته‌بندی انتخاب نشده
                 contentSelect.disabled = true;
                bookSelect.disabled = true;
                 contentSelect.innerHTML = '<option value="">ابتدا دسته‌بندی را انتخاب کنید</option>';
                 bookSelect.innerHTML = '<option value="">ابتدا دسته‌بندی را انتخاب کنید</option>';
                 resetContent();
                 customSelect.textContent = 'ابتدا دسته‌بندی را انتخاب کنید';
                showContent('', '');
                 return;
                 return;
             }
             }
              
              
            const books = booksData[selectedCategory];
             // پر کردن لیست محتواها
           
             contentSelect.disabled = false;
             // فعال کردن select
            contentSelect.innerHTML = '<option value="">لطفاً محتوا انتخاب کنید</option>';
             bookSelect.disabled = false;
              
              
             // پاک کردن لیست فعلی
             booksData[selectedCategory].forEach(item => {
            bookSelect.innerHTML = '<option value="">لطفاً محتوا انتخاب کنید</option>';
           
            // پر کردن لیست جدید
            books.forEach(book => {
                 const option = document.createElement('option');
                 const option = document.createElement('option');
                 option.value = book.value;
                 option.value = item.value;
                 option.textContent = book.text;
                 option.textContent = item.text;
                 bookSelect.appendChild(option);
                 contentSelect.appendChild(option);
             });
             });
              
              
             customSelect.textContent = 'لطفاً محتوا انتخاب کنید';
             resetContent();
            showContent('', '');
         });
         }


         // باز کردن/بستن dropdown
         // وقتی محتوا تغییر کرد
         customSelect.addEventListener('click', function(e) {
         contentSelect.addEventListener('change', function() {
             if (bookSelect.disabled) return;
             const selectedValue = this.value;
            const selectedText = this.options[this.selectedIndex].text;
              
              
             e.stopPropagation();
             if (!selectedValue) {
            isDropdownOpen = !isDropdownOpen;
                 resetContent();
            customDropdown.style.display = isDropdownOpen ? 'block' : 'none';
                 return;
           
            if (isDropdownOpen) {
                 populateDropdownOptions();
                 dropdownSearch.value = '';
                dropdownSearch.focus();
             }
             }
        });
        // بستن dropdown وقتی کلیک خارج شود
        document.addEventListener('click', function() {
            isDropdownOpen = false;
            customDropdown.style.display = 'none';
        });
        // جلوگیری از بستن وقتی روی dropdown کلیک شود
        customDropdown.addEventListener('click', function(e) {
            e.stopPropagation();
        });
        // پر کردن options در dropdown
        function populateDropdownOptions(searchTerm = '') {
            if (!currentCategory) return;
           
            const books = booksData[currentCategory];
            const searchLower = searchTerm.toLowerCase();
           
            optionsContainer.innerHTML = '';
           
            const filteredBooks = books.filter(book =>
                !searchTerm || book.text.toLowerCase().includes(searchLower)
            );
           
            filteredBooks.forEach(book => {
                const optionItem = document.createElement('div');
                optionItem.className = 'option-item';
                optionItem.textContent = book.text;
                optionItem.setAttribute('data-value', book.value);
               
                if (book.value === bookSelect.value) {
                    optionItem.classList.add('selected');
                }
               
                optionItem.addEventListener('click', function() {
                    bookSelect.value = this.getAttribute('data-value');
                    customSelect.textContent = this.textContent;
                    isDropdownOpen = false;
                    customDropdown.style.display = 'none';
                   
                    if (bookSelect.value) {
                        showContent(bookSelect.value, this.textContent);
                    }
                });
               
                optionsContainer.appendChild(optionItem);
            });
              
              
             if (filteredBooks.length === 0) {
             currentContent = selectedValue;
                const noResult = document.createElement('div');
             showContent(selectedValue, selectedText);
                noResult.className = 'option-item';
                noResult.textContent = 'نتیجه‌ای یافت نشد';
                noResult.style.color = '#999';
                noResult.style.cursor = 'default';
                optionsContainer.appendChild(noResult);
             }
        }
 
        // جستجو در dropdown
        dropdownSearch.addEventListener('input', function() {
            populateDropdownOptions(this.value);
         });
         });


         // نمایش محتوا در iframe
         // نمایش محتوا
         function showContent(bookValue, bookText) {
         function showContent(bookValue, bookText) {
            if (!bookValue) {
                contentFrame.style.display = 'none';
                iframePlaceholder.style.display = 'flex';
                iframePlaceholder.innerHTML = `
                    <div>
                        <i class="fas fa-book-open" style="font-size: 3rem; color: #6c757d; margin-bottom: 15px;"></i>
                        <p>لطفاً یک کتاب یا مقاله از لیست انتخاب کنید</p>
                    </div>
                `;
                wikiLink.style.display = 'none';
                return;
            }
           
             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}`;
            const siteUrl = `https://www.pediabible.com/index.php/${bookValue}`;
           
            contentTitle.textContent = bookText;
              
              
             // نمایش حالت لودینگ
             // نمایش loading
             contentFrame.style.display = 'none';
             contentFrame.style.display = 'none';
             iframePlaceholder.style.display = 'flex';
             iframePlaceholder.style.display = 'flex';
             iframePlaceholder.innerHTML = `
             iframePlaceholder.innerHTML = `
                 <div>
                 <div>
                     <i class="fas fa-spinner fa-spin" style="font-size: 3rem; color: #3e6f73; margin-bottom: 15px;"></i>
                     <i class="fas fa-spinner fa-spin" style="font-size: 1.5rem; color: #3e6f73; margin-bottom: 10px;"></i>
                     <p>در حال بارگذاری محتوا...</p>
                     <p>در حال بارگذاری "${bookText}"...</p>
                 </div>
                 </div>
             `;
             `;
              
              
             // تنظیم iframe
             // نوار پیشرفت
            let progress = 0;
            const progressInterval = setInterval(() => {
                progress += Math.random() * 15;
                if (progress > 90) progress = 90;
                loadingBar.style.width = `${progress}%`;
            }, 200);
           
            // بارگذاری محتوا
             contentFrame.src = contentUrl;
             contentFrame.src = contentUrl;
              
              
            // وقتی iframe لود شد
             contentFrame.onload = function() {
             contentFrame.onload = function() {
                clearInterval(progressInterval);
                loadingBar.style.width = '100%';
                setTimeout(() => {
                    loadingBar.style.width = '0%';
                }, 500);
               
                 contentFrame.style.display = 'block';
                 contentFrame.style.display = 'block';
                 iframePlaceholder.style.display = 'none';
                 iframePlaceholder.style.display = 'none';
                applyZoom();
             };
             };
              
              
            // اگر iframe خطا داد
             contentFrame.onerror = function() {
             contentFrame.onerror = function() {
                clearInterval(progressInterval);
                loadingBar.style.width = '0%';
                 iframePlaceholder.style.display = 'flex';
                 iframePlaceholder.style.display = 'flex';
                 iframePlaceholder.innerHTML = `
                 iframePlaceholder.innerHTML = `
                     <div>
                     <div>
                         <i class="fas fa-exclamation-triangle" style="font-size: 3rem; color: #dc3545; margin-bottom: 15px;"></i>
                         <i class="fas fa-exclamation-triangle" style="font-size: 1.5rem; color: #dc3545; margin-bottom: 10px;"></i>
                         <p>خطا در بارگذاری محتوا. لطفاً دوباره تلاش کنید.</p>
                         <p>خطا در بارگذاری "${bookText}". لطفاً دوباره تلاش کنید.</p>
                     </div>
                     </div>
                 `;
                 `;
خط ۴۹۳: خط ۶۷۸:
             };
             };
              
              
             // به‌روزرسانی لینک ویکی
             // به‌روزرسانی لینک‌ها
             wikiLink.href = wikiUrl;
             wikiLink.href = wikiUrl;
             wikiLink.textContent = `مشاهده صفحه کامل "${bookText}"`;
             wikiLink.style.display = 'flex';
             wikiLink.style.display = 'inline-block';
           
            siteLink.href = siteUrl;
            siteLink.style.display = 'flex';
           
            viewLink.href = contentUrl;
             viewLink.style.display = 'flex';
         }
         }


         // رویداد تغییر دسته‌بندی
         // مشاهده مستقیم
         categorySelect.addEventListener('change', updateBookList);
         directView.addEventListener('click', function() {
            if (currentContent) {
                const directUrl = `https://www.pediabible.com/index.php/${currentContent}`;
                window.open(directUrl, '_blank', 'noopener,noreferrer');
            }
        });
 
        // کنترل بزرگ‌نمایی
        function applyZoom() {
            contentFrame.style.zoom = `${currentZoom}%`;
        }


         // رویداد تغییر کتاب
         zoomIn.addEventListener('click', function() {
        bookSelect.addEventListener('change', function() {
             if (currentZoom < 150) {
             if (this.selectedIndex > 0) {
                 currentZoom += 10;
                 const selectedOption = this.options[this.selectedIndex];
                 applyZoom();
                 customSelect.textContent = selectedOption.text;
                showContent(selectedOption.value, selectedOption.text);
            } else {
                customSelect.textContent = 'لطفاً محتوا انتخاب کنید';
                showContent('', '');
             }
             }
         });
         });


         // بارگذاری اولیه - هیچ چیزی انتخاب نشده
         zoomOut.addEventListener('click', function() {
         updateBookList();
            if (currentZoom > 50) {
                currentZoom -= 10;
                applyZoom();
            }
        });
 
        function resetContent() {
            currentContent = '';
            contentTitle.textContent = 'هیچ محتوایی انتخاب نشده است';
            contentFrame.style.display = 'none';
            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>

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

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

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

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

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

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

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

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

مقالات تخصصی

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

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

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

منابع معتبر

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

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

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