Skip to content

Commit

Permalink
Set hotspot active class
Browse files Browse the repository at this point in the history
  • Loading branch information
inukshuk committed Jun 7, 2016
1 parent 2fd7277 commit 0209cf3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions static/dummy.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,14 @@
const hotspots = $('.hotspots').children

function activate(node) {

P.src = `assets/images/dummy/p-${attr(node, 'data-p')}.png`
I.src = `assets/images/dummy/i-${attr(node, 'data-i')}.png`

for (let hs of hotspots) {
toggle(hs, 'active', hs === node)
}

toggle(C, 'item', attr(node, 'data-view') === 'i')
}

Expand Down

0 comments on commit 0209cf3

Please sign in to comment.