diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-11-05 15:10:29 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-11-05 15:10:29 +0100 |
| commit | a8ed11c640707ec678a37a10e505a90ab88749c6 (patch) | |
| tree | e61fbbe373d161d1824034206bf514359aa8e60f /bundle.js | |
| parent | ed8650f579ead0e4c2c69b863411074f05fa415a (diff) | |
deploy bundle
Diffstat (limited to 'bundle.js')
| -rw-r--r-- | bundle.js | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); |
