From 6296a2eb8537bb46ebbd30d8de98349a7916d84b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Sat, 28 Sep 2019 15:23:25 +0200 Subject: [PATCH] Add multipledataset page --- config.toml | 7 ++- content/multipledataset.html | 117 +++++++++++++++++++++++++++++++++++ static/scripts/uniq.js | 8 +++ 3 files changed, 131 insertions(+), 1 deletion(-) create mode 100644 content/multipledataset.html create mode 100644 static/scripts/uniq.js diff --git a/config.toml b/config.toml index a437fe2d..c822352e 100644 --- a/config.toml +++ b/config.toml @@ -25,4 +25,9 @@ theme = "beautifulhugo" [[menu.main]] name = "One dataset" url = "onedataset" - weight = 1 \ No newline at end of file + weight = 1 + +[[menu.main]] + name = "Multiple dataset" + url = "multipledataset" + weight = 2 \ No newline at end of file diff --git a/content/multipledataset.html b/content/multipledataset.html new file mode 100644 index 00000000..414dbf4b --- /dev/null +++ b/content/multipledataset.html @@ -0,0 +1,117 @@ +--- +title: "Multiple dataset" +date: 2019-09-27 16:41 +draft: false +--- + + + + + + + + + +{{< getDataFilesName >}} +
+ Data type + + + + + + +
+ + + + + + + + +
+
+
+ + + + + + + + + + +
MoleculeCommentCodeMethodDOI
+
\ No newline at end of file diff --git a/static/scripts/uniq.js b/static/scripts/uniq.js new file mode 100644 index 00000000..d492b157 --- /dev/null +++ b/static/scripts/uniq.js @@ -0,0 +1,8 @@ +function uniq(array) +{ + return uniqueArray = array.filter((obj1,index) => { + return index === array.findIndex(obj2 => { + return JSON.stringify(obj1) === JSON.stringify(obj2); + }); + }); +} \ No newline at end of file