Skip to content

Commit

Permalink
fix(theme): Remove dead stepsibling navigation code
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcw committed Jul 31, 2017
1 parent 2f200ec commit dccb151
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/default_theme/assets/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,25 +46,6 @@ document.getElementById('filter-input').addEventListener('keyup', function(e) {
}
});

var toggles = document.getElementsByClassName('toggle-step-sibling');
for (var i = 0; i < toggles.length; i++) {
toggles[i].addEventListener('click', toggleStepSibling);
}

function toggleStepSibling() {
var stepSibling = this.parentNode.parentNode.parentNode.getElementsByClassName(
'toggle-target'
)[0];
var klass = 'display-none';
if (stepSibling.classList.contains(klass)) {
stepSibling.classList.remove(klass);
stepSibling.innerHTML = '▾';
} else {
stepSibling.classList.add(klass);
stepSibling.innerHTML = '▸';
}
}

var items = document.getElementsByClassName('toggle-sibling');
for (var j = 0; j < items.length; j++) {
items[j].addEventListener('click', toggleSibling);
Expand Down

0 comments on commit dccb151

Please sign in to comment.