mirror of
https://github.com/picocss/pico.git
synced 2025-04-20 16:46:14 -04:00
Typos & clean
This commit is contained in:
parent
59c54298d5
commit
7c1e93472f
13 changed files with 31 additions and 68 deletions
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -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 += ' <<b>div</b>>' + (col+1) + '</<b>div</b>>\n';
|
||||
htmlInner += '<div>' + (col + 1) + '</div>';
|
||||
codeInner += ' <<b>div</b>>' + (col + 1) + '</<b>div</b>>\n';
|
||||
}
|
||||
|
||||
// Display
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue