최근 검색


최근 검색 없음

Robert Holm's Avatar

Robert Holm

가입한 날짜: 2021년 4월 16일

·

마지막 활동: 2021년 10월 27일

팔로잉

0

팔로워

0

총 활동 수

3

투표 수

0

가입 플랜

1

활동 개요

님의 최근 활동 Robert Holm

Robert Holm님이 에 댓글을 입력함

커뮤니티 댓글 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

 

댓글 보기 · 2020년 4월 03일에 게시됨 · Robert Holm

0

팔로워

0

투표 수

0

댓글


Robert Holm님이 에 댓글을 입력함

커뮤니티 댓글 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.

댓글 보기 · 2020년 4월 03일에 게시됨 · Robert Holm

0

팔로워

0

투표 수

0

댓글