1
0
mirror of https://github.com/danbee/neompc synced 2025-03-04 08:39:10 +00:00

~ Further design improvements, mostly there now.

This commit is contained in:
Dan Barber 2010-01-24 11:32:38 +00:00
parent 877e21c9cb
commit 12370286d8
9 changed files with 45 additions and 32 deletions

View File

@ -3,6 +3,7 @@ template = '{:$template:}';
volume_min = {:$volume_min:}; volume_min = {:$volume_min:};
volume_max = {:$volume_max:}; volume_max = {:$volume_max:};
vol_orientation = '{:$volume_orientation:}' vol_orientation = '{:$volume_orientation:}'
page = '{:$page:}';
vol_offset = 0; vol_offset = 0;
String.prototype.pad = function(l, s){ String.prototype.pad = function(l, s){
@ -128,8 +129,14 @@ $(document).ready(function(){
hide_vol = setTimeout('hide_volume(); $(\'#volume_slider\').attr(\'rel\', \'\');', 2000); hide_vol = setTimeout('hide_volume(); $(\'#volume_slider\').attr(\'rel\', \'\');', 2000);
} }
}); });
$('#removeall').click(function() {
return confirm('Are you sure you want to clear the whole playlist?');
});
ajax_control(); if (page = 'control') {
ajax_int = setInterval('ajax_control()', 1000); ajax_control();
ajax_int = setInterval('ajax_control()', 1000);
}
}); });

View File

@ -1,30 +1,31 @@
{:if $browselist_item.directory:} {:if $browselist_item.directory:}
<li class="dir"> <li class="dir">
<a class="browse" href="index.php?browse={:$browselist_item.directory|escape:'url':}">{:$browselist_item.directory_name|escape:'html':}</a> <a class="browse" href="index.php?browse={:$browselist_item.directory|escape:'url':}">{:$browselist_item.directory_name|escape:'html':}</a>
</li> </li>
{:elseif $browselist_item.metaArtist:} {:elseif $browselist_item.metaArtist:}
<li class="artist"> <li class="artist">
<a class="browse" href="index.php?browse={:$browselist_item.path|escape:'url':}">{:$browselist_item.metaArtist|escape:'html':}</a> <a class="browse" href="index.php?browse={:$browselist_item.path|escape:'url':}">{:$browselist_item.metaArtist|escape:'html':}</a>
</li> </li>
{:elseif $browselist_item.metaAlbum:} {:elseif $browselist_item.metaAlbum:}
<li class="album"> <li class="album">
<a class="browse" href="index.php?browse={:$browselist_item.path|escape:'url':}">{:$browselist_item.metaAlbum|escape:'html':}</a> <a class="browse" href="index.php?browse={:$browselist_item.path|escape:'url':}">{:$browselist_item.metaAlbum|escape:'html':}</a>
</li> </li>
{:elseif $browselist_item.Title:} {:elseif $browselist_item.Title:}
{:if $browselist_item.in_playlist:} {:if $browselist_item.in_playlist:}
<li class="track playing"> <li class="track playing">
<a class="add"><img src="templates/{:$template:}/images/add_disabled.png" alt="Add" class="button" /></a>
{:else:} {:else:}
<li class="track"> <li class="track">
{:/if:}
<a class="add" href="{:$browselist_add_link:}{:$browselist_item.file|escape:'url':}"><img src="templates/{:$template:}/images/add.png" alt="Add" class="button" /></a> <a class="add" href="{:$browselist_add_link:}{:$browselist_item.file|escape:'url':}"><img src="templates/{:$template:}/images/add.png" alt="Add" class="button" /></a>
{:/if:}
<a class="play" href="{:$browselist_play_link:}{:$browselist_item.file|escape:'url':}"><img src="templates/{:$template:}/images/play.png" alt="Play" class="button" /></a> <a class="play" href="{:$browselist_play_link:}{:$browselist_item.file|escape:'url':}"><img src="templates/{:$template:}/images/play.png" alt="Play" class="button" /></a>
<a class="browse"> <a class="browse">
{:if $browselist_item.Title|escape:'html':} {:if $browselist_item.Title|escape:'html':}
@ -32,14 +33,14 @@
{:if $browselist_item.Artist && $show_extra_track_info:}<br /><span class="artist">{:$browselist_item.Artist|escape:'html':}</span> {:if $browselist_item.Album:}<span class="album">({:$browselist_item.Album|escape:'html':})</span>{:/if:}{:/if:}{:else:}{:$browselist_item.file_name|escape:'html':}{:/if:} {:if $browselist_item.Artist && $show_extra_track_info:}<br /><span class="artist">{:$browselist_item.Artist|escape:'html':}</span> {:if $browselist_item.Album:}<span class="album">({:$browselist_item.Album|escape:'html':})</span>{:/if:}{:/if:}{:else:}{:$browselist_item.file_name|escape:'html':}{:/if:}
</a> </a>
</li> </li>
{:elseif $browselist_item.file:} {:elseif $browselist_item.file:}
{:if $browselist_item.in_playlist:} {:if $browselist_item.in_playlist:}
<li class="playing"> <li class="playing">
{:else:} {:else:}
<li> <li>
{:/if:} {:/if:}
<a href="{:$browselist_add_link:}{:$browselist_item.file|escape:'url':}"><img src="templates/{:$template:}/images/add.png" alt="Add" class="button" /></a><a href="{:$browselist_play_link:}{:$browselist_item.file|escape:'url':}"><img src="templates/{:$template:}/images/play.png" alt="Play" class="button" /></a><img src="templates/{:$template:}/images/note.gif" class="icon" /> {:if $browselist_item.Title|escape:'html':}<span class="title">{:$browselist_item.Title|escape:'html':}</span>{:if $browselist_item.Artist && $show_extra_track_info:}<br /><span class="artist">{:$browselist_item.Artist|escape:'html':}</span> {:if $browselist_item.Album:}<span class="album">({:$browselist_item.Album|escape:'html':})</span>{:/if:}{:/if:}{:else:}{:$browselist_item.file_name|escape:'html':}{:/if:}</li> <a href="{:$browselist_add_link:}{:$browselist_item.file|escape:'url':}"><img src="templates/{:$template:}/images/add.png" alt="Add" class="button" /></a><a href="{:$browselist_play_link:}{:$browselist_item.file|escape:'url':}"><img src="templates/{:$template:}/images/play.png" alt="Play" class="button" /></a><img src="templates/{:$template:}/images/note.gif" class="icon" /> {:if $browselist_item.Title|escape:'html':}<span class="title">{:$browselist_item.Title|escape:'html':}</span>{:if $browselist_item.Artist && $show_extra_track_info:}<br /><span class="artist">{:$browselist_item.Artist|escape:'html':}</span> {:if $browselist_item.Album:}<span class="album">({:$browselist_item.Album|escape:'html':})</span>{:/if:}{:/if:}{:else:}{:$browselist_item.file_name|escape:'html':}{:/if:}</li>
{:/if:} {:/if:}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 968 B

After

Width:  |  Height:  |  Size: 373 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 487 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 457 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 843 B

After

Width:  |  Height:  |  Size: 350 B

View File

@ -1,5 +1,5 @@
<div id="list_header"> <div id="list_header">
<div id="buttons"><a href="{:$playlist_clear_link:}"><img src="templates/{:$template:}/images/delall.gif" /></a></div> <div id="buttons"><a id="removeall" href="{:$playlist_clear_link:}"><img src="templates/{:$template:}/images/delall.png" /></a></div>
</div> </div>
{:if $playlist:} {:if $playlist:}

View File

@ -88,11 +88,11 @@ p {
clear: left; clear: left;
} }
#list { #list {
background-color: #ddd;
color: #333; color: #333;
margin: 0; margin: 0;
} }
#list ul { #list ul {
background-color: #ddd;
list-style-type: none; list-style-type: none;
max-width: 320px; max-width: 320px;
text-align: left; text-align: left;
@ -129,14 +129,19 @@ p {
text-shadow: 1px 1px 2px rgba(255, 255, 255, 1); text-shadow: 1px 1px 2px rgba(255, 255, 255, 1);
font-weight: bold; font-weight: bold;
} }
li .play { li .remove,.add,.play {
display: block; display: block;
}
li .remove .add .play {
float: right; float: right;
padding: 5px 0px 3px 5px; padding: 2px 0px 0px 0px;
display: block; display: block;
} }
li .add {
padding-right: 3px;
}
li .remove {
padding-right: 3px;
padding-top: 8px;
}
li.playing a { li.playing a {
} }
li .title { li .title {
@ -178,7 +183,7 @@ li .title {
} }
#buttons { #buttons {
float: right; float: right;
margin: 5px 10px 0px 0px; margin: 5px 5px 0px 0px;
text-align: right; text-align: right;
} }