mirror of https://gitlab.com/curben/blog
Don't inject fancybox tag/class to cloudinary class
Incompatible with cloudinary
This commit is contained in:
parent
3f0d87f8aa
commit
9a8a48a15d
|
@ -1,8 +1,9 @@
|
||||||
(function ($) {
|
(function ($) {
|
||||||
// Caption
|
// Fancybox caption
|
||||||
$('.article-entry').each(function (i) {
|
$('.article-entry').each(function (i) {
|
||||||
$(this).find('img').each(function () {
|
$(this).find('img').each(function () {
|
||||||
if ($(this).parent().hasClass('fancybox')) return
|
// Don't insert fancybox element to cloudinary's cld-responsive img class
|
||||||
|
if ($(this).hasClass('cld-responsive') || $(this).parent().hasClass('fancybox')) return
|
||||||
|
|
||||||
var alt = this.alt
|
var alt = this.alt
|
||||||
|
|
||||||
|
@ -22,6 +23,7 @@
|
||||||
$('.fancybox').fancybox()
|
$('.fancybox').fancybox()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//Add "Copy" button to code snippet
|
//Add "Copy" button to code snippet
|
||||||
var code = document.getElementsByClassName('code');
|
var code = document.getElementsByClassName('code');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue