ironjr commited on
Commit
9693f00
1 Parent(s): 44693cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -543,8 +543,8 @@ css = css + f"""
543
  left: 0;
544
  width: 0;
545
  color: #BE002A;
546
- -webkit-animation: text-red {opt.run_time:.1f}s ease infinite;
547
- animation: text-red {opt.run_time:.1f}s ease infinite;
548
  z-index: 2;
549
  background: transparent;
550
  }}
@@ -556,22 +556,22 @@ css = css + f"""
556
 
557
  #red-flame {{
558
  opacity: 0;
559
- -webkit-animation: show-flames {opt.run_time:.1f}s ease infinite, red-flame 120ms ease infinite;
560
- animation: show-flames {opt.run_time:.1f}s ease infinite, red-flame 120ms ease infinite;
561
  transform-origin: center bottom;
562
  }}
563
 
564
  #yellow-flame {{
565
  opacity: 0;
566
- -webkit-animation: show-flames {opt.run_time:.1f}s ease infinite, yellow-flame 120ms ease infinite;
567
- animation: show-flames {opt.run_time:.1f}s ease infinite, yellow-flame 120ms ease infinite;
568
  transform-origin: center bottom;
569
  }}
570
 
571
  #white-flame {{
572
  opacity: 0;
573
- -webkit-animation: show-flames {opt.run_time:.1f}s ease infinite, red-flame 100ms ease infinite;
574
- animation: show-flames {opt.run_time:.1f}s ease infinite, red-flame 100ms ease infinite;
575
  transform-origin: center bottom;
576
  }}
577
  """
@@ -1072,10 +1072,10 @@ async () => {{
1072
 
1073
  function countTime() {{
1074
  --actualDay;
1075
- if (actualDay > deadline) {{
1076
  deadlineTextBegin();
1077
  }} else if (actualDay > 0) {{
1078
- deadlineText(actualDay - {opt.prep_time});
1079
  // jQuery('.deadline-timer .day').text(actualDay - {opt.prep_time});
1080
  }} else {{
1081
  clearInterval(timer);
 
543
  left: 0;
544
  width: 0;
545
  color: #BE002A;
546
+ -webkit-animation: text-red {opt.run_time + opt.prep_time:.1f}s ease infinite;
547
+ animation: text-red {opt.run_time + opt.prep_time:.1f}s ease infinite;
548
  z-index: 2;
549
  background: transparent;
550
  }}
 
556
 
557
  #red-flame {{
558
  opacity: 0;
559
+ -webkit-animation: show-flames {opt.run_time + opt.prep_time:.1f}s ease infinite, red-flame 120ms ease infinite;
560
+ animation: show-flames {opt.run_time + opt.prep_time:.1f}s ease infinite, red-flame 120ms ease infinite;
561
  transform-origin: center bottom;
562
  }}
563
 
564
  #yellow-flame {{
565
  opacity: 0;
566
+ -webkit-animation: show-flames {opt.run_time + opt.prep_time:.1f}s ease infinite, yellow-flame 120ms ease infinite;
567
+ animation: show-flames {opt.run_time + opt.prep_time:.1f}s ease infinite, yellow-flame 120ms ease infinite;
568
  transform-origin: center bottom;
569
  }}
570
 
571
  #white-flame {{
572
  opacity: 0;
573
+ -webkit-animation: show-flames {opt.run_time + opt.prep_time:.1f}s ease infinite, red-flame 100ms ease infinite;
574
+ animation: show-flames {opt.run_time + opt.prep_time:.1f}s ease infinite, red-flame 100ms ease infinite;
575
  transform-origin: center bottom;
576
  }}
577
  """
 
1072
 
1073
  function countTime() {{
1074
  --actualDay;
1075
+ if (actualDay > {opt.prep_time}) {{
1076
  deadlineTextBegin();
1077
  }} else if (actualDay > 0) {{
1078
+ deadlineText(actualDay);
1079
  // jQuery('.deadline-timer .day').text(actualDay - {opt.prep_time});
1080
  }} else {{
1081
  clearInterval(timer);