Use let instead of var; code style updates

This commit is contained in:
Alex Cabal 2018-12-30 17:57:51 -06:00
parent 2affd08cf9
commit 45078afb2a

View file

@ -1,10 +1,10 @@
'use strict';
document.addEventListener('DOMContentLoaded', function() {
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]);
};
}
}
});