Skip to content

Instantly share code, notes, and snippets.

@kartikprabhu
kartikprabhu / toggle-controls.js
Created July 22, 2017 23:09
link aware progressive disclosure
// 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;
}