Skip to content

Commit

Permalink
debug creation date and modification date
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoranzhou committed Jun 20, 2024
1 parent e9507b5 commit e9b2ed1
Showing 1 changed file with 46 additions and 37 deletions.
83 changes: 46 additions & 37 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta http-equiv="Content-Type" charset="utf-8" name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="DataPLAN can generate a data management plan for Horizon Europe and DFG in minutes. We promise to be free and FAIR. Save your time and effort by using our DMP tool to create data management documents with ease.">
<meta name="description" content="DataPLAN can generate a data management plan for Horizon 2020, Horizon Europe, DFG, BMBF and BBSRC in minutes. The DMPs generated by DataPLAN include relvant metadata standards and endpoint repositories. This tool aims to be a time saving and easy-to-use tool to create data management documents.">
<meta name="keywords" content="DataPLAN, Horizon Europe, dfg, FAIR, data management plan, DMP, free, open-source">

<!-- disable cache accross browsers for testing purpose -->
Expand Down Expand Up @@ -82,7 +82,7 @@



var saved_a = JSON.parse(cached_a); // load the cached answers to webpage
saved_a = JSON.parse(cached_a); // load the cached answers to webpage
try { saved_a["update"];
saved_a["update"]["timeline"];
saved_a["dmp"];
Expand All @@ -102,39 +102,39 @@

]};

saved_a["dmp"] = {
"title": "Minimal DMP",
"contact": {
"contact_id": {
"identifier": "http://orcid.org/0000-0000-0000-0000",
"type": "orcid"
},
"mbox": "cc@example.com",
"name": "Charlie Chaplin"
},
"created": "2018-07-23T10:10:23.6",
"dmp_id": {
"identifier": "https://doi.org/10.0000/00.0.1234",
"type": "doi"
},
"dataset": [{
"dataset_id": {
"identifier": "https://doi.org/10.0000/00.0.5678",
"type": "doi"
},
"title": "Placeholder dataset",
"personal_data": "unknown",
"sensitive_data": "unknown"
}
],
"ethical_issues_exist": "unknown",
"language": "eng",
"modified": "2019-02-06T15:30:42.1",
"submission" :{"time": "2022-07-06T15:30:42.1",
"funding": "Horizon Europe ",
},
};
saved_a["dmp"] = {
"title": "Minimal DMP",
"contact": {
"contact_id": {
"identifier": "http://orcid.org/0000-0000-0000-0000",
"type": "orcid"
},
"mbox": "cc@example.com",
"name": "Charlie Chaplin"
},
"created": "2018-07-23T10:10:23.6",
"dmp_id": {
"identifier": "https://doi.org/10.0000/00.0.1234",
"type": "doi"
},
"dataset": [{
"dataset_id": {
"identifier": "https://doi.org/10.0000/00.0.5678",
"type": "doi"
},
"title": "Placeholder dataset",
"personal_data": "unknown",
"sensitive_data": "unknown"
}
],
"ethical_issues_exist": "unknown",
"language": "eng",
"modified": "2019-02-06T15:30:42.1",
"submission" :{"time": "2022-07-06T15:30:42.1",
"funding": "Horizon Europe ",
},
};

}

Expand Down Expand Up @@ -240,9 +240,17 @@
try {((!Object.values(saved_a["checkbox"]["checkbox_2"]["checked"]).includes("check_transcriptomic")) && (!Object.values(saved_a["checkbox"]["checkbox_2"]["unchecked"]).includes("check_transcriptomic"))) ? saved_a["checkbox"]["checkbox_2"]["unchecked"].push( "check_transcriptomic" ) : {} ;
}
catch(e){};
try {Object.keys(saved_a["replace"]).includes("$_FUNDINGPROGRAMME") ? {}: saved_a["replace"]["$_FUNDINGPROGRAMME"] ="action number or funding programme name", saved_a["replace"]["$_CREATIONDATE"] ="xxxx-xx-xx",saved_a["replace"]["$_MODIFICATIONDATE"] ="xxxx-xx-xx" ;
try {Object.keys(saved_a["replace"]).includes("$_FUNDINGPROGRAMME") ? {} : saved_a["replace"]["$_FUNDINGPROGRAMME"] ="action number or funding programme name";
}
catch(e){};
try {Object.keys(saved_a["replace"]).includes("$_CREATIONDATE") ? {} : saved_a["replace"]["$_CREATIONDATE"] ="xxxx-xx-xx" ;
}
catch(e){};
try {Object.keys(saved_a["replace"]).includes("$_MODIFICATIONDATE") ? {} : saved_a["replace"]["$_MODIFICATIONDATE"] ="xxxx-xx-xx" ;
}
catch(e){};
catch(e){};


}

/**
Expand Down Expand Up @@ -486,6 +494,7 @@
for (const[key, value]of replace_input) {
if (key !== "$_VISUALIZATION") {
let element = document.getElementsByName(key)[0];
console.log(value);
element.value = value;
}
}
Expand Down

0 comments on commit e9b2ed1

Please sign in to comment.