const screenWidth = window.screen.width;
const wheelContent = document.getElementById('while_content'); const shModalFull = document.getElementById('shmodal_full'); const spinnerEl = document.getElementsByClassName('myspinner')[0]; const otpBut = document.getElementById('otp_but'); const slideRightTit = document.getElementsByClassName('slid_right_tit')[0]; const fullWindow = document.getElementById('ful_ekran'); const halfWindow = document.getElementById('pol_ekran'); const errorText = document.getElementById('error_text'); const remCircle = document.getElementById('remkrug'); const numbContent = document.getElementsByClassName('numb_content')[0]; const formSubmit1 = document.getElementById("form_submit"); const phoneFour = document.getElementById('phone_4'); const modalOpen = document.querySelector('.modalopen_bl');
document.querySelector('#circleTitle').innerText = 'Испытайте Удачу!'; // Заголовок
document.querySelector('#circleText').innerText = 'Ведите номер Вашего телефона, Вращайте Колесо удачи и получите Подарок при заказе!'; // Текст
document.querySelector('#winText').innerText = 'вы выиграли'; // Текст после выигрыша
otpBut.style.backgroundColor = '#C71585'; // Цвет кнопки
otpBut.innerText = 'крутить'; // Текст на кнопке
document.querySelector('#zakokno').innerText = 'закрыть'; // Текст на кнопке закрытия (после прокрутки колеса)
document.querySelector('#zakokno').backgroundColor = '#191919'; // Цвет кнопки закрытия (после прокрутки колеса)
document.querySelector('#errorText').innerText = 'вы допустили ошибку'; // Текст ошибки валидации
document.querySelector('#cod').innerText = '+7' // Код номера телефона
document.querySelector('.numb_content').style.border = '2px solid #C71585'; // Border у поля ввода телефона / почты
document.querySelector('#privacyText').innerText = 'я согласен с'; // Текст политики конфиденциальности
document.querySelector('#privacyHref').innerText = 'политикой конфиденциальности'; // Текст ссылки политики конфиденциальности
document.querySelector('#privacyHref').setAttribute('href', '##https://sexpro61.ru/%D0%BF%D0%BE%D0%BB%D0%B8%D1%82%D0%B8%D0%BA%D0%B0-%D0%BA%D0%BE%D0%BD%D1%84%D0%B8%D0%B4%D0%B5%D0%BD%D1%86%D0%B8%D0%B0%D0%BB%D1%8C%D0%BD%D0%BE%D1%81%D1%82%D0%B8/##'); // Ссылка политики конфиденциальности
const firstColor = "#C71585"; // Первый цвет колеса const secondColor = "#DB7093"; // Второй цвет колеса
const rollAlert = 'Вы уже крутили барабан 1 раз'; // Текст уведомления, если пользователь уже покрутил колесо
const autoOpen = true; // Автооткрытие колеса
const fullVer = true; // Автооткрытие полной версии либо в виде виджета
const modalFullShow = 0.1; // Автопоказ модального окна (в секундах)
const rightPosition = false;
function setCookie(cname, cvalue, exdays) { const d = new Date(); d.setTime(d.getTime() + (exdays *24*60* 60 * 1000)); let expires = "expires="+d.toUTCString(); document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; }
if(autoOpen) { modalOpen.style.display = 'none'; } else { const buttons = document.querySelectorAll('.showWheel'); buttons.forEach(el => { el.addEventListener('click', () => { if(autoOpen === false && rightPosition) modalOpen.style.right = '-200%'; wheelContent.classList.toggle('_active'); if (screenWidth>600 && fullVer) { document.getElementById('while_content').style.display='none'; document.getElementById('while_content').style.top='0'; document.getElementById('while_content').style.width='100%'; document.getElementById('while_content').style.left='0'; $("#while_content").fadeIn(); document.getElementById('ful_ekran').style.display="block" }else{ openEdge() } }) }) }
if(rightPosition) { modalOpen.classList.add('_right'); } else { modalOpen.classList.add('_left');
}
function getCookie(cname) { let name = cname + "="; let ca = document.cookie.split(';'); for(let i = 0; i < ca.length; i++) { let c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } return ""; } function telValid() { var valinpval = Number(phoneFour.value); if (valinpval || valinpval == " ") { document.getElementById('inpimg').src= "https://yeees.ru/wp-content/themes/blankslate/while/ipmotor/tel.svg"; document.getElementById('cod').style.display="block"; phoneFour.type = "text" }else{ document.getElementById('inpimg').src= "https://yeees.ru/wp-content/themes/blankslate/while/ipmotor/mail.svg"; document.getElementById('cod').style.display="none"; phoneFour.type = "email" } } function checker() { if(phoneFour.value==''){ errorText.style.display='block'; numbContent.style.borderColor = "#B10000"; remCircle.classList.add('shmodal1'); }else{ if (Number(phoneFour.value)) { remCircle.classList.remove('shmodal1'); var numbcount= phoneFour.value.length; if (numbcount < 4 || numbcount > 10) { errorText.style.display='block'; numbContent.style.borderColor = "#B10000"; }else{ errorText.style.display='none'; otpBut.disabled=true; numbContent.style.borderColor = "#E6B031"; remCircle.classList.remove('shmodal1'); if (getCookie("username")!="") { formSubmit1.click() //alert(rollAlert)
}else{ formSubmit1.click()
}
}
}else{ var inputText = phoneFour;
if(validateEmail(inputText)){ errorText.style.display='none'; otpBut.disabled=true; numbContent.style.borderColor = "#C71585"; remCircle.classList.remove('shmodal1'); if (getCookie("username")!="") { //alert(rollAlert) formSubmit1.click() }else{ formSubmit1.click() } }else{ remCircle.classList.add('shmodal1'); errorText.style.display='block'; numbContent.style.borderColor = "#C71585"; }
}
}
} function changeCheckbox() { if (document.getElementById('chekboxYWP').checked) { otpBut.disabled=false; otpBut.style.pointerEvents='all'; otpBut.style.cursor='pointer';
}else{ otpBut.disabled=true; otpBut.style.pointerEvents='none'; otpBut.style.cursor='not-allowed'; } } changeCheckbox()
var it1 = 6; var col = 100/it1; if(it1%2 == 0){ var color1 = firstColor; var color2 = secondColor; }else{ if (it1 == 7) { spinnerEl.classList.add('spin7') }else if(it1 == 5){ spinnerEl.classList.add('spin5') }else if(it1 == 3){ spinnerEl.classList.add('spin3') }else if(it1 == 9){ spinnerEl.classList.add('spin9') }
}
// КОЛИЧЕСТВО И НАСТРОЙКИ ПРИЗОВ const prizes = [ { text: "скидка 27 000 р на курс ФОРМУЛА ОРГАЗМА", color: color2, proc:25, }, { text: "скидка 25 000 р на курс ЗДОРОВОЕ ЛОНО", color: color1, proc:10, }, { text: "скидка 29 000 на курс ЖЕНСКАЯ ВЛАСТЬ", color: color2, proc:15, }, { text: "скидка 10 000 на курс ЭРО МАНИП", color: color1, proc:20, }, { text: "скидка 10 000 на курс ОРГАЗМ ДЛЯ ДВОИХ", color: color2, proc:10, }, { text: "скидка 10 000 на курс СЕКС-ЛИКБЕЗ", color: color1, proc:20, },
];
// создаём переменные для быстрого доступа ко всем объектам на странице — блоку в целом, колесу, кнопке и язычку const wheel = document.querySelector(".deal-wheel"); const spinner = wheel.querySelector(".myspinner"); const trigger = wheel.querySelector(".btn-spin"); const ticker = wheel.querySelector(".ticker2");
// на сколько секторов нарезаем круг const prizeSlice = 360 / prizes.length; // на какое расстояние смещаем сектора друг относительно друга const prizeOffset = Math.floor(180 / prizes.length); // прописываем CSS-классы, которые будем добавлять и убирать из стилей const spinClass = "is-spinning"; const selectedClass = "selected"; // получаем все значения параметров стилей у секторов const spinnerStyles = window.getComputedStyle(spinner);
// переменная для анимации var tickerAnim; // угол вращения var rotation = 0; // текущий сектор var currentSlice = 0; // переменная для текстовых подписей var prizeNodes; var cif = 1;
// расставляем текст по секторам const createPrizeNodes = () => { // обрабатываем каждую подпись prizes.forEach(({ text, color, proc, reaction }, i) => {
// каждой из них назначаем свой угол поворота const rotation = ((prizeSlice * i) * -1) - prizeOffset; // добавляем код с размещением текста на страницу в конец блока spinner spinner.insertAdjacentHTML( "beforeend", // текст при этом уже оформлен нужными стилями `
` ); cif = cif+1; }); };
// рисуем разноцветные секторы const createConicGradient = () => { // устанавливаем нужное значение стиля у элемента spinner spinner.setAttribute( "style", `background: conic-gradient( from -90deg, ${prizes // получаем цвет текущего сектора .map(({ color }, i) => `${color} 0 ${(100 / prizes.length) * (prizes.length - i)}%`) .reverse() } );` ); };
// создаём функцию, которая нарисует колесо в сборе const setupWheel = () => { // сначала секторы createConicGradient(); // потом текст createPrizeNodes(); // а потом мы получим список всех призов на странице, чтобы работать с ними как с объектами prizeNodes = wheel.querySelectorAll(".prize"); var it = document.getElementsByClassName('prize').length;
if (it==10) spinnerEl.style.transform='rotate(calc(var(--rotate, 18) * 1deg))';
if (it==9) spinnerEl.style.transform='rotate(calc(var(--rotate, 38) * 1deg))';
if (it==7 || it == 5 || it == 3) spinnerEl.style.transform='rotate(calc(var(--rotate, 0) * 1deg))';
if (it==4) spinnerEl.style.transform='rotate(calc(var(--rotate, 43) * 1deg))';
if (it==2) spinnerEl.style.transform='rotate(calc(var(--rotate, 90) * 1deg))';
};
// функция запуска вращения с плавной остановкой const runTickerAnimation = () => { // взяли код анимации отсюда: https://css-tricks.com/get-value-of-css-rotation-through-javascript/ const values = spinnerStyles.transform.split("(")[1].split(")")[0].split(","); const a = values[0]; const b = values[1]; let rad = Math.atan2(b, a);
if (rad < 0) rad += (2 * Math.PI); const angle = Math.round(rad * (180 / Math.PI)); const slice = Math.floor(angle / prizeSlice); // анимация язычка, когда его задевает колесо при вращении // если появился новый сектор if (currentSlice !== slice) { // убираем анимацию язычка // и через 10 миллисекунд отменяем это, чтобы он вернулся в первоначальное положение //setTimeout(() => ticker.style.animation = null, 10); // после того, как язычок прошёл сектор - делаем его текущим currentSlice = slice; } // запускаем анимацию //tickerAnim = requestAnimationFrame(runTickerAnimation); };
const getRandomIntInclusive = (min, max) => Math.floor(Math.random() * (Math.floor(max) - Math.ceil(min) + 1)) + Math.ceil(min); // Максимум и минимум включаются
function barsh() {
if (activid
if (it == 9) prize += ugl/2;
if (it == 7 || it == 5|| it == 3) prize -= ugl/2; // делаем её недоступной для нажатия trigger.disabled = true; // задаём начальное вращение колеса rotation = Math.floor(1080+prize); // убираем прошлый приз //prizeNodes.forEach((prize) => prize.classList.remove(selectedClass)); // добавляем колесу класс is-spinning, с помощью которого реализуем нужную отрисовку wheel.classList.add(spinClass); // через CSS говорим секторам, как им повернуться spinner.style.setProperty("--rotate", rotation); // возвращаем язычок в горизонтальную позицию //ticker.style.animation = "none"; // запускаем анимацию вращение runTickerAnimation(); povtorvrashenie()
fetch('https://ipapi.co/json/') .then(d => d.json()) //.then(d => document.querySelector('#ip').innerHTML = d.ip); .then(d => setCookie("username", d.ip, 1)) }
function povtorvrashenie() { // отслеживаем, когда закончилась анимация вращения колеса spinner.addEventListener("transitionend", () => { // останавливаем отрисовку вращения cancelAnimationFrame(tickerAnim); // получаем текущее значение поворота колеса rotation %= 360; // выбираем приз // убираем класс, который отвечает за вращение wheel.classList.remove(spinClass); // отправляем в CSS новое положение поворота колеса spinner.style.setProperty("--rotate", rotation); // делаем кнопку снова активной trigger.disabled = false; document.getElementById('circleText').innerText = "Благодарим за участие и поздравялем с победой! Для получения приза мы вам позвоним" document.getElementById('promo_cont').style.display="block" document.getElementById('promo').value=promo; var prtxt= document.getElementById(mijcifr).innerText slideRightTit.innerText = prtxt slideRightTit.style.fontSize="28px"; slideRightTit.style.lineHeight='34px'; document.getElementsByClassName('vgrish')[0].style.display="block"; document.getElementById('form_while').style.display="none" otpBut.style.display="none" //document.getElementById('zakokno').style.display="block" document.getElementById('prom_styl').style.display="flex" otpBut.disabled=false; }); }
// подготавливаем всё к первому запуску setupWheel(); var activid; var it = document.getElementsByClassName('prize').length; if(it == 10 || it == 9) activid = 6;
if (it == 8 || it == 7) activid = 5;
if (it == 6) activid = 4;
if (it == 5 || it == 4) activid = 3;
if(it == 3 || it == 2) activid = 2; var lf; window.onload = function() {
var c = document.getElementsByClassName('krugcentr')[0].getBoundingClientRect(); lf =-(c.left+20);
};
function slowAlert() { shModalFull.classList.add('shmodal') }
setInterval(function () { timeoutID = window.setTimeout(slowAlert, modalFullShow * 1000); shModalFull.classList.remove('shmodal');
}, modalFullShow * 1000 * 4);
function openEdge() {
$("#while_content").fadeIn(); if (screenWidth>950) { wheelContent.style.top ="0"; wheelContent.style.display ="flex"; wheelContent.style.left=lf+'px'; wheelContent.style.width ="0"; fullWindow.style.display="none" halfWindow.style.display="block" $( "#while_content" ).animate({ width: "100%", }, 500 ); } else{
$( "#while_content" ).animate({ top: '0', }, 600 ); } }
function closeEdge() { wheelContent.classList.remove('_active') if(modalOpen.classList.contains('_right')) { modalOpen.style.right = '20px'; } else { modalOpen.style.left = '20px'; } if (screenWidth>950) { halfWindow.style.display="none" $( "#while_content" ).animate({ width: "0", }, 600 );
wheelContent.style.width ="100%"; setTimeout(timeoutForWidget, 602) }else{ $( "#while_content" ).animate({ top: '120%', }, 600 ); } }
function autoFulOp(){ setTimeout(myGreeting, modalFullShow * 1000); } function autoWidgetOp(){ setTimeout(myGreeting1, modalFullShow * 1000); } function myGreeting() {
if ( screenWidth > 950 ) { wheelContent.style.display='none'; wheelContent.style.top='0'; wheelContent.style.width='100%'; wheelContent.style.left='0'; $("#while_content").fadeIn(); fullWindow.style.display="block" }else{ openEdge() }
} function myGreeting1() { openEdge()
}
if (autoOpen) { if (fullVer) { if (getCookie("username")!="") {
}else{
autoFulOp() }
} else {
if (getCookie("username")!="") {
}else{
autoWidgetOp(); }
} }
function timeoutForWidget() { wheelContent.style.display ="none"; }
function myFunctionСopy() {
var copyText = document.getElementById("promo"); copyText.select(); document.execCommand("copy"); document.getElementById("copy_mesage").style.display="inline-flex";
} document.addEventListener('DOMContentLoaded', () => { const form = document.getElementById('form_while'); form.addEventListener('submit', formSend)
async function formSend(e){ e.preventDefault();
}
function formValidate(form) { let error = 0; }
})
function validateEmail(inputText) { var mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
if(inputText.value.match(mailformat)) { return true; }
return false;
}
document.querySelector('#phone_4').addEventListener('keydown', e => { if(e.keyCode == 13) { e.preventDefault(); return false; } })
/* делаем везде так, чтобы свойства width и height задавали не размеры контента, а размеры блока */
.wheelYWP * {
box-sizing: border-box !important;
}
/* общие настройки страницы */
.spin_conteyn{
/* задаём переменные блока */
/* размеры колеса */
--size: clamp(250px, 85vmin, 512px);
/* настройки яркости и заливки фона секторов */
--lg-hs: 0 3%;
--lg-stop: 50%;
--lg: linear-gradient(
hsl(var(--lg-hs) 0%) 0 var(--lg-stop),
hsl(var(--lg-hs) 20%) var(--lg-stop) 100%
);
/* добавляем позиционирование относительно других элементов */
position: relative;
/* подключаем сетку */
grid-gap: calc(var(--size) / 20);
/* выравниваем содержимое блока по центру */
align-items: center;
/* задаём имена областей внутри сетки */
grid-template-areas:
"spinner"
"trigger";
/* устанавливаем размер шрифта */
font-size: calc(var(--size) / 21);
}
/* общий блок для всех элементов */
.deal-wheel {
display: flex;
align-items: center;
justify-content: space-evenly;
width: 100%;
max-width: 1440px;
margin: 0 auto;
}
/* всё, что относится ко внутренним элементам главного блока, будет находиться в области сетки с названием spinner */
.deal-wheel > * {
grid-area: spinner;
}
/* сам блок и кнопка будут находиться в области сетки с названием trigger и будут выровнены по центру */
.deal-wheel .btn-spin {
grid-area: trigger;
justify-self: center;
}
/* сектор колеса */
.myspinner {
margin: 0!important;
/* добавляем относительное позиционирование */
position: relative;
/* подключаем сетку */
display: grid;
/* выравниваем всё по центру */
align-items: center;
/* добавляем элемент в сетку */
grid-template-areas: "spinner";
/* устанавливаем размеры */
width: var(--size);
height: var(--size);
/* поворачиваем элемент */
-webkit-transform: rotate(calc(var(--rotate, 25) * 1deg));
transform: rotate(calc(var(--rotate, 25) * 1deg));
/* рисуем круглую обводку, а всё, что не поместится, — будет скрыто за кругом */
border-radius: 50%;
padding: 0;
border: 8px solid #fff;
padding: 0;
margin: 0;
box-shadow:0px 0px 140px 50px rgb(230 176 49);
-webkit-box-shadow: 0px 0px 140px 50px rgb(230 176 49);
-moz-box-shadow: 0px 0px 140px 50px rgb(230 176 49);
}
/* всё, что внутри этого блока, будет находиться в области сетки с названием spinner */
.myspinner * {
grid-area: spinner;
}
/* текст на секторах */
.prize {
/* включаем «гибкую» вёрстку */
display: flex;
align-items: center;
/* задаём отступы от краёв блока */
padding: 0 calc(var(--size) / 6) 0 calc(var(--size) / 20);
/* устанавливаем размеры */
width: 50%;
height: 50%;
/* устанавливаем координаты, относительно которых будем вращать текст */
-webkit-transform-origin: center right;
transform-origin: center right;
/* поворачиваем текст */
-webkit-transform: rotate(var(--rotate));
transform: rotate(var(--rotate));
/* запрещаем пользователю выделять мышкой текст на секторах */
user-select: none;
justify-content: right;
}
/* кнопка запуска колеса */
.btn-spin {
color: white;
background: black;
border: none;
/* берём размер шрифта такой же, как в колесе */
font-size: inherit;
/* добавляем отступы от текста внутри кнопки */
padding: 0.9rem 2rem 1rem;
/* скругляем углы */
border-radius: 0.5rem;
/* меняем внешний вид курсора над кнопкой на руку*/
cursor: pointer;
}
/* если кнопка нажата и неактивна */
.btn-spin:disabled {
/* меняем внешний вид курсора */
cursor: progress;
/* делаем кнопку полупрозрачной */
opacity: 0.25;
}
/* анимация вращения */
.is-spinning .myspinner {
-webkit-transition: transform 8s cubic-bezier(0.1, -0.01, 0, 1);
transition: transform 8s cubic-bezier(0.1, -0.01, 0, 1);
}
/* анимируем выпавший сектор */
.prize.selected .text {
/* делаем текст белым */
color: white;
/* настраиваем длительность анимации */
-webkit-animation: selected 800ms ease;
animation: selected 800ms ease;
}
/* настраиваем анимацию текста на выпавшем секторе по кадрам */
@keyframes selected {
/* что происходит на 25% от начала анимации */
25% {
/* увеличиваем текст в 1,25 раза */
-webkit-transform: scale(1.25);
transform: scale(1.25);
/* добавляем тексту тень */
-webkit-text-shadow: 1vmin 1vmin 0 hsla(0 0% 0% / 0.1);
text-shadow: 1vmin 1vmin 0 hsla(0 0% 0% / 0.1);
}
40% {
-webkit-transform: scale(0.92);
transform: scale(0.92);
-webkit-text-shadow: 0 0 0 hsla(0 0% 0% / 0.2);
text-shadow: 0 0 0 hsla(0 0% 0% / 0.2);
}
60% {
-webkit-transform: scale(1.02);
transform: scale(1.02);
-webkit-text-shadow: 0.5vmin 0.5vmin 0 hsla(0 0% 0% / 0.1);
text-shadow: 0.5vmin 0.5vmin 0 hsla(0 0% 0% / 0.1);
}
75% {
-webkit-transform: scale(1);
transform: scale(1);
}
85% {
-webkit-transform: scale(1);
transform: scale(1);
}
}
.text{
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 14px;
text-align: center;
color: #fff;
}
.slid_left{
display: flex;
align-items: center;
}
/*.liner{
z-index: -1;
position: absolute;
width: 400px;
height: 400px;
background: #314CB6;
-webkit-filter: blur(130px);
filter: blur(130px);
}*/
.ticker1{
padding-left: 17px;
position: relative;
}
.ticker1 img{
position: relative;
z-index: 999;
max-width: 32.1px;
}
#promo{
border: none;
text-align: center;
font-family: 'Gilroy';
font-style: normal;
font-weight: 500;
font-size: 12px;
line-height: 14px;
letter-spacing: 2px;
color: #191919;
}
.slid_right{
color: #000;
max-width: 350px;
position: relative;
}
#while_content{
position: fixed;
top:200%;
width: 100%;
height: 100vh;
display: grid;
align-items: center;
background: #FFF;
z-index: 1000000;
}
.slid_right_tit{
font-style: normal;
font-weight: 700;
font-size: 36px;
line-height: 44px;
margin: 0;
padding: 0;
}
.slid_right_text{
font-style: normal;
font-weight: 400;
font-size: 16px;
line-height: 19px;
opacity: 0.7;
margin: 0;
padding: 0;
padding-top: 16px;
padding-bottom: 32px;
word-wrap: break-word;
}
.numb_content{
width: 100%;
border: 2px solid #E6B031;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: flex-start;
}
.numb_content img{
max-width: 16px;
max-height: 16px;
margin-left: 11px;
margin-right: 11px;
}
.numb_content span{
padding-right: 10px;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 16px;
}
#phone_4::placeholder {
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 16px;
opacity: 0.2;
}
#phone_4{
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 16px;
}
.tel_while{
padding: 23px 0;
border: none;
background: none;
}
#while_content textarea:focus, #while_content input:focus{
outline: none;
box-shadow: none !important;
}
.otpravit{
width: 100%;
height: 49px;
background: #314CB6;
border-radius: 8px;
cursor: not-allowed;
font-style: normal;
font-weight: 600;
font-size: 14px;
line-height: 17px;
border: none;
margin-bottom: 25px;
position: relative;
overflow: hidden;
}
.otpravit:hover{
opacity: .7;
}
#error_text{
color: #FF0000;
display: none;
font-style: normal;
font-weight: 400;
font-size: 8px;
line-height: 9px;
}
#forchekimg{
cursor: pointer;
border-radius: 4px;
}
.labelcheck{
display: flex;
padding-right: 6px;
}
.checkbox_cont{
display: flex;
align-items: center;
padding: 0;
margin: 0;
padding: 28px 0;
}
.checkbox_cont span{
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 14px;
padding-right: 6px;
}
.checkbox_cont a{
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 14px;
text-decoration-line: underline;
color: #7D93EB;
}
.clos_modal{
position: absolute;
right: 41px;
top: 41px;
cursor: pointer;
height: 0px;
width: 0px;
/* background: url(https://yeees.ru/wp-content/themes/blankslate/while/ipmotor/zak.svg);*/
}
.clos_modal:hover{
/* background: url(https://yeees.ru/wp-content/themes/blankslate/while/ipmotor/zakhov.svg);*/
}
#zakokno:hover{
opacity: .8;
}
#shmodal_full{
width: 100px;
height: 100px;
background: url(https://yeees.ru/wp-content/themes/blankslate/while/ipmotor/kr.svg);
background-size: contain;
}
.shmodal{
-webkit-animation:spin 4000ms linear infinite;
-moz-animation:spin 4000ms linear infinite;
animation:spin 4000ms linear infinite;
}
@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }
#show, .spin_conteyn, .modalopen_bl, .promo_block {
display: flex;
align-items: center;
justify-content: center;
}
.modalopen_bl{
width: 100px;
height: 100px;
position: fixed;
bottom: 50px;
transition: all ease .4s;
z-index: 10000;
}
.modalopen_bl._right {
right: 20px;
}
.modalopen_bl._left {
left: 20px;
}
#show{
position: absolute;
z-index: 999;
text-align: center;
cursor: pointer;
width: 100%;
height: 100%;
}
.spin9 {
background: conic-gradient( from -90deg,
#041248 0%,#2D4192 11.1111%,
#041248 0%,#2D4192 22.2222%,
#041248 0%,#2D4192 33.3333%,
#041248 0%,#2D4192 44.4444%,
#041248 0%,#2D4192 55.5556%,
#041248 0%,#2D4192 66.6667%,
#041248 0%,#2D4192 77.7778%,
#041248 0%,#2D4192 88.8889%,
#041248 0%,#2D4192 100% );
}
.spin7 {
background: conic-gradient( from -90deg,
#041248 0%,#2D4192 14.2857142857%,
#041248 0%,#2D4192 28.571428571428573%,
#041248 0%,#2D4192 42.85714285714286%,
#041248 0%,#2D4192 56.142857%,
#041248 0%,#2D4192 71.42857142857143%,
#041248 0%,#2D4192 85.71428571428572%,
#041248 0%,#2D4192 100% );
}
.spin5 {
background: conic-gradient( from -90deg,
#041248 0%,#2D4192 20%,
#041248 0%,#2D4192 40%,
#041248 0%,#2D4192 60%,
#041248 0%,#2D4192 80%,
#041248 0%,#2D4192 100% );
}
.spin3 {
background: conic-gradient( from -90deg,
#041248 0%,#2D4192 33.333333333333336%,
#041248 0%,#2D4192 66.66666666666667%,
#041248 0%,#2D4192 100% );
}
.krugcentr{
width: 40px;
height: 40px;
position: absolute;
border-radius: 50%;
background: #FFFFFF;
opacity: 0.7;
z-index: 999;
top: 50%;
left: 50%;
margin: -20px 0 0 -20px
}
.promo_block{
height: 46px;
margin-bottom: 32px;
background: #FFFFFF;
border: 2px solid #314CB6;
border-radius: 8px;
position: relative;
}
#promo_cont{
font-style: normal;
font-weight: 500;
font-size: 12px;
line-height: 14px;
letter-spacing: 2px;
display: none;
color: #191919;
}
.copi_promo{
cursor: pointer;
position: absolute;
left: 15px;
line-height: 0;
}
#copy_mesage{
background: #191919;
border: 0.5px solid rgba(255, 255, 255, 0.25);
border-radius: 99px;
padding: 8px 16px;
display: none;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 16px;
color: #FEFEFE;
}
#prom_styl{
display: none;
}
.vgrish{
display: none;
font-style: normal;
font-weight: 600;
font-size: 16px;
line-height: 19px;
padding-bottom: 16px;
}
#ywp{
position: absolute;
width: 100%;
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 14px;
justify-content: center;
display: flex;
align-items: center;
color: #FFFFFF;
margin-top: 95px;
}
#ywp img{
margin-right: 12px;
}
#zakokno{
height: 49px;
border: none;
background: #191919;
border-radius: 8px;
font-style: normal;
font-weight: 600;
font-size: 14px;
line-height: 17px;
/* identical to box height */
width: 100%;
cursor: pointer;
color: #FFFFFF;
display: none;
}
.linear_podarok{
width: 96px;
height: 96px;
position: absolute;
background: #E6B031;
filter: blur(72px);
}
.skr_mof_mob{
display: none;
}
.shmodal1 {
-webkit-animation: spin 100000ms linear infinite;
-moz-animation: spin 100000ms linear infinite;
animation: spin 100000ms linear
}
@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }
@media(max-width: 950px){
#while_content{
-webkit-top: 100vh;
top: 100vh;
display: flex !important;
}
#ywp {
margin-top: 29px;
}
.clos_modal1{
display: block;
}
.slid_left {
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.deal-wheel{
flex-wrap: wrap;
position: absolute;
top: -250px;
}
.clos_modal{
display: none;
}
.skr_mof_mob{
display: flex;
position: absolute;
text-align: center;
right: 16px;
top: 16px;
/* top: 0; */
width: 50px;
height: 50px;
background: #FFFFFF;
box-shadow: 0px 4px 28px rgb(0 0 0 / 25%);
border-radius: 50%;
/* position: relative; */
z-index: 999;
justify-content: center;
align-items: center;
}
.skr_mof_mob a{
line-height: 0;
display: block;
position: inherit;
margin: 0;
padding: 0;
}
.liner {
display: none;
}
.slid_right {
color: #000;
max-width: 100%;
position: relative;
padding: 0 30px;
}
.slid_right {
text-align: center;
padding-top: 35px;
padding-bottom: 50px;
}
#ywp {
bottom: -30px;
position: inherit;
}
.min_sp{
display: block;
}
.spin_conteyn {
--size: clamp(250px, 125vmin, 600px);
}
#while_content {
position: fixed;
-webkit-overflow-scrolling:touch;
width: 100%;
height: 100vh;
overflow: scroll;
overflow-x: hidden;
}
.slid_right_tit {
font-style: normal;
font-weight: 700;
font-size: 24px;
line-height: 29px;
/* identical to box height */
text-align: center;
}
.slid_right_text {
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 16px;
text-align: center;
opacity: 0.7;
}
}
@media(max-width: 480px){
.deal-wheel {
top: -190px;
min-height: 853px;
}
.spin_conteyn {
--size: clamp(250px, 142vmin, 488px);
}
}
#otp_but {
color: white;
position: relative;
font-size: 15px;
overflow: hidden;
-webkit-transition: ease 0.3s;
transition: ease 0.3s;
}
#otp_but:after {
content: "";
display: block;
width: 30px;
height: 300px;
margin-left: 60px;
background: #fff;
background: -moz-linear-gradient(top, rgba(255,255,255,0.7) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0.7) 100%);
background: -webkit-linear-gradient(top, rgba(255,255,255,0.7) 0%,rgba(255,255,255,1) 50%,rgba(255,255,255,0.7) 100%);
background: linear-gradient(to bottom, rgba(255,255,255,0.7) 0%,rgba(255,255,255,1) 50%,rgba(255,255,255,0.7) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b3ffffff', endColorstr='#b3ffffff',GradientType=0 );
position: absolute;
left: -40px;
top: -150px;
z-index: 1;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
-webkit-transition: all 0.5s;
transition: all 0.5s;
-webkit-animation-name: slideme;
animation-name: slideme;
-webkit-animation-duration: 5s;
animation-duration: 5s;
-webkit-animation-delay: 0.05s;
animation-delay: 0.05s;
-webkit-animation-timing-function: ease-in-out;
animation-timing-function: ease-in-out;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
opacity: 0.4;
}
@-webkit-keyframes slideme {
0% { left: -30px; margin-left: 0px; }
30% { left: 110%; margin-left: 80px; }
100% { left: 110%; margin-left: 80px; }
}
.promo_block._hide {
display: none !important;
}
#privacyHref {
color: #7D93EB !important;
}
.checkbox-box-ywp {
min-width: 16px;
min-height: 16px;
max-width: 16px;
max-height: 16px;
border-radius: 4px;
border: 2px solid #E6B031;
position: relative;
display: inline-block;
margin: 0 6px 0 0;
}
.checkbox-box-ywp::before {
position: absolute;
content: '';
width: 8px;
height: 8px;
border-radius: 2px;
background-color:#E6B031;
top: 2px;
left: 2px;
transition: all ease .4s;
opacity: 0;
}
.labelcheck, .otpravit {
cursor: pointer;
}
#chekboxYWP:checked ~ .labelcheck .checkbox-box-ywp::before {
opacity: 1;
}
#errorText {
margin: 10px 0 0 0;
}
.ticker {
position: relative;
margin: 0 0 0 10px;
width: 30px;
}
.ticker img {
width: 100%;
}
