PageSourceSearch

https://tseleevo.ru/assets/booking/booking.js?v=1

js tseleevo.ru collected 2026-09-29 22:43:07 UTC 5,061 bytes, 120 lines download raw bytes

1var path = window.location.pathname;
2var lang = 'ru';
3if (path.indexOf('/en/') != -1) {
4    lang = 'en';
5}
6
7//Begin roistat
8// function bookingSuccess(data){
9//   let email   = data.customerEmail    ? data.customerEmail : "";
10//   let comment = data.customerComment  ? data.customerComment + " \n" : "";
11//   let phone   = typeof(data.customerPhone) == 'object' ? data.customerPhone.phone: "";
12//   let price   = data.price ? data.price : null;
13//   let name    = null;
14//
15//   if (phone || email) {
16//     let roistatData = {
17//       name:   name,
18//       phone:  phone,
19//       email:  email,
20//       leadName: "Заявка с формы 'TravelLine'",
21//       fields: {
22//         'price'       : price,
23//         'landingPage' : '{landingPage}',
24//         'source'      : '{source}',
25//         'city'        : '{city}',
26//         'utmSource'   : '{utmSource}',
27//         'utmMedium'   : '{utmMedium}',
28//         'utmCampaign' : '{utmCampaign}',
29//         'utmTerm'     : '{utmTerm}',
30//         'utmContent'  : '{utmContent}'
31//       }
32//     }
33//     console.log('roistat', 'Travelline sended...', roistatData)
34//     roistatGoal.reach(roistatData);
35//   }
36// }
37//End roistat
38// calltouch
39function bookingSuccess(data) {
40    console.log(data);
41    try {
42        var fio = ''; var phone = ''; var email = ''; var comment = '';
43        try{ if (typeof(data.roomTypes[0].guests[0].name)=='string') fio = data.roomTypes[0].guests[0].name; } catch(e){ console.log(e); }
44        try{ if (typeof(data.customerFullName)=='string') fio = data.customerFullName; } catch(e){ console.log(e); }
45        try{ if (typeof(data.customerPhone)=='string') phone = data.customerPhone; } catch(e){ console.log(e); }
46        try{ if (typeof(data.customerPhone.phone)=='string') phone = data.customerPhone.phone; } catch(e){ console.log(e); }
47        try{ if (typeof(data.customerEmail)=='string') email = data.customerEmail; } catch(e){ console.log(e); }
48        var ct_site_id = '75979';
49        var sub = 'Бронь Travelline ';
50        try{ comment += data.bookingNumber; } catch(e){ console.log(e); }
51        var ct_data = {
52            fio: fio,
53            phoneNumber: phone,
54            email: email,
55            subject: sub,
56            comment: comment,
57            requestUrl: location.href,
58            sessionId: window.call_value
59        };
60        var post_data = Object.keys(ct_data).reduce(function (a, k) { if (!!ct_data[k]) { a.push(k + '=' + encodeURIComponent(ct_data[k])); } return a }, []).join('&');
61        var CT_URL = 'https://api.calltouch.ru/calls-service/RestAPI/requests/' + ct_site_id + '/register/';
62        var request = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
63        request.open("POST", CT_URL, true); request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
64        request.send(post_data);
65    } catch(e){ console.log(e); }
66}
67//calltouch
68
69(function (w) {
70  var roistatId = (document.cookie.match('roistat_visit=?=[0-9]+') || ['='])[0].split('=')[1];
71  function onConnectHandler(app) {
72    app.pushArtifact('RoistatId', roistatId);
73  }
74  var q = [
75    ['setContext', 'TL-INT-varelkka.new', lang],
76    ['embed', 'booking-form', {
77      container: 'tl-booking-form',
78      onConnect: onConnectHandler,
79      onBookingSuccess: bookingSuccess
80    }]
81  ];
82  var t = w.travelline = (w.travelline || {}), ti = t.integration = (t.integration || {});
83  ti.__cq = ti.__cq ? ti.__cq.concat(q) : q;
84  if (!ti.__loader) {
85    ti.__loader = true;
86    var d = w.document, p = d.location.protocol, s = d.createElement('script');
87    s.type = 'text/javascript';
88    s.async = true;
89    s.src = (p == 'https:' ? p : 'http:') + '//ibe.tlintegration.com/integration/loader.js';
90    (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
91  }
92})(window);
93
94(function (w) {
95  var q = [
96    ['setContext', 'TL-INT-varelkka.new', lang],
97    ['embed', 'search-form', {container: 'tl-search-form'}],
98    ['embed', 'search-form', {container: 'tl-search-form-inner'}]
99  ];
100  var t = w.travelline = (w.travelline || {}), ti = t.integration = (t.integration || {});
101  ti.__cq = ti.__cq ? ti.__cq.concat(q) : q;
102  if (!ti.__loader) {
103    ti.__loader = true;
104    var d = w.document, p = d.location.protocol, s = d.createElement('script');
105    s.type = 'text/javascript';
106    s.async = true;
107    s.src = (p == 'https:' ? p : 'http:') + '//ibe.tlintegration.com/integration/loader.js';
108    (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
109  }
110})(window);
vendor: 338 bytes, lines 110-118
110
111
112
113(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
114(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
115m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
116})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
117 
118ga('create', '
118UA-118172674-1
vendor: 12 bytes, line 118
118', 'auto');
119ga('require', 'ecommerce', 'ecommerce.js'); // Load the ecommerce plug-in.
120ga('send', 'pageview');

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.