Implement close button

This commit is contained in:
Jordan Eldredge 2014-11-08 20:55:27 -08:00
parent 5c8887f6d7
commit d3112eca09
2 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,8 @@ a:focus { outline: none; }
cursor:url('cursors/MAINMENU.CUR'), auto;
}
#winamp.closed { display: none; }
#title-bar {
position: absolute;
top: 0;

View File

@ -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() {