mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 14:50:39 -04:00
Use let instead of var; code style updates
This commit is contained in:
parent
2affd08cf9
commit
45078afb2a
1 changed files with 4 additions and 4 deletions
|
@ -2,9 +2,9 @@
|
|||
|
||||
document.addEventListener('DOMContentLoaded', function(){
|
||||
if(hljs){
|
||||
var blocks = document.querySelectorAll('code.html.full, code.css.full, figure code.html');
|
||||
for (var i=0; i<blocks.length; i++) {
|
||||
let blocks = document.querySelectorAll('code.html.full, code.css.full, figure code.html');
|
||||
for(let i = 0; i < blocks.length; i++){
|
||||
hljs.highlightBlock(blocks[i]);
|
||||
};
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue