mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 18:25:30 +00:00
Cleanup and renaming
This commit is contained in:
parent
6d2cdccc61
commit
bb48c79012
5 changed files with 13 additions and 13 deletions
|
|
@ -30,7 +30,7 @@ body {
|
|||
}
|
||||
|
||||
/* Styles */
|
||||
#winamp {
|
||||
#main-window {
|
||||
position: absolute;
|
||||
/* background-image: MAIN.BMP via Javascript */
|
||||
height: 116px;
|
||||
|
|
@ -48,7 +48,7 @@ body {
|
|||
-ms-interpolation-mode: nearest-neighbor; /* IE (non-standard property) */
|
||||
}
|
||||
|
||||
#winamp.doubled {
|
||||
#main-window.doubled {
|
||||
-moz-transform: scale(2);
|
||||
-moz-transform-origin: top left;
|
||||
-webkit-transform: scale(2);
|
||||
|
|
@ -62,13 +62,13 @@ body {
|
|||
-webkit-transform-origin: top left;
|
||||
}
|
||||
|
||||
#winamp.loading {
|
||||
#main-window.loading {
|
||||
background-image: none;
|
||||
background-color: #FFFFFF;
|
||||
border: 2px solid #dddddd;
|
||||
}
|
||||
/* Hide everything whil we are loading */
|
||||
#winamp.loading * {
|
||||
#main-window.loading * {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
|
@ -83,11 +83,11 @@ body {
|
|||
}
|
||||
|
||||
/* Only show loading div while we are loading */
|
||||
#winamp.loading #loading {
|
||||
#main-window.loading #loading {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#winamp.closed { display: none; }
|
||||
#main-window.closed { display: none; }
|
||||
|
||||
#title-bar {
|
||||
position: absolute;
|
||||
|
|
@ -680,7 +680,7 @@ body {
|
|||
}
|
||||
|
||||
/* Shade View */
|
||||
#winamp.shade {
|
||||
#main-window.shade {
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
<link rel="shortcut icon" sizes="16x16 32x32" href="favicon.ico">
|
||||
</head>
|
||||
<body>
|
||||
<div id='winamp' class='loading stop'>
|
||||
<div id='main-window' class='loading stop'>
|
||||
<div id='loading'>Loading...</div>
|
||||
<div id='title-bar' class='selected'>
|
||||
<div id='option'>
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ MainWindow = {
|
|||
'songTitle': document.getElementById('song-title'),
|
||||
'time': document.getElementById('time'),
|
||||
'shadeTime': document.getElementById('shade-time'),
|
||||
'shadeMinusSign': document.getElementById('shade-minus-sign'),
|
||||
'visualizer': document.getElementById('visualizer'),
|
||||
'previous': document.getElementById('previous'),
|
||||
'play': document.getElementById('play'),
|
||||
|
|
@ -29,7 +30,7 @@ MainWindow = {
|
|||
'balance': document.getElementById('balance'),
|
||||
'workIndicator': document.getElementById('work-indicator'),
|
||||
'titleBar': document.getElementById('title-bar'),
|
||||
'window': document.getElementById('winamp'),
|
||||
'window': document.getElementById('main-window'),
|
||||
};
|
||||
|
||||
this.handle = document.getElementById('title-bar');
|
||||
|
|
@ -221,7 +222,6 @@ MainWindow = {
|
|||
}
|
||||
},
|
||||
|
||||
// TODO: Refactor this function
|
||||
updateTime: function() {
|
||||
this.updateShadePositionClass();
|
||||
|
||||
|
|
@ -232,7 +232,7 @@ MainWindow = {
|
|||
} else {
|
||||
digits = this.winamp._timeObject(this.winamp.getTimeElapsed());
|
||||
}
|
||||
this.winamp.skin.font.displayCharacterInNode(shadeMinusCharacter, document.getElementById('shade-minus-sign'));
|
||||
this.winamp.skin.font.displayCharacterInNode(shadeMinusCharacter, this.nodes.shadeMinusSign);
|
||||
|
||||
var digitNodes = [
|
||||
document.getElementById('minute-first-digit'),
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ SkinManager = {
|
|||
},
|
||||
|
||||
_skinImages: {
|
||||
"#winamp": "MAIN.BMP",
|
||||
"#main-window": "MAIN.BMP",
|
||||
"#title-bar": "TITLEBAR.BMP",
|
||||
"#title-bar #option": "TITLEBAR.BMP",
|
||||
"#title-bar #minimize": "TITLEBAR.BMP",
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ Winamp = {
|
|||
|
||||
seekForwardBy: function(seconds) {
|
||||
this.media.seekToTime(this.media.timeElapsed() + seconds);
|
||||
winamp.mainWindow.updateTime()
|
||||
this.mainWindow.updateTime()
|
||||
},
|
||||
|
||||
toggleRepeat: function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue