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
|
@ -1,10 +1,10 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function(){
|
||||||
if(hljs){
|
if(hljs){
|
||||||
var blocks = document.querySelectorAll('code.html.full, code.css.full, figure code.html');
|
let blocks = document.querySelectorAll('code.html.full, code.css.full, figure code.html');
|
||||||
for (var i=0; i<blocks.length; i++) {
|
for(let i = 0; i < blocks.length; i++){
|
||||||
hljs.highlightBlock(blocks[i]);
|
hljs.highlightBlock(blocks[i]);
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue