Skip to content

Commit

Permalink
👕 refactor: Lint source files.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Sep 4, 2022
1 parent 5b1a414 commit 6db6fe9
Show file tree
Hide file tree
Showing 8 changed files with 421 additions and 430 deletions.
40 changes: 18 additions & 22 deletions doc/scripts/header.js
Original file line number Diff line number Diff line change
@@ -1,34 +1,30 @@
var domReady = function(callback) {
var state = document.readyState ;
if ( state === 'interactive' || state === 'complete' ) {
callback() ;
}
else {
const domReady = function (callback) {
const state = document.readyState;
if (state === 'interactive' || state === 'complete') {
callback();
} else {
document.addEventListener('DOMContentLoaded', callback);
}
} ;

};

domReady(function(){

var projectname = document.createElement('a');
domReady(function () {
const projectname = document.createElement('a');
projectname.classList.add('project-name');
projectname.text = 'collection-abstraction/set';
projectname.href = './index.html' ;
projectname.href = './index.html';

var header = document.getElementsByTagName('header')[0] ;
header.insertBefore(projectname,header.firstChild);
const header = document.querySelectorAll('header')[0];
header.insertBefore(projectname, header.firstChild);

var testlink = document.querySelector('header > a[data-ice="testLink"]') ;
testlink.href = 'https://coveralls.io/github/collection-abstraction/set' ;
testlink.target = '_BLANK' ;
const testlink = document.querySelector('header > a[data-ice="testLink"]');
testlink.href = 'https://coveralls.io/github/collection-abstraction/set';
testlink.target = '_BLANK';

var searchBox = document.querySelector('.search-box');
var input = document.querySelector('.search-input');
const searchBox = document.querySelector('.search-box');
const input = document.querySelector('.search-input');

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

});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"travis": "npm run lint-config && npm run lint && npm run cover"
},
"dependencies": {
"@aureooms/js-error": "^5.0.0"
"@failure-abstraction/error": "^6.0.1"
},
"devDependencies": {
"@babel/core": "7.13.10",
Expand Down
2 changes: 1 addition & 1 deletion src/NativeSet.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default Set ;
export default Set;
Loading

0 comments on commit 6db6fe9

Please sign in to comment.