Skip to content

Instantly share code, notes, and snippets.

@kartikprabhu
kartikprabhu / toggle-controls.js
Created Jul 22, 2017
link aware progressive disclosure
View toggle-controls.js
// modified from https://adactio.com/journal/10365
// Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
// http://creativecommons.org/publicdomain/zero/1.0/
(function (win, doc) {
'use strict';
if (!doc.querySelectorAll || !win.addEventListener) {
// doesn't cut the mustard.
return;
}