Removing 1st color, toggling 2 others

Blue play svg gets removed, replaced by Green & Orange.

Where then Green & Orange toggle back and forth.

To do that, is this how the code would be written?

or, should it be written differently?

Also, would you change visited to a different name?

Should it be called something else?

The X on the screen brings you back to the play svgs.

This is how I wrote the code:


.played.visited {
  fill: green;

.played {
  fill: orange;


  function markAsVisited(played) {

  function markAsPlayed(played) {

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.