Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1069,23 +1069,23 @@ async () => {{
|
|
| 1069 |
|
| 1070 |
var deadlineAnimation = function () {{
|
| 1071 |
setTimeout(function() {{
|
| 1072 |
-
gradioEl.querySelector('#designer-arm-grop').
|
| 1073 |
}}, 0);
|
| 1074 |
|
| 1075 |
setTimeout(function() {{
|
| 1076 |
-
gradioEl.querySelector('#designer-arm-grop').
|
| 1077 |
}}, {int((opt.run_time + opt.prep_time) * 1000 * 0.2)});
|
| 1078 |
|
| 1079 |
setTimeout(function() {{
|
| 1080 |
-
gradioEl.querySelector('#designer-arm-grop').
|
| 1081 |
}}, {int((opt.run_time + opt.prep_time) * 1000 * 0.4)});
|
| 1082 |
|
| 1083 |
setTimeout(function() {{
|
| 1084 |
-
gradioEl.querySelector('#designer-arm-grop').
|
| 1085 |
}}, {int((opt.run_time + opt.prep_time) * 1000 * 0.6)});
|
| 1086 |
|
| 1087 |
setTimeout(function() {{
|
| 1088 |
-
gradioEl.querySelector('#designer-arm-grop').
|
| 1089 |
}}, {int((opt.run_time + opt.prep_time) * 1000 * 0.75)});
|
| 1090 |
}};
|
| 1091 |
|
|
@@ -1149,7 +1149,7 @@ async () => {{
|
|
| 1149 |
state = true;
|
| 1150 |
|
| 1151 |
// Run the main animation just once.
|
| 1152 |
-
gradioEl.querySelector('#progress-time-fill, #death-group')['animation-duration'] = animationTime+'s';
|
| 1153 |
timerFunc(animationTime, days);
|
| 1154 |
deadlineAnimation();
|
| 1155 |
deadlineText({opt.run_time});
|
|
|
|
| 1069 |
|
| 1070 |
var deadlineAnimation = function () {{
|
| 1071 |
setTimeout(function() {{
|
| 1072 |
+
gradioEl.querySelector('#designer-arm-grop').style['animation-duration'] = '1.5s';
|
| 1073 |
}}, 0);
|
| 1074 |
|
| 1075 |
setTimeout(function() {{
|
| 1076 |
+
gradioEl.querySelector('#designer-arm-grop').style['animation-duration'] = '1.0s';
|
| 1077 |
}}, {int((opt.run_time + opt.prep_time) * 1000 * 0.2)});
|
| 1078 |
|
| 1079 |
setTimeout(function() {{
|
| 1080 |
+
gradioEl.querySelector('#designer-arm-grop').style['animation-duration'] = '0.7s';
|
| 1081 |
}}, {int((opt.run_time + opt.prep_time) * 1000 * 0.4)});
|
| 1082 |
|
| 1083 |
setTimeout(function() {{
|
| 1084 |
+
gradioEl.querySelector('#designer-arm-grop').style['animation-duration'] = '0.3s';
|
| 1085 |
}}, {int((opt.run_time + opt.prep_time) * 1000 * 0.6)});
|
| 1086 |
|
| 1087 |
setTimeout(function() {{
|
| 1088 |
+
gradioEl.querySelector('#designer-arm-grop').style['animation-duration'] = '0.2s';
|
| 1089 |
}}, {int((opt.run_time + opt.prep_time) * 1000 * 0.75)});
|
| 1090 |
}};
|
| 1091 |
|
|
|
|
| 1149 |
state = true;
|
| 1150 |
|
| 1151 |
// Run the main animation just once.
|
| 1152 |
+
gradioEl.querySelector('#progress-time-fill, #death-group').style['animation-duration'] = animationTime+'s';
|
| 1153 |
timerFunc(animationTime, days);
|
| 1154 |
deadlineAnimation();
|
| 1155 |
deadlineText({opt.run_time});
|