UNPKG

@explorable-viz/fluid

Version:

A functional programming language which integrates a bidirectional dynamic analysis, connecting outputs to data sources in a fine-grained way. Fluid is implemented in PureScript and runs in the browser.

16 lines (14 loc) 542 B
function toggleDataPane(gridId) { const grid = document.getElementById(gridId) const hidden = grid.classList.contains('data-pane-hidden') const dataPaneButton = document.querySelector('.data-pane-button') if (hidden) { grid.classList.remove('data-pane-hidden') dataPaneButton.classList.remove('fa-eye-slash') dataPaneButton.classList.add('fa-eye') } else { grid.classList.add('data-pane-hidden') dataPaneButton.classList.remove('fa-eye') dataPaneButton.classList.add('fa-eye-slash') } }