//cby_font_roboto = document.createElement('link');cby_font_roboto.setAttribute('href', 'https://fonts.googleapis.com/css?family=Roboto');cby_font_roboto.setAttribute('rel', 'stylesheet');document.body.appendChild(cby_font_roboto); //cby_font_roboto = document.createElement('style');cby_font_roboto.setAttribute('type', 'text/css');cby_font_roboto.innerHTML = '@import "https://fonts.googleapis.com/css?family=Roboto";';document.body.appendChild(cby_font_roboto); //WebFontConfig = { google: { families: [ 'Roboto:400,300,500:latin,cyrillic-ext,cyrillic' ] }}; //(function() {var wf = document.createElement('script');wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';wf.type = 'text/javascript';wf.async = 'true';var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(wf, s);})(); var main_button_width = 66; var slide_popup_timeout = 20; var widget_open_time = 10; var slide_popup_height = 105; var popupwindow_time = 45; var is_multiwidget = 0; var multiwidget_department = ''; var popupwindow_time = 45; var is_open = 1; var is_fixed = 1; var cby_widget_position_y = 18; var cby_widget_position_x = 89; var site_id = 44; var main_button_wide_width = 515; var countries_list_height = 165; var office_empty = 0; var near_date = ""; var near_date_name = ""; var near_time = ""; var cby_popup_show_type = "often"; var cby_popup_catch_onaclick = 0; var cby_popup_catch_entry = 0; var cby_popup_catch_exit = 1; var cby_popup_catch_severalsites = 0; var cby_show_chat = 1; var cby_show_widget = 1; var cby_show_main_button_widget = 1; var cby_chat_open = 0; var cby_chat_timeopen = 37; var selected_department = 35; var cby_main_call_content; var cby_main_call_phone; var cby_call_use = false; (function() { if (!Element.prototype.matches) { Element.prototype.matches = Element.prototype.matchesSelector || Element.prototype.webkitMatchesSelector || Element.prototype.mozMatchesSelector || Element.prototype.msMatchesSelector } } )(); function bindReady(handler){var called = false;function ready() {if (called) return;called = true;handler();}if ( document.addEventListener ) {document.addEventListener( "DOMContentLoaded", function(){ready();}, false )} else if ( document.attachEvent ) {if ( document.documentElement.doScroll && window == window.top ) {function tryScroll(){if (called) return;if (!document.body) return;try {document.documentElement.doScroll("left");ready();} catch(e) {setTimeout(tryScroll, 0);}}tryScroll();}document.attachEvent("onreadystatechange", function(){if ( document.readyState === "complete" ) {ready();}})}if (window.addEventListener)window.addEventListener('load', ready, false);else if (window.attachEvent)window.attachEvent('onload', ready);window.onload=ready;}readyList = [];function onReady(handler) {if (!readyList.length) {bindReady(function() {for(var i=0; i 1) timeFraction = 1;var progress = options.timing(timeFraction);options.draw(progress);if (timeFraction < 1) {requestAnimationFrame(animate);}else{if (callback && typeof(callback) === "function") {callback();}}});} function getCookie(name) { var matches = document.cookie.match(new RegExp("(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)")); return matches ? decodeURIComponent(matches[1]) : ""; } function setCookie(name, value, options) { options = options || {}; var expires = options.expires; if (typeof expires == "number" && expires) {var d = new Date();d.setTime(d.getTime() + expires * 1000); expires = options.expires = d; } if (expires && expires.toUTCString) { options.expires = expires.toUTCString(); } value = encodeURIComponent(value); var updatedCookie = name + "=" + value; for (var propName in options) { updatedCookie += "; " + propName; var propValue = options[propName]; if (propValue !== true) { updatedCookie += "=" + propValue; }} document.cookie = updatedCookie; } function genStarRating(el){var cby_stars_block = document.querySelectorAll(el);for (var cby_main_stars_counter in cby_stars_block) {if (!cby_stars_block.hasOwnProperty(cby_main_stars_counter)) continue;cby_stars_block[cby_main_stars_counter].addEventListener('mouseover', function() {this.classList.add("cby_star_hover_on");var element = this;while(element = element.previousSibling){element.classList.add("cby_star_hover_on");} element = this;while(element = element.nextSibling){element.classList.add("cby_star_hover_off");}});cby_stars_block[cby_main_stars_counter].addEventListener('mouseout', function() {for (var cby_dop_stars_counter in cby_stars_block) {if (!cby_stars_block.hasOwnProperty(cby_dop_stars_counter)) continue;cby_stars_block[cby_dop_stars_counter].classList.remove('cby_star_hover_on');cby_stars_block[cby_dop_stars_counter].classList.remove('cby_star_hover_off');}});cby_stars_block[cby_main_stars_counter].addEventListener('click', function() {this.classList.add("cby_star_active");var element = this;while(element = element.previousSibling){element.classList.add("cby_star_active");element.classList.remove("cby_star_selected");}element = this;while(element = element.nextSibling){element.classList.remove("cby_star_active");element.classList.remove("cby_star_selected");}this.classList.add("cby_star_selected");});}} function sendRequest(url, method, data, callback, errback) {var req;if(XMLHttpRequest) {req = new XMLHttpRequest();if('withCredentials' in req) {req.open(method, url, true);/*req.onerror = errback;*/req.onreadystatechange = function() {if (req.readyState === 4) {if (req.status >= 200 && req.status < 400) {if (callback && typeof(callback) === "function"){callback(req.responseText);}} else {if (errback && typeof(errback) === "function"){errback(new Error('Response returned with non-OK status'));}}}};req.send(data);}} else if(XDomainRequest) {req = new XDomainRequest();req.open(method, url);req.onerror = errback;req.onload = function() {if (callback && typeof(callback) === "function"){callback(req.responseText);}};req.send(data);} else {if (errback && typeof(errback) === "function"){errback(new Error('CORS not supported'));}}} function getChar(event) { if(!event) return null; if (event.which == 1) return 'mouse'; if (event.keyCode == 8) return 'bksp'; if (event.keyCode == 116) return 'f5'; if (event.keyCode == 13) return 'enter'; if(event.keyCode > 95 && event.keyCode < 106) return String.fromCharCode(event.keyCode-48); if (event.keyCode < 32) return null; return String.fromCharCode(event.keyCode || event.charCode); } function startcountdown(obj, wrap){ var minutes = +obj.querySelector('#cby_countdown_minutes').innerHTML; var seconds = +obj.querySelector('#cby_countdown_seconds').innerHTML; var milliseconds = +obj.querySelector('#cbh_countdown_milliseconds').innerHTML; if(milliseconds > 0){ milliseconds--; obj.querySelector('#cbh_countdown_milliseconds').innerHTML = ((''+milliseconds).length == 1) ?'0'+milliseconds :milliseconds; } else if(milliseconds == 0 && seconds > 0){ seconds--; obj.querySelector('#cby_countdown_seconds').innerHTML = ((''+seconds).length == 1) ?'0'+seconds :seconds; obj.querySelector('#cbh_countdown_milliseconds').innerHTML = '99'; } else if(milliseconds == 0 && seconds == 0 && minutes > 0){ minutes--; obj.querySelector('#cby_countdown_minutes').innerHTML = ((''+minutes).length == 1) ?'0'+minutes :minutes; obj.querySelector('#cby_countdown_seconds').innerHTML = '60'; obj.querySelector('#cbh_countdown_milliseconds').innerHTML = '99'; } else{ clearInterval(coundownId); if(cby_show_main_button_widget){ document.getElementById('cby_mini_call_button_send').style.display = 'inline-block'; document.getElementById('cby_countdown_container').innerHTML = ''; } cby_main_call_content = wrap.innerHTML; wrap.innerHTML = '
Скажите, вам удалось начать разговор с менеджером?
'; } } function setfocus(obj, event){ pos = obj.value.length; for(var i=0; i s2.length) ? -1 : 0;}); for(var i=0; i < masks.length; i++){ tmp_mask = masks[i].dataset.countryMask.replace(/\D+/g,""); var coincidence = true; for(var j=0; j < tmp_mask.length; j++){ if(tmp_mask[j] !== value[j]){ coincidence = false; break; } } if(coincidence == true){ var code = masks[i].dataset.countryCode; mask = masks[i].dataset.countryMask; if(cby_show_main_button_widget){ var flag = document.querySelector('#cby_country_selected .cby_country_flag'); flag.classList.remove(flag.classList[1]); flag.classList.add(code); } obj.placeholder = mask; break; } } if(coincidence == false){ var code = 'empty'; mask = '+____-___-____'; if(cby_show_main_button_widget){ var flag = document.querySelector('#cby_country_selected .cby_country_flag'); flag.classList.remove(flag.classList[1]); flag.classList.add(code); } obj.placeholder = mask; } pos = 0; var result_value = ''; var value_counter = 0; for(var i=0; i < mask.length; i++){ //проверяем цифра ли в маске if(mask[i] == '_' || mask[i].replace(/\D+/g,"")){ if(value[value_counter]){ result_value = result_value+value[value_counter]; ++value_counter; } else{ result_value = result_value+mask[i]; } } else{ result_value = result_value+mask[i]; } } obj.value = result_value; pos = obj.value.length; for(var i=0; i to_y){ cby_widget.elem.style.top = Math.abs((from_y - to_y) * progress - from_y) + 'px'; } if(from_x > to_x){ cby_widget.elem.style.left = Math.abs((from_x - to_x) * progress - from_x) + 'px'; } /*else if(from == to){ cby_widget.elem.style.bottom = to+'px'; }*/ } }, function(){ if(use_jolting === undefined || (use_jolting && use_jolting === true)){ cby_widget_content.classList.add("cby_jolting"); setTimeout(function(){ cby_widget_content.classList.remove("cby_jolting"); },2000); } }); } } function SendCall(phone_element, multiwidget_call){ if(multiwidget_call == undefined){ multiwidget_call = false; } phone_input = phone_element; mask_input = phone_input.placeholder.replace(/[^_0-9]/gim,''); if(phone_input.value.replace(/\D+/g,"").length == mask_input.length){ phone_input.classList.remove('cby_error'); var char_counter = {}; phone_dig = phone_input.value.replace(/\D+/g,""); for(var i=0; i < phone_dig.length; i++){ if(char_counter[phone_dig[i]] !== undefined) char_counter[phone_dig[i]] = ++char_counter[phone_dig[i]]; else char_counter[phone_dig[i]] = 1; } for (var i in char_counter){ if(char_counter[i] > 5){ phone_input.classList.add('cby_error'); } } if(!phone_input.classList.contains('cby_error')){ phone = phone_input.value.replace(/\D+/g,""); if(phone_input.classList.contains('cby_miniwidget_phone')){ content = document.getElementById('cby_countdown_container'); wrap = document.getElementById('cby_mini_call_content'); } else if(phone_input.classList.contains('cby_popupwindow_phone')){ content = document.getElementById('cby_popupwindow_countdown_container'); wrap = document.getElementById('cby_popupwindow_desc'); } var type = (office_empty) ?'delay_call' :'call'; if(!cby_call_use){ cby_call_use = true; setCookie('cby_last_phone', phone, {expires:3600*24*3,path:'/'}); var department = ''; if(multiwidget_call){ department = multiwidget_department; } else{ department = getCookie('cby_department'); } sendRequest("https://callbackyou.com.ua/widgets/callrequest?id="+site_id+"&phone="+phone+"&type="+type+"&name="+getCookie('cby_username')+"&day="+getCookie('cby_day_date')+"&time="+getCookie('cby_time')+"&source_page="+getCookie('last_ref')+"&department="+department, "GET", "", function(data){ yaCounter36177715.reachGoal('cby_CALL'); try{ ga('send', 'event', 'widget', 'callback'); }catch(e){} if(phone_input.classList.contains('cby_miniwidget_phone')){ document.getElementById('cby_mini_call_button_send').style.display = 'none'; } else if(phone_input.classList.contains('cby_popupwindow_phone')){ document.getElementById('cby_popupwindow_button').style.display = 'none'; } content.style.display = 'inline-block'; content.innerHTML = data; if(type === 'call'){ coundownId = setInterval("startcountdown(content, wrap)", 10); } //cby_call_use = false; }, function(){ content.innerHTML = 'Ошибка. Запрос выполнен некорректно.'; cby_call_use = false; }); } } } else phone_input.classList.add('cby_error'); } function SendTmessage(text_element){ if(text_element.value != ''){ text_element.classList.remove('cby_error'); var cby_message = text_element.value; text_element.value = ''; //if(!isset($data['id_user']) || $data['id_user'] == '' || !isset($data['id_site']) || $data['id_site'] == '' || !isset($data['phone']) || !isset($data['message'])){ var type = (office_empty) ?'delay_call' :'call'; sendRequest("https://callbackyou.com.ua/telegram/send-message?id_site="+site_id+"&id_user="+getCookie('cby_chatid')+"&phone=&message="+encodeURIComponent(cby_message), "GET", "", function(data){ data = JSON.parse(data); var user_message = document.createElement('div'); user_message.className = 'cby_content_block'; user_message.innerHTML = '
'+cby_message+'
'+data.date+'
'; document.getElementById('cby_chat_main_content').appendChild(user_message); document.getElementById('cby_chat_main_content').scrollTop = document.getElementById('cby_chat_main_content').scrollHeight; }, function(){ var error_message = document.createElement('div'); error_message.className = 'cby_content_block'; error_message.innerHTML = '
Ошибка. Сообщение не отправлено.
'; document.getElementById('cby_chat_main_content').appendChild(error_message); document.getElementById('cby_chat_main_content').scrollTop = document.getElementById('cby_chat_main_content').scrollHeight; }); } else text_element.classList.add('cby_error'); } function getChatMessages(user_id, chat_content){ sendRequest("https://callbackyou.com.ua/telegram/get-old-messages?id_site=44&id_user="+user_id, "GET", "", function(data){ try { data = JSON.parse(data); } catch (e) { chat_content.innerHTML ='
Ошибка получения сообщений.
'; } if(data.result){ chat_content.innerHTML = data.data; if(data.new_message){ //нужно проверить закрыт ли чат. если закрыт, то показать плашку количества if(data.num_new_message != 0 && !document.getElementById('cby_chat_wrapper').classList.contains('open')){ document.getElementById('cby_chat_counter_newmessage').style.display = 'block'; var cur_num = parseInt(document.getElementById('cby_chat_counter_block').innerHTML, 10); cur_num += data.num_new_message; document.getElementById('cby_chat_counter_block').innerHTML = cur_num; } chat_content.scrollTop = chat_content.scrollHeight; } } else{ chat_content.innerHTML ='
Ошибка получения сообщений.
'; } }, function(){ chat_content.innerHTML ='
Ошибка получения сообщений.
'; }); } var DragManager = new function() { var dragObject = {}; var self = this; function onMouseDown(e) { e = e || window.event; if (e.which != 1) return; if(e.target.closest('input') || e.target.closest('#cby_chat_main_content')){ return; } var elem = e.target.closest('#cby_widget_wrapper') || e.target.closest('#cby_chat_wrapper'); if (!elem) return; if(e.target.closest('#cby_widget_wrapper')){ document.getElementById('cby_widget_wrapper').style.zIndex = '5001'; if(document.getElementById('cby_chat_wrapper')) document.getElementById('cby_chat_wrapper').style.zIndex = '5000'; } else if(e.target.closest('#cby_chat_wrapper')){ if(document.getElementById('cby_widget_wrapper')) document.getElementById('cby_widget_wrapper').style.zIndex = '5000'; document.getElementById('cby_chat_wrapper').style.zIndex = '5001'; } dragObject.elem = elem; dragObject.name = elem.id; dragObject.downX = e.pageX; dragObject.downY = e.pageY; dragObject.target = e.target; return false; } function onMouseMove(e) { if (!dragObject.elem) return; if (!dragObject.avatar) { var moveX = e.pageX - dragObject.downX; var moveY = e.pageY - dragObject.downY; if (Math.abs(moveX) < 3 && Math.abs(moveY) < 3) { return; } dragObject.avatar = createAvatar(e); if (!dragObject.avatar) {dragObject = {};return;} var coords = getCoords(dragObject.avatar); dragObject.shiftX = dragObject.downX - coords.left; dragObject.shiftY = dragObject.downY - coords.top; } var left = e.pageX - dragObject.shiftX; var top = e.pageY - dragObject.shiftY; var coords = getWindowCoords(); var cby_cur_elem, cby_cur_object = {}; if(dragObject.name == 'cby_widget_wrapper'){ cby_cur_elem = cby_widget.elem; } else if(dragObject.name == 'cby_chat_wrapper'){ cby_cur_elem = cby_widget.chat; } var max_right = coords.left - cby_cur_elem.offsetWidth; var max_bottom = coords.top - cby_cur_elem.offsetHeight; var min_left = coords.left - coords.width; var min_top = coords.top - coords.height; if(is_fixed){ min_top = 0; min_left = 0; max_right = coords.width - cby_cur_elem.offsetWidth; max_bottom = coords.height - cby_cur_elem.offsetHeight; } if(top < max_bottom && top > min_top){ dragObject.avatar.style.top = top + 'px'; cby_cur_object.offset_t = coords.height - (e.pageY - dragObject.shiftY + cby_cur_elem.offsetHeight); } else{ if(top > max_bottom){ dragObject.avatar.style.top = max_bottom + 'px'; cby_cur_object.offset_t = coords.top - (max_bottom + cby_cur_elem.offsetHeight); } if(top < min_top){ dragObject.avatar.style.top = min_top + 'px'; cby_cur_object.offset_t = coords.top - (min_top + cby_cur_elem.offsetHeight); } } if(left < max_right && left > min_left){ dragObject.avatar.style.left = left + 'px'; cby_cur_object.offset_l = coords.left - (e.pageX - dragObject.shiftX + cby_cur_elem.offsetWidth); } else{ if(left > max_right){ dragObject.avatar.style.left = max_right + 'px'; cby_cur_object.offset_l = coords.left - (max_right + cby_cur_elem.offsetWidth); } if(left < min_left){ dragObject.avatar.style.left = min_left + 'px'; cby_cur_object.offset_l = coords.left - (min_left + cby_cur_elem.offsetWidth); } } return false; } function createAvatar(e) { var avatar = dragObject.elem; return avatar; } function onMouseClick(e) { //чтобы работала ссылка как обычная if(e.target.closest('#cby_mini_call_close')){ e.preventDefault(); } if(!e.target.closest == undefined){ if(dragObject.name == 'cby_widget_wrapper'){ if(e.target.closest('#cby_widget_wrapper') && !e.target.closest('#cby_mini_call_text')){ e.preventDefault(); } } } } function onMouseUp(e) { var moveX = e.pageX - dragObject.downX; var moveY = e.pageY - dragObject.downY; if (Math.abs(moveX) < 3 && Math.abs(moveY) < 3) { if(dragObject.name == 'cby_widget_wrapper'){ if(dragObject.target.closest('#cby_main_button') && !cby_widget_main_button.classList.contains("cby_main_button_open")){ cby_widget_main_button.classList.add("cby_main_button_open"); document.getElementById('cby-around-circle-fill').style.display = 'none'; document.getElementById('cby-around-circle-empty').style.display = 'none'; animate({ duration: 500, timing: function(progress) { return Math.pow(progress, 2); }, draw: function(progress) { cby_widget_main_button.style.width = Math.abs(main_button_width - main_button_wide_width) * progress + main_button_width + 'px'; checkposition(cby_widget.elem); } }, function(){ cby_widget_main_button.style.visibility = 'hidden'; cby_widget_main_button.style.display = 'none'; document.getElementById('cby_mini_call_container').style.display = 'block'; //обрабатываем ситуации со слайдером if(document.getElementById('cby_mini_popup').classList.contains("cby_active")){ cby_widget.elem.style.top = parseInt(cby_widget.elem.style.top, 10)-slide_popup_height-11+'px'; } else{ cby_widget.elem.style.top = parseInt(cby_widget.elem.style.top, 10)-11+'px'; } checkposition(cby_widget.elem); }); } if(dragObject.target.closest('#cby_mini_call_close') && cby_widget_main_button.classList.contains("cby_main_button_open")){ var country_select_block = document.getElementById('cby_country_list'); if(country_select_block.classList.contains("cby_active")){ country_select_block.classList.remove("cby_active"); cby_widget.elem.style.top = parseInt(cby_widget.elem.style.top, 10)+countries_list_height + 'px'; } checkposition(cby_widget.elem); var slider = document.getElementById('cby_mini_popup'); if(slider && slider.classList.contains('cby_active')){ //Убираем слайдер и смещаем виджет вниз на нужную высоту чтобы небыло прыжков slider.classList.remove("cby_active"); cby_widget.elem.style.top = parseInt(cby_widget.elem.style.top, 10)+slide_popup_height + 'px'; } cby_widget_main_button.classList.remove("cby_main_button_open"); cby_widget_main_button.style.visibility = 'visible'; cby_widget_main_button.style.display = 'block'; document.getElementById('cby_mini_call_container').style.display = 'none'; cby_widget.elem.style.top = parseInt(cby_widget.elem.style.top, 10)+11+'px'; document.getElementById('cby-around-circle-fill').style.display = 'block'; document.getElementById('cby-around-circle-empty').style.display = 'block'; animate({ duration: 500, timing: function(progress) { return Math.pow(progress, 2); }, draw: function(progress) { cby_widget_main_button.style.width = Math.abs((main_button_wide_width - main_button_width) * progress - main_button_wide_width) + 'px'; } }, function(){ set_position(false, false); }); } if(dragObject.target.closest('#cby_country_selected')){ var country_select_block = document.getElementById('cby_country_list'); if(country_select_block.classList.contains("cby_active")){ country_select_block.classList.remove("cby_active"); cby_widget.elem.style.top = parseInt(cby_widget.elem.style.top, 10)+countries_list_height + 'px'; } else{ country_select_block.classList.add("cby_active"); cby_widget.elem.style.top = parseInt(cby_widget.elem.style.top, 10)-countries_list_height + 'px'; } checkposition(cby_widget.elem); } if(dragObject.target.closest('#cby_mini_popup_closed_icon')){ var cby_slide_popup = dragObject.target.closest('#cby_mini_popup'); cby_slide_popup.classList.remove("cby_active"); cby_widget.elem.style.top = parseInt(cby_widget.elem.style.top, 10)+slide_popup_height + 'px'; } if(cby_country_li = dragObject.target.closest('.cby_country_li')){ var code = cby_country_li.dataset.countryCode; var mask = cby_country_li.dataset.countryMask; var input = document.getElementById('cby_mini_call_phone_input'); var flag = document.querySelector('#cby_country_selected .cby_country_flag'); flag.classList.remove(flag.classList[1]); flag.classList.add(code); var old_mask = input.placeholder; input.placeholder = mask; var value_dig = input.value.replace(/\D+/g,""); var mask_dig = mask.replace(/\D+/g,""); var oldmask_dig = old_mask.replace(/\D+/g,""); if(value_dig == ''){ input.value = mask_dig; } else{ for(var i=0; i < oldmask_dig.length; i++){ if(oldmask_dig[i] == value_dig[0]){ value_dig = value_dig.substr(1, value_dig.lenght); } else{ break; } } value_dig = mask_dig+value_dig; input.value = value_dig; } phonemask(input, null); var country_select_block = document.getElementById('cby_country_list'); if(country_select_block.classList.contains("cby_active")){ country_select_block.classList.remove("cby_active"); cby_widget.elem.style.top = parseInt(cby_widget.elem.style.top, 10)+countries_list_height + 'px'; } checkposition(cby_widget.elem); } if(dragObject.target.closest('#cby_mini_call_button_send')){ if(selected_department != 0){ SendCall(document.getElementById('cby_mini_call_phone_input')); setCookie('cby_department', selected_department, {expires:3600*2,path:'/'}); } else{ cby_main_call_content = document.getElementById('cby_mini_call_content').innerHTML; cby_main_call_phone = document.getElementById('cby_mini_call_content').querySelector('#cby_mini_call_phone_input').value; //var daytime_fields = ''; sendRequest("https://callbackyou.com.ua/widgets/getdepartments?id=44&type=miniwidget", "GET", "", function(data){ document.getElementById('cby_mini_call_content').innerHTML = data; setCookie('cby_department', document.querySelector('#cby_mini_call_name .cby_select').getAttribute('data-department'), {expires:3600*2,path:'/'}); }, function(){}); } } if(dragObject.target.closest('#cby_mini_call_button_send_real')){ document.getElementById('cby_mini_call_content').innerHTML = cby_main_call_content; cby_main_call_phone = document.getElementById('cby_mini_call_content').querySelector('#cby_mini_call_phone_input').value = cby_main_call_phone; SendCall(document.getElementById('cby_mini_call_phone_input')); } if(dragObject.target.closest('#cby_contacted_yes')){ document.getElementById('cby_mini_call_content').innerHTML = '
Оцените работу менеджера:
'; genStarRating('.cby_star'); } if(dragObject.target.closest('#rating_send')){ var phone = phone_input.value.replace(/\D+/g,""); var rating = document.querySelector('.cby_star_selected').getAttribute('data-num'); sendRequest("https://callbackyou.com.ua/widgets/rating?phone="+phone+"&id="+site_id+"&rating="+rating, "GET", "", function(){ document.getElementById('cby_mini_call_content').innerHTML = '
Спасибо за использование нашего сервиса
'; }, function(){ document.getElementById('cby_mini_call_content').innerHTML = '
Ошибка
'; }); //document.getElementById('cby_mini_call_content').innerHTML = '
Расскажите друзьям
'; } if(dragObject.target.closest('#cby_contacted_no')){ content = document.getElementById('cby_countdown_container'); phone = phone_input.value.replace(/\D+/g,""); var type = (office_empty) ?'delay_call' :'call'; sendRequest("https://callbackyou.com.ua/widgets/complaint?phone="+phone+"&id="+site_id, "GET", "", function(){ document.getElementById('cby_mini_call_content').innerHTML = '
Мы отправили жалобу менеджеру
'; }, function(){ document.getElementById('cby_mini_call_content').innerHTML = '
Ошибка
'; }); } if(dragObject.target.closest('#cby_contacted_ok')){ document.getElementById('cby_mini_call_content').innerHTML = cby_main_call_content; document.getElementById('cby_countdown_container').style.display = 'none'; } if(dragObject.target.closest('#cby_mini_call_dialog_name')){//вызов диалога смены имени cby_main_call_content = document.getElementById('cby_mini_call_content').innerHTML; document.getElementById('cby_mini_call_content').innerHTML = '
Представьтесь, и мы будем обращаться по имени
'; } if(dragObject.target.closest('#cby_change_name')){//смена имени value = document.getElementById('cby_mini_name_input').value; setCookie('cby_username', value, {expires:3600*24*30,path:'/'}); new_text = ''; cby_main_call_content = cby_main_call_content.replace(/]id=.?cby_mini_call_message_text.*?<\/div>/gim,new_text); document.getElementById('cby_mini_call_content').innerHTML = cby_main_call_content; } if(dragObject.target.closest('#cby_mini_call_dialog_day')){//диалог выбра времени отложенного звонка cby_main_call_content = document.getElementById('cby_mini_call_content').innerHTML; var daytime_fields = ''; sendRequest("https://callbackyou.com.ua/widgets/getschedule?id=44&type=miniwidget", "GET", "", function(data){ document.getElementById('cby_mini_call_content').innerHTML = data; }, function(){}); } if(dragObject.target.closest('#cby_mini_name_input')){//диалог выбра времени отложенного звонка var cur_elem = dragObject.target.closest('#cby_mini_name_input'); cur_elem.focus(); pos = cur_elem.value.length; cur_elem.setSelectionRange(pos,pos); } if(dropcontainer = dragObject.target.closest('.cby_dropcontainer')){ if(dropcontainer.classList.contains("cby_active")){ dropcontainer.classList.remove("cby_active"); dropcontainer.querySelector('.cby_dropdownselect').style.display = 'none'; li_elem = dragObject.target.closest('li'); if(li_elem){ if(dropcontainer.getAttribute('data-type') == 'day'){ sendRequest("https://callbackyou.com.ua/widgets/getschedule?id=44&type=miniwidget&day="+li_elem.getAttribute('data-day'), "GET", "", function(data){ document.getElementById('cby_mini_call_content').innerHTML = data; }, function(){}); dropcontainer.querySelector('span.cby_day_show').innerHTML = li_elem.innerHTML; dropcontainer.querySelector('span.cby_day_hide').innerHTML = li_elem.getAttribute('data-day'); } else if(dropcontainer.getAttribute('data-type') == 'time'){ dropcontainer.querySelector('span').innerHTML = li_elem.getAttribute('data-time'); } else if(dropcontainer.getAttribute('data-type') == 'department'){ dropcontainer.querySelector('span.cby_department_show').innerHTML = ''+li_elem.innerHTML+''; dropcontainer.querySelector('span.cby_department_hide').innerHTML = li_elem.getAttribute('data-department'); setCookie('cby_department', li_elem.getAttribute('data-department'), {expires:3600*2,path:'/'}); } var elements = dropcontainer.querySelectorAll('li'); for(var i=0; i < elements.length; i++){ elements[i].classList.remove("cby_select"); } li_elem.classList.add("cby_select"); } } else{ dropcontainer.classList.add("cby_active"); dropcontainer.querySelector('.cby_dropdownselect').style.display = 'block'; } } if(dragObject.target.closest('#cby_change_daytime')){ var container = document.getElementById('cby_mini_call_content'); var elements = container.querySelectorAll('.cby_dropcontainer'); for(var i=0; i < elements.length; i++){ if(elements[i].getAttribute('data-type') == 'day'){ setCookie('cby_day', elements[i].querySelector('.cby_select').innerHTML, {expires:3600*2,path:'/'}); setCookie('cby_day_date', elements[i].querySelector('.cby_select').getAttribute('data-day'), {expires:3600*2,path:'/'}); } else if(elements[i].getAttribute('data-type') == 'time'){ setCookie('cby_time', elements[i].querySelector('.cby_select').getAttribute('data-time'), {expires:3600*2,path:'/'}); } } if(getCookie('cby_day') && getCookie('cby_time')){ new_text = ''; cby_main_call_content = cby_main_call_content.replace(/]id=.?cby_mini_call_message_text.*?<\/div>/gim, new_text); } document.getElementById('cby_mini_call_content').innerHTML = cby_main_call_content; } } else if(dragObject.name == 'cby_chat_wrapper'){ if(object = (dragObject.target.closest('#cby_chat_input') || dragObject.target.closest('.cby_chat_wide_input'))){ object.focus(); } if(dragObject.target.closest('#cby_chat_close_image') || dragObject.target.closest('#cby_cancel_button')){ object = document.getElementById('cby_chat_wrapper'); object.classList.remove('open'); var top = object.style.top; var left = object.style.left; var width = object.offsetWidth; var height = object.offsetHeight; animate({ duration: 300, timing: function(progress) { return Math.pow(progress, 2); }, draw: function(progress) { object.style.top = ((height-66) * progress) + parseInt(top) + 'px'; object.style.left = ((width/2-33) * progress) + parseInt(left) + 'px'; object.style.width = width -((width-66)*progress) + 'px'; object.style.height = height -((height-66)*progress) + 'px'; checkposition(object); } }, function(){ object.classList.add('cby_chat_to_round'); }); } if(dragObject.target.closest('#cby_chat_wrapper.cby_chat_to_round')){ try{ ga('send', 'event', 'widget', 'chat'); }catch(e){} cby_open_chat(); } if(dragObject.target.closest('#cby_ok_button')){ //проверить поля. имя и телефон обязательные. Если все ок, отправляем запрос на какой-то адрес и меняем содержимое чата на "ок, спасибо" if(document.getElementById('cby_chat_name').value == ''){ document.getElementById('cby_chat_name').classList.add('cby_error'); } else{ document.getElementById('cby_chat_name').classList.remove('cby_error'); } if(document.getElementById('cby_chat_phone').value == ''){ document.getElementById('cby_chat_phone').classList.add('cby_error'); } /*else{ if(!checkphone(document.getElementById('cby_chat_phone'))){ document.getElementById('cby_chat_phone').classList.add('cby_error'); } else{ document.getElementById('cby_chat_phone').classList.remove('cby_error'); } }*/ if(!document.getElementById('cby_chat_phone').classList.contains('cby_error') && !document.getElementById('cby_chat_name').classList.contains('cby_error')){ sendRequest("https://callbackyou.com.ua/widgets/chatrequest?id=44&name="+encodeURIComponent(document.getElementById('cby_chat_name').value)+"&phone="+document.getElementById('cby_chat_phone').value+"&email="+encodeURIComponent(document.getElementById('cby_chat_email').value)+"&type=chat", "GET", "", function(data){ document.getElementById('cby_chat_main_content').innerHTML = data; document.getElementById('cby_chat_bottom').innerHTML =''; }, function(){ document.getElementById('cby_chat_main_content').innerHTML ='
Ошибка. Попробуйте позже
'; document.getElementById('cby_chat_bottom').innerHTML =''; }); } } if(dragObject.target.closest('#cby_chat_button_send')){ SendTmessage(document.getElementById('cby_chat_input')); } } } dragObject = {}; return; } document.onmousemove = onMouseMove; document.onmouseup = onMouseUp; document.onmousedown = onMouseDown; document.onclick = onMouseClick; }; function checkphone(object){ mask_input = object.placeholder.replace(/[^_0-9]/gim,''); if(object.value.replace(/\D+/g,"").length != mask_input.length){ return false; } else{ var char_counter = {}; phone_dig = object.value.replace(/\D+/g,""); for(var i=0; i < phone_dig.length; i++){ if(char_counter[phone_dig[i]] !== undefined) char_counter[phone_dig[i]] = ++char_counter[phone_dig[i]]; else char_counter[phone_dig[i]] = 1; } for (var i in char_counter){ if(char_counter[i] > 5){ return false; } } } return true; } function cby_open_chat(){ object = document.getElementById('cby_chat_wrapper'); object.classList.remove('cby_chat_to_round'); document.getElementById('cby_chat_counter_newmessage').style.display = 'none'; document.getElementById('cby_chat_counter_block').innerHTML = '0'; var top = object.style.top; var left = object.style.left; var width = object.offsetWidth; var height = object.offsetHeight; animate({ duration: 300, timing: function(progress) { return Math.pow(progress, 2); }, draw: function(progress) { object.style.top = parseInt(top)-((346-66) * progress) + 'px'; object.style.left = parseInt(left)-((333/2-33) * progress) + 'px'; object.style.width = width +((333-width)*progress) + 'px'; object.style.height = height +((346-height)*progress) + 'px'; checkposition(object); } }, function(){ object.classList.add('open'); document.getElementById('cby_chat_main_content').scrollTop = document.getElementById('cby_chat_main_content').scrollHeight; }); } function checkposition(elem){ var cur_right = parseInt(elem.style.left, 10) + elem.offsetWidth; var cur_left = parseInt(elem.style.left, 10); var cur_top = parseInt(elem.style.top, 10); var cur_bottom = parseInt(elem.style.top, 10) + elem.offsetHeight; var coords = getWindowCoords(); var max_right = coords.left; var max_bottom = coords.top; var min_left = coords.left - coords.width; var min_top = coords.top - coords.height; if(cur_right > max_right){ elem.style.left = parseInt(elem.style.left, 10) -(cur_right-max_right) + 'px'; } if(cur_bottom > max_bottom){ elem.style.top = parseInt(elem.style.top, 10) -(cur_bottom-max_bottom) + 'px'; } if(cur_top < min_top){ elem.style.top = parseInt(elem.style.top, 10) +(min_top-cur_top) + 'px'; cby_widget.offset_t = cby_widget.offset_t-(min_top-cur_top); } } function getCoords(elem) { var box = elem.getBoundingClientRect(); if(is_fixed){ return { top: box.top, left: box.left }; } else{ return { top: box.top + pageYOffset, left: box.left + pageXOffset }; } } function getWindowCoords() { //console.log(document.body.scrollHeight+' '+document.documentElement.scrollHeight+' '+document.body.offsetHeight+' '+document.documentElement.offsetHeight+' '+document.body.clientHeight+' '+document.documentElement.clientHeight); var scrollHeight = Math.min(document.body.scrollHeight, document.documentElement.scrollHeight,document.body.offsetHeight, document.documentElement.offsetHeight,document.body.clientHeight, document.documentElement.clientHeight); var scrollWidth = Math.min(document.body.scrollWidth, document.documentElement.scrollWidth,document.body.offsetWidth, document.documentElement.offsetWidth,document.body.clientWidth, document.documentElement.clientWidth); var html_e = document.documentElement; var body = document.body; var scrollTop = html_e.scrollTop || body && body.scrollTop || 0;scrollTop -= html_e.clientTop; var scrollLeft = html_e.scrollLeft || body && body.scrollLeft || 0;scrollLeft -= html_e.clientLeft; if(is_fixed){ return { top: Math.max(scrollHeight,html_e.clientHeight), left: Math.max(scrollWidth,html_e.clientWidth), width: html_e.clientWidth, height: html_e.clientHeight }; } else{ return { top: scrollHeight + scrollTop, left: scrollWidth + scrollLeft, width: scrollWidth, height: scrollHeight }; } } function cleanUp(url) { var url = url.trim(); if(url.search(/^https?\:\/\//) != -1) url = url.match(/^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i, ""); else url = url.match(/^([^\/?#]+)(?:[\/?#]|$)/i, ""); return url[1]; } function show_popup_window() { var cby_window_popup = document.getElementById('cby_popupwindow_content'); var cby_window_popup_wrap = document.getElementById('cby_popupwindow_wrap'); var cur_windowsize = getWindowCoords(); cby_window_popup.style.top = (250+cur_windowsize.height)+'px'; cby_window_popup.style.display = 'block'; cby_window_popup_wrap.style.display = 'block'; animate({ duration: 500, timing: function(progress) { return Math.pow(progress, 2); }, draw: function(progress) { cby_window_popup.style.top = (parseInt(cby_window_popup.style.top, 10) - (parseInt(cby_window_popup.style.top, 10)*progress))+'px'; //cby_widget_main_button.style.width = Math.abs(main_button_width - main_button_wide_width) * progress + main_button_width + 'px'; } }, function(){}); } function cby_openwidget() { document.getElementById('cby_popupwindow_content').style.display = 'block'; document.getElementById('cby_popupwindow_wrap').style.display = 'block'; return; } onReady(function() { if(cby_show_widget && !document.getElementById('cby_widget_wrapper') && !document.getElementById('cby_chat_wrapper')){ //проверяем откуда пришел пользователь. Если не с текущего домена, то пишем в куку. var refer = document.referrer; if (refer != '') { if(cleanUp(refer) != location.hostname){ setCookie('last_ref', cleanUp(refer), {expires:3600*24*30,path:'/'}); } } cby_widget = {}; cby_widget.offset_l = 60; cby_widget.offset_t = 20; //cby_font_roboto = document.createElement('style');cby_font_roboto.setAttribute('type', 'text/css');cby_font_roboto.innerHTML = "@font-face {font-family: 'Roboto';src: url('https://callbackyou.com.ua/fonts/roboto/roboto_light/Roboto-Light-webfont.eot');src: url('https://callbackyou.com.ua/fonts/roboto/roboto_light/Roboto-Light-webfont.eot?#iefix') format('embedded-opentype'),url('https://callbackyou.com.ua/fonts/roboto/roboto_light/Roboto-Light-webfont.woff') format('woff'),url('https://callbackyou.com.ua/fonts/roboto/roboto_light/Roboto-Light-webfont.ttf') format('truetype'),url('https://callbackyou.com.ua/fonts/roboto/roboto_light/Roboto-Light-webfont.svg#robotolight') format('svg');font-weight: normal;font-style: normal;}";document.body.appendChild(cby_font_roboto); cby_css = document.createElement('style');cby_css.setAttribute('rel', 'stylesheet/less');cby_css.innerHTML = '#cby_widget_wrapper *::before,#cby_widget_wrapper *::after,#cby_widget_wrapper *,#cby_widget_wrapper { box-sizing: border-box;}#cby_popupwindow_wrap *::before,#cby_popupwindow_wrap *::after,#cby_popupwindow_wrap *,#cby_popupwindow_wrap { box-sizing: border-box;}#cby_popupwindow_content *::before,#cby_popupwindow_content *::after,#cby_popupwindow_content *,#cby_popupwindow_content { box-sizing: border-box;}#cby_country_list_hidden { display: none;}#cby_widget_wrapper { font-family: sans-serif !important; font-size: 14px; line-height: 1.25; visibility: hidden; position: fixed; z-index: 5001; top: 0; left: 0; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; text-align: left;}#cby_widget_wrapper table td { border: medium none; margin: 0; padding: 0;}#cby_widget_wrapper input { margin: 0; padding: 0;}#cby_widget_wrapper input::-ms-clear { display: none;}#cby_widget_wrapper #cby_widget_content { position: relative;}#cby_widget_wrapper #cby_widget_content #cby-around-circle-fill { -webkit-animation-name: inout; -moz-animation-name: inout; -ms-animation-name: inout; -o-animation-name: inout; animation-name: inout; -webkit-animation-duration: 2300ms; -moz-animation-duration: 2300ms; -ms-animation-duration: 2300ms; -o-animation-duration: 2300ms; animation-duration: 2300ms; -webkit-animation-iteration-count: infinite; -moz-animation-iteration-count: infinite; -ms-animation-iteration-count: infinite; -o-animation-iteration-count: infinite; animation-iteration-count: infinite; -webkit-animation-direction: alternate; -moz-animation-direction: alternate; -ms-animation-direction: alternate; -o-animation-direction: alternate; animation-direction: alternate; -webkit-animation-timing-function: ease-in-out; -moz-animation-timing-function: ease-in-out; -ms-animation-timing-function: ease-in-out; -o-animation-timing-function: ease-in-out; animation-timing-function: ease-in-out; background-color: #e8a372; border: 2px solid transparent; border-radius: 100%; box-shadow: 0 0 2px 0 #e8a372, 0 0 0 0 rgba(0, 0, 0, 0.1) inset !important; height: 100px; left: -17px; opacity: 0.2; position: absolute !important; top: -17px; transition: all 0.5s ease 0s; width: 100px;}#cby_widget_wrapper #cby_widget_content #cby-around-circle-empty { -webkit-animation-name: inout_ring; -moz-animation-name: inout_ring; -ms-animation-name: inout_ring; -o-animation-name: inout_ring; animation-name: inout_ring; -webkit-animation-duration: 2200ms; -moz-animation-duration: 2200ms; -ms-animation-duration: 2200ms; -o-animation-duration: 2200ms; animation-duration: 2200ms; -webkit-animation-iteration-count: infinite; -moz-animation-iteration-count: infinite; -ms-animation-iteration-count: infinite; -o-animation-iteration-count: infinite; animation-iteration-count: infinite; -webkit-animation-direction: normal; -moz-animation-direction: normal; -ms-animation-direction: normal; -o-animation-direction: normal; animation-direction: normal; -webkit-animation-timing-function: ease-in-out; -moz-animation-timing-function: ease-in-out; -ms-animation-timing-function: ease-in-out; -o-animation-timing-function: ease-in-out; animation-timing-function: ease-in-out; background-color: transparent; border: 2px solid #e8a372; border-radius: 100%; height: 160px; left: -46px; opacity: 0.5; position: absolute !important; top: -46px; transform-origin: 50% 50% 0; transition: all 0.5s ease 0s; width: 160px;}#cby_widget_wrapper #cby_mini_call_container { display: none;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_popup { font-family: sans-serif; font-weight: 300; background-color: #803680; border-radius: 8px; font-size: 19px; height: 105px; left: 30px; padding: 10px 20px; position: relative; text-align: center; width: 460px; display: none; opacity: 0; -webkit-transition: all 3s ease-out 0s; -moz-transition: all 3s ease-out 0s; -o-transition: all 3s ease-out 0s; transition: all 3 ease-out 0s; color: #ffffff;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_popup #cby_slider_popup_arrow { bottom: -9px; fill: #803680; left: 60px; position: absolute; width: 14px; height: 9px;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_popup #cby_mini_popup_closed { height: 9px; position: absolute; width: 9px; right: 7px; top: 7px; cursor: pointer;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_popup #cby_mini_popup_closed #cby_mini_popup_closed_icon { display: block; fill: #FFFFFF;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_popup .cby_mini_popup_image { display: inline-block; height: 100%; vertical-align: middle;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_popup .cby_mini_popup_text { display: inline-block; vertical-align: middle; max-width: 325px;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_popup.cby_active { display: block; opacity: 1;}#cby_widget_wrapper #cby_mini_call_container #cby_country_list { display: none; border: 1px solid #ccc; list-stle: outside none none; margin: 0; margin-left: 152px; height: 165px; overflow-x: hidden; overflow-y: scroll; padding: 0; width: 330px; background-color: #fff; box-shadow: 1px -1px 4px rgba(0, 0, 0, 0.2); position: relative; bottom: -11px;}#cby_widget_wrapper #cby_mini_call_container #cby_country_list li { cursor: pointer; display: block; font-size: 14px; line-height: 1pc; padding: 4px 10px; text-align: left;}#cby_widget_wrapper #cby_mini_call_container #cby_country_list li .cby_country_name { color: #333; display: inline-block; line-height: 1pc; margin: 0 6px;}#cby_widget_wrapper #cby_mini_call_container #cby_country_list li .cby_country_code { color: #999; display: inline-block; margin-left: 8px;}#cby_widget_wrapper #cby_mini_call_container #cby_country_list li:hover { background-color: rgba(0, 0, 0, 0.05);}#cby_widget_wrapper #cby_mini_call_container #cby_country_list.cby_active { display: block;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main { width: 515px; height: 66px; border-radius: 33px; background-color: #364d80; position: relative; margin: 11px 7px 0 0;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_close { position: absolute; width: 27px; height: 27px; line-height: 25px; top: -11px; right: -7px; border-radius: 50%; background-color: #364d80; color: #ffffff; padding: 0 4px; border: 3px solid #ffffff;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_close .cby_mini_call_icon_wrapper-cancel { /*vertical-align: middle;*/ width: 13px; height: 13px; position: absolute; top: 4px;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_close .cby_mini_call_icon_wrapper-cancel .cby_mini_call_icon-cancel { fill: #FFFFFF;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content { padding: 0 25px;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content .delay_call_text { font-size: 16px;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content .cby_button { background: #e8a372 none repeat scroll 0 0; border: 0 none; border-radius: 17px; display: inline-block; font-size: 13px; font-weight: 400; position: relative; height: 35px; line-height: 35px; color: #ffffff; margin: 0 0 0 5px; cursor: pointer; padding: 0 15px; box-shadow: 0 2px 0 #e18646; text-transform: uppercase; width: auto;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content .cby_input { background: rgba(0, 0, 0, 0); padding-left: 12px !important; padding-right: 15px !important; border: 1px solid #9a9da1 !important; border-radius: 17px; height: 35px; width: 100%; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; font: 15px Arial; color: #ffffff;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content .cby_input.cby_error { border: 1px solid #ff0000 !important;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content .cby_input.cby_small { width: 110px;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content .cby_dropcontainer { display: inline-block; cursor: pointer; position: relative;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content .cby_dropcontainer span.cby_day_show { line-height: 35px;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content .cby_dropcontainer span.cby_day_hide { display: none;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content .cby_dropcontainer span.cby_department_show { line-height: 35px; display: block; height: 35px; overflow: hidden; width: 150px;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content .cby_dropcontainer span.cby_department_hide { display: none;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content .cby_dropcontainer .cby_caret { border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 7px solid #fff; height: auto !important; left: auto !important; position: absolute; right: 10px; top: 15.5px; width: auto !important;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content .cby_dropcontainer .cby_dropdownselect { display: none; background-color: #fff; border: 1px solid #9a9da1; border-radius: 17px; bottom: -1px; color: #000000; font-size: 12px; left: -1px; list-style-type: none; margin: 0; padding: 12px 0; position: absolute; width: 102%; cursor: auto; max-height: 160px; overflow-y: auto;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content .cby_dropcontainer .cby_dropdownselect li { padding: 5px 0 5px 10px; cursor: pointer;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content .cby_dropcontainer .cby_dropdownselect li:not(.select):hover { background-color: #364d80; color: #ffffff;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content .cby_dropcontainer .cby_dropdownselect .cby_select { color: #364d80;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content #cby_wide_call_message { /*display: inline-block;*/ height: 66px; line-height: 66px; width: 330px; vertical-align: middle; font-size: 13px; color: #ffffff;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content #cby_wide_call_message #cby_mini_call_message_text { line-height: 21px; display: inline-block; vertical-align: middle; margin: 0 0 4px;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content #cby_wide_call_message #cby_manager_rating { line-height: 21px; display: inline-block; vertical-align: middle;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content #cby_wide_call_message #cby_manager_rating .cby_star { background-image: url("https://callbackyou.com.ua/img/star_inactive.png"); display: inline-block; height: 20px; margin: -4px 0; width: 25px; background-repeat: no-repeat; cursor: pointer;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content #cby_wide_call_message #cby_manager_rating .cby_star.cby_star_active { background-image: url("https://callbackyou.com.ua/img/star_active.png");}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content #cby_wide_call_message #cby_manager_rating .cby_star.cby_star_hover_off { background-image: url("https://callbackyou.com.ua/img/star_inactive.png");}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content #cby_wide_call_message #cby_manager_rating .cby_star.cby_star_hover_on { background-image: url("https://callbackyou.com.ua/img/star_active.png");}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content #cby_mini_call_message { /*display: inline-block;*/ /*height: @main_button_height;*/ /*line-height: @main_button_height;*/ width: 144px; vertical-align: middle; font-size: 13px; color: #ffffff;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content #cby_mini_call_message #cby_mini_call_message_text { line-height: 21px; margin: 0 0 4px; display: inline-block; vertical-align: middle;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content #cby_mini_call_message #cby_mini_call_message_text #cby_mini_call_dialog_day { border-bottom: 1px dashed #fff; text-decoration: none; color: #ffffff;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content #cby_mini_call_message #cby_mini_call_message_text #cby_mini_call_dialog_name { border-bottom: 1px dashed #fff; text-decoration: none; color: #ffffff;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content #cby_mini_call_message.cby_wide { width: 320px;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content #cby_mini_call_name { /*display: inline-block;*/ width: 190px; height: 66px; /*line-height: @main_button_height;*/ vertical-align: middle; position: relative;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content #cby_mini_call_name .cby_mini_call_name_inner_container { position: absolute; top: 16px;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content #cby_mini_call_name.cby_wide { width: 250px; color: #ffffff;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content #cby_mini_call_phone { /*display: inline-block;*/ width: 190px; height: 66px; /*line-height: @main_button_height;*/ vertical-align: top; position: relative; vertical-align: middle;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content #cby_mini_call_phone .cby_input { padding-left: 52px !important; padding-right: 10px !important; outline: none; vertical-align: top;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content #cby_mini_call_phone #cby_flags #cby_country_selected { position: absolute; left: 12px; width: 38px; height: 35px; /*top: (@main_button_height/2)-(35/2);*/ cursor: pointer;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content #cby_mini_call_phone #cby_flags #cby_country_selected .cby_country_flag { left: 5px; position: absolute; top: 32%; width: 20px; background-image: url("https://callbackyou.com.ua/widgets/expanding/1/flags.png");}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content #cby_mini_call_phone #cby_flags #cby_country_selected .cby_country_flag .caret { border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid #fff; height: auto !important; left: auto !important; position: absolute !important; right: -10px; top: 40% !important; width: auto !important;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content #cby_mini_call_button { /*display: inline-block;*/ width: 130px; height: 66px; /*line-height: @main_button_height;*/ vertical-align: middle; text-align: center;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content #cby_mini_call_button #cby_mini_call_button_send { /*width: 100%;*/}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content #cby_mini_call_button #cby_countdown_container { color: #45c7ff; font-size: 24px; font-weight: bold; display: none; line-height: 20px; vertical-align: middle; margin-bottom: 4px;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_main #cby_mini_call_content #cby_mini_call_button.cby_small { width: 70px;}#cby_widget_wrapper #cby_mini_call_container #cby_mini_call_text { background: rgba(255, 255, 255, 0.6) none repeat scroll 0 0; color: #393c3f; float: right; font-size: 11px; margin-right: 30px; text-decoration: none; padding: 2px 5px; border-radius: 0 0 5px 5px;}#cby_widget_wrapper #cby_main_button { width: 66px; height: 66px; background-color: #e8a372; border-radius: 33px; cursor: pointer; position: relative; /*.cby_main_button_text_wrapper{ line-height: @main_button_height; }*/}#cby_widget_wrapper #cby_main_button .cby_main_button_content { opacity: 0; transform: perspective(1000px) rotateY(-180deg) scale(0.4); -webkit-transition: all 1s ease-out 0s; -moz-transition: all 1s ease-out 0s; -o-transition: all 1s ease-out 0s; transition: all 1s ease-out 0s;}#cby_widget_wrapper #cby_main_button .cby_main_button_image_phone { height: 66px; width: 66px; position: absolute; top: 0; left: 0;}#cby_widget_wrapper #cby_main_button .cby_main_button { left: 0; position: absolute; text-align: center; top: 0; height: 66px; width: 66px;}#cby_widget_wrapper #cby_main_button .cby_main_button .cby_main_button_text { margin: 17px 0 0;}#cby_widget_wrapper #cby_main_button .cby_main_button .cby_main_button_text,#cby_widget_wrapper #cby_main_button .cby_main_button img { color: #ffffff; font-family: helvetica; font-kerning: normal; font-size: 17px; font-style: normal; display: inline-block; vertical-align: middle; line-height: 17px;}#cby_widget_wrapper .cby_country_flag { width: 20px; background-image: url("https://callbackyou.com.ua/widgets/expanding/1/flags.png"); display: inline-block; background-position: 0 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.ac { background-position: 0 center; height: 10px;}#cby_widget_wrapper .cby_country_flag.ad { background-position: -22px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.ae { background-position: -44px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.af { background-position: -66px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.ag { background-position: -88px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.ai { background-position: -110px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.al { background-position: -132px 0; height: 15px;}#cby_widget_wrapper .cby_country_flag.am { background-position: -154px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.ao { background-position: -176px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.aq { background-position: -198px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.ar { background-position: -220px 0; height: 13px;}#cby_widget_wrapper .cby_country_flag.as { background-position: -242px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.at { background-position: -264px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.au { background-position: -286px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.aw { background-position: -308px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.ax { background-position: -330px 0; height: 13px;}#cby_widget_wrapper .cby_country_flag.az { background-position: -352px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.ba { background-position: -374px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.bb { background-position: -396px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.bd { background-position: -418px 0; height: 12px;}#cby_widget_wrapper .cby_country_flag.be { background-position: -440px 0; height: 15px;}#cby_widget_wrapper .cby_country_flag.bf { background-position: -460px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.bg { background-position: -482px 0; height: 12px;}#cby_widget_wrapper .cby_country_flag.bh { background-position: -504px 0; height: 12px;}#cby_widget_wrapper .cby_country_flag.bi { background-position: -526px 0; height: 12px;}#cby_widget_wrapper .cby_country_flag.bj { background-position: -548px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.bl { background-position: -570px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.bm { background-position: -592px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.bn { background-position: -614px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.bo { background-position: -636px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.bq { background-position: -658px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.br { background-position: -680px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.bs { background-position: -702px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.bt { background-position: -724px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.bv { background-position: -746px 0; height: 15px;}#cby_widget_wrapper .cby_country_flag.bw { background-position: -768px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.by { background-position: -790px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.bz { background-position: -812px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.ca { background-position: -834px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.cc { background-position: -856px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.cd { background-position: -878px 0; height: 15px;}#cby_widget_wrapper .cby_country_flag.cf { background-position: -900px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.cg { background-position: -922px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.ch { background-position: -944px 0; height: 15px;}#cby_widget_wrapper .cby_country_flag.ci { background-position: -961px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.ck { background-position: -983px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.cl { background-position: -1005px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.cm { background-position: -1027px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.cn { background-position: -1049px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.co { background-position: -1071px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.cp { background-position: -1093px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.cr { background-position: -1115px 0; height: 12px;}#cby_widget_wrapper .cby_country_flag.cu { background-position: -1137px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.cv { background-position: -1159px 0; height: 12px;}#cby_widget_wrapper .cby_country_flag.cw { background-position: -1181px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.cx { background-position: -1203px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.cy { background-position: -1225px 0; height: 13px;}#cby_widget_wrapper .cby_country_flag.cz { background-position: -1247px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.de { background-position: -1269px 0; height: 12px;}#cby_widget_wrapper .cby_country_flag.dg { background-position: -1291px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.dj { background-position: -1313px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.dk { background-position: -1335px 0; height: 15px;}#cby_widget_wrapper .cby_country_flag.dm { background-position: -1357px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.do { background-position: -1379px 0; height: 13px;}#cby_widget_wrapper .cby_country_flag.dz { background-position: -1401px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.ea { background-position: -1423px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.ec { background-position: -1445px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.ee { background-position: -1467px 0; height: 13px;}#cby_widget_wrapper .cby_country_flag.eg { background-position: -1489px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.eh { background-position: -1511px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.er { background-position: -1533px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.es { background-position: -1555px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.et { background-position: -1577px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.eu { background-position: -1599px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.fi { background-position: -1621px 0; height: 12px;}#cby_widget_wrapper .cby_country_flag.fj { background-position: -1643px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.fk { background-position: -1665px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.fm { background-position: -1687px 0; height: 11px;}#cby_widget_wrapper .cby_country_flag.fo { background-position: -1709px 0; height: 15px;}#cby_widget_wrapper .cby_country_flag.fr { background-position: -1731px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.ga { background-position: -1753px 0; height: 15px;}#cby_widget_wrapper .cby_country_flag.gb { background-position: -1775px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.gd { background-position: -1797px 0; height: 12px;}#cby_widget_wrapper .cby_country_flag.ge { background-position: -1819px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.gf { background-position: -1841px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.gg { background-position: -1863px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.gh { background-position: -1885px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.gi { background-position: -1907px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.gl { background-position: -1929px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.gm { background-position: -1951px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.gn { background-position: -1973px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.gp { background-position: -1995px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.gq { background-position: -2017px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.gr { background-position: -2039px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.gs { background-position: -2061px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.gt { background-position: -2083px 0; height: 13px;}#cby_widget_wrapper .cby_country_flag.gu { background-position: -2105px 0; height: 11px;}#cby_widget_wrapper .cby_country_flag.gw { background-position: -2127px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.gy { background-position: -2149px 0; height: 12px;}#cby_widget_wrapper .cby_country_flag.hk { background-position: -2171px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.hm { background-position: -2193px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.hn { background-position: -2215px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.hr { background-position: -2237px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.ht { background-position: -2259px 0; height: 12px;}#cby_widget_wrapper .cby_country_flag.hu { background-position: -2281px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.ic { background-position: -2303px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.id { background-position: -2325px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.ie { background-position: -2347px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.il { background-position: -2369px 0; height: 15px;}#cby_widget_wrapper .cby_country_flag.im { background-position: -2391px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.in { background-position: -2413px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.io { background-position: -2435px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.iq { background-position: -2457px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.ir { background-position: -2479px 0; height: 12px;}#cby_widget_wrapper .cby_country_flag.is { background-position: -2501px 0; height: 15px;}#cby_widget_wrapper .cby_country_flag.it { background-position: -2523px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.je { background-position: -2545px 0; height: 12px;}#cby_widget_wrapper .cby_country_flag.jm { background-position: -2567px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.jo { background-position: -2589px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.jp { background-position: -2611px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.ke { background-position: -2633px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.kg { background-position: -2655px 0; height: 12px;}#cby_widget_wrapper .cby_country_flag.kh { background-position: -2677px 0; height: 13px;}#cby_widget_wrapper .cby_country_flag.ki { background-position: -2699px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.km { background-position: -2721px 0; height: 12px;}#cby_widget_wrapper .cby_country_flag.kn { background-position: -2743px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.kp { background-position: -2765px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.kr { background-position: -2787px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.kw { background-position: -2809px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.ky { background-position: -2831px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.kz { background-position: -2853px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.la { background-position: -2875px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.lb { background-position: -2897px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.lc { background-position: -2919px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.li { background-position: -2941px 0; height: 12px;}#cby_widget_wrapper .cby_country_flag.lk { background-position: -2963px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.lr { background-position: -2985px 0; height: 11px;}#cby_widget_wrapper .cby_country_flag.ls { background-position: -3007px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.lt { background-position: -3029px 0; height: 12px;}#cby_widget_wrapper .cby_country_flag.lu { background-position: -3051px 0; height: 12px;}#cby_widget_wrapper .cby_country_flag.lv { background-position: -3073px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.ly { background-position: -3095px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.ma { background-position: -3117px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.mc { background-position: -3139px 0; height: 15px;}#cby_widget_wrapper .cby_country_flag.md { background-position: -3160px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.me { background-position: -3182px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.mf { background-position: -3204px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.mg { background-position: -3226px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.mh { background-position: -3248px 0; height: 11px;}#cby_widget_wrapper .cby_country_flag.mk { background-position: -3270px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.ml { background-position: -3292px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.mm { background-position: -3314px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.mn { background-position: -3336px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.mo { background-position: -3358px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.mp { background-position: -3380px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.mq { background-position: -3402px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.mr { background-position: -3424px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.ms { background-position: -3446px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.mt { background-position: -3468px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.mu { background-position: -3490px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.mv { background-position: -3512px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.mw { background-position: -3534px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.mx { background-position: -3556px 0; height: 12px;}#cby_widget_wrapper .cby_country_flag.my { background-position: -3578px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.mz { background-position: -3600px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.na { background-position: -3622px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.nc { background-position: -3644px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.ne { background-position: -3666px 0; height: 15px;}#cby_widget_wrapper .cby_country_flag.nf { background-position: -3686px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.ng { background-position: -3708px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.ni { background-position: -3730px 0; height: 12px;}#cby_widget_wrapper .cby_country_flag.nl { background-position: -3752px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.no { background-position: -3774px 0; height: 15px;}#cby_widget_wrapper .cby_country_flag.np { background-position: -3796px 0; height: 15px;}#cby_widget_wrapper .cby_country_flag.nr { background-position: -3811px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.nu { background-position: -3833px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.nz { background-position: -3855px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.om { background-position: -3877px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.pa { background-position: -3899px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.pe { background-position: -3921px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.pf { background-position: -3943px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.pg { background-position: -3965px 0; height: 15px;}#cby_widget_wrapper .cby_country_flag.ph { background-position: -3987px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.pk { background-position: -4009px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.pl { background-position: -4031px 0; height: 13px;}#cby_widget_wrapper .cby_country_flag.pm { background-position: -4053px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.pn { background-position: -4075px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.pr { background-position: -4097px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.ps { background-position: -4119px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.pt { background-position: -4141px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.pw { background-position: -4163px 0; height: 13px;}#cby_widget_wrapper .cby_country_flag.py { background-position: -4185px 0; height: 11px;}#cby_widget_wrapper .cby_country_flag.qa { background-position: -4207px 0; height: 8px;}#cby_widget_wrapper .cby_country_flag.re { background-position: -4229px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.ro { background-position: -4251px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.rs { background-position: -4273px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.ru { background-position: -4295px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.rw { background-position: -4317px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.sa { background-position: -4339px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.sb { background-position: -4361px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.sc { background-position: -4383px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.sd { background-position: -4405px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.se { background-position: -4427px 0; height: 13px;}#cby_widget_wrapper .cby_country_flag.sg { background-position: -4449px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.sh { background-position: -4471px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.si { background-position: -4493px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.sj { background-position: -4515px 0; height: 15px;}#cby_widget_wrapper .cby_country_flag.sk { background-position: -4537px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.sl { background-position: -4559px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.sm { background-position: -4581px 0; height: 15px;}#cby_widget_wrapper .cby_country_flag.sn { background-position: -4603px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.so { background-position: -4625px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.sr { background-position: -4647px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.ss { background-position: -4669px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.st { background-position: -4691px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.sv { background-position: -4713px 0; height: 12px;}#cby_widget_wrapper .cby_country_flag.sx { background-position: -4735px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.sy { background-position: -4757px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.sz { background-position: -4779px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.ta { background-position: -4801px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.tc { background-position: -4823px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.td { background-position: -4845px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.tf { background-position: -4867px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.tg { background-position: -4889px 0; height: 13px;}#cby_widget_wrapper .cby_country_flag.th { background-position: -4911px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.tj { background-position: -4933px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.tk { background-position: -4955px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.tl { background-position: -4977px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.tm { background-position: -4999px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.tn { background-position: -5021px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.to { background-position: -5043px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.tr { background-position: -5065px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.tt { background-position: -5087px 0; height: 12px;}#cby_widget_wrapper .cby_country_flag.tv { background-position: -5109px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.tw { background-position: -5131px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.tz { background-position: -5153px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.ua { background-position: -5175px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.ug { background-position: -5197px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.um { background-position: -5219px 0; height: 11px;}#cby_widget_wrapper .cby_country_flag.us { background-position: -5241px 0; height: 11px;}#cby_widget_wrapper .cby_country_flag.uy { background-position: -5263px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.uz { background-position: -5285px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.va { background-position: -5307px 0; height: 15px; width: 15px;}#cby_widget_wrapper .cby_country_flag.vc { background-position: -5324px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.ve { background-position: -5346px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.vg { background-position: -5368px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.vi { background-position: -5390px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.vn { background-position: -5412px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.vu { background-position: -5434px 0; height: 12px;}#cby_widget_wrapper .cby_country_flag.wf { background-position: -5456px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.ws { background-position: -5478px 0; height: 10px;}#cby_widget_wrapper .cby_country_flag.xk { background-position: -5500px 0; height: 15px;}#cby_widget_wrapper .cby_country_flag.ye { background-position: -5522px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.yt { background-position: -5544px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.za { background-position: -5566px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.zm { background-position: -5588px 0; height: 14px;}#cby_widget_wrapper .cby_country_flag.zw { background-position: -5610px 0; height: 10px;}#cby_chat_wrapper *::before,#cby_chat_wrapper *::after,#cby_chat_wrapper *,#cby_chat_wrapper { box-sizing: border-box;}#cby_chat_wrapper.cby_chat_to_round { border-radius: 50%; width: 66px; height: 66px; cursor: pointer;}#cby_chat_wrapper.open { background-color: #ffffff;}#cby_chat_wrapper.open #cby_chat_innerwrapper { display: block;}#cby_chat_wrapper.open #cby_chat_round { display: none;}#cby_chat_wrapper.open #cby_chat_counter_newmessage { display: none;}#cby_chat_wrapper { font-family: sans-serif !important; font-size: 14px; line-height: 1.25; position: fixed; z-index: 5000; top: 0; left: 0; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; background-color: #00c3e5; width: 333px; height: 346px; border-radius: 30px;}#cby_chat_wrapper #cby_chat_innerwrapper { display: none;}#cby_chat_wrapper #cby_chat_counter_newmessage { display: none; position: absolute; width: 27px; height: 27px; line-height: 25px; top: -5px; left: -5px; border-radius: 50%; background-color: #ff0024; color: #FFFFFF; padding: 0 4px; border: 3px solid #ffffff;}#cby_chat_wrapper #cby_chat_counter_newmessage #cby_chat_counter_block { font-weight: bold; height: 21px; left: 0; line-height: 21px; margin: 0; padding: 0; position: absolute; text-align: center; width: 21px;}#cby_chat_wrapper #cby_chat_round { display: block;}#cby_chat_wrapper #cby_chat_round #cby_chat_main_button .cby_main_button_content { position: absolute; left: 0; top: 0; width: 66px; height: 66px; display: block; opacity: 0; transform: perspective(1000px) rotateY(-180deg) scale(0.4); -webkit-transition: all 1s ease-out 0s; -moz-transition: all 1s ease-out 0s; -o-transition: all 1s ease-out 0s; transition: all 1s ease-out 0s; text-align: center;}#cby_chat_wrapper #cby_chat_round #cby_chat_main_button .cby_main_button_content .cby_main_button_text { color: #ffffff; font-family: helvetica; font-kerning: normal; font-size: 17px; font-style: normal; display: inline-block; vertical-align: middle; line-height: 17px; margin: 17px 0 0;}#cby_chat_wrapper #cby_chat_text_container #cby_chat_link { background: rgba(255, 255, 255, 0.6) none repeat scroll 0 0; color: #393c3f; float: right; font-size: 11px; margin-right: 30px; text-decoration: none; padding: 2px 5px; border-radius: 0 0 5px 5px;}#cby_chat_wrapper #cby_chat_header { height: 63px; background-color: #00c3e5; border-radius: 30px 30px 0 0;}#cby_chat_wrapper #cby_chat_header #cby_chat_close_image { cursor: pointer; fill: #ffffff; height: 15px; position: absolute; right: 20px; top: 15px; width: 15px;}#cby_chat_wrapper #cby_chat_header #cby_chat_header_content { line-height: 63px; margin: 0 40px 0 30px; vertical-align: middle;}#cby_chat_wrapper #cby_chat_header #cby_chat_header_content #cby_chat_header_content_text { color: #ffffff; font-size: 14px; margin: 0 0 0 10px; text-transform: uppercase; vertical-align: middle;}#cby_chat_wrapper #cby_chat_header #cby_chat_header_content #cby_chat_icon { width: 33px; height: 29px; vertical-align: middle;}#cby_chat_wrapper #cby_chat_header #cby_chat_header_content #cby_chat_icon .cby_out { fill: #ffffff;}#cby_chat_wrapper #cby_chat_header #cby_chat_header_content #cby_chat_icon .cby_inner { fill: #00c3e5;}#cby_chat_wrapper #cby_chat_header #cby_chat_header_content #cby_chat_icon.cby_active .cby_inner { fill: #2ecc71;}#cby_chat_wrapper #cby_chat_main_content { height: 225px; overflow: auto; border-left: 1px solid #eff0f1; border-right: 1px solid #eff0f1;}#cby_chat_wrapper #cby_chat_main_content .cby_content_block { display: block; float: left; width: 100%;}#cby_chat_wrapper #cby_chat_main_content .cby_content_block .cby_content_message { display: block; margin: 8px 30px; max-width: 70%; font-size: 13px; -moz-user-select: text; -webkit-user-select: text; -ms-user-select: text; user-select: text;}#cby_chat_wrapper #cby_chat_main_content .cby_content_block .cby_content_message .cby_chat_time { font-size: 10px; margin: 5px 0 0;}#cby_chat_wrapper #cby_chat_main_content .cby_content_block .cby_content_message.cby_info { display: block; margin: 10px 30px; max-width: 100%; text-align: left; color: #b7b7b7; font-size: 14px;}#cby_chat_wrapper #cby_chat_main_content .cby_content_block .cby_content_message.cby_info.cby_center { display: block; margin: 10px 30px; max-width: 100%; text-align: center; color: #b7b7b7; background-image: url("https://callbackyou.com.ua/img/dot.png"); background-repeat: repeat-x; background-position: center;}#cby_chat_wrapper #cby_chat_main_content .cby_content_block .cby_content_message.cby_info.cby_center span { background-color: #ffffff; padding: 0 10px;}#cby_chat_wrapper #cby_chat_main_content .cby_content_block .cby_content_message.cby_left { background-color: #eff0f1; border-radius: 0 20px 20px; float: left; padding: 12px 15px; color: #000000;}#cby_chat_wrapper #cby_chat_main_content .cby_content_block .cby_content_message.cby_right { float: right; background-color: #00c3e5; border-radius: 20px 0 20px 20px; padding: 12px 15px; color: #ffffff;}#cby_chat_wrapper #cby_chat_main_content .cby_content_block .cby_content_wide_message { margin: 10px 30px;}#cby_chat_wrapper #cby_chat_main_content .cby_content_block .cby_content_wide_message .cby_chat_wide_input { border: 1px solid #9a9da1; border-radius: 15px; height: 34px; padding: 0 30px; width: 100%;}#cby_chat_wrapper #cby_chat_main_content .cby_content_block .cby_content_wide_message .cby_chat_wide_input.cby_error { border: 1px solid red;}#cby_chat_wrapper #cby_chat_bottom.cby_right { text-align: right;}#cby_chat_wrapper #cby_chat_bottom { height: 58px; padding: 10px 15px 0; border-radius: 0 0 30px 30px; border: 1px solid #eff0f1; border-top: none;}#cby_chat_wrapper #cby_chat_bottom #cby_chat_input { line-height: 30px; height: 30px; vertical-align: middle; width: 240px; border: 0 none; color: #000000; outline: medium none;}#cby_chat_wrapper #cby_chat_bottom #cby_chat_input.cby_error { border: 1px solid red;}#cby_chat_wrapper #cby_chat_bottom #cby_chat_button_send { width: 34px; height: 32px; border: 0; border-radius: 50%; background-color: #00c3e5; box-shadow: 0 2px 0 #009ab5; vertical-align: middle; cursor: pointer;}#cby_chat_wrapper #cby_chat_bottom #cby_chat_button_send #cby_telegram_icon { margin: 6px 0 0; width: 20px; height: 17px;}#cby_chat_wrapper #cby_chat_bottom #cby_cancel_button { color: #00c3e5; cursor: pointer; font-size: 14px; text-transform: uppercase; vertical-align: middle; margin: 0 15px;}#cby_chat_wrapper #cby_chat_bottom #cby_ok_button { background-color: #00c3e5; border-radius: 15px; box-shadow: 0 2px 0 #009ab5; color: #ffffff; display: inline-block; font-size: 14px; height: 32px; line-height: 18px; padding: 8px 17px; text-transform: uppercase; vertical-align: middle; cursor: pointer; margin: 0 20px 0 0;}#cby_chat_wrapper #cby_chat_bottom.line { border: 1px solid #eff0f1; height: 58px;}#cby_popupwindow_wrap { background-color: #000000; height: 100%; left: 0; opacity: 0.5; position: fixed; top: 0; width: 100%; z-index: 5000; display: none;}#cby_popupwindow_content { font-family: sans-serif !important; background-color: #e3e3e3; display: none; right: 0; left: 0; margin: auto; min-height: 10em; width: 640px; height: 250px; z-index: 5000; position: fixed; top: 0; bottom: 0; border-radius: 10px; padding: 25px;}#cby_popupwindow_content #cby_popupwindow_arrow { bottom: -9px; fill: #e3e3e3; left: 50px; position: absolute; width: 14px; height: 9px;}#cby_popupwindow_content #cby_popupwindow_close { fill: #9a9da1; position: absolute; right: 10px; top: 10px; width: 17px; height: 17px; cursor: pointer;}#cby_popupwindow_content #cby_popupwindow_turn_wrapper { position: absolute; right: 43px; top: 7px; cursor: pointer; width: 14px; height: 17px;}#cby_popupwindow_content #cby_popupwindow_turn_wrapper #cby_popupwindow_turn { fill: #9a9da1; width: 14px; vertical-align: bottom;}#cby_popupwindow_content #cby_popupwindow_desc { display: inline-block; position: relative; vertical-align: middle; width: 460px; text-align: center;}#cby_popupwindow_content #cby_popupwindow_desc #cby_popupwindow_text { font-size: 25px; font-weight: 200; text-align: center; color: #000000; margin: 0 0 45px; line-height: 28px;}#cby_popupwindow_content #cby_popupwindow_desc #cby_popupwindow_bicontainer { height: 44px; width: 100%;}#cby_popupwindow_content #cby_popupwindow_desc #cby_popupwindow_bicontainer #cby_popupwindow_phone { background-color: #e3e3e3; border: 1px solid #bebebe; border-radius: 10px; color: #000000; font-size: 18px; padding: 8px 0; text-align: center; width: 225px; left: 5px; position: absolute; height: 43px;}#cby_popupwindow_content #cby_popupwindow_desc #cby_popupwindow_bicontainer #cby_popupwindow_phone.cby_error { border-color: red;}#cby_popupwindow_content #cby_popupwindow_desc #cby_popupwindow_bicontainer #cby_popupwindow_button { background-color: #8c8f8b; border-radius: 10px; color: #ffffff; font-size: 18px; height: 41px; line-height: 41px; position: absolute; right: 5px; text-align: center; text-transform: uppercase; width: 211px; cursor: pointer; box-shadow: 0 2px 0 #727671;}#cby_popupwindow_content #cby_popupwindow_desc #cby_popupwindow_bicontainer #cby_popupwindow_countdown_container { color: #000000; font-size: 40px; height: 41px; line-height: 41px; position: absolute; right: 5px; text-align: center; text-transform: uppercase; width: 211px; display: none;}#cby_popupwindow_content #cby_popupwindow_desc #cby_mini_call_message_text { font-size: 25px; font-weight: 200; text-align: center; color: #000000;}#cby_popupwindow_content #cby_popupwindow_desc #cby_mini_call_button { text-align: center;}#cby_popupwindow_content #cby_popupwindow_desc #cby_mini_call_button .cby_button { background-color: #8c8f8b; border-radius: 10px; color: #ffffff; font-size: 18px; height: 41px; line-height: 41px; text-align: center; text-transform: uppercase; width: 211px; cursor: pointer; border: none; margin: 5px; box-shadow: 0 2px 0 #727671;}#cby_popupwindow_content #cby_popupwindow_desc #cby_manager_rating { line-height: 21px; display: block; vertical-align: middle; margin: 15px;}#cby_popupwindow_content #cby_popupwindow_desc #cby_manager_rating .cby_star { background-image: url("https://callbackyou.com.ua/img/star_inactive.png"); display: inline-block; height: 20px; margin: -4px 0; width: 25px; background-repeat: no-repeat; cursor: pointer;}#cby_popupwindow_content #cby_popupwindow_desc #cby_manager_rating .cby_star.cby_star_active { background-image: url("https://callbackyou.com.ua/img/star_active.png");}#cby_popupwindow_content #cby_popupwindow_desc #cby_manager_rating .cby_star.cby_star_hover_off { background-image: url("https://callbackyou.com.ua/img/star_inactive.png");}#cby_popupwindow_content #cby_popupwindow_desc #cby_manager_rating .cby_star.cby_star_hover_on { background-image: url("https://callbackyou.com.ua/img/star_active.png");}#cby_popupwindow_content #cby_popupwindow_desc #cby_wide_call_message { font-size: 25px; font-weight: 200; text-align: center; color: #000000;}#cby_popupwindow_content #cby_popupwindow_desc #rating_send.cby_button { background-color: #8c8f8b; border-radius: 10px; color: #ffffff; font-size: 18px; height: 41px; line-height: 41px; text-align: center; text-transform: uppercase; width: 211px; cursor: pointer; border: none; margin: 15px; box-shadow: 0 2px 0 #727671;}#cby_popupwindow_content #cby_popupwindow_desc.cby_wide { width: 100%;}#cby_popupwindow_content #cby_popupwindow_desc.cby_wide #cby_popupwindow_text { margin: 45px 0 0;}#cby_popupwindow_content #cby_popupwindow_desc.cby_wide #cby_wide_call_message { padding: 40px 0 0 0;}#cby_popupwindow_content #cby_popupwindow_desc.cby_wide #cby_popupwindow_bicontainer #cby_popupwindow_phone { left: 75px; position: absolute; top: 130px;}#cby_popupwindow_content #cby_popupwindow_desc.cby_wide #cby_popupwindow_bicontainer #cby_popupwindow_button { right: 75px; top: 130px;}#cby_popupwindow_content #cby_popupwindow_desc.cby_wide #cby_popupwindow_bicontainer #cby_popupwindow_countdown_container { right: 75px; top: 130px;}#cby_popupwindow_content #cby_popupwindow_image { display: inline-block; margin: 0; padding: 40px 0 0; vertical-align: bottom;}.jolting_keyframes 0% { top: 0;}.jolting_keyframes 10% { top: -50px;}.jolting_keyframes 20% { top: -50px;}.jolting_keyframes 30% { top: 10px;}.jolting_keyframes 40% { top: -10px;}.jolting_keyframes 50% { top: 10px;}.jolting_keyframes 60% { top: -10px;}.jolting_keyframes 70% { top: 0;}.jolting_keyframes 100% { top: 0;}.slideup_keyframes 0% { top: 100px; opacity: 0;}.slideup_keyframes 100% { top: 0; opacity: 1;}.inout_keyframes 0%,.inout_keyframes 100% { transform: rotate(0deg) scale(0.6) skew(1deg);}.inout_keyframes 50% { transform: rotate(0deg) scale(1) skew(1deg);}.inout_ring_keyframes 0% { opacity: 0.01; transform: rotate(0deg) scale(0.5) skew(1deg);}.inout_ring_keyframes 30% { opacity: 0.5; transform: rotate(0deg) scale(0.7) skew(1deg);}.inout_ring_keyframes 100% { opacity: 0.01; transform: rotate(0deg) scale(1) skew(1deg);}@-webkit-keyframes jolting { 0% { top: 0; } 10% { top: -50px; } 20% { top: -50px; } 30% { top: 10px; } 40% { top: -10px; } 50% { top: 10px; } 60% { top: -10px; } 70% { top: 0; } 100% { top: 0; }}@-moz-keyframes jolting { 0% { top: 0; } 10% { top: -50px; } 20% { top: -50px; } 30% { top: 10px; } 40% { top: -10px; } 50% { top: 10px; } 60% { top: -10px; } 70% { top: 0; } 100% { top: 0; }}@-ms-keyframes jolting { 0% { top: 0; } 10% { top: -50px; } 20% { top: -50px; } 30% { top: 10px; } 40% { top: -10px; } 50% { top: 10px; } 60% { top: -10px; } 70% { top: 0; } 100% { top: 0; }}@-o-keyframes jolting { 0% { top: 0; } 10% { top: -50px; } 20% { top: -50px; } 30% { top: 10px; } 40% { top: -10px; } 50% { top: 10px; } 60% { top: -10px; } 70% { top: 0; } 100% { top: 0; }}@keyframes jolting { 0% { top: 0; } 10% { top: -50px; } 20% { top: -50px; } 30% { top: 10px; } 40% { top: -10px; } 50% { top: 10px; } 60% { top: -10px; } 70% { top: 0; } 100% { top: 0; }}@-webkit-keyframes slideup { 0% { top: 100px; opacity: 0; } 100% { top: 0; opacity: 1; }}@-moz-keyframes slideup { 0% { top: 100px; opacity: 0; } 100% { top: 0; opacity: 1; }}@-ms-keyframes slideup { 0% { top: 100px; opacity: 0; } 100% { top: 0; opacity: 1; }}@-o-keyframes slideup { 0% { top: 100px; opacity: 0; } 100% { top: 0; opacity: 1; }}@keyframes slideup { 0% { top: 100px; opacity: 0; } 100% { top: 0; opacity: 1; }}@-webkit-keyframes inout { 0%, 100% { transform: rotate(0deg) scale(0.6) skew(1deg); } 50% { transform: rotate(0deg) scale(1) skew(1deg); }}@-moz-keyframes inout { 0%, 100% { transform: rotate(0deg) scale(0.6) skew(1deg); } 50% { transform: rotate(0deg) scale(1) skew(1deg); }}@-ms-keyframes inout { 0%, 100% { transform: rotate(0deg) scale(0.6) skew(1deg); } 50% { transform: rotate(0deg) scale(1) skew(1deg); }}@-o-keyframes inout { 0%, 100% { transform: rotate(0deg) scale(0.6) skew(1deg); } 50% { transform: rotate(0deg) scale(1) skew(1deg); }}@keyframes inout { 0%, 100% { transform: rotate(0deg) scale(0.6) skew(1deg); } 50% { transform: rotate(0deg) scale(1) skew(1deg); }}@-webkit-keyframes inout_ring { 0% { opacity: 0.01; transform: rotate(0deg) scale(0.5) skew(1deg); } 30% { opacity: 0.5; transform: rotate(0deg) scale(0.7) skew(1deg); } 100% { opacity: 0.01; transform: rotate(0deg) scale(1) skew(1deg); }}@-moz-keyframes inout_ring { 0% { opacity: 0.01; transform: rotate(0deg) scale(0.5) skew(1deg); } 30% { opacity: 0.5; transform: rotate(0deg) scale(0.7) skew(1deg); } 100% { opacity: 0.01; transform: rotate(0deg) scale(1) skew(1deg); }}@-ms-keyframes inout_ring { 0% { opacity: 0.01; transform: rotate(0deg) scale(0.5) skew(1deg); } 30% { opacity: 0.5; transform: rotate(0deg) scale(0.7) skew(1deg); } 100% { opacity: 0.01; transform: rotate(0deg) scale(1) skew(1deg); }}@-o-keyframes inout_ring { 0% { opacity: 0.01; transform: rotate(0deg) scale(0.5) skew(1deg); } 30% { opacity: 0.5; transform: rotate(0deg) scale(0.7) skew(1deg); } 100% { opacity: 0.01; transform: rotate(0deg) scale(1) skew(1deg); }}@keyframes inout_ring { 0% { opacity: 0.01; transform: rotate(0deg) scale(0.5) skew(1deg); } 30% { opacity: 0.5; transform: rotate(0deg) scale(0.7) skew(1deg); } 100% { opacity: 0.01; transform: rotate(0deg) scale(1) skew(1deg); }}.cby_jolting { -webkit-animation-name: jolting; -moz-animation-name: jolting; -ms-animation-name: jolting; -o-animation-name: jolting; animation-name: jolting; -webkit-animation-duration: 1000ms; -moz-animation-duration: 1000ms; -ms-animation-duration: 1000ms; -o-animation-duration: 1000ms; animation-duration: 1000ms; -webkit-animation-iteration-count: 2; -moz-animation-iteration-count: 2; -ms-animation-iteration-count: 2; -o-animation-iteration-count: 2; animation-iteration-count: 2; -webkit-animation-direction: normal; -moz-animation-direction: normal; -ms-animation-direction: normal; -o-animation-direction: normal; animation-direction: normal; -webkit-animation-timing-function: ease-in; -moz-animation-timing-function: ease-in; -ms-animation-timing-function: ease-in; -o-animation-timing-function: ease-in; animation-timing-function: ease-in;}.cby_slideup { -webkit-animation-name: slideup; -moz-animation-name: slideup; -ms-animation-name: slideup; -o-animation-name: slideup; animation-name: slideup; -webkit-animation-duration: 1000ms; -moz-animation-duration: 1000ms; -ms-animation-duration: 1000ms; -o-animation-duration: 1000ms; animation-duration: 1000ms; -webkit-animation-iteration-count: 1; -moz-animation-iteration-count: 1; -ms-animation-iteration-count: 1; -o-animation-iteration-count: 1; animation-iteration-count: 1; -webkit-animation-direction: normal; -moz-animation-direction: normal; -ms-animation-direction: normal; -o-animation-direction: normal; animation-direction: normal; -webkit-animation-timing-function: ease-in; -moz-animation-timing-function: ease-in; -ms-animation-timing-function: ease-in; -o-animation-timing-function: ease-in; animation-timing-function: ease-in;}.cby_rotate_icon { opacity: 1 !important; transform: perspective(1000px) rotateY(0deg) scale(1) !important;}';document.body.appendChild(cby_css); cby_country_list = document.createElement('div');cby_country_list.id = 'cby_country_list_hidden';cby_country_list.innerHTML = '
  • Россия+7
  • Соединенные Штаты+1
  • Австралия+61
  • Австрия+43
  • Азербайджан+994
  • Албания+355
  • Алжир+213
  • Американское Самоа+1684
  • Ангилья+1264
  • Ангола+244
  • Андорра+376
  • Антарктика+6721
  • Антигуа и Барбуда+1268
  • Арабские Эмираты+971
  • Аргентина+54
  • Армения+374
  • Аруба+297
  • Афганистан+93
  • Багамские Острова+1242
  • Бангладеш+880
  • Барбадос+1246
  • Бахрейн+973
  • Белиз+501
  • Белоруссия+375
  • Бельгия+32
  • Бенин+229
  • Бермудские острова+1441
  • Бирма (Мьянма)+95
  • Болгария+359
  • Боливия+591
  • Босния и Герцеговина+387
  • Ботсвана+267
  • Бразилия+55
  • Бруней-Даруссалам+673
  • Буркина Фасо+226
  • Бурунди+257
  • Бутан+975
  • Вануату+678
  • Ватикан+396698
  • Великобритания+44
  • Венгрия+36
  • Венесуэла+58
  • Виргинские острова (Америка)+1340
  • Виргинские острова (Британия)+1284
  • Восточный Тимор+670
  • Вьетнам+84
  • Габон+241
  • Гаити+509
  • Гайана+592
  • Гамбия+220
  • Гана+233
  • Гваделупа+590
  • Гватемала+502
  • Гвинея+224
  • Гвинея-Бисау+245
  • Германия+49
  • Гибралтар+350
  • Гондурас+504
  • Гонконг+852
  • Гренада+1473
  • Гренландия+299
  • Греция+30
  • Грузия+995
  • Гуам+1671
  • Дания+45
  • Джибути+253
  • Диего-Гарсия+246
  • Доминика+1767
  • Доминиканская Республика+1809
  • Египет+20
  • Замбия+260
  • Зимбабве+263
  • Израиль+972
  • Индия+91
  • Индонезия+62
  • Иордания+962
  • Ирак+964
  • Иран+98
  • Ирландия+353
  • Исландия+354
  • Испания+34
  • Италия+39
  • Йемен+967
  • Кабо-Верде+238
  • Казахстан+77
  • Каймановы острова+1345
  • Камбоджа+855
  • Камерун+237
  • Канада+1
  • Карибские Нидерланды+599
  • Катар+974
  • Кения+254
  • Кипр+357
  • Киргизия+996
  • Кирибати+686
  • Китай+86
  • Колумбия+57
  • Коморы+269
  • Конго (Браззавиль)+242
  • Конго (Киншаса)+243
  • Корейская НДР+850
  • Коста-Рика+506
  • Кот-д’Ивуар+225
  • Куба+53
  • Кувейт+965
  • Кюрасао+599
  • Лаос+856
  • Латвия+371
  • Лесото+266
  • Либерия+231
  • Ливан+961
  • Ливия+218
  • Литва+370
  • Лихтенштейн+423
  • Люксембург+352
  • Маврикий+230
  • Мавритания+222
  • Мадагаскар+261
  • Майотта+262
  • Макао+853
  • Малави+265
  • Малайзия+60
  • Мали+223
  • Мальдивские острова+960
  • Мальта+356
  • Марокко+212
  • Мартиника+596
  • Маршалловы Острова+692
  • Мексика+52
  • Мозамбик+258
  • Молдова+373
  • Монако+377
  • Монголия+976
  • Монтсеррат+1664
  • Намибия+264
  • Науру+674
  • Непал+977
  • Нигер+227
  • Нигерия+234
  • Нидерланды+31
  • Никарагуа+505
  • Ниуэ+683
  • Новая Зеландия+64
  • Новая Каледония+687
  • Норвегия+47
  • Норфолк (остров)+6723
  • Оман+968
  • Остров Вознесения+247
  • Острова Кука+682
  • Пакистан+92
  • Палау+680
  • Палестина+970
  • Панама+507
  • Папуа-Новая Гвинея+675
  • Парагвай+595
  • Перу+51
  • Польша+48
  • Португалия+351
  • Респ. Корея+82
  • Респ. Македония+389
  • Реюньон+262
  • Россия+7
  • Руанда+250
  • Румыния+40
  • Сальвадор+503
  • Самоа+685
  • Сан-Марино+378
  • Сан-Томе и Принсипи+239
  • Саудовская Аравия+966
  • Свазиленд+268
  • Северные Марианские острова+1670
  • Сейшелы+248
  • Сен-Пьер и Микелон+508
  • Сенегал+221
  • Сент-Винсент и Гренадины+1784
  • Сент-Китс и Невис+1869
  • Сент-Люсия+1758
  • Сербия+381
  • Сингапур+65
  • Синт-Маартен+1721
  • Сирийская арабская республика+963
  • Словакия+421
  • Словения+386
  • Соединенные Штаты+1
  • Соломоновы Острова+677
  • Сомали+252
  • Судан+249
  • Суринам+597
  • Сьерра-Леоне+232
  • Таджикистан+992
  • Таиланд+66
  • Тайвань+886
  • Танзания+255
  • Того+228
  • Токелау+690
  • Тонга+676
  • Тринидад и Тобаго+1868
  • Тувалу+688
  • Тунис+216
  • Туркменистан+993
  • Турция+90
  • Тёркс и Кайкос+1649
  • Уганда+256
  • Узбекистан+998
  • Украина+380
  • Уоллис и Футуна+681
  • Уругвай+598
  • Ф.Ш. Микронезии+691
  • Фарерские острова+298
  • Фиджи+679
  • Филиппины+63
  • Финляндия+358
  • Фолклендские острова+500
  • Фр. Гвиана+594
  • Франция+33
  • Французская Полинезия (Таити)+689
  • Хорватия+385
  • Центральноафриканская Республика+236
  • Чад+235
  • Черногория+382
  • Чехия+420
  • Чили+56
  • Швейцария+41
  • Швеция+46
  • Шри-Ланка+94
  • Эквадор+593
  • Экваториальная Гвинея+240
  • Эритрея+291
  • Эстония+372
  • Эфиопия+251
  • Южно-Африканская Респ.+27
  • Южный Судан+211
  • Ямайка+1876
  • Япония+81
  • ';document.body.appendChild(cby_country_list); if(cby_show_main_button_widget){ cby_widget.elem = document.createElement('div');cby_widget.elem.id = 'cby_widget_wrapper';cby_widget.elem.innerHTML = '
    callback you
    Закажите обратный звонок сейчас! Скидка 30% на все тарифы, если мы не ответим вам за 30 секунд»
    • Россия+7
    • Соединенные Штаты+1
    • Австралия+61
    • Австрия+43
    • Азербайджан+994
    • Албания+355
    • Алжир+213
    • Американское Самоа+1684
    • Ангилья+1264
    • Ангола+244
    • Андорра+376
    • Антарктика+6721
    • Антигуа и Барбуда+1268
    • Арабские Эмираты+971
    • Аргентина+54
    • Армения+374
    • Аруба+297
    • Афганистан+93
    • Багамские Острова+1242
    • Бангладеш+880
    • Барбадос+1246
    • Бахрейн+973
    • Белиз+501
    • Белоруссия+375
    • Бельгия+32
    • Бенин+229
    • Бермудские острова+1441
    • Бирма (Мьянма)+95
    • Болгария+359
    • Боливия+591
    • Босния и Герцеговина+387
    • Ботсвана+267
    • Бразилия+55
    • Бруней-Даруссалам+673
    • Буркина Фасо+226
    • Бурунди+257
    • Бутан+975
    • Вануату+678
    • Ватикан+396698
    • Великобритания+44
    • Венгрия+36
    • Венесуэла+58
    • Виргинские острова (Америка)+1340
    • Виргинские острова (Британия)+1284
    • Восточный Тимор+670
    • Вьетнам+84
    • Габон+241
    • Гаити+509
    • Гайана+592
    • Гамбия+220
    • Гана+233
    • Гваделупа+590
    • Гватемала+502
    • Гвинея+224
    • Гвинея-Бисау+245
    • Германия+49
    • Гибралтар+350
    • Гондурас+504
    • Гонконг+852
    • Гренада+1473
    • Гренландия+299
    • Греция+30
    • Грузия+995
    • Гуам+1671
    • Дания+45
    • Джибути+253
    • Диего-Гарсия+246
    • Доминика+1767
    • Доминиканская Республика+1809
    • Египет+20
    • Замбия+260
    • Зимбабве+263
    • Израиль+972
    • Индия+91
    • Индонезия+62
    • Иордания+962
    • Ирак+964
    • Иран+98
    • Ирландия+353
    • Исландия+354
    • Испания+34
    • Италия+39
    • Йемен+967
    • Кабо-Верде+238
    • Казахстан+77
    • Каймановы острова+1345
    • Камбоджа+855
    • Камерун+237
    • Канада+1
    • Карибские Нидерланды+599
    • Катар+974
    • Кения+254
    • Кипр+357
    • Киргизия+996
    • Кирибати+686
    • Китай+86
    • Колумбия+57
    • Коморы+269
    • Конго (Браззавиль)+242
    • Конго (Киншаса)+243
    • Корейская НДР+850
    • Коста-Рика+506
    • Кот-д’Ивуар+225
    • Куба+53
    • Кувейт+965
    • Кюрасао+599
    • Лаос+856
    • Латвия+371
    • Лесото+266
    • Либерия+231
    • Ливан+961
    • Ливия+218
    • Литва+370
    • Лихтенштейн+423
    • Люксембург+352
    • Маврикий+230
    • Мавритания+222
    • Мадагаскар+261
    • Майотта+262
    • Макао+853
    • Малави+265
    • Малайзия+60
    • Мали+223
    • Мальдивские острова+960
    • Мальта+356
    • Марокко+212
    • Мартиника+596
    • Маршалловы Острова+692
    • Мексика+52
    • Мозамбик+258
    • Молдова+373
    • Монако+377
    • Монголия+976
    • Монтсеррат+1664
    • Намибия+264
    • Науру+674
    • Непал+977
    • Нигер+227
    • Нигерия+234
    • Нидерланды+31
    • Никарагуа+505
    • Ниуэ+683
    • Новая Зеландия+64
    • Новая Каледония+687
    • Норвегия+47
    • Норфолк (остров)+6723
    • Оман+968
    • Остров Вознесения+247
    • Острова Кука+682
    • Пакистан+92
    • Палау+680
    • Палестина+970
    • Панама+507
    • Папуа-Новая Гвинея+675
    • Парагвай+595
    • Перу+51
    • Польша+48
    • Португалия+351
    • Респ. Корея+82
    • Респ. Македония+389
    • Реюньон+262
    • Россия+7
    • Руанда+250
    • Румыния+40
    • Сальвадор+503
    • Самоа+685
    • Сан-Марино+378
    • Сан-Томе и Принсипи+239
    • Саудовская Аравия+966
    • Свазиленд+268
    • Северные Марианские острова+1670
    • Сейшелы+248
    • Сен-Пьер и Микелон+508
    • Сенегал+221
    • Сент-Винсент и Гренадины+1784
    • Сент-Китс и Невис+1869
    • Сент-Люсия+1758
    • Сербия+381
    • Сингапур+65
    • Синт-Маартен+1721
    • Сирийская арабская республика+963
    • Словакия+421
    • Словения+386
    • Соединенные Штаты+1
    • Соломоновы Острова+677
    • Сомали+252
    • Судан+249
    • Суринам+597
    • Сьерра-Леоне+232
    • Таджикистан+992
    • Таиланд+66
    • Тайвань+886
    • Танзания+255
    • Того+228
    • Токелау+690
    • Тонга+676
    • Тринидад и Тобаго+1868
    • Тувалу+688
    • Тунис+216
    • Туркменистан+993
    • Турция+90
    • Тёркс и Кайкос+1649
    • Уганда+256
    • Узбекистан+998
    • Украина+380
    • Уоллис и Футуна+681
    • Уругвай+598
    • Ф.Ш. Микронезии+691
    • Фарерские острова+298
    • Фиджи+679
    • Филиппины+63
    • Финляндия+358
    • Фолклендские острова+500
    • Фр. Гвиана+594
    • Франция+33
    • Французская Полинезия (Таити)+689
    • Хорватия+385
    • Центральноафриканская Республика+236
    • Чад+235
    • Черногория+382
    • Чехия+420
    • Чили+56
    • Швейцария+41
    • Швеция+46
    • Шри-Ланка+94
    • Эквадор+593
    • Экваториальная Гвинея+240
    • Эритрея+291
    • Эстония+372
    • Эфиопия+251
    • Южно-Африканская Респ.+27
    • Южный Судан+211
    • Ямайка+1876
    • Япония+81
    Перезвоним вам за 22 секунды
    ';document.body.appendChild(cby_widget.elem); if(getCookie('cby_last_phone')){ document.getElementById('cby_mini_call_phone_input').value = '+'+getCookie('cby_last_phone'); phonemask(document.getElementById('cby_mini_call_phone_input'), ''); } if(widget_open_time != 0){ var cby_show_widget_auto = 0; if(cby_popup_show_type == "often"){ cby_show_widget_auto = 1; } else if(cby_popup_show_type == "reasonable"){ var date = new Date(); var cby_curdate = date.getDate()+date.getMonth()+date.getFullYear(); if(!getCookie("cby_show_widget_auto") || getCookie("cby_show_widget_auto") != cby_curdate){ cby_show_widget_auto = 1; } } else if(cby_popup_show_type == "rarely"){ var date = new Date(); var cby_curdate = date.getDate()+date.getMonth()+date.getFullYear(); if(!getCookie("cby_show_widget_auto") || getCookie("cby_show_widget_auto")+30 < cby_curdate){ cby_show_widget_auto = 1; } } if(cby_show_widget_auto){ setTimeout(function(){ if(!document.getElementById('cby_main_button').classList.contains("cby_main_button_open")){ cby_widget_main_button = document.getElementById('cby_main_button'); cby_widget_main_button.classList.add("cby_main_button_open"); document.getElementById('cby-around-circle-fill').style.display = 'none'; document.getElementById('cby-around-circle-empty').style.display = 'none'; animate({ duration: 500, timing: function(progress) { return Math.pow(progress, 2); }, draw: function(progress) { cby_widget_main_button.style.width = Math.abs(main_button_width - main_button_wide_width) * progress + main_button_width + 'px'; checkposition(cby_widget.elem); } }, function(){ cby_widget_main_button.style.visibility = 'hidden'; cby_widget_main_button.style.display = 'none'; document.getElementById('cby_mini_call_container').style.display = 'block'; //обрабатываем ситуации со слайдером if(document.getElementById('cby_mini_popup').classList.contains("cby_active")){ cby_widget.elem.style.top = parseInt(cby_widget.elem.style.top, 10)-slide_popup_height-11+'px'; } else{ cby_widget.elem.style.top = parseInt(cby_widget.elem.style.top, 10)-11+'px'; } checkposition(cby_widget.elem); var date = new Date(); setCookie('cby_show_widget_auto', date.getDate()+date.getMonth()+date.getFullYear(), {expires:3600*24*30,path:'/'}); }); } }, widget_open_time*1000); } } } if(cby_show_chat){ cby_widget.chat = document.createElement('div');cby_widget.chat.id = 'cby_chat_wrapper'; if(cby_chat_open){ cby_widget.chat.classList.add('open'); } else{ cby_widget.chat.classList.add('cby_chat_to_round'); cby_widget.chat.style.width = '66px'; cby_widget.chat.style.height = '66px'; } cby_widget.chat.innerHTML = '
    ONLINE CHAT
    0
    ';document.body.appendChild(cby_widget.chat); if(!office_empty){ if(cby_chat_timeopen != 0){ setTimeout(function(){ if(document.getElementById('cby_chat_main_content').innerHTML == ''){ //делаем проверку перед открытием чата, если сообщений нет, то делаем запрос на приветствие //прямой запрос на создание приветственного сообщения sendRequest("https://callbackyou.com.ua/telegram/get-greeting-message?id_site=44&id_user="+getCookie('cby_chatid'), "GET", "", function(data){}, function(){}); } if(!cby_widget.chat.classList.contains('open')){ cby_open_chat(); } }, cby_chat_timeopen*1000); } if(getCookie('cby_chatid') && getCookie('cby_chatid').length < 31){ setCookie('cby_chatid', '2560157366638af405b2f9836960744', {expires:3600*24*30,path:'/'}); } if(!getCookie('cby_chatid')){ setCookie('cby_chatid', '20647809986638af405b2ff510679901', {expires:3600*24*30,path:'/'}); } //первый запрос на получение сообщений и скролл вниз getChatMessages(getCookie('cby_chatid'), document.getElementById('cby_chat_main_content')); document.getElementById('cby_chat_main_content').scrollTop = document.getElementById('cby_chat_main_content').scrollHeight; setInterval(function(){ getChatMessages(getCookie('cby_chatid'), document.getElementById('cby_chat_main_content')); }, 5000); } } cby_widget.popupwindowwrap = document.createElement('div');cby_widget.popupwindowwrap.id = 'cby_popupwindow_wrap';document.body.appendChild(cby_widget.popupwindowwrap); cby_widget.popupwindowcontent = document.createElement('div');cby_widget.popupwindowcontent.id = 'cby_popupwindow_content';cby_widget.popupwindowcontent.innerHTML = '
    Поможем установить виджет и чат бесплатно на ваш сайт.
    жду звонка
    ';document.body.appendChild(cby_widget.popupwindowcontent); var offset = getWindowCoords(); var cby_widget_content = document.getElementById('cby_widget_content'); cby_widget_main_button = document.getElementById('cby_main_button'); window.onresize = function(){ if(cby_show_widget && cby_show_main_button_widget){ checkposition(cby_widget.elem); } if(cby_show_chat){ checkposition(cby_widget.chat); } }; if(office_empty && cby_show_main_button_widget){ if(getCookie('cby_day') && getCookie('cby_time') && getCookie('cby_day_date')){ var minimal = new Date(near_date.replace(/(\d+).(\d+).(\d+)/, '$3/$2/$1 '+near_time)); var current = new Date(getCookie('cby_day_date').replace(/(\d+).(\d+).(\d+)/, '$3/$2/$1 '+getCookie('cby_time'))); if(current < minimal){ if(near_date){ setCookie('cby_day_date', near_date, {expires:3600*2,path:'/'}); } if(near_date_name){ setCookie('cby_day', near_date_name, {expires:3600*2,path:'/'}); } if(near_time){ setCookie('cby_time', near_time, {expires:3600*2,path:'/'}); } } var container = document.getElementById('cby_mini_call_message_text'); new_text = 'Мы позвоним '+getCookie('cby_day')+' в '+getCookie('cby_time')+''; container.innerHTML = new_text; } else{ if(near_date){ setCookie('cby_day_date', near_date, {expires:3600*2,path:'/'}); } if(near_date_name){ setCookie('cby_day', near_date_name, {expires:3600*2,path:'/'}); } if(near_time){ setCookie('cby_time', near_time, {expires:3600*2,path:'/'}); } var container = document.getElementById('cby_mini_call_message_text'); new_text = 'Мы позвоним '+getCookie('cby_day')+' в '+getCookie('cby_time')+''; container.innerHTML = new_text; } } else if(cby_show_main_button_widget){ if(getCookie('cby_username')){ var container = document.getElementById('cby_mini_call_message_text'); new_text = 'Перезвоним '+(getCookie("cby_username") ?getCookie("cby_username") :"вам")+' за 22 секунды'; container.innerHTML = new_text; } } if(is_fixed){ set_position(true, false); } else{ set_position(true, false); var scroll_timer = null; window.onscroll = function() { cby_widget_content.classList.remove("cby_jolting"); if(scroll_timer !== null) { clearTimeout(scroll_timer); } scroll_timer = setTimeout(function() { set_position(false, false); }, 300); } } if(cby_show_main_button_widget){ var container = document.getElementById('cby_main_button'); var cby_r_elements = container.getElementsByTagName('i'); var cby_rotate_counter = 0; setInterval(function(){ var active_elem = container.getElementsByClassName('cby_rotate_icon')[0]; active_elem.classList.remove("cby_rotate_icon"); cby_r_elements[cby_rotate_counter].classList.add("cby_rotate_icon"); if(cby_rotate_counter+1 == cby_r_elements.length){ cby_rotate_counter=0; } else{ cby_rotate_counter++; } }, 2000); } var cby_chat_button_container = document.getElementById('cby_chat_main_button'); var cby_chat_r_elements = cby_chat_button_container.getElementsByTagName('i'); var cby_chat_rotate_counter = 0; setInterval(function(){ var active_elem = cby_chat_button_container.getElementsByClassName('cby_rotate_icon')[0]; active_elem.classList.remove("cby_rotate_icon"); cby_chat_r_elements[cby_chat_rotate_counter].classList.add("cby_rotate_icon"); if(cby_chat_rotate_counter+1 == cby_chat_r_elements.length){ cby_chat_rotate_counter=0; } else{ cby_chat_rotate_counter++; } }, 2000); //var date = new Date(); //setCookie('cby_windowpopup', date.getDate()+date.getMonth()+date.getFullYear(), {expires:3600*24*30,path:'/'}); var cby_popup_show = 0; var cby_popupwindow_already_show = 0; if(cby_popup_show_type == "often"){ cby_popup_show = 1; } else if(cby_popup_show_type == "reasonable"){ var date = new Date(); var cby_curdate = date.getDate()+date.getMonth()+date.getFullYear(); if(!getCookie("cby_windowpopup") || getCookie("cby_windowpopup") != cby_curdate){ cby_popup_show = 1; } } else if(cby_popup_show_type == "rarely"){ var date = new Date(); var cby_curdate = date.getDate()+date.getMonth()+date.getFullYear(); if(!getCookie("cby_windowpopup") || getCookie("cby_windowpopup")+30 < cby_curdate){ cby_popup_show = 1; } } if(cby_popup_show){ if(!cby_popup_catch_onaclick && !cby_popup_catch_entry && !cby_popup_catch_exit && !cby_popup_catch_severalsites){ setTimeout(function(){ if(!cby_popupwindow_already_show){ cby_popupwindow_already_show = 1; show_popup_window(); var date = new Date(); setCookie('cby_windowpopup', date.getDate()+date.getMonth()+date.getFullYear(), {expires:3600*24*30,path:'/'}); } }, popupwindow_time*1000); } if(cby_popup_catch_exit){ var cby_catch_exit = 0; document.addEventListener('mouseout',function(event){ var relatedTarget = event.relatedTarget; if (relatedTarget) { while (relatedTarget) { if (relatedTarget == document) return; relatedTarget = relatedTarget.parentNode; } } if(event.clientY <= 0 && !cby_catch_exit){ if(!cby_popupwindow_already_show){ cby_popupwindow_already_show = 1; show_popup_window(); cby_catch_exit = 1; var date = new Date(); setCookie('cby_windowpopup', date.getDate()+date.getMonth()+date.getFullYear(), {expires:3600*24*30,path:'/'}); } } }); } if(cby_popup_catch_onaclick){ var cby_catch_click = 0; document.addEventListener('click',function(event){ if(!cby_catch_click){ if(!cby_popupwindow_already_show){ cby_popupwindow_already_show = 1; show_popup_window(); cby_catch_click = 1; var date = new Date(); setCookie('cby_windowpopup', date.getDate()+date.getMonth()+date.getFullYear(), {expires:3600*24*30,path:'/'}); } } }); } if(cby_popup_catch_entry){ var cby_catch_byentry = 0; if(!cby_catch_byentry){ if(!cby_popupwindow_already_show){ cby_popupwindow_already_show = 1; show_popup_window(); cby_catch_byentry = 1; var date = new Date(); setCookie('cby_windowpopup', date.getDate()+date.getMonth()+date.getFullYear(), {expires:3600*24*30,path:'/'}); } } } if(cby_popup_catch_severalsites){ var cby_severalsites_blur = 0; var cby_severalsites_show = 0; window.addEventListener('blur',function(event){ cby_severalsites_blur = 1; }); window.addEventListener('focus',function(event){ if(cby_severalsites_blur == 1 && cby_severalsites_show == 0){ if(!cby_popupwindow_already_show){ cby_popupwindow_already_show = 1; show_popup_window(); cby_severalsites_show = 1; var date = new Date(); setCookie('cby_windowpopup', date.getDate()+date.getMonth()+date.getFullYear(), {expires:3600*24*30,path:'/'}); } } }); } } document.getElementById('cby_popupwindow_close').onclick = function(event){ document.getElementById('cby_popupwindow_content').style.display = 'none'; document.getElementById('cby_popupwindow_wrap').style.display = 'none'; } document.addEventListener('click',function(event){ if(event.target.closest('#cby_popupwindow_content #cby_popupwindow_button')){ SendCall(document.getElementById('cby_popupwindow_phone'),1); } if(event.target.closest('#cby_popupwindow_content #cby_contacted_yes')){ document.getElementById('cby_popupwindow_desc').innerHTML = '
    Оцените работу менеджера:
    '; genStarRating('.cby_star'); } if(event.target.closest('#cby_popupwindow_content #cby_contacted_no')){ //content = document.getElementById('cby_countdown_container'); phone = phone_input.value.replace(/\D+/g,""); var type = (office_empty) ?'delay_call' :'call'; sendRequest("https://callbackyou.com.ua/widgets/complaint?phone="+phone+"&id="+site_id, "GET", "", function(){ document.getElementById('cby_popupwindow_desc').innerHTML = '
    Мы отправили жалобу менеджеру
    '; }, function(){ document.getElementById('cby_popupwindow_desc').innerHTML = '
    Ошибка
    '; }); } if(event.target.closest('#cby_popupwindow_content #cby_contacted_ok')){ document.getElementById('cby_popupwindow_desc').innerHTML = cby_main_call_content; document.getElementById('cby_popupwindow_countdown_container').style.display = 'none'; document.getElementById('cby_popupwindow_button').style.display = 'block'; } if(event.target.closest('#cby_popupwindow_content #rating_send')){ var phone = phone_input.value.replace(/\D+/g,""); var rating = document.querySelector('.cby_star_selected').getAttribute('data-num'); sendRequest("https://callbackyou.com.ua/widgets/rating?phone="+phone+"&id="+site_id+"&rating="+rating, "GET", "", function(){ document.getElementById('cby_popupwindow_desc').innerHTML = '
    Спасибо за использование нашего сервиса
    '; }, function(){ document.getElementById('cby_popupwindow_desc').innerHTML = '
    Ошибка
    '; }); } }); } });