<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport"…
- User
body, html { margin: 0; padding: 0; height: 100%; overflow: hidden; /* جلوگیری از اسکرول در زمان نمایش نوار پیشرفت */ background-color: #f4f4f9; font-family: Arial, sans-serif; }
#loader { width: 100%; text-align: center; position: absolute; height: 100%; display: flex; justify-content: center; align-items: center; flex-direction: column; z-index: 1; background-color: #f4f4f9; }
#progress { width: 80%; background-color: #eee; }
#bar { width: 0; height: 30px; background-color: #76c7c0; text-align: center; line-height: 30px; color: white; }
.container { display: none; /* ابتدا مخفی است تا وقتی برنامه Gradio آماده شود */ position: relative; overflow: hidden; height: 100vh; width: 100%; }
gradio-app { position: absolute; top: 0; left: 0; right: 0; width: 100%; height: 100%; }
/* استایل دکمه دانلود تصویر */ #downloadButton { position: absolute; top: 20px; right: 20px; background-color: #4CAF50; color: white; border: none; padding: 10px 20px; cursor: pointer; border-radius: 5px; z-index: 2; }
#downloadButton:hover { background-color: #45a049; }
/* استایل مودال / .modal { display: none; / مخفی است / position: fixed; z-index: 3; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.4); / پسزمینه نیمهشفاف */ }
.modal-content { background-color: #fefefe; margin: 10% auto; padding: 20px; border: 1px solid #888; width: 80%; max-width: 600px; border-radius: 10px; position: relative; }
.close { color: #aaa; position: absolute; top: 10px; right: 20px; font-size: 28px; font-weight: bold; cursor: pointer; }
.close:hover, .close:focus { color: black; text-decoration: none; }
#modalImageList img { max-width: 100%; height: auto; margin-bottom: 10px; }
#downloadImages { background-color: #008CBA; color: white; border: none; padding: 10px 15px; cursor: pointer; border-radius: 5px; margin-top: 10px; }
#downloadImages:hover { background-color: #007B9E; }
#instructions { margin-top: 10px; font-size: 14px; color: #555; }
دکمه دانلود وسط اعلان باشه و همچنین متن وسط اعلان برای ذخیره تصاویر روی دکمه دانلود کلیک کنید. بعد از باز شدن تصاویر، از صفحه عکس بگیرید و بعدا برش دهید. این متن فقط پایین اعلان نشون بشه کافیه وقتی کاربر دکمه دانلود کلیک میکنه لینک تصویر باز بشه و همچنین دکمه دانلود وقتی نوار پیشرفت تموم شد نمایش بده
- Assistant