Skip to content

Commit 98a94ad

Browse files
committed
Merge pull request algorithm-visualizer#147 from nem035/side-menu-bug-fix
Side menu bug fix
2 parents 0209880 + 07111d3 commit 98a94ad

6 files changed

Lines changed: 11 additions & 11 deletions

‎js/dom/add_categories.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const {
99
} = $;
1010

1111
const getAlgorithmDOM = (category, subList, algorithm) => {
12-
return $('<button class="indent collapse">')
12+
return $('<button class="indent">')
1313
.append(subList[algorithm])
1414
.attr('data-algorithm', algorithm)
1515
.attr('data-category', category)

‎js/dom/show_first_algorithm.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
// click the first algorithm in the first category
44
module.exports = () => {
5-
$('#list button.category').first().click();
6-
$('#list button.category + .indent').first().click();
7-
};
5+
$('#list .category').first().click();
6+
$('#list .category + .algorithms > .indent').first().click();
7+
};

‎public/algorithm_visualizer.js‎

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎public/algorithm_visualizer.js.map‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎public/algorithm_visualizer.min.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎public/algorithm_visualizer.min.js.map‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)