Home » today » World » Image: Dominik Szoboszlai proposed to his girlfriend

Image: Dominik Szoboszlai proposed to his girlfriend

*/
if (jQuery(‘#m4sport_lead_video_containerBig’).length === 0)
{
return;
}
var sourceVideoContainer = {
‘position’: jQuery(‘#m4sport_lead_video_container’).css(‘position’),
left‘ : jQuery(‘#m4sport_lead_video_container’).position().left,
top‘ : jQuery(‘#m4sport_lead_video_container’).position().top,
width‘ : jQuery(‘#m4sport_lead_video_container’).width(),
‘height’ : jQuery(‘#m4sport_lead_video_container’).height(),
};
var widthOfStickiedVideo;
jQuery(window).resize(function() {
widthOfStickiedVideo = jQuery(‘#articleRecommenderWidget_contentVideoSmall’).attr(‘data-widthsource’);
widthOfStickiedVideo = jQuery(widthOfStickiedVideo).first().width();
jQuery(‘#articleRecommenderWidget_contentVideoSmall’).width(widthOfStickiedVideo).height(widthOfStickiedVideo / 1.6);
});
jQuery(window).resize();

setInterval(function() {
let player = jQuery(document).find(‘.mtva-player’).prop(‘mtva_player’);
return;
console.clear();
console.log(player);
console.log(player.element);
console.log(jwplayer());
}, 1000);

setInterval(function() {
if (!isMoving)
{
switch(scrolling)
{
case -1 : // felküldené
if (!videoIsUp)
{
scrolling = 0;
isMoving = true;
jQuery(‘#m4sport_lead_video_container’)
.css({‘position’: sourceVideoContainer.position})
.animate(
{
‘left’: sourceVideoContainer.left,
‘top’: sourceVideoContainer.top,
‘width’: sourceVideoContainer.width,
‘height’: sourceVideoContainer.height
},
3000,
function() {
// felért
videoIsUp = true;
isMoving = false;
}
);
}
break;
case 1 : // leküldené
if (videoIsUp)
{
scrolling = 0;
isMoving = true;
jQuery(‘#m4sport_lead_video_container’)
.css({‘position’: ‘fixed’})
.offset({‘top’: parseInt(jQuery(‘#articleRecommenderWidget_contentVideoSmall’).attr(‘data-targettop’))+’px’})
.width(parseInt(jQuery(‘#m4sport_lead_video_container’).width()) / 2)
.height(jQuery(‘#articleRecommenderWidget_contentVideoSmall’).height())
.animate({
‘left’ : jQuery(‘#articleRecommenderWidget_contentVideoSmall’).position().left,
‘top’ : parseInt(jQuery(‘#articleRecommenderWidget_contentVideoSmall’).attr(‘data-targettop’)),
‘width’ : jQuery(‘#articleRecommenderWidget_contentVideoSmall’).width(),
‘height’: jQuery(‘#articleRecommenderWidget_contentVideoSmall’).height(),
},
3000,
function() {
// leért
videoIsUp = false;
isMoving = false;
}
);
}
break;
}
}
}, 100);

jQuery(window).scroll(function() {
if (jQuery(this).scrollTop() > parseInt(jQuery(‘#articleRecommenderWidget_contentVideoSmall’).attr(‘data-tresholdy’)))
{
scrolling = 1;
}
else
{
scrolling = -1;
}
});
});

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.