mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 09:37:17 +00:00
Implement close button
This commit is contained in:
parent
5c8887f6d7
commit
d3112eca09
2 changed files with 5 additions and 0 deletions
|
|
@ -20,6 +20,8 @@ a:focus { outline: none; }
|
|||
cursor:url('cursors/MAINMENU.CUR'), auto;
|
||||
}
|
||||
|
||||
#winamp.closed { display: none; }
|
||||
|
||||
#title-bar {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue