-completed CC-1808

This commit is contained in:
mkonecny 2011-02-09 18:25:33 -05:00
parent eab3675c74
commit 40be54e82f
4 changed files with 12 additions and 6 deletions

View File

@ -1,4 +1,4 @@
<div class="button-bar-top">
<a href="javascript:void(0)" class="toggle-button-active end-button" id="now_view">Now View</a><a href="javascript:void(0)" class="toggle-button" id="day_view">Day View</a>
<a href="javascript:void(0)" class="toggle-button-active" id="now_view">Now View</a><a href="javascript:void(0)" class="toggle-button end-button" id="day_view">Day View</a>
</div>
<div id='demo'></div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 B

View File

@ -174,7 +174,7 @@ select {
border-width:1px 1px 0 1px;
background:#141414 url(images/progressbar_bg.png) repeat-x 0 0;
}
.progressbar .progress-song, .progressbar .progress-show {
.progressbar .progress-song, .progressbar .progress-show, .progress-show-red {
height:4px;
width:0%;
background:#f97202 url(images/progressbar_song.png) repeat-x 0 0;
@ -182,6 +182,9 @@ select {
.progressbar .progress-show {
background:#02cef9 url(images/progressbar_show.png) repeat-x 0 0;
}
.progressbar .progress-show-red {
background:#02cef9 url(images/progressbar_show_red.png) repeat-x 0 0;
}
.now-playing-info .lenght {
color:#c4c4c4;
padding-left:6px;

View File

@ -92,13 +92,16 @@ function updateProgressBarValue(){
if (currentSong.length > 0){
songPercentDone = (estimatedSchedulePosixTime - currentSong[0].songStartPosixTime)/currentSong[0].songLengthMs*100;
if (songPercentDone < 0 || songPercentDone > 100){
songPercentDone = 0;
currentSong = new Array();
songPercentDone = 0;
currentSong = new Array();
} else {
$('#on-air-info').attr("class", "on-air-info on");
$('#progress-show').attr("class", "progress-show");
}
} else
} else {
$('#on-air-info').attr("class", "on-air-info off");
$('#progress-show').attr("class", "progress-show-red");
}
$('#progress-bar').attr("style", "width:"+songPercentDone+"%");
//calculate how much time left to next song if there is any
@ -132,7 +135,7 @@ function updatePlaybar(){
/* Column 0 update */
$('#previous').empty();
$('#prev-length').empty();
$('#current').text("Current:");
$('#current').html("Current: <span style='color:red; font-weight:bold'>Nothing Scheduled</span>");
$('#next').empty();
$('#next-length').empty();
if (previousSongs.length > 0){