Skip to content

Commit

Permalink
Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
gilren committed Apr 7, 2021
1 parent 1874af4 commit 54f041f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const eyesPupils = document.querySelectorAll('.js-animated-eyes')
// Once the page is loaded, check if the Dark Mode is activated with a function that
// returns 'on' or null depending on the existence of a 'darkMode' key on LocalStorage
window.onload = () =>{
if ( isDarkModeOn() == 'on' ){
if ( isDarkModeOn() == 'on' ){
setTimeout(darkMode,
300)
}
Expand All @@ -39,7 +39,7 @@ darkModeBtn.addEventListener( 'click', () => {

// Function that checks the existence of the key 'darkMode' on LocalStorage
function isDarkModeOn(){
return localStorage.getItem( 'darkMode' ) ? 'on' : null
return localStorage.getItem( 'darkMode' ) ? 'on' : null
}

function darkMode(){
Expand Down Expand Up @@ -179,7 +179,7 @@ channelThumbnailInput.addEventListener('change', () => {
const reader = new FileReader()

reader.addEventListener('load', function () {
// convert image file to base64 string
// Convert image file to base64 string
channelThumbnailBase64 = reader.result
preview.src = reader.result
}, false)
Expand Down Expand Up @@ -207,8 +207,8 @@ function findCard() {
chrome.storage.local.get('thumbnailProperties', (result) => {

if(result.thumbnailProperties.shuffle) {
let min = 1
let max = 12
const min = 1
const max = 12
cardPositionIndex = Math.floor(Math.random() * (max - min + 1)) + min
}
let target = cards[cardPositionIndex]
Expand Down Expand Up @@ -265,7 +265,7 @@ function refreshApp() {
// =============================================
// ANIMATED EYES

//First, we find the eyes's positions and their center :
// First, we find the eyes's positions and their center :
let eyeCoord = headerEye.getBoundingClientRect()
let centerOfEyeX = Math.round(( ( eyeCoord.right - eyeCoord.left ) / 2 ) + eyeCoord.left)
let centerOfEyeY = Math.round(( ( eyeCoord.bottom - eyeCoord.top ) / 2 ) + eyeCoord.top)
Expand Down Expand Up @@ -294,7 +294,7 @@ document.addEventListener('mousemove', (e) =>{
eyeDirection = 'C'
}

// Caridnal directions are calculated on an approximative direction ( eyes's center +/- 10px )
// Cardinal directions are calculated on an approximative direction ( eyes's center +/- 10px )
function approx(nbToCompare, nbToApprox){
return ( nbToApprox-10 < nbToCompare && nbToCompare < nbToApprox + 10)
}
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ input {
width: 100%;
height: 100%;
object-fit: cover;
border: 4px solid var(--btnBg);
border: 6px solid var(--btnBg);
}

.file-video-thumbnail:valid + .py-form-filelabel .video-fileinput-img,
Expand Down

0 comments on commit 54f041f

Please sign in to comment.