<style>
/* Стили для popup 18+ с размытием фона */
.t658__popup {
backdrop-filter: blur(10px); /* размытие фона */
-webkit-backdrop-filter: blur(10px); /* для Safari */
}
</style>
<script>
document.addEventListener("DOMContentLoaded", function () {
// Кнопка "Нет" на popup 18+
const sonnetoButtonNo = document.querySelector(".t658__btn_no");
// Ссылка редиректа при отказе
const sonnetoRedirectLink = "
http://sonneto-design.ru/modifications/subscription/redirect";
if (sonnetoButtonNo && sonnetoRedirectLink) {
sonnetoButtonNo.addEventListener("click", function () {
setTimeout(() => {
window.location.href = sonnetoRedirectLink; // <<< ССЫЛКА РЕДИРЕКТА >>>
}, 2000); // <<< ЗАДЕРЖКА ПЕРЕД РЕДИРЕКТОМ (в мс) >>>
});
}
});
</script>
<script>
(function sonnetoUpdType() {
const TildahtmlBclok = document.currentScript;
if (TildahtmlBclok) {
const recordElement = TildahtmlBclok.closest('.r[data-record-type]');
if (recordElement) {
recordElement.setAttribute('data-record-type', Math.random().toString(36).substring(2, 12));
}
}
})();
</script>