' +
'
' +
- '' +
+ '' +
'' + text + '' +
'
' +
'
'
@@ -179,7 +180,7 @@ Stun.utils = Stun.$u = {
$('.sidebar-nav').addClass('hide');
$('.sidebar-toc').addClass('hide');
- $('.sidebar-overview').removeClass('hide');
+ $('.sidebar-ov').removeClass('hide');
},
// Wrap images with fancybox support.
wrapImageWithFancyBox: function () {
@@ -235,14 +236,12 @@ Stun.utils = Stun.$u = {
var colWidth = parseInt(gConfig.col_width);
var colGapX = parseInt(gConfig.gap_x);
- this.waitAllImageLoad('.gallery img', function () {
- $('.gallery').masonry({
- itemSelector: '.gallery-image',
- columnWidth: colWidth,
- percentPosition: true,
- gutter: colGapX,
- transitionDuration: 0
- });
+ $('.gallery').masonry({
+ itemSelector: '.gallery__img',
+ columnWidth: colWidth,
+ percentPosition: true,
+ gutter: colGapX,
+ transitionDuration: 0
});
},
// Lazy load the images of post.
@@ -251,11 +250,12 @@ Stun.utils = Stun.$u = {
},
// Add a mark icon to the link with `target="_blank"` attribute.
addIconToExternalLink: function (container) {
- if (!$(container)[0]) return;
+ if (!$(container).length) return;
+ var fa_prfix = CONFIG.fontawesome.prefix;
var $wrapper = $('