Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1016,7 +1016,7 @@ async () => {{
|
|
1016 |
// timer arguments:
|
1017 |
// #1 - time of animation in mileseconds,
|
1018 |
// #2 - days to deadline
|
1019 |
-
const animationTime = {opt.run_time};
|
1020 |
const days = {opt.run_time};
|
1021 |
|
1022 |
jQuery('#progress-time-fill, #death-group').css({{'animation-duration': animationTime+'s'}});
|
@@ -1028,19 +1028,19 @@ async () => {{
|
|
1028 |
|
1029 |
setTimeout(function() {{
|
1030 |
jQuery('#designer-arm-grop').css({{'animation-duration': '1.0s'}});
|
1031 |
-
}}, {int(opt.run_time * 1000 * 0.2)});
|
1032 |
|
1033 |
setTimeout(function() {{
|
1034 |
jQuery('#designer-arm-grop').css({{'animation-duration': '0.7s'}});
|
1035 |
-
}}, {int(opt.run_time * 1000 * 0.4)});
|
1036 |
|
1037 |
setTimeout(function() {{
|
1038 |
jQuery('#designer-arm-grop').css({{'animation-duration': '0.3s'}});
|
1039 |
-
}}, {int(opt.run_time * 1000 * 0.6)});
|
1040 |
|
1041 |
setTimeout(function() {{
|
1042 |
jQuery('#designer-arm-grop').css({{'animation-duration': '0.2s'}});
|
1043 |
-
}}, {int(opt.run_time * 1000 * 0.75)});
|
1044 |
}};
|
1045 |
|
1046 |
var deadlineTextBegin = function () {{
|
|
|
1016 |
// timer arguments:
|
1017 |
// #1 - time of animation in mileseconds,
|
1018 |
// #2 - days to deadline
|
1019 |
+
const animationTime = {opt.run_time + opt.prep_time};
|
1020 |
const days = {opt.run_time};
|
1021 |
|
1022 |
jQuery('#progress-time-fill, #death-group').css({{'animation-duration': animationTime+'s'}});
|
|
|
1028 |
|
1029 |
setTimeout(function() {{
|
1030 |
jQuery('#designer-arm-grop').css({{'animation-duration': '1.0s'}});
|
1031 |
+
}}, {int((opt.run_time + opt.prep_time) * 1000 * 0.2)});
|
1032 |
|
1033 |
setTimeout(function() {{
|
1034 |
jQuery('#designer-arm-grop').css({{'animation-duration': '0.7s'}});
|
1035 |
+
}}, {int((opt.run_time + opt.prep_time) * 1000 * 0.4)});
|
1036 |
|
1037 |
setTimeout(function() {{
|
1038 |
jQuery('#designer-arm-grop').css({{'animation-duration': '0.3s'}});
|
1039 |
+
}}, {int((opt.run_time + opt.prep_time) * 1000 * 0.6)});
|
1040 |
|
1041 |
setTimeout(function() {{
|
1042 |
jQuery('#designer-arm-grop').css({{'animation-duration': '0.2s'}});
|
1043 |
+
}}, {int((opt.run_time + opt.prep_time) * 1000 * 0.75)});
|
1044 |
}};
|
1045 |
|
1046 |
var deadlineTextBegin = function () {{
|