File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 11const domReady = function ( callback ) {
22 const state = document . readyState ;
3- if ( state === 'interactive' || state === 'complete' ) {
3+ if ( state === 'interactive' || state === 'complete' ) {
44 callback ( ) ;
5- }
6- else {
5+ } else {
76 document . addEventListener ( 'DOMContentLoaded' , callback ) ;
87 }
98} ;
109
11-
1210domReady ( ( ) => {
1311 const projectname = document . createElement ( 'a' ) ;
1412 projectname . classList . add ( 'project-name' ) ;
1513 projectname . text = 'aureooms/js-set-partition' ;
1614 projectname . href = './index.html' ;
1715
1816 const header = document . querySelector ( 'header' ) ;
19- header . insertBefore ( projectname , header . firstChild ) ;
17+ header . insertBefore ( projectname , header . firstChild ) ;
2018
2119 const testlink = document . querySelector ( 'header > a[data-ice="testLink"]' ) ;
2220 testlink . href = 'https://coveralls.io/github/aureooms/js-set-partition' ;
@@ -25,7 +23,7 @@ domReady(() => {
2523 const searchBox = document . querySelector ( '.search-box' ) ;
2624 const input = document . querySelector ( '.search-input' ) ;
2725
28- // active search box when focus on searchBox.
26+ // Active search box when focus on searchBox.
2927 input . addEventListener ( 'focus' , ( ) => {
3028 searchBox . classList . add ( 'active' ) ;
3129 } ) ;
You can’t perform that action at this time.
0 commit comments