Update templates/image_studio.html
Browse files- templates/image_studio.html +16 -15
templates/image_studio.html
CHANGED
|
@@ -1584,31 +1584,32 @@
|
|
| 1584 |
const pb = document.getElementById('tv-progress-bar');
|
| 1585 |
if (!pb) return;
|
| 1586 |
|
| 1587 |
-
// اضافه کردن استایل انیمیشن ر
|
| 1588 |
-
if (!document.getElementById('tv-
|
| 1589 |
const style = document.createElement('style');
|
| 1590 |
-
style.id = 'tv-
|
| 1591 |
style.innerHTML = `
|
| 1592 |
-
@keyframes progress-
|
| 1593 |
-
0% {
|
| 1594 |
-
50% {
|
| 1595 |
-
100% {
|
| 1596 |
}
|
| 1597 |
-
.pb-
|
| 1598 |
-
animation: progress-
|
|
|
|
| 1599 |
}
|
| 1600 |
`;
|
| 1601 |
document.head.appendChild(style);
|
| 1602 |
}
|
| 1603 |
|
| 1604 |
// ریست کردن حالتهای قبلی
|
| 1605 |
-
pb.classList.remove('pb-
|
| 1606 |
-
pb.style.
|
| 1607 |
pb.style.width = '0%';
|
| 1608 |
|
| 1609 |
if (isIndeterminate) {
|
| 1610 |
-
// فعال کردن حالت ر
|
| 1611 |
-
pb.classList.add('pb-
|
| 1612 |
} else {
|
| 1613 |
// حالت پر شدن عادی برای سایر مدلها
|
| 1614 |
let currentProg = 0;
|
|
@@ -1631,8 +1632,8 @@
|
|
| 1631 |
const pb = document.getElementById('tv-progress-bar');
|
| 1632 |
if(pb) {
|
| 1633 |
// با اتمام کار، انیمیشن را حذف کرده و نوار را 100% پر میکنیم
|
| 1634 |
-
pb.classList.remove('pb-
|
| 1635 |
-
pb.style.
|
| 1636 |
pb.style.width = '100%';
|
| 1637 |
}
|
| 1638 |
}
|
|
|
|
| 1584 |
const pb = document.getElementById('tv-progress-bar');
|
| 1585 |
if (!pb) return;
|
| 1586 |
|
| 1587 |
+
// اضافه کردن استایل انیمیشن بسیار نرم و حرفهای (پر و خالی شدن از چپ به راست)
|
| 1588 |
+
if (!document.getElementById('tv-fluid-style')) {
|
| 1589 |
const style = document.createElement('style');
|
| 1590 |
+
style.id = 'tv-fluid-style';
|
| 1591 |
style.innerHTML = `
|
| 1592 |
+
@keyframes progress-fluid {
|
| 1593 |
+
0% { left: 0; width: 0%; }
|
| 1594 |
+
50% { left: 0; width: 100%; }
|
| 1595 |
+
100% { left: 100%; width: 0%; }
|
| 1596 |
}
|
| 1597 |
+
.pb-fluid {
|
| 1598 |
+
animation: progress-fluid 2s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
|
| 1599 |
+
transition: none !important;
|
| 1600 |
}
|
| 1601 |
`;
|
| 1602 |
document.head.appendChild(style);
|
| 1603 |
}
|
| 1604 |
|
| 1605 |
// ریست کردن حالتهای قبلی
|
| 1606 |
+
pb.classList.remove('pb-fluid');
|
| 1607 |
+
pb.style.left = '0';
|
| 1608 |
pb.style.width = '0%';
|
| 1609 |
|
| 1610 |
if (isIndeterminate) {
|
| 1611 |
+
// فعال کردن حالت پر و خالی شدن نرم و بینهایت (برای ایدئوگرام)
|
| 1612 |
+
pb.classList.add('pb-fluid');
|
| 1613 |
} else {
|
| 1614 |
// حالت پر شدن عادی برای سایر مدلها
|
| 1615 |
let currentProg = 0;
|
|
|
|
| 1632 |
const pb = document.getElementById('tv-progress-bar');
|
| 1633 |
if(pb) {
|
| 1634 |
// با اتمام کار، انیمیشن را حذف کرده و نوار را 100% پر میکنیم
|
| 1635 |
+
pb.classList.remove('pb-fluid');
|
| 1636 |
+
pb.style.left = '0';
|
| 1637 |
pb.style.width = '100%';
|
| 1638 |
}
|
| 1639 |
}
|