1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 02:39:46 +02:00

Making the social options appear on embed video

This commit is contained in:
daniel 2017-11-16 14:57:41 -03:00
parent e0415afa2a
commit fd3a5d06d9
6 changed files with 72 additions and 25 deletions

View file

@ -12,6 +12,7 @@ var fullDuration = 0;
var isPlayingAd = false;
var mainVideoHeight = 0;
var doNotFloatVideo = false;
String.prototype.stripAccents = function () {
var translate_re = /[àáâãäçèéêëìíîïñòóôõöùúûüýÿÀÁÂÃÄÇÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛÜÝ]/g;
@ -68,7 +69,7 @@ $(document).ready(function () {
mainVideoHeight = $('#videoContainer').innerHeight();
});
$(window).scroll(function () {
if (changingVideoFloat) {
if (changingVideoFloat || doNotFloatVideo) {
return false;
}
changingVideoFloat = 1;