summaryrefslogtreecommitdiff
path: root/bundle.js
diff options
context:
space:
mode:
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);