$e->toString()
(string)$e
catch (Throwable $e) { }
$(function() {
console.log('Загрузка скрипта...');
var defer = $.getScript('https://cdn.jsdelivr.net/npm/lightgallery@2.0.0-beta.3/lightgallery.umd.js');
defer.done(function() {
lightGallery(document.getElementById('animated-thumbnails-gallery'), {
thumbnail: true,
closeOnTap: true,
//enableSwipe: false,
mobileSettings: {controls: true, showCloseIcon: true, download: true}
});
console.log('Скрипт загружен и lightGallery запущен');
})
defer.fail(function(err) {
console.error('Не удалось загрузить скрипт', err);
});
});
$(function() {
console.log(123);
var s = document.createElement("script");
s.type = "text/javascript";
s.src = "https://cdn.jsdelivr.net/npm/lightgallery@2.0.0-beta.3/lightgallery.umd.js";
s.onload = function() {
lightGallery(document.getElementById('animated-thumbnails-gallery'), {
thumbnail: true,
closeOnTap: true,
//enableSwipe: false,
mobileSettings: {controls: true, showCloseIcon: true, download: true,},
});
}
$("head").append(s);
});