new screenshots

This commit is contained in:
Wouter van Wijk 2013-02-11 17:22:56 +01:00
parent 99472197f2
commit d12ff2e04f
19 changed files with 43 additions and 13621 deletions

BIN
screenshots/chrome.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
screenshots/chrome_sm.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
screenshots/firefox.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
screenshots/firefox_sm.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

View File

@ -1,8 +1,11 @@
/* /*****
* * Mopidy Webclient CSS
* (c)
*/ */
/* Responsive stuff */ /****************************
* Responsive stuff
****************************/
@media all and (min-width: 35.1em) { @media all and (min-width: 35.1em) {
.pl-breakpoint.ui-grid-a .ui-block-a { .pl-breakpoint.ui-grid-a .ui-block-a {
@ -48,17 +51,20 @@
@media all and (max-width: 35em) { @media all and (max-width: 35em) {
.pl-breakpoint .ui-block-a, .pl-breakpoint .ui-block-b { .pl-breakpoint .ui-block-a, .pl-breakpoint .ui-block-b {
width: 100%; width: 100%;
float: none; float:inherit;
} }
.header-breakpoint .ui-block-a, .header-breakpoint .ui-block-b, .header-breakpoint .ui-block-c { .header-breakpoint .ui-block-a {
float:inherit;
width: 100%; width: 100%;
float: none;
} }
.header-breakpoint .ui-block-c, .header-breakpoint .ui-block-b { .header-breakpoint .ui-block-c, .header-breakpoint .ui-block-b {
display: none; display: none;
width: 0;
} }
} }
/* Volume Slider */ /************************
* Volume Slider
***********************/
#mutebt { #mutebt {
float: left; float: left;
margin-left: 8px; margin-left: 8px;
@ -69,7 +75,9 @@
display: inline; display: inline;
} }
/* Track Slider */ /***********************
* Track Slider
***********************/
#trackslider { #trackslider {
display: inline; display: inline;
@ -94,7 +102,9 @@
margin-top: 12px; margin-top: 12px;
} }
/* Controls */ /***********************************
* Controls
* *********************************/
#controldiv { #controldiv {
height: 30px; height: 30px;
width: 210px; width: 210px;
@ -103,7 +113,7 @@
} }
#controldiv img { #controldiv img {
margin-left: 15px; margin-left: 20px;
float: left; float: left;
} }
@ -187,7 +197,7 @@ body {
} }
.currenttrack { .currenttrack {
background-image: url('../img/icons/play_alt_16x16.png'); background-image: url('../images/icons/play_alt_16x16.png');
background-repeat: no-repeat; background-repeat: no-repeat;
background-color: #fff; background-color: #fff;
background-position: 4px center; background-position: 4px center;

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 47 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 252 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 221 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 108 KiB

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 49 KiB

View File

@ -132,22 +132,20 @@ function doRepeat() {
function doSeekPos(value) { function doSeekPos(value) {
var val = $("#trackslider").val(); var val = $("#trackslider").val();
newposition = Math.round(val); newposition = Math.round(val);
pauseTimer();
clearTimeout(seekTimer); clearTimeout(seekTimer);
if (!initgui) { if (!initgui) {
pauseTimer();
//set timer to not trigger it too much //set timer to not trigger it too much
seekTimer = setTimeout(triggerPos, 100); mopidy.playback.pause();
seekTimer = setTimeout(triggerPos, 250);
} }
} }
function triggerPos() { function triggerPos() {
console.log(newposition); console.log(newposition);
if (mopidy) { if (mopidy) {
mopidy.playback.pause();
mopidy.playback.seek(newposition); mopidy.playback.seek(newposition);
} mopidy.playback.resume();
if (play) {
resumeTimer();
} }
} }

View File

@ -106,7 +106,7 @@ function playlisttotable(pl, table, uri) {
*/ */
popupData[pl[i].uri] = pl[i]; popupData[pl[i].uri] = pl[i];
child = '<li id="' + pl[i].uri + '"><a href="#" onclick="return popupTracks(\'' + uri + '\',\'' + pl[i].uri + '\');">'; child = '<li id="' + pl[i].uri + '"><a href="#" onclick="return popupTracks(event, \'' + uri + '\',\'' + pl[i].uri + '\');">';
child += '<h1>' + pl[i].name + "</h1>"; child += '<h1>' + pl[i].name + "</h1>";
child += '<p>'; child += '<p>';
child += '<span style="float: right;">' + timeFromSeconds(pl[i].length / 1000) + '</span>'; child += '<span style="float: right;">' + timeFromSeconds(pl[i].length / 1000) + '</span>';
@ -142,7 +142,7 @@ function albumtrackstotable(pl, table, uri) {
var child = ''; var child = '';
for (var i = 0; i < pl.length; i++) { for (var i = 0; i < pl.length; i++) {
popupData[pl[i].uri] = pl[i]; popupData[pl[i].uri] = pl[i];
child = '<li><a href="#" onclick="return popupTracks(\'' + uri + '\',\'' + pl[i].uri + '\');">'; child = '<li><a href="#" onclick="return popupTracks(event, \'' + uri + '\',\'' + pl[i].uri + '\');">';
child += '<p style="float:right; display: inline;">' + timeFromSeconds(pl[i].length / 1000) + child += '<p style="float:right; display: inline;">' + timeFromSeconds(pl[i].length / 1000) +
'</p><h1>' + pl[i].name + '</h1></a></li>'; '</p><h1>' + pl[i].name + '</h1></a></li>';
tmp += child; tmp += child;

View File

@ -94,7 +94,8 @@ function setSongInfo(data) {
* @param {Object} listuri * @param {Object} listuri
* @param {Object} trackuri * @param {Object} trackuri
*/ */
function popupTracks (listuri, trackuri) { function popupTracks (e, listuri, trackuri) {
if (!e) var e = window.event;
//console.log('list: ' + listuri + ', track: ' + trackuri); //console.log('list: ' + listuri + ', track: ' + trackuri);
$('#popupTrackName').html(popupData[trackuri].name); $('#popupTrackName').html(popupData[trackuri].name);
$('#popupAlbumName').html(popupData[trackuri].album.name); $('#popupAlbumName').html(popupData[trackuri].album.name);
@ -131,7 +132,7 @@ function popupTracks (listuri, trackuri) {
$('#popupTracksLv').listview('refresh'); $('#popupTracksLv').listview('refresh');
$('#popupTracks').data("list", listuri).data("track", trackuri).popup( "open", { x: event.pageX, y: event.pageY } ); $('#popupTracks').data("list", listuri).data("track", trackuri).popup("open", { x: e.pageX, y: e.pageY } );
return false; return false;
} }

View File

@ -39,13 +39,18 @@ function processSearchResults(resultArr) {
$(SEARCH_TRACK_TABLE).empty(); $(SEARCH_TRACK_TABLE).empty();
$(SEARCH_ARTIST_TABLE).empty(); $(SEARCH_ARTIST_TABLE).empty();
$(SEARCH_ALBUM_TABLE).empty(); $(SEARCH_ALBUM_TABLE).empty();
$("#searchresults").show();
//get the right result //get the right result
var results = resultArr[1]; var results = resultArr[1];
var tracks = (results.tracks) ? results.tracks : ''; var tracks = (results.tracks) ? results.tracks : '';
customTracklists['trackresultscache'] = tracks; customTracklists['trackresultscache'] = tracks;
var artists = (results.artists) ? results.artists : ''; var artists = (results.artists) ? results.artists : '';
var albums = (results.albums) ? results.albums : ''; var albums = (results.albums) ? results.albums : '';
if ((tracks == '') && (artists == '') && (albums == '') ) {
alert('No results');
showLoading(false);
return false;
}
$("#searchresults").show();
var child = ''; var child = '';
for (var i = 0; i < artists.length; i++) { for (var i = 0; i < artists.length; i++) {
child += '<li class="resultrow'; child += '<li class="resultrow';
@ -76,8 +81,7 @@ function processSearchResults(resultArr) {
$('#expandsearch').show(); $('#expandsearch').show();
playlisttotable(results.tracks, SEARCH_TRACK_TABLE, 'trackresultscache'); playlisttotable(results.tracks, SEARCH_TRACK_TABLE, 'trackresultscache');
showLoading(false); showLoading(false);
// $('#allresultloader').hide();
} }
function toggleSearch() { function toggleSearch() {
@ -98,13 +102,13 @@ function getCurrentPlaylist() {
mopidy.tracklist.getTracks().then(processCurrentPlaylist, console.error); mopidy.tracklist.getTracks().then(processCurrentPlaylist, console.error);
} }
/********************************************************
* Show tracks of playlist
********************************************************/
function showTracklist(uri) { function showTracklist(uri) {
/********************************************************
* Show tracks of playlist
********************************************************/
$(PLAYLIST_TABLE).empty(); $(PLAYLIST_TABLE).empty();
$('#playlisttablediv').show(); $('#playlisttablediv').show();
// $('#playlistloader').show(); // $('#playlistloader').show();
showLoading(true); showLoading(true);
var pl = getPlaylistFromUri(uri); var pl = getPlaylistFromUri(uri);
@ -131,7 +135,7 @@ function showArtist(nwuri) {
var pl = getTracksFromUri(nwuri); var pl = getTracksFromUri(nwuri);
$('#h_artistname').html(''); $('#h_artistname').html('');
showLoading(true); showLoading(true);
// $('#artistsloader').show(); // $('#artistsloader').show();
mopidy.library.lookup(nwuri).then(processArtistResults, console.error); mopidy.library.lookup(nwuri).then(processArtistResults, console.error);
switchContent('artists', nwuri); switchContent('artists', nwuri);
return false; return false;
@ -152,7 +156,7 @@ function showAlbum(uri) {
$('#h_albumname').html(''); $('#h_albumname').html('');
$('#h_albumartist').html(''); $('#h_albumartist').html('');
showLoading(true); showLoading(true);
// $('#albumsloader').show(); // $('#albumsloader').show();
mopidy.library.lookup(uri).then(processAlbumResults, console.error); mopidy.library.lookup(uri).then(processAlbumResults, console.error);
} }
//show //show