Каталог файловtilda-zero-1.1.js
1201 return wrapperBackdropFilter && wrapperBackdropFilter !== 'none';1202}1203 1204function t396__processBackdropFilterOnImage(elem) {1205 if (!elem) return;1206 var hasSBS = elem.getAttribute('data-animate-sbs-opts');1207 var hasExtendedAnimation = elem.getAttribute('data-animate-prx') || elem.getAttribute('data-animate-fix');1208 var hasAnimation = hasSBS || hasExtendedAnimation;1209 var isProcessed = elem.classList.contains('t396__elem--backdrop-filter-img-wrappered');1210 1211 if ((hasAnimation && isProcessed) || !hasAnimation) {
История файла и сравнение версий
t396__updateBackdropFilterOnImage(elem);
1214 elem.addEventListener('backdropFilterImgWrappered', function () { 1215 t396__updateBackdropFilterOnImage(elem); 1220function t396__updateBackdropFilterOnImage(el) { 1223 var img = elem.querySelector('img'); 1224 var animWrapper = elem.querySelector('.tn-atom__sbs-anim-wrapper, .tn-atom__prx-wrapper, .tn-atom__sticky-wrapper'); 1225 var targetFilterValue = ''; 1228 targetFilterValue = window.getComputedStyle(elem).webkitBackdropFilter || ''; 1230 elem.style.webkitBackdropFilter = 'none'; 1231 t396_waitForUploadImg(img, function () { 1232 elem.style.webkitBackdropFilter = targetFilterValue; 1237 * Wait image loading. 1238 * Only for Safari via lazy-loading 1240 * @param {HTMLImageElement} img 1241 * @param {Function} cb 1243function t396_waitForUploadImg(img, cb) { 1244 if (window.lazy !== 'y') { 1248 var timerID = setTimeout(function () { 1249 if (img.classList.contains('loaded') && img.clientWidth && img.src) { 1251 clearTimeout(timerID); 1253 t396_waitForUploadImg(img, cb); 1258function t396_addButton(artBoard, el) { 1259 var element = t396_getEl(el); 1260 if (!element) return null; 1262 /*add data atributes*/ 1263 var fieldsString = 'top,left,width,height,container,axisx,axisy,caption,leftunits,topunits'; 1264 element.setAttribute('data-fields', fieldsString); 1266 /*render elem view*/ 1267 t396_elem__renderView(element); 1272function t396_addVideo(artBoard, el) { 1273 var element = t396_getEl(el); 1274 if (!element) return; 1276 /*add data atributes*/ 1277 var fieldsString = 'width,height,top,left,'; 1278 fieldsString += 'container,axisx,axisy,widthunits,heightunits,leftunits,topunits'; 1279 element.setAttribute('data-fields', fieldsString); 1281 /*render elem view*/ 1282 t396_elem__renderView(element); 1284 /*continued in the file "tilda-zero-video-1.0.js"*/ 1285 t_onFuncLoad('t396_initVideo', function () { 1286 t396_initVideo(element); 1290function t396_addHtml(artBoard, el) { 1291 var element = t396_getEl(el); 1292 if (!element) return; 1294 /*add data atributes*/ 1295 var fieldsString = 'width,height,top,left,'; 1296 fieldsString += 'container,axisx,axisy,widthunits,heightunits,leftunits,topunits'; 1297 element.setAttribute('data-fields', fieldsString); 1299 /*render elem view*/ 1300 t396_elem__renderView(element);