diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-01-04 23:54:45 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-01-04 23:54:45 +0100 |
| commit | 883c2a96267660a566470dedc4d81ded9a2ed196 (patch) | |
| tree | 3ee1df09a64f4bd8fb62861a312a3384e282672e /client/index.js | |
| parent | 28f10cff41050a74b02cf40ffb2cfaaa9d72f4bb (diff) | |
index of datasets
Diffstat (limited to 'client/index.js')
| -rw-r--r-- | client/index.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/index.js b/client/index.js index 93341a77..40be2841 100644 --- a/client/index.js +++ b/client/index.js @@ -26,14 +26,15 @@ function fetchDataset(payload) { function appendApplets(applets) { applets.forEach(([el, payload]) => { + el.classList.add(payload.cmd) switch (payload.cmd) { case 'citations': case 'load_file': + el.parentNode.classList.add('wide') appendTable(el, payload) break case 'map': - el.parentNode.classList.add('wide') - el.classList.add(payload.cmd) + el.parentNode.classList.add('fullwidth') appendMap(el, payload) el.classList.add('loaded') break |
