Skip to content

Commit

Permalink
classlist mods
Browse files Browse the repository at this point in the history
  • Loading branch information
lacymorrow committed May 16, 2020
1 parent 5950e10 commit 1571b1e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/settings.js
Expand Up @@ -50,7 +50,7 @@
const p = document.createElement( 'P' )
const img = document.createElement( 'IMG' )

div.classList.add('crosshair-option')
div.classList.add( 'crosshair-option' )
p.textContent = name

img.alt = name
Expand All @@ -63,10 +63,10 @@

}

img.addEventListener( 'click', ( event ) => {
img.addEventListener( 'click', event => {

document.querySelector( '.current' ).classList.remove('current')
event.target.classList.add('current')
document.querySelector( '.current' ).classList.remove( 'current' )
event.target.classList.add( 'current' )
setCrosshair( file )

} )
Expand Down Expand Up @@ -98,7 +98,7 @@

}

title.classList.add('group-label')
title.classList.add( 'group-label' )
title.textContent = label

chooserElement.append( title )
Expand Down

0 comments on commit 1571b1e

Please sign in to comment.