MCPcopy Create free account
hub / github.com/BloombergGraphics/whatiscode / toggleFootnote

Function toggleFootnote

scripts/main.js:194–201  ·  view source on GitHub ↗
(d,i)

Source from the content-addressed store, hash-verified

192
193 // toggle stickiness
194 function toggleFootnote(d,i) {
195 d3.event.preventDefault();
196 var popup = d3.select(this.parentElement).select(".fn-popup")
197 var isStuck = !popup.classed("stick");
198 d3.select(this).classed("stick", isStuck);
199 popup.classed("stick", isStuck);
200 popup.classed("stick") ? showFootnote.call(this) : hideFootnote.call(this)
201 }
202
203}
204

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected