MCPcopy Create free account
hub / github.com/SpringRoll/SpringRoll / toggleSibling

Function toggleSibling

docs/assets/site.js:54–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52}
53
54function toggleSibling() {
55 var stepSibling = this.parentNode.getElementsByClassName('toggle-target')[0];
56 var icon = this.getElementsByClassName('icon')[0];
57 var klass = 'display-none';
58 if (stepSibling.classList.contains(klass)) {
59 stepSibling.classList.remove(klass);
60 icon.innerHTML = '▾';
61 } else {
62 stepSibling.classList.add(klass);
63 icon.innerHTML = '▸';
64 }
65}
66
67function showHashTarget(targetId) {
68 if (targetId) {

Callers

nothing calls this directly

Calls 2

removeMethod · 0.80
addMethod · 0.80

Tested by

no test coverage detected