This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- ********************************************************************** --> | |
<!-- Карусель изображений с автоматическим переключением слайдов --> | |
<!-- и настройкой прозрачности --> | |
<!-- ********************************************************************** --> | |
<!-- Этот код создает слайдер с индивидуальной прозрачностью для каждого --> | |
<!-- изображения. JavaScript добавляет слайды и контролирует плавное --> | |
<!-- переключение по таймеру, а CSS задает стили и накладывает --> | |
<!-- прозрачность. --> | |
<!-- ********************************************************************** --> | |
<script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- ********************************************************************** --> | |
<!-- «Белый шум» на всём сайте (Тильда) --> | |
<!-- ********************************************************************** --> | |
<div class="uc-noise-overlay"></div> | |
<style> | |
.uc-noise-overlay { | |
position: fixed; | |
top: 0; | |
left: 0; | |
width: 100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM Извлечение аудио из video.mp4 и сохранение в формате MP3 | |
REM с оригинальным битрейтом с помощью FFmpeg | |
ffmpeg -i video.mp4 -vn -c:a copy video.mp3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- ********************************************************************** --> | |
<!-- Адаптивное фоновое видео для Zero-блока Тильды --> | |
<!-- ********************************************************************** --> | |
<!-- Заполняет 100% ширины и высоты родительского блока с возможностью --> | |
<!-- указать свои ссылки на видео и превью. --> | |
<!-- ********************************************************************** --> | |
<script> | |
// Замените на URL вашего видео | |
const videoSource = 'https://example.com/path/to/your/video.mp4'; | |
// Замените на URL вашего превью |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- ********************************************************************** --> | |
<!-- Анимация движения SVG-фигурки по заданному пути с использованием GSAP --> | |
<!-- ********************************************************************** --> | |
<!-- Этот код создает анимацию движения SVG-фигуры по линии, которая --> | |
<!-- задана в SVG, при прокрутке страницы. GSAP с MotionPathPlugin --> | |
<!-- и ScrollTrigger обеспечивает плавное движение фигурки по пути. --> | |
<!-- Анимация запускается и останавливается в зависимости от позиции --> | |
<!-- скролла, что делает её синхронизированной с прокруткой. --> | |
<!-- ********************************************************************** --> | |
<!DOCTYPE html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- ********************************************************************** --> | |
<!-- SmoothScroll с помощью библиотеки Lenis (обновлено до версии 1.3.4) --> | |
<!-- ********************************************************************** --> | |
<!-- Более плавный скролл с поддержкой автоскейла --> | |
<!-- ********************************************************************** --> | |
<link rel="stylesheet" href="https://unpkg.com/lenis@1.3.4/dist/lenis.css"> | |
<script src="https://unpkg.com/lenis@1.3.4/dist/lenis.min.js"></script> | |
<script> | |
// Классы Тильды, для которых скрипт "отключается" | |
const classesToExclude = [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- ********************************************************************** --> | |
<!-- Скрытие символа BOM на карточках Тильды --> | |
<!-- ********************************************************************** --> | |
<script> | |
(function() { | |
// Список классов для проверки | |
var classesToCheck = [ | |
't-card__uptitle', | |
't-card__title', | |
't-card__descr' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- ********************************************************************** --> | |
<!-- Скрываем или удаляем пустые карточки на Тильде (блок ST315N) --> | |
<!-- ********************************************************************** --> | |
<!-- Видео с пояснением: https://youtu.be/VLor5zp0W4s. --> | |
<!-- ********************************************************************** --> | |
<script> | |
(function() { | |
// Настройки | |
const productCardClasses = ['js-product', 't-item']; | |
const productNameClasses = ['js-store-prod-name', 'js-product-name', 't786__title']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- ********************************************************************** --> | |
<!-- Меняем кнопки и цвета у блока BF905A в Тильде --> | |
<!-- ********************************************************************** --> | |
<script> | |
const ucNewIcons = { | |
"t898__icon-telegram_wrapper": { | |
"iconPath": "none", // Нет новой иконки | |
"tooltipText": null // Нет нового названия для тултипа | |
}, | |
"t898__icon-whatsapp_wrapper": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- ********************************************************************** --> | |
<!-- Работа с данными в динамическом каталоге Тильды --> | |
<!-- ********************************************************************** --> | |
<script> | |
const MAX_ATTEMPTS = 10; | |
let attempts = 0; | |
function checkForJsStore() { | |
if (attempts >= MAX_ATTEMPTS) { | |
console.warn("Достигнуто максимальное количество попыток. Подождите или обновите страницу."); |