From d3112eca095a2f63a280d38df8310d8f52d4c5aa Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Sat, 8 Nov 2014 20:55:27 -0800 Subject: [PATCH] Implement close button --- winamp.css | 2 ++ winamp.js | 3 +++ 2 files changed, 5 insertions(+) diff --git a/winamp.css b/winamp.css index b55e74c6..66174123 100755 --- a/winamp.css +++ b/winamp.css @@ -20,6 +20,8 @@ a:focus { outline: none; } cursor:url('cursors/MAINMENU.CUR'), auto; } +#winamp.closed { display: none; } + #title-bar { position: absolute; top: 0; diff --git a/winamp.js b/winamp.js index 4f5c27a7..01f54996 100755 --- a/winamp.js +++ b/winamp.js @@ -170,6 +170,9 @@ function Winamp () { } this.nodes.close.onclick = function() { + self.media.stop(); + self.setStatus('stop'); // Currently unneeded + self.nodes.winamp.classList.add('closed'); } this.media.addEventListener('timeupdate', function() {