Code
viewof k_sd = {
const input = Inputs.range([1, 4], {value: 2, step: 0.1, label: "k (standard deviations):"});
['pointerdown','touchstart','mousedown','click','wheel','pointermove','touchmove']
.forEach(e => input.addEventListener(e, ev => ev.stopPropagation()));
return input;
}
viewof dist_shape = {
const input = Inputs.select(["mound-shaped", "skewed right", "heavy-tailed"],
{value: "mound-shaped", label: "Population shape:"});
['pointerdown','touchstart','mousedown','click','wheel','pointermove','touchmove']
.forEach(e => input.addEventListener(e, ev => ev.stopPropagation()));
return input;
}