Некодим логотипНекодим
МодификацииПубликацииНекодИИмЦены
Некодим логотипНекодим

© 2020-2026 Некодим

Готовые модификации для вашего сайта. Улучшайте функциональность и дизайн без программирования.

Компания

  • Контакты
  • Публичная оферта
  • Политика конфиденциальности
  • Согласие на обработку данных
  • Лицензионное соглашение
  • Реферальная программа

Полезное

  • Модификации
  • Публикации
  • Каталог блоков Tilda
  • MCP для агентов
  • Журнал изменений
  • Доска почёта

Личный кабинет

  • Вход
  • Регистрация
  • Цены
Журнал измененийИстория GitФайлыTilda MCP
Каталог файлов

tilda-scripts-3.0.js

Код файла
Версия от 29.09.2026, 07:00:43 МСК
Оригинал на CDNСнимок 56c3b845Полный текст
401			for (var i = 0; i < arrChilds.length; i++) {402				if (arrChilds[i].nodeValue.indexOf("'t remove this l") !== -1) {403					document404						.getElementById('allrecords')405						.insertAdjacentHTML(406							'afterend',407							'<div class="t-tildalabel t-tildalabel-free" style="display: block !important; visibility: visible !important; position: relative !important; width: 100% !important; pointer-events: all !important; opacity: 1 !important; margin: 0 !important; z-index: 99900 !important"><div class="t-tildalabel-free__main"><a href="https://tilda.cc" target="_blank" style="padding-bottom:12px; display: block;"><img style="width:40px;" src="https://static.tildacdn.' +408								t_getRootZone() +409								'/img/tildacopy.png"></a><div style="padding-bottom: 15px;">This site was made on <a href="https://tilda.cc" target="_blank" style="text-decoration: none; color:inherit;">Tilda — a website builder</a> that helps to&nbsp;create a&nbsp;website without any code</div><a href="https://tilda.cc/registration/" target="_blank" style="display: inline-block; padding: 10px 20px; font-size: 13px; border-radius: 50px; background-color: #fa8669; color: #fff; text-decoration: none;">Create a website</a></div><div class="t-tildalabel-free__links-wr"><a class="t-tildalabel-free__txt-link" href="https://help' +
История файла и сравнение версий
  • 29.09.2026, 07:00:43 · 56c3b845
410 (window.browserLang === 'RU' ? '-ru' : '') +
411 '.tilda.cc/white-label" target="_blank">' +
412 (window.browserLang === 'RU' ? 'Как удалить этот лейбл' : 'How to remove this block') +
413 '?</a></div></div>'
414 );
415 }
416 }
417 } else if (bodyScrollHeight + 70 > window.innerHeight) {
418 if (tildaLabel) {
419 tildaLabel.setAttribute(
420 'style',
421 'display: block !important; visibility: visible !important; position: relative !important; width: 100% !important; pointer-events: all !important; opacity: 1 !important; margin: 0 !important; z-index: 1 !important'
422 );
423 }
424 }
425 }, 500);
426});
427
428/** Appearance animation */
429t_onReady(function () {
430 var allRecords = document.getElementById('allrecords');
431 if (
432 !window.isMobile &&
433 allRecords &&
434 allRecords.getAttribute('data-blocks-animationoff') !== 'yes' &&
435 window.isSearchBot === false
436 ) {
437 var recBlocks = document.querySelectorAll('.r');
438
439 for (var i = 0; i < recBlocks.length; i++) {
440 var rec = recBlocks[i];
441 var style = rec.getAttribute('style');
442
443 if (style && style.indexOf('background') !== -1) {
444 rec.setAttribute('data-animationappear', 'off');
445 }
446 }
447
448 // add animation
449 var recBlocksNot = Array.prototype.slice.call(recBlocks).filter(function (el) {
450 return (
451 !el.getAttribute('data-animationappear') &&
452 !el.getAttribute('data-screen-min') &&
453 !el.getAttribute('data-screen-max')
454 );
455 });
456
457 for (var i = 0; i < recBlocksNot.length; i++) {
458 var rec = recBlocksNot[i];
459 var recTop = rec.getBoundingClientRect().top + window.pageYOffset;
460 var position = window.pageYOffset + window.innerHeight + 300;
461
462 if (recTop > 1000 && recTop > position) {
463 t_addClass(rec, 'r_hidden');
464 } else {
465 t_addClass(rec, 'r_showed');
466 }
467 t_addClass(rec, 'r_anim');
468 }
469
470 if (recBlocksNot.length) {
471 function t_blocksFade() {
472 for (var i = recBlocksNot.length - 1; i >= 0; i--) {
473 var rec = recBlocksNot[i];
474 var recTop = rec.getBoundingClientRect().top + window.pageYOffset;
475 var position = 0;
476
477 if (rec.offsetHeight <= 100) {
478 position = window.pageYOffset + window.innerHeight;
479 } else {
480 position = window.pageYOffset + window.innerHeight - 100;
481 }
482
483 if (recTop < position) {
484 t_removeClass(rec, 'r_hidden');
485 t_addClass(rec, 'r_showed');
486 recBlocksNot = Array.prototype.slice.call(recBlocksNot);
487 recBlocksNot.splice(i, 1);
488 }
489 }
490 }
491
492 var recBlocksT400 = document.querySelectorAll('[data-record-type="400"], [data-parenttplid="400"]');
493
494 if (recBlocksT400.length > 0) {
495 var countCompleted = 0;
496 var count = 0;
497 var timer = setInterval(function () {
498 count += 1;
499
500 // 300 - время через которое остановить интервал если условие не выполнится
Предыдущие 100 строкСледующие 100 строк