Pesquisas recentes


Sem pesquisas recentes

Robert Holm's Avatar

Robert Holm

Entrou em 16 de abr. de 2021

·

Última atividade em 27 de out. de 2021

Seguindo

0

Seguidores

0

Atividade total

3

Votos

0

Assinatura

1

VISÃO GERAL DA ATIVIDADE

Atividade mais recente por Robert Holm

Robert Holm comentou,

Comentário na comunidade Discussion - Tips and best practices from the community

Hi

Just wanted to let you know I am having better luck with the option from. 

http://fancyapps.com/fancybox/3/docs/#introduction

That provided approach is working for me. Thanks

 

Exibir comentário · Publicado 03 de abr. de 2020 · Robert Holm

0

Seguidores

0

Votos

0

Comentários


Robert Holm comentou,

Comentário na comunidade Discussion - Tips and best practices from the community

HI
I am getting no reaction from the code. Could you please take a look.

Here is my set up.

document_head i added these two lines


scripts.js I added code below the //fancybox and before the closing });

// Communities active class
$('.my-activities-nav.nav-bordered li, .my-activities-sub-nav.nav-spaced li').each(function(id, it) {
if(typeof $(it).find('a').get(0) == 'undefined') {
$(it).addClass('active');
}
});

// Bootstrap table class on article body
$('.article-body').find('table').wrap('
');

$('.community-enabled .search-results-column').addClass('col-sm-6');

// Function of set year
var x = new Date();
var y = x.getFullYear();
$('#year').html(y);

//Fancybox
$('.article-body img.fancybox').on('click', function() {
$.fancybox.open([
{
src : $(this).attr("src"),
opts : {},
},
]);
});

});

 

My HTML looks like this



 

The image is just opening i a new tab.

I am getting no errors in the console.?

I hope you can see what is wrong.

Exibir comentário · Publicado 03 de abr. de 2020 · Robert Holm

0

Seguidores

0

Votos

0

Comentários