summaryrefslogtreecommitdiff
path: root/bundle.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-11-05 15:10:29 +0100
committerJules Laplace <julescarbon@gmail.com>2018-11-05 15:10:29 +0100
commita8ed11c640707ec678a37a10e505a90ab88749c6 (patch)
treee61fbbe373d161d1824034206bf514359aa8e60f /bundle.js
parented8650f579ead0e4c2c69b863411074f05fa415a (diff)
deploy bundle
Diffstat (limited to 'bundle.js')
-rw-r--r--bundle.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/bundle.js b/bundle.js
index 66a265f..5aac3b1 100644
--- a/bundle.js
+++ b/bundle.js
@@ -40488,6 +40488,7 @@ function pick_dataset(key) {
console.log('pick dataset:', key, datasets[key]);
i = 0;
mass_i = 0;
+ window.location.hash = key;
dataset = datasets[key];
bounds = (0, _util.get_bounds)(dataset);
diff = (0, _util.get_diff_bounds)(bounds.rows);
@@ -40611,8 +40612,9 @@ function ready() {
document.querySelector('.loading').classList.remove('loading');
- document.querySelector('#dataset').value = 'Mass Shootings';
- pick_dataset('Mass Shootings');
+ var initial_dataset = decodeURIComponent(window.location.hash.substr(1)) || 'Mass Shootings';
+ document.querySelector('#dataset').value = initial_dataset;
+ pick_dataset(initial_dataset);
document.querySelector('#scale').value = '14';
_scales2.default.pick(14);