Skip to content

Commit 5cb3e30

Browse files
author
EC2 Default User
committed
Minor Refactoring
1 parent a28acf8 commit 5cb3e30

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

js/dom/enable_search.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ module.exports = () => {
77
let query = $(this).val ();
88
let re = new RegExp (query, 'i');
99

10-
if (query) $('#footer').hide ();
11-
else $('#footer').show ();
12-
10+
query ? $('#footer').hide () : $('#footer').show ();
1311
$.each ($('#list .category'), function (i, c) {
1412
let $c = $(c);
1513
!$c.hasClass ('open') && $c.click ();
@@ -32,4 +30,4 @@ module.exports = () => {
3230
return !$(this).children (':visible').length;
3331
}).hide ();
3432
});
35-
};
33+
};

public/algorithm_visualizer.js

Lines changed: 2 additions & 3 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.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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy