mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-26 11:34:14 +00:00
the visualizer is actually on 15 pixels tall
This commit is contained in:
parent
85607b4fc0
commit
3d476e5ff4
3 changed files with 4 additions and 4 deletions
|
|
@ -40,7 +40,7 @@
|
|||
<div id='second-first-digit'></div>
|
||||
<div id='second-second-digit'></div>
|
||||
</div>
|
||||
<canvas id='visualizer' width='150' height='32'></canvas>
|
||||
<canvas id='visualizer' width='150' height='30'></canvas>
|
||||
</div>
|
||||
<div class='media-info'>
|
||||
<div id='song-title' class='text'></div>
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ Visualizer = {
|
|||
var printBar = function(x, height) {
|
||||
height = Math.round(height) * 2;
|
||||
if(height > 0) {
|
||||
y = 32 - height;
|
||||
y = 30 - height;
|
||||
// Draw the gray peak line
|
||||
this.canvasCtx.drawImage(this.barCanvas, 0, 0, 6, 2, x, y - 2, 6, 2);
|
||||
// Draw the gradient
|
||||
|
|
|
|||
|
|
@ -222,8 +222,8 @@ a:focus { outline: none; }
|
|||
#visualizer {
|
||||
position: absolute;
|
||||
width: 75px;
|
||||
height: 16px;
|
||||
top: 43px;
|
||||
height: 15px;
|
||||
top: 44px;
|
||||
left: 24px;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue