| Server IP : 213.186.33.4 / Your IP : 216.73.216.146 Web Server : Apache System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : karinebmkh ( 644538) PHP Version : 8.4.22 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/karinebmkh/www2/wp-content/plugins/glaza-core/assets/ |
Upload File : |
(function($) {
"use strict";
var glaza_shortcodes = {
accordion: function() {
$('.shortcode-accordion').find('.accordion-item-title').click(function(e) {
e.preventDefault();
$(this).next().slideToggle(200);
$(".accordion-item-content").not($(this).next()).slideUp(200);
});
},
fullimg: function() {
var single_wrapper = $('.single-post-outer');
var sidebar = single_wrapper.find('.sidebar-wrap');
if (sidebar.length > 0) {
return false;
}
var full_image = single_wrapper.find('.shortcode-fullimg');
if (full_image.length > 0) {
var data = glaza_shortcodes.fullimg_calc(single_wrapper);
full_image.each(function() {
var full_image_el = $(this);
if (!full_image_el.hasClass('fullimg-loaded')) {
var full_image_el_img = full_image_el.find('img');
full_image_el.find('.alignnone').removeClass('alignnone');
full_image_el_img.css('width', data['img_width'], 'px !important;');
full_image_el_img.css('margin-left', data['img_margin'], 'px !important;');
setTimeout(function() {
full_image_el.addClass('is-img-show fullimg-loaded');
}, 100);
$(window).resize(function() {
data = glaza_shortcodes.fullimg_calc(single_wrapper);
full_image_el_img.css('width', data['img_width'], 'px !important;');
full_image_el_img.css('margin-left', data['img_margin'], 'px !important;');
});
}
})
}
},
//call image
fullimg_calc: function(wrapper) {
var data = [];
var wrapper_width = wrapper.outerWidth();
var entry_width = wrapper.find('.single-inner').outerWidth();
data['img_width'] = wrapper_width;
data['img_margin'] = -Math.abs((wrapper_width - entry_width) / 2);
return data;
}
};
$(document).ready(function() {
glaza_shortcodes.accordion();
});
$(window).load(function() {
glaza_shortcodes.fullimg();
})
})(jQuery);