ironjr commited on
Commit
8f72d12
1 Parent(s): 27c648a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -1122,7 +1122,11 @@ async () => {{
1122
  }} else if (actualDay > 0) {{
1123
  deadlineText(actualDay);
1124
  gradioEl.querySelector('#progress-time-fill').style['animation-duration'] = animationTime + 's';
 
 
1125
  gradioEl.querySelector('#death-group').style['animation-duration'] = animationTime + 's';
 
 
1126
  }} else {{
1127
  clearInterval(timer);
1128
  deadlineTextFinished();
@@ -1147,7 +1151,11 @@ async () => {{
1147
  // Do nothing.
1148
  deadlineTextBegin();
1149
  gradioEl.querySelector('#progress-time-fill').style['animation-duration'] = 1000000 + 's';
 
 
1150
  gradioEl.querySelector('#death-group').style['animation-duration'] = 1000000 + 's';
 
 
1151
  }} else {{
1152
  // Running = True
1153
  state = true;
 
1122
  }} else if (actualDay > 0) {{
1123
  deadlineText(actualDay);
1124
  gradioEl.querySelector('#progress-time-fill').style['animation-duration'] = animationTime + 's';
1125
+ gradioEl.querySelector('#progress-time-fill').style['-webkit-animation-name'] = 'progress-fill';
1126
+ gradioEl.querySelector('#progress-time-fill').style['animation-name'] = 'progress-fill';
1127
  gradioEl.querySelector('#death-group').style['animation-duration'] = animationTime + 's';
1128
+ gradioEl.querySelector('#death-group').style['-webkit-animation-name'] = 'walk';
1129
+ gradioEl.querySelector('#death-group').style['animation-name'] = 'walk';
1130
  }} else {{
1131
  clearInterval(timer);
1132
  deadlineTextFinished();
 
1151
  // Do nothing.
1152
  deadlineTextBegin();
1153
  gradioEl.querySelector('#progress-time-fill').style['animation-duration'] = 1000000 + 's';
1154
+ gradioEl.querySelector('#progress-time-fill').style['-webkit-animation-name'] = 'idle-fill';
1155
+ gradioEl.querySelector('#progress-time-fill').style['animation-name'] = 'idle-fill';
1156
  gradioEl.querySelector('#death-group').style['animation-duration'] = 1000000 + 's';
1157
+ gradioEl.querySelector('#death-group').style['-webkit-animation-name'] = 'idle';
1158
+ gradioEl.querySelector('#death-group').style['animation-name'] = 'idle';
1159
  }} else {{
1160
  // Running = True
1161
  state = true;