Spaces:
B
Running

linxinhua commited on
Commit
f3196ba
·
verified ·
1 Parent(s): 309ec26

revise-gate modal: single-line body, no title, button -> Go back to argument

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -788,12 +788,10 @@ REVISE_GATE_HEAD = """
788
  overlay.id = 'revise-gate-overlay';
789
  overlay.innerHTML =
790
  '<div class="revise-gate-modal">' +
791
- '<div class="revise-gate-title"><b>More revision needed before you can finalize</b></div>' +
792
  '<div class="revise-gate-body">' +
793
- 'Your current argument is more than 90% the same as what you submitted at the start. ' +
794
- 'To finalize this session, please revise at least 10% of your argument based on the reference essay.' +
795
  '</div>' +
796
- '<button type="button" class="revise-gate-btn"><b>Go back and revise</b></button>' +
797
  '</div>';
798
  document.body.appendChild(overlay);
799
  overlay.querySelector('.revise-gate-btn').addEventListener('click', function() {
 
788
  overlay.id = 'revise-gate-overlay';
789
  overlay.innerHTML =
790
  '<div class="revise-gate-modal">' +
 
791
  '<div class="revise-gate-body">' +
792
+ 'You need to revise at least 10% of your argument to submit again.' +
 
793
  '</div>' +
794
+ '<button type="button" class="revise-gate-btn"><b>Go back to argument</b></button>' +
795
  '</div>';
796
  document.body.appendChild(overlay);
797
  overlay.querySelector('.revise-gate-btn').addEventListener('click', function() {