Typos & clean

This commit is contained in:
Lucas Larroche 2021-07-10 10:47:57 +07:00
parent 59c54298d5
commit 7c1e93472f
13 changed files with 31 additions and 68 deletions

View file

@ -33,7 +33,7 @@ export const colorPicker = {
// Loop colors
for (const color in this.colors) {
// Buttons
innerButtons += '<button data-color="'+ color +'" aria-label="Activate '+ color +' theme"></button>';
innerButtons += '<button data-color="' + color + '" aria-label="Activate ' + color + ' theme"></button>';
// Styles
innerStyles += `
@ -165,7 +165,7 @@ export const colorPicker = {
c = [c[0], c[0], c[1], c[1], c[2], c[2]];
}
c = '0x' + c.join('');
return 'rgba(' + [(c>>16)&255, (c>>8)&255, c&255].join(', ') + ', ' + alpha + ')';
return 'rgba(' + [(c >> 16) & 255, (c >> 8) & 255, c & 255].join(', ') + ', ' + alpha + ')';
}
throw new Error('Bad Hex');
}

View file

@ -13,7 +13,7 @@ export const grid = {
add: 'Add column',
remove: 'Remove column'
},
target: '#grids article'
target: '#grids article'
},
grid: {
current: 4,
@ -74,8 +74,8 @@ export const grid = {
// Build
for (let col = 0; col < this.grid.current; col++) {
htmlInner += '<div>' + (col + 1) + '</div>';
codeInner += ' &lt;<b>div</b>&gt;' + (col+1) + '&lt;/<b>div</b>&gt;\n';
htmlInner += '<div>' + (col + 1) + '</div>';
codeInner += ' &lt;<b>div</b>&gt;' + (col + 1) + '&lt;/<b>div</b>&gt;\n';
}
// Display

View file

@ -53,7 +53,7 @@ export const scrollspy = {
// Scroll stop
scrollStop() {
let isScrolling;
window.addEventListener('scroll', function (event) {
window.addEventListener('scroll', function(event) {
window.clearTimeout(isScrolling);
isScrolling = setTimeout(function() {
this.setActiveNav();