最近搜索
没有最近搜索

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
评论