1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-06 03:50:04 +02:00

Fix fullscreen actions

This commit is contained in:
daniel 2018-11-27 10:43:14 -03:00
parent 02051e2eec
commit b8d3410dc5
2 changed files with 20 additions and 22 deletions

View file

@ -3,23 +3,6 @@ var cat;
var videos_id;
var $carousel;
function flixFullScreen(link){
$('body').addClass('fullScreen');
var div = $('<div id="divIframeFull" style="background-color:black;height: 100vh; width: 100vw; text-align: center; position: fixed; top: 0;left: 0; z-index: 9999;"><div id="divTopBar" style="position: fixed; top: 0; left: 0; height: 50px; width: 100vw; z-index: 99999; padding:10px; "><span id="closeBtnFull" class="btn pull-right" onclick="closeFlixFullScreen();" style="opacity: 0.5; filter: alpha(opacity=50);"><i class="fa fa-times"></i></span></div></div>').append('<iframe src="' + link + '" style="background-color:black; position: fixed; top: 0; left: 0; height: 100vh; width: 100vw; z-index: 9999; overflow: hidden;" id="iframeFull" allowfullscreen webkitallowfullscreen mozallowfullscreen oallowfullscreen msallowfullscreen>');
$('body').append(div);
$("#divIframeFull").fadeIn();
}
function closeFlixFullScreen() {
if($('#divIframeFull').length){
$("#divIframeFull").fadeOut("slow", function () {
$('body').removeClass('fullScreen');
$('#divIframeFull').remove();
});
}
}
function isFlickityEnabled(selector) {
var isEnabled = $(selector).hasClass('flickity-enabled');
if (isEnabled) {
@ -35,11 +18,6 @@ function isFlickityEnabled(selector) {
}
$(function () {
$(document).on('keyup', function (evt) {
if (evt.keyCode == 27) {
closeFlixFullScreen();
}
});
$(".thumbsImage").on("mouseenter", function () {
//$(this).find(".thumbsGIF").height($(this).find(".thumbsJPG").height());
//$(this).find(".thumbsGIF").width($(this).find(".thumbsJPG").width());