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:
parent
e0415afa2a
commit
fd3a5d06d9
6 changed files with 72 additions and 25 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue