$(function() {
$(‘.easygoi-video’).each(function() {
var $this = $(this);
var $img = $this.find(‘.easygoi-img-element’);
var linkEmbed = $img.attr(‘embed-link’);
var height = $img.height();
var width = $img.width();
var embedHtml = ‘‘;
$this.empty().html(embedHtml);
});
});
$(function() {
makeMeResponsible();
$(window).resize(makeMeResponsible);
$(document).mouseup(function (e)
{
var container = $(“.fixed-bar”);
if (!container.is(e.target) // if the target of the click isn’t the container…
&& container.has(e.target).length === 0) // … nor a descendant of the container
{
container.hide();
}
var container_ = $(“.fixed-bar-2”);
if (!container_.is(e.target) // if the target of the click isn’t the container…
&& container_.has(e.target).length === 0) // … nor a descendant of the container
{
container_.hide();
}
});
$(‘#right-side-more-options’).bind(‘click’,function() {
$(‘.fixed-bar-2’).toggle();
return false;
});
});
function showShareBar() {
$(‘.fixed-bar’).toggle();
}
/**/
function makeMeResponsible() {
$(‘.fixed-bar’).hide();
$(‘.fixed-bar-2’).hide();
var documentWidth = $(document).width();
if(documentWidth > 979) {
$(‘.not-visible-on-desktop’).hide();
$(‘.visible-on-desktop’).show();
$(‘.share-menu-item-text, .top-text-responsive’).css(‘font-size’,’13px’);
} else if(documentWidth < 979 && documentWidth > 767) {
$(‘.not-visible-on-tablet’).hide();
$(‘.visible-on-tablet’).show();
$(‘.share-menu-item-text, .top-text-responsive’).css(‘font-size’,’11px’);
} else if(documentWidth < 767) {
$('.not-visible-on-phone').hide();
$('.visible-on-phone').show();
$('.share-menu-item-text, .top-text-responsive').css('font-size','11px');
}
}
