$(document).ready(function() { $('.flexible-choice .accordion-tabs-panel.subcat + .accordion-tabs-content .row').css('width', 'calc(200% + 30px)'); $('.m-promotion_teaser a').on('click', function () { const imgSource = $(this).closest('.m-promotion_teaser').find('span.maetva-image-source').data('source'); const imgString = ''; $(this).after(imgString); }); if ($('html').prop('lang') === 'el-GR') { replaceAccented(); } function replaceAccented(){ let e = document.getElementsByTagName('*'), l = e.length, i; if(typeof getComputedStyle == "undefined") { getComputedStyle = function(e) { return e.currentStyle; }; } for( i=0; i