From a8ed11c640707ec678a37a10e505a90ab88749c6 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 5 Nov 2018 15:10:29 +0100 Subject: deploy bundle --- bundle.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bundle.js') 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); -- cgit v1.2.3-70-g09d2