Skip to content

Commit

Permalink
update issue warning text
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoranzhou committed Aug 23, 2024
1 parent 0a5db41 commit 5649ca1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@

}
//verbose console.log("answer reload is finished");
issue_warning();
issue_warning(name);

let unfinished = compare_replace(temp_a, saved_a);
let p_bar = document.getElementById("p-bar");
Expand Down Expand Up @@ -1121,7 +1121,7 @@
}


function issue_warning() {
function issue_warning(name) {

const warning_notification = document.getElementsByName("_warning_notification");

Expand Down Expand Up @@ -1160,10 +1160,11 @@
newText.setAttribute("name" , "issueWarningContent");
newText.setAttribute("data-id" , warning_number);
newText.setAttribute("data-text" , text);
if (window.doc_name == 'bmbf-dmp'){
console.log("doc_name is : " + name)
if (name == 'bmbf-dmp'){
newText.innerHTML = '<span id= "warning_number' + warning_number + '" name="warning_elements" class = "text-warning"><-- Bitte achten Sie auf den vorhergehenden Satz. ' + text + '</span>';
}else {
newText.innerHTML = '<span id= "warning_number' + warning_number + '" name="warning_elements" class = "text-warning"><--Please pay attention to the sentence before. ' + text + '</span>';
newText.innerHTML = '<span id= "warning_number' + warning_number + '" name="warning_elements" class = "text-warning"><-- Please pay attention to the sentence before. ' + text + '</span>';
}

full_range.insertNode(newText);
Expand Down

0 comments on commit 5649ca1

Please sign in to comment.