@@ -51,7 +51,7 @@ async function init(path) {
5151 toc . id = "toc" ;
5252 const ttoc = document . createElement ( "h3" ) ;
5353 toc . appendChild ( ttoc ) ;
54- ttoc . textContent = " Examples (" + index . length + ")" ;
54+ ttoc . textContent = ` Examples·( ${ index . length } )` ;
5555 const ul = document . createElement ( "ul" ) ;
5656 toc . appendChild ( ul ) ;
5757 let i ;
@@ -70,7 +70,7 @@ async function init(path) {
7070 for ( j = 0 ; j < index . length ; j ++ ) {
7171 loading . textContent += "." ;
7272 content . push ( document . createElement ( "hr" ) ) ;
73- console . debug ( " Adding " + index [ j ] . name ) ;
73+ console . debug ( ` Adding· ${ index [ j ] . name } ` ) ;
7474 const bookmarklet = document . createElement ( "section" ) ;
7575 content . push ( bookmarklet ) ;
7676 bookmarklet . className = "bookmarklet" ;
@@ -87,7 +87,7 @@ async function init(path) {
8787 const description = document . createElement ( "p" ) ;
8888 bookmarklet . appendChild ( description ) ;
8989 description . textContent = index [ j ] . description ;
90- console . debug ( " Fetching source code for " + index [ j ] . name ) ;
90+ console . debug ( ` Fetching· source· code· for· ${ index [ j ] . name } ` ) ;
9191 const js = await fetch (
9292 "https://raw.githubusercontent.com/" +
9393 path +
@@ -97,7 +97,7 @@ async function init(path) {
9797 )
9898 . then ( ( response ) => response . text ( ) )
9999 . catch ( console . error ) ;
100- console . debug ( " Fetched source code for " + index [ j ] . name ) ;
100+ console . debug ( ` Fetched· source· code· for· ${ index [ j ] . name } ` ) ;
101101 const book = document . createElement ( "h4" ) ;
102102 bookmarklet . appendChild ( book ) ;
103103 book . textContent = "Bookmarklet" ;
0 commit comments