diff --git a/winamp.css b/winamp.css
index e10034d8..b55e74c6 100755
--- a/winamp.css
+++ b/winamp.css
@@ -120,10 +120,10 @@ a:focus { outline: none; }
height: 9px;
width: 3px;
background-image: url('skins/default/PLAYPAUS.BMP');
- background-position: -39px 0;
+ background-position: -36px 0;
}
.status #play-pause.play #work-indicator.selected {
- background-position: -36px 0;
+ background-position: -39px 0;
}
.status #play-pause.play { }
diff --git a/winamp.js b/winamp.js
index 57e46037..983d21e7 100755
--- a/winamp.js
+++ b/winamp.js
@@ -102,6 +102,7 @@ function Winamp () {
'volume': document.getElementById('volume'),
'balance': document.getElementById('balance'),
'playPause': document.getElementById('play-pause'),
+ 'workIndicator': document.getElementById('work-indicator'),
'winamp': document.getElementById('winamp'),
'titleBar': document.getElementById('title-bar'),
};
@@ -178,6 +179,14 @@ function Winamp () {
self.setStatus('stop');
});
+ this.media.addEventListener('waiting', function() {
+ self.nodes.workIndicator.classList.add('selected');
+ });
+
+ this.media.addEventListener('playing', function() {
+ self.nodes.workIndicator.classList.remove('selected');
+ });
+
this.nodes.shade.onclick = function() {
self.nodes.winamp.classList.toggle('shade');
}