Skip to content

Commit

Permalink
updated supplementary materials
Browse files Browse the repository at this point in the history
  • Loading branch information
Devbimpe committed May 28, 2022
1 parent b9de5a4 commit 9675959
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions form_generator/js/read_standards.js
Original file line number Diff line number Diff line change
Expand Up @@ -1072,13 +1072,8 @@ function create_requirements_checklist(){
//standard_header_text.innerText = standardName;
//standard_header_rule.appendChild(standard_header_text);

all_essential_IMRaD_items_innerHTML = "" + all_intro_items + "\n_hr_" + all_method_items + "\n_hr_" + all_results_items + "\n_hr_" + all_discussion_items + "\n_hr_" + all_other_items
all_essential_IMRaD_items_innerHTML = all_essential_IMRaD_items_innerHTML.replaceAll("\n_hr_", "").length > 0 ? all_essential_IMRaD_items_innerHTML : "";


if (checklistTag.getAttribute('name') == "Essential") {
//EssentialUL.appendChild(standard_header_rule);
checklists = preparation_to_convert_MD_to_HTML("", 'Essential', all_essential_IMRaD_items_innerHTML, footnotes,supCheckList);

if (i == 1)
EssentialUL.appendChild(Yes_No);
Expand All @@ -1102,12 +1097,15 @@ function create_requirements_checklist(){
}
}
}
all_essential_IMRaD_items_innerHTML = "" + all_intro_items + "\n_hr_" + all_method_items + "\n_hr_" + all_results_items + "\n_hr_" + all_discussion_items + "\n_hr_" + all_other_items
all_essential_IMRaD_items_innerHTML = all_essential_IMRaD_items_innerHTML.replaceAll("\n_hr_", "").length > 0 ? all_essential_IMRaD_items_innerHTML : "";


// Notify testers in the case of unrecognized tags, no tags at all, or untagged attributes
notify_testers();

// Change from Markdown to HTML elements
checklists = preparation_to_convert_MD_to_HTML("", 'Essential', all_essential_IMRaD_items_innerHTML, footnotes,supCheckList);
EssentialUL.appendChild(checklists);

checklists = preparation_to_convert_MD_to_HTML(standardTag.getAttribute('name'), "Supplementary", supCheckList.items.replaceAll("{supplement}", ""), footnotes,supCheckList);
Expand Down

0 comments on commit 9675959

Please sign in to comment.