diff options
author | malard <malard@svn> | 2010-12-02 21:56:38 +0000 |
---|---|---|
committer | malard <malard@svn> | 2010-12-02 21:56:38 +0000 |
commit | 764fcc4b18b461d9563c8f5c5f22ba64d00e7a56 (patch) | |
tree | 52ad8029c7fa2624052594f3676a9e4d953c9e8f /addons/webinterface.default | |
parent | cdbaeff91fdc938f3b7b1bf0dd9f0b5c38f00f3d (diff) |
disabling incomplete features of web interface
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@35575 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'addons/webinterface.default')
-rw-r--r-- | addons/webinterface.default/css/core.css | 64 | ||||
-rw-r--r-- | addons/webinterface.default/index.html | 10 | ||||
-rw-r--r-- | addons/webinterface.default/js/MediaLibrary.js | 75 |
3 files changed, 136 insertions, 13 deletions
diff --git a/addons/webinterface.default/css/core.css b/addons/webinterface.default/css/core.css index 64b3b43423..5b268d1427 100644 --- a/addons/webinterface.default/css/core.css +++ b/addons/webinterface.default/css/core.css @@ -77,6 +77,10 @@ body { background: #aeaeae;
}
+.albumView .floatableAlbum:hover {
+ background: transparent;
+ }
+
.tvshowContainer .floatableTVShowCover:hover {
background: #fff;
}
@@ -190,6 +194,16 @@ div.imgWrapper div.inner { padding-left: 4px;
}
+.albumView .tr0 {
+ background-color: #efefef;
+ }
+
+.albumView .tr0:hover,
+.albumView .tr1:hover {
+ background-color: blue;
+ color: #fff;
+ }
+
.albumView {
width: 100%;
height: 100%;
@@ -601,4 +615,54 @@ div.imgWrapper div.inner { #pbNext:hover {
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a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5oBLWOnftE8U+Tu2ahNMW4uenKfCSBEhLXKKoEcU2IA4ozhfQBt1h9fiM/WdOzeH3vcAzC7578DAGoYGUoN5WewAAAAAElFTkSuQmCC') no-repeat;
+ }
+
+.tvshowContainer .showDetails,
+.tvshowContainer .seasonPicker {
+ clear: both;
+ float: left;
+ }
+
+.tvshowContainer .episodeListingsContainer {
+ position: absolute;
+ top: 0px;
+ left: 500px;
+ width: 500px;
+ padding-bottom: 149px;
+ }
+
+.tvshowContainer .episodeListingsContainer ul {
+ list-style-type: none;
+ margin: 0;
+ padding: 0;
+ }
+
+.episodeListingsContainer li {
+ clear: both;
+ }
+
+.episodeListingsContainer li img {
+ height: 200px;
+ float: left;
+ }
+
+.tvshowContainer .showDetails {
+ padding: 10px;
+ position: absolute;
+ top: 0;
+ left: 0;
+ }
+
+.tvshowContainer .showDetails p {
+ margin: 0;
+ padding: 0;
+ }
+
+.tvshowContainer .showDetails .showTitle {
+ font-size: 20px;
+ font-weight: 700;
+ }
+
+.tvshowContainer .showDetails span.heading {
+ font-weight: 700;
}
\ No newline at end of file diff --git a/addons/webinterface.default/index.html b/addons/webinterface.default/index.html index 0cf32881b3..a0783c9e57 100644 --- a/addons/webinterface.default/index.html +++ b/addons/webinterface.default/index.html @@ -9,7 +9,7 @@ <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<!-- <link href="/images/logo.png" rel="image_src" /> -->
<meta name="robots" content="NOINDEX, NOFOLLOW">
- <link href="/css/core.css?1.3.36" rel="stylesheet" type="text/css">
+ <link href="/css/core.css?1.3.57" rel="stylesheet" type="text/css">
<link href="/css/ipad.css?1.0.5" rel="stylesheet" media="only screen and (max-device-width: 1024px)" type="text/css">
<script type="text/javascript" src="/js/jquery-1.4.2.js"></script>
<script type="text/javascript" src="/js/Launcher.js?1.0.0"></script>
@@ -19,12 +19,12 @@ <div id="commsErrorPanel" style="display: none;"></div>
<div id="navigation">
<ul>
- <li id="remoteControl">Remote</li>
+ <!-- <li id="remoteControl">Remote</li> -->
<li id="movieLibrary">Movies</li>
- <li id="tvshowLibrary">TV Shows</li>
+ <!-- <li id="tvshowLibrary">TV Shows</li> -->
<li id="musicLibrary">Music</li>
- <li id="pictureLibrary">Pictures</li>
- <li id="settingsPanel">Settings</li>
+ <!-- <li id="pictureLibrary">Pictures</li> -->
+ <!-- <li id="settingsPanel">Settings</li> -->
</ul>
</div>
<img src="/images/ajax-loader.gif" alt="Loading please wait" id="spinner" style="display: none">
diff --git a/addons/webinterface.default/js/MediaLibrary.js b/addons/webinterface.default/js/MediaLibrary.js index 0f3c054b29..df8e533810 100644 --- a/addons/webinterface.default/js/MediaLibrary.js +++ b/addons/webinterface.default/js/MediaLibrary.js @@ -112,8 +112,7 @@ MediaLibrary.prototype = { code = '<p class="album" title="' + album_title + '">' + title + '</p>';
break;
}
- floatableAlbum.addClass(className).html('<div class="imgWrapper"><div class="inner"><img src="' + path + '" alt="" /></div></div>' + code);
- return floatableAlbum;
+ return floatableAlbum.addClass(className).html('<div class="imgWrapper"><div class="inner"><img src="' + path + '" alt="" /></div></div>' + code);
},
showAlbumSelectorBlock: function(album) {
if (album) {
@@ -172,11 +171,15 @@ MediaLibrary.prototype = { var albumArtist = event.data.album.album_artist||'Unknown Artist';
var trackCount = data.result.total;
$.each($(data.result.songs), jQuery.proxy(function(i, item) {
- var trackRow = $('<tr>').addClass('trackRow');
if (i == 0) {
- var albumTD = $('<td>').attr('rowspan', ++trackCount).addClass('albumThumb');
- trackRow.append(albumTD);
+ var trackRow = $('<tr>').addClass('trackRow').addClass('tr' + i % 2);
+ trackRow.append($('<td>').attr('rowspan', ++trackCount + 1).addClass('albumThumb'));
+ for (var a = 0; a < 5; a++) {
+ trackRow.append($('<td>').html(' ').attr('style', 'display: none'));
+ }
+ $('#albumDetails' + event.data.album.albumid + ' .resultSet').append(trackRow);
}
+ var trackRow = $('<tr>').addClass('trackRow').addClass('tr' + i % 2);
var trackNumberTD = $('<td>')
.html(item.tracknumber)
.bind('click', { song: item, album: event.data.album }, jQuery.proxy(this.playTrack, this));
@@ -237,9 +240,38 @@ MediaLibrary.prototype = { .addClass('contentContainer')
.addClass('tvshowContainer');
tvshowDetailsContainer.append(this.generateThumb('tvshow', event.data.tvshow.thumbnail, event.data.tvshow.title));
- $('#content').append(tvshowDetailsContainer);
- tvshowDetailsContainer.fadeIn();
- //console.log(data);
+ if (data && data.result && data.result.seasons && data.result.seasons.length > 0) {
+ var absWrapper = $('<div>').addClass('showDetailsWrapper');
+ var showDetails = $('<div>').addClass('showDetails');
+ showDetails.append($('<p>').html(data.result.seasons[0].showtitle).addClass('showTitle'));
+ showDetails.append($('<p>').html('<span class="heading">Genre:</span> ' + data.result.seasons[0].genre));
+ showDetails.append($('<p>').html('<span class="heading">Studio:</span> ' + data.result.seasons[0].studio));
+ absWrapper.append(showDetails);
+ var seasonSelectionContainer = $('<div>').addClass('seasonPicker');
+ var seasonSelectionList = $('<ul>');
+ var episodeCount = 0;
+ var firstSeason;
+ $.each($(data.result.seasons), jQuery.proxy(function(i, item) {
+ episodeCount += item.episode;
+ var season = $('<li>').html(item.title);
+ if (i == 0) {
+ season.addClass('activeSeason');
+ firstSeason = season;
+ this.tvActiveShowContainer = tvshowDetailsContainer;
+ }
+ season.bind('click', {tvshow: event.data.tvshow.tvshowid, season: item, element: season}, jQuery.proxy(this.displaySeasonListings, this));
+ seasonSelectionList.append(season);
+ }, this));
+ showDetails.append($('<p>').html('<span class="heading">Episodes:</span> ' + episodeCount));
+ seasonSelectionContainer.append(seasonSelectionList);
+ absWrapper.append(seasonSelectionContainer);
+ tvshowDetailsContainer.append(absWrapper);
+ if (firstSeason) {
+ firstSeason.trigger('click');
+ }
+ $('#content').append(tvshowDetailsContainer);
+ tvshowDetailsContainer.fadeIn();
+ }
$('#spinner').hide();
}, this), 'json');
} else {
@@ -247,6 +279,33 @@ MediaLibrary.prototype = { $('#tvShowDetails' + event.data.show.showid);
}
},
+ displaySeasonListings: function(event) {
+ if (event.data.element != this.tvActiveSeason) {
+ //Remove style from old season.
+ if (this.tvActiveSeason) {
+ $(this.tvActiveSeason).removeClass('activeSeason');
+ }
+ //Hide old listings
+ var oldListings = $('.episodeListingsContainer', this.tvActiveShowContainer).fadeOut();
+ //Update ActiveSeason
+ this.tvActiveSeason = event.data.element;
+ $(this.tvActiveSeason).addClass('activeSeason');
+ //Populate new listings
+ jQuery.post(JSON_RPC + '?GetTVSeasonEpisodes', '{"jsonrpc": "2.0", "method": "VideoLibrary.GetEpisodes", "params": { "fields": ["genre", "director", "trailer", "tagline", "plot", "plotoutline", "title", "originaltitle", "lastplayed", "showtitle", "firstaired", "duration", "season", "episode", "runtime", "year", "playcount", "rating", "writer", "studio", "mpaa", "premiered"], "season" : ' + event.data.season.season + ', "tvshowid" : ' + event.data.tvshow + ' }, "id": 1}', jQuery.proxy(function(data) {
+ var episodeListingsContainer = $('<div>').addClass('episodeListingsContainer');
+ var list = $('<ul>');
+ $.each($(data.result.episodes), jQuery.proxy(function(i, item) {
+ var episodePicture = $('<img>');
+ episodePicture.attr('src', this.getThumbnailPath(item.thumbnail));
+ var episodeTitle = $('<p>').html(item.title);
+ var episode = $('<li>').append(episodePicture).append(episodeTitle);
+ list.append(episode);
+ }, this));
+ episodeListingsContainer.append(list);
+ $(this.tvActiveShowContainer).prepend(episodeListingsContainer);
+ }, this), 'json');
+ }
+ },
hideOverlay: function(event) {
if (this.activeCover) {
$(this.activeCover).remove();
|