PageSourceSearch

https://www.fixtour.ru/templates/demo6/js/conversions.js?v=3

js fixtour.ru collected 2026-10-08 14:17:44 UTC 3,712 bytes, 89 lines download raw bytes

1function getYaCounter() {
2    for (var i in window) {
3        if (i.indexOf('yaCounter') == 0) {
4            return window[i];
5        }
6    }
7    return { reachGoal: function() {}, getClientID: function() {} }; //stub
8}
9// начало jQuery-функций
10( function( $ ) {
11
12    function save_conversion(name, url, country){
13        var ajaxurl = "/helper/conversions.php";
14        var eventdata = {
15            name: name,
16            yandex_id: getYaCounter().getClientID(),
17            url: url,
18            country: country
19        };
20        jQuery.ajax({
21            url: ajaxurl,
22            type: 'POST',
23            data: eventdata
24            // success: function(data){
25            //     if(!parseInt(data)){
26            //         setTimeout(function(){
27            //             save_conversion(name, (retry || 0) + 1);
28            //         }, 100);
29            //     }
30            // },
31            // complete: function(jqXHR, textStatus){
32            //     if(textStatus!='success'){
33            //         setTimeout(function(){
34            //             save_conversion(name, (retry || 0) + 1);
35            //         }, 100);
36            //     }
37            // }
38        });
39    }
40    window.save_conversion = save_conversion;
41    $(function() {
42        if(!document.location.href.includes("option=")&&!document.location.href.includes("plugin=")&&!document.location.href.includes("format=")){
43            jQuery.ajax({
44                url: "/helper/setFirstPage.php",
45                type: 'POST',
46                data: {
47                    firstPageAjax: window.location.href,
48                },
49            });
50            /* set firstPageJS cookie */
51            var firstPageJs = document.cookie.match(/firstPageJs=(.+?)(;|$)/);
52            if (!firstPageJs) {
53                var cookie_date = new Date();
54                cookie_date.setYear(cookie_date.getFullYear() + 1);
55                document.cookie = "firstPageJs="+window.location.href+";expires=" + cookie_date.toUTCString();
56            }
57        }
58
59        $('a[href^=tel]').click(function(e) {
60            save_conversion('PhoneClick', $(location).attr("href"));
61        });
62        $('a[href^="https://wa.me"]').click(function(e) {
63            save_conversion('WhatsApp', $(location).attr("href"));
64        });
65        $('a[href^="mailto"]').click(function(e) {
66            save_conversion('EmailClick', $(location).attr("href"));
67        });
68        jQuery('body').on('click', '.TVBWSendButton', function(){
69            //console.log("Заявка на звонок");
70            if(jQuery(".TVBWBody").hasClass("TVHide")) {
71                save_conversion('CallBackSend', $(location).attr("href"));
72            }
73        });
74        jQuery('body').on('click', '.TVSendingBuyButton', function(){
75            //console.log("Купить тур онлайн");
76            //alert(jQuery(".TVHotelTitleResort").html());
77            //alert($(location).attr("href"));
78            if (!jQuery(".TVInputPro").not('.TVDisabled .TVInputPro').hasClass("TVInvalidInput")) {
79                save_conversion('BuyTourSend', $(location).attr("href"), jQuery(".TVHotelTitleResort").html());
80            }
81        });
82        jQuery('body').on('click', '.TVRequestFormSendButton', function(){
83            //console.log("Запрос на информацию о туре");
84            if (!jQuery(".TVInputPro").not('.TVDisabled .TVInputPro').hasClass("TVInvalidInput")) {
85                save_conversion('GetInfoTourSend', $(location).attr("href"), jQuery(".TVHotelTitleResort").html());
86            }
87        });
88    });
89}( jQuery ) );

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.