From 3f1603a2111c0d1e17d845dd29b202dd8f1ce2bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Mon, 30 Sep 2019 09:53:07 +0200 Subject: [PATCH] Add websiteFile clas --- static/scripts/websiteFile.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 static/scripts/websiteFile.js diff --git a/static/scripts/websiteFile.js b/static/scripts/websiteFile.js new file mode 100644 index 00000000..db19120c --- /dev/null +++ b/static/scripts/websiteFile.js @@ -0,0 +1,8 @@ +class websiteFile{ + constructor(path){ + this.path=path + } + get viewerUrl(){ + return String.raw`view?dataFile=${this.path}` + } +} \ No newline at end of file