‘); window.Ya.adfoxCode.createAdaptive({ ownerId: 246100, containerId: ‘adfox_154746311653458366_’+page_id, params: { p1: ‘byuon’, p2: ‘filb’, puid1: », puid2: », puid3: » } }, [‘desktop’, ‘tablet’], { tabletWidth: 1280, phoneWidth: 720, isAutoReloads: false });
‘); window.Ya.adfoxCode.createAdaptive({ ownerId: 246100, containerId: ‘adfox_154833776235272757_’+page_id, params: { p1: ‘cdjec’, p2: ‘filb’, puid1: », puid2: », puid3: » } }, [‘desktop’], { tabletWidth: 1280, phoneWidth: 720, isAutoReloads: false });
‘); $.getJSON( ‘https://www.m24.ru/siteed/assist/kudago_cache/web/’, {}, function(projectData, textStatus, jqXHr) { $.get(‘/special/kudago/kdg-xs.html’, // template function(template, textStatus, jqXhr) { var projectHtml = Mustache.render(template, projectData); $(‘#kdg-widget’).append(projectHtml); // getting thumbnails $(‘.kdg-image img’).each(function() { // getting image src var source = $(this).attr(‘src’); // replacing url string to get thumbnail $(this).attr(‘src’, source.replace(‘/media/images/’, ‘/media/thumbs/m/images/’)); }); //cycle dates $(‘#kdg-widget .kdg-events’).before(‘
Источник: M24.ru