Skip to content

Commit

Permalink
📚 docs: Update doc/scripts/header.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Oct 16, 2022
1 parent e29b5c8 commit 54e8e05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/scripts/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ const domReady = function (callback) {
}
};

domReady(function () {
domReady(() => {
const projectname = document.createElement('a');
projectname.classList.add('project-name');
projectname.text = 'codec-bytes/base16';
projectname.text = '@codec-bytes/base16';
projectname.href = './index.html';

const header = document.querySelector('header');
Expand All @@ -24,7 +24,7 @@ domReady(function () {
const input = document.querySelector('.search-input');

// Active search box when focus on searchBox.
input.addEventListener('focus', function () {
input.addEventListener('focus', () => {
searchBox.classList.add('active');
});
});

0 comments on commit 54e8e05

Please sign in to comment.