Skip to content

Commit cd1e79b

Browse files
committed
chore: format JS
1 parent c59a9bc commit cd1e79b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/assets/js/app.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
document.addEventListener('DOMContentLoaded', () => {
2-
anchors.options.visible = 'always';
1+
document.addEventListener("DOMContentLoaded", () => {
2+
anchors.options = { visible: "always" };
33
anchors.add();
44
});
55

66
$(() => {
77
// highlight.js
88
hljs.configure({
9-
languages: ['ruby', 'html', 'bash', 'sql']
9+
languages: ["ruby", "html", "bash", "sql"],
1010
});
1111
hljs.highlightAll();
1212

13-
$("#navigation").load(`${config.rootPath}navigation.html`, function() {
13+
$("#navigation").load(`${config.rootPath}navigation.html`, () => {
1414
$(".sidebar-sticky .icon").on("click", function (e) {
1515
e.preventDefault();
1616
$(this).siblings("ul").toggle();
1717
this.classList.toggle("icon-opened");
1818
});
1919
$(`.sidebar-content a[href='${window.location.pathname}']`)
2020
.attr("class", "active-link")
21-
.parents('ul')
21+
.parents("ul")
2222
.show();
23-
})
23+
});
2424
});

0 commit comments

Comments
 (0)