1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

add slideshows to now playing page

This commit is contained in:
Luke Pulverenti 2015-08-21 01:00:56 -04:00
parent 0b3155f652
commit aa454b2f24
40 changed files with 448 additions and 43 deletions

View file

@ -736,6 +736,12 @@
bindToPlayer($($.mobile.activePage)[0], MediaController.getCurrentPlayer());
}
function showSlideshowMenu(page) {
require(['scripts/slideshow'], function () {
SlideShow.showMenu();
});
}
$(document).on('pageinitdepends', "#nowPlayingPage", function () {
var page = this;
@ -747,17 +753,21 @@
$('.requiresJqmCreate', this).trigger('create');
$('.btnSlideshow').on('click', function () {
showSlideshowMenu(page);
});
var tabs = page.querySelector('paper-tabs');
tabs.alignBottom = true;
LibraryBrowser.configureSwipeTabs(page, tabs, page.querySelectorAll('neon-animated-pages')[0]);
$(MediaController).on('playerchange', function () {
updateCastIcon(page);
$(tabs).on('iron-select', function () {
page.querySelector('neon-animated-pages').selected = this.selected;
});
$('paper-tabs').on('iron-select', function () {
page.querySelector('neon-animated-pages').selected = this.selected;
$(MediaController).on('playerchange', function () {
updateCastIcon(page);
});
}).on('pagebeforeshowready', "#nowPlayingPage", function () {