o1-mini-2024-09-12· OpenAI
WildChat-4.8M (AI2)
<p> </p> <!-- اضافه کردن متاتگ viewport --> <p> </p> <style> /* تنظیمات پایه…
- User
/* متغیر CSS برای ارتفاع نمایشگر */ :root { --vh: 100%; } /* کانتینر iframe */ .iframe-container { position: fixed; top: 0; left: 0; width: 100%; height: calc(var(--vh) * 100); /* استفاده از متغیر --vh */ overflow: hidden; /* مخفی کردن بخشهای اضافی */ z-index: 1; /* ترتیب نمایش */ } /* تنظیمات iframe */ .iframe-container iframe { position: absolute; top: -380px; /* پنهان کردن ۱۰ سانتیمتر بالای صفحه (تقریباً 380px) */ left: 0; width: 100%; height: calc((var(--vh) * 100) + 380px + 152px); /* افزایش ارتفاع iframe به اندازه ۱۰ سانتیمتر بالا و ۴ سانتیمتر پایین */ border: none; display: none; /* مخفی کردن iframe تا بارگذاری موفق */ } /* Overlay برای مخفی کردن بخش بالایی صفحه */ .overlay-top { position: fixed; top: 0; left: 0; width: 100%; height: 380px; /* ارتفاع ۱۰ سانتیمتر (تقریباً 380px) */ background-color: transparent; /* رنگ پسزمینه شفاف */ z-index: 900; /* زیر iframe-container */ pointer-events: none; /* اجازه دادن به اسکرول از طریق iframe */ } /* Overlay برای مخفی کردن بخش پایینی صفحه */ .overlay-bottom { position: fixed; bottom: 0; left: 0; width: 100%; height: 152px; /* ارتفاع ۴ سانتیمتر (تقریباً 152px) */ background-color: transparent; /* رنگ پسزمینه شفاف */ z-index: 900; /* زیر iframe-container */ pointer-events: none; /* اجازه دادن به اسکرول از طریق iframe */ } /* لودینگ */ .loading { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); /* مرکزیت عمودی و افقی */ background-color: white; padding: 20px; border-radius: 5px; box-shadow: 0 0 10px rgba(0,0,0,0.1); z-index: 2000; /* بالاتر از iframe-container و overlays */ display: flex; flex-direction: column; align-items: center; max-width: 90%; /* اطمینان از نمایش در دستگاههای کوچک */ box-sizing: border-box; } /* Media Query برای موبایل */ @media screen and (max-width: 768px) { .loading { width: 80%; } } .loading-message { margin-bottom: 10px; font-size: 18px; text-align: center; } .progress { width: 80%; max-width: 400px; height: 20px; background-color: #ddd; border-radius: 5px; overflow: hidden; margin-bottom: 10px; } .progress-bar { height: 100%; width: 0; background-color: #4caf50; transition: width 0.25s; } .error-message { display: none; color: red; text-align: center; margin-bottom: 10px; font-size: 16px; } #retryButton { display: none; padding: 10px 20px; background-color: #4caf50; color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; } #retryButton:hover { background-color: #45a049; } /* دکمههای دانلود و توضیحات */ .download-button, .description-button { display: block; width: 120px; /* کاهش عرض دکمهها */ color: white; text-align: center; padding: 8px; /* کاهش پدینگ دکمهها */ border-radius: 5px; cursor: pointer; font-size: 13px; /* کاهش اندازه فونت دکمهها */ transition: background-color 0.3s; position: fixed; top: 20px; z-index: 10001; text-decoration: none; } .download-button { background-color: #4CAF50; right: 10px; } .description-button { background-color: rgb(84, 110, 122); left: 10px; } .download-button:hover, .description-button:hover { background-color: #45a049; } /* پنجره مودال */ .modal { display: none; position: fixed; z-index: 10002; /* بالاتر از همه عناصر دیگر */ left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); /* پسزمینه نیمه شفاف */ overflow: auto; /* در صورت نیاز اسکرول فعال شود */ } .modal-content { background-color: #fefefe; margin: 0; /* حذف فاصله از بالا و پایین */ padding: 20px; border: none; /* حذف حاشیه */ width: 100%; height: 100%; max-width: 500px; /* حداکثر عرض */ text-align: center; border-radius: 0; /* حذف لبههای گرد */ box-shadow: 0 5px 15px rgba(0,0,0,0.3); box-sizing: border-box; overflow-y: auto; /* اسکرول عمودی در صورت نیاز */ position: relative; } /* Media Query برای پنجره مودال در موبایل */ @media screen and (max-width: 768px) { .modal-content { width: 95%; /* کاهش عرض برای موبایل */ height: 95%; /* افزایش ارتفاع برای پوشش بیشتر */ margin: 2.5% auto; /* مرکزیت مودال در صفحه */ padding: 15px; /* کاهش پدینگ */ } .download-button, .description-button { width: 100px; /* کاهش بیشتر عرض دکمهها در موبایل */ padding: 6px; /* کاهش بیشتر پدینگ دکمهها در موبایل */ font-size: 12px; /* کاهش بیشتر اندازه فونت دکمهها در موبایل */ } } </style> - Assistant
بالا ۱۰ سانتیمتر و پایین ۴ سانتیمتر مخفی است.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.