Форма онлайн-бронирования
function loader()
{
const el = document.getElementById('tl-booking-form');
if(el)
{
document.querySelector('.block_loading').style.display = 'none';
document.querySelector('.wj_visibility').style.visibility = 'visible';
}
else {
console.log('нету');
loader();
}
}
loader();
(function(w){
var selectHotel = (function() {
var hotel = '';
switch (window.location.host) {
case 'krasnodar.olympia-hotel.ru': hotel = 'krasnodar'; break;
case 'sochi.olympia-hotel.ru': hotel = 'sochi'; break;
case 'mountain.olympia-hotel.ru': hotel = 'mountain'; break;
case 'red.olympia-hotel.ru': hotel = 'red'; break;
case 'lasarevskoye.olympia-hotel.ru': hotel = 'lasarevskoye'; break;
case 'gala.olympia-hotel.ru': hotel = 'plaza'; break;
}
if (hotel !== '') {
hotel = '.' + hotel;
}
return hotel;
}());
var q=[
['setContext', 'TL-INT-olympia-hotel' + selectHotel, 'ru'],
['embed', 'booking-form', {container: 'tl-booking-form'}]
];
var t = w.travelline = (w.travelline || {}),
ti = t.integration = (t.integration || {});
ti.__cq = ti.__cq ? ti.__cq.concat(q) : q;
if (!ti.__loader) {
ti.__loader = true;
var d = w.document,
p = d.location.protocol,
s = d.createElement('script');
s.type = 'text/javascript';
s.async = true;
s.src = (p == 'https:' ? p : 'http:') + '//ibe.tlintegration.com/integration/loader.js';
(d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
}
})(window);