From 397badc10f83987a7717f70ced6ac44ce091d994 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 20 Dec 2012 18:29:07 +0000 Subject: [PATCH] put iframe into fullscreen --- static/js/embed/pandora.js | 6 +++++- static/js/pandora/embedDialog.js | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/static/js/embed/pandora.js b/static/js/embed/pandora.js index eaaf24b75..af2b6a356 100755 --- a/static/js/embed/pandora.js +++ b/static/js/embed/pandora.js @@ -25,10 +25,11 @@ Ox.load('UI', { censored: data.censored, censoredIcon: pandora.site.cantPlay.icon, censoredTooltip: pandora.site.cantPlay.text, + controlsTop: Ox.Fullscreen.available ? ['fullscreen'] : null, controlsBottom: ['play', 'volume', 'scale', 'timeline', 'settings'], duration: data.duration, enableFind: false, - enableFullscreen: true, + enableFullscreen: Ox.Fullscreen.available, enableKeyboard: true, enableMouse: true, enableTimeline: true, @@ -55,6 +56,9 @@ Ox.load('UI', { resolution: function(data) { pandora.api.setUI({'videoResolution': data.resolution}); }, + fullscreen: function(data) { + Ox.Fullscreen.toggle(); + } }) ); Ox.UI.hideLoadingScreen(); diff --git a/static/js/pandora/embedDialog.js b/static/js/pandora/embedDialog.js index 7b461fa34..6ec363a57 100644 --- a/static/js/pandora/embedDialog.js +++ b/static/js/pandora/embedDialog.js @@ -45,7 +45,9 @@ pandora.ui.embedDialog = function(data) { '' + + '" frameborder="0" ' + + 'webkitAllowFullScreen mozallowfullscreen allowFullScreen' + + '>' ).on({ click: function() { this.focus();