PageSourceSearch

https://teslaweld.com/catalog/view/theme/fastor/js/ui_front_end.js?v=2.4.141

js teslaweld.com collected 2026-10-09 00:20:54 UTC 23,383 bytes, 743 lines download raw bytes

1/*for tesla*/
2function _sk_popup_close (element) {
3    _sk_overlay_visibility_no();
4    _sk_element_visibility_no(element);
5}
6
7function _sk_display_block (element, info = '') {
8    $(element).css
9    ({
10        'display': 'block',
11        'opacity': '1'
12    });
13    if (info != '')
14        $(element).text(info);
15}
16
17function _sk_display_none (element) {
18    $(element).css
19    ({
20        'display': 'none',
21        'opacity': '0'
22    });
23}
24
25function _sk_element_visibility (element) {
26    $(element).css
27    ({
28        'visibility': 'visible',
29        'opacity': '1'
30    });
31}
32
33function _sk_element_visibility_no (element) {
34    $(element).css
35    ({
36        'visibility': 'hidden',
37        'opacity': '0'
38    });
39}
40
41function _sk_overlay_visibility () {
42    $('.overlay').css({
43        'position': 'fixed'
44    });
45    _sk_element_visibility('.overlay');
46}
47
48function _sk_overlay_visibility_no () {
49    $('.overlay').css
50    ({
51        'position': 'absolute'
52    });
53    _sk_element_visibility_no('.overlay');
54}
55
56/*перенос данных */
57function sk_val_change (s, t) {
58    var val = $(s).text();
59    if (val !== undefined) {
60//  val=43;
61        $(t).text(val);
62    }
63}
64
65function val_clear (input_id) {
66    $(input_id).val('');
67    $(input_id).removeClass('input_ok');
68}
69
70// ---------------------------------------- front-end.js ---------------------------------
71window.pco_product_id = '';
72window.pco_product_name = '';
73window.pco_product_category = '';
74window.pco_product_price='';
75window.pco_event_2 = '';
76window.b24Tracker_value = '';
77
78const siteName = 'teslaweld';
79const site = window.location.hostname;
80
81// OLD remove
82function lp_popup_call_open (_id = '', _offer = '', _sku = '') {
83    let _prefix_field = 'popup-call';
84
85    var id_name = '#' + _prefix_field + '-' + 'name';
86    var id_phone = '#' + _prefix_field + '-' + 'phone';
87    var id_email = '#' + _prefix_field + '-' + 'email';
88    var id_mes = '#' + _prefix_field + '-' + 'mes';
89
90    var phone_mask = '+38 (000) 000-00-00';
91
92    if (window.phone_rus !== undefined) {
93        if (window.phone_rus == 1) {
94            phone_mask = '+7 (000) 000-00-00';
95        }
96        if (window.phone_rus == 2) {
97            phone_mask = '8 (000) 000-00-00';
98        }
99    }
100    $(id_phone).mask(phone_mask);
101
102    window.lead_offer.id = _id;
103    window.lead_offer.name = _offer;
104    window.lead_offer.sku = _sku;
105    window.lead_offer.category = $('#title-page').text();
106
107    window.pco_produc_id = _id;
108    window.pco_produc_name = _offer;
109    window.pco_produc_category = $('#title-page').text();
110    let price = $('#price-special').text();
111    let price_float='0.00';
112    if (price!='')
113    {
114     let price_int = (price+'').replace(/\D+/g, '');
115     if (price_int!='') price_int=parseInt(price_int);
116     price_float = price_int + '' + '.00';
117     price=price_int;
118    }
119    window.pco_product_price = price_float;
120    window.lead_offer.cost = price;
121
122/*
123    window.pco_event_2 = '';
124
125    switch (window.page_info.alias) {
126        case 'mma-landing':
127
128            switch (window.place_info.alias) {
129                case 'mma-landing_place_1':
130                    window.pco_event_2 = 'mma-landing_place_open_1';
131                    break;
132                case 'mma-landing_place_2':
133                    window.pco_event_2 = 'mma-landing_place_open_2';
134                    break;
135            }
136            break;
137    }
138
139    if (window.pco_event_2 != '') dataLayer.push({ 'event': window.pco_event_2 });
140    if (window.pco_produc_id != '') {
141        window.dataLayer = window.dataLayer || [];
142        dataLayer.push({
143            'ecommerce': {
144                'currencyCode': 'UAH',
145                'add': {
146                    'actionField': { 'list': window.pco_product_category },
147                    'products': [{
148                        'name': window.pco_product_name,
149                        'id': window.pco_product_id,
150                        'price': '0.00',
151                        'category': window.pco_product_category,
152                        'brand': 'teslaweld',
153                        'quantity': '1'
154                    }]
155                }
156            },
157            'event': 'gtm-ee-event',
158            'gtm-ee-event-category': 'Enhanced Ecommerce',
159            'gtm-ee-event-action': 'Add product to basket no price',
160            'gtm-ee-event-non-interaction': 'False',
161        });
162    }
163*/
164    _sk_overlay_visibility();
165
166    _sk_element_visibility('div.popup_call');
167
168    $(id_name).val('Сидоров Иван Петович');
169    $(id_email).val('[email protected]');
170
171    $(id_name).val('');
172    $(id_phone).val('');
173    $(id_email).val('');
174    $(id_mes).val('');
175
176    $('input#bph-product').val(_offer);
177    $('input#bph-product-id').val(_id);
178
179    return false;
180}
181
182
183/*
184function hideBlockBox () {
185    document.getElementById('box_first').style.height = '0px';
186    document.querySelector('.popup_call').style.height = 'auto';
187    document.getElementById('box_second').style.overflow = 'initial';
188    document.getElementById('box_second').style.visibility = 'visible';
189    document.getElementById('box_second').style.height = 'auto';
190    document.getElementById('box_second').style.display = 'block';
191    setTimeout(function () {
192        _sk_popup_close('div.popup_call');
193
194        function nextStage () {
195            document.querySelector('.popup_call').style.height = 'auto';
196            document.getElementById('box_first').style.height = 'auto';
197            document.getElementById('box_second').style.height = '0px';
198            document.getElementById('box_second').style.overflow = 'hidden';
199            document.getElementById('box_second').style.visibility = 'hidden';
200        }
201
202        setTimeout(nextStage, 1000);
203    }, 3000);
204
205}
206*/
207
208function cart_header_update () {
209    let count = 0
210    let sum = 0
211    if (typeof window.cart_site !== 'undefined') {
212        stat = window.cart_site.Cart_Stat()
213        count = stat.count
214        sum = stat.sum
215    }
216    if ($('#cart_quantity').length)
217        $('#cart_quantity').text(count)
218
219    if ($('#visa_pay').length) {
220        if (stat.fg_pay == 1) $('#visa_pay').removeClass('d-none').addClass('d-flex')
221        else $('#visa_pay').addClass('d-none').removeClass('d-flex')
222    }
223}
224
225$(document).ready(function () {
226    cart_header_update();
227});
228
229
230$(document).on('click', "[data-offer-cart-event='add-to-cart']", function () {
231    $(this).css
232    ({
233        'color': 'green'
234    });
235
236    if (typeof window.cart_site !== 'undefined') {
237        let offer_cart=sk_offer_cart_read(this);
238        window.cart_site.Offer_GTM_Add(offer_cart);
239//        cart_header_update();
240    }
241//    $.cookie('lead_product_id', cart_id);
242//    $.cookie('lead_product_category', cart_category);
243    $(this).css
244    ({
245        'color': 'red'
246    });
247    window.location = '/pagelead';
248});
249
250function sk_offer_cart_read(pl) {
251 let offer_cart={};
252 s = $(pl).attr('data-offer-cart-id');
253 offer_cart.id = (typeof s !== 'undefined') ? s : '';
254/*
255 s = $(pl).attr('data-offer-cart-name');
256 offer_cart.name = (typeof s !== 'undefined') ? s : '';
257 s = $(pl).attr('data-offer-cart-name-gtm');
258 offer_cart.name_gtm = (typeof s !== 'undefined') ? s : '';
259
260 s = $(pl).attr('data-offer-cart-price-new');
261 s = (typeof s !== 'undefined') ? s : '';
262 s = Number(String(s).replace(/\D+/g, ''));
263 offer_cart.price_real = isNaN(s) ? 0 : s;
264
265 s = $(pl).attr('data-offer-cart-price-old');
266 s = (typeof s !== 'undefined') ? s : '';
267 s = Number(String(s).replace(/\D+/g, ''));
268 offer_cart.price_old = isNaN(s) ? 0 : s;
269
270 s = $(pl).attr('data-offer-cart-brand');
271 offer_cart.vendor = (typeof s !== 'undefined') ? s : '';
272
273 s = $(pl).attr('data-offer-cart-category-gtm');
274 offer_cart.category_gtm = (typeof s !== 'undefined') ? s : '';
275
276 s = $(pl).attr('data-offer-cart-fg-visa');
277 offer_cart.fg_visa = (typeof s !== 'undefined') ? s : '';
278
279 s = $(pl).attr('data-offer-cart-articul');
280 offer_cart.articul = (typeof s !== 'undefined') ? s : '';
281*/
282 return offer_cart;
283}
284
285$(function () {
286    var cart_quan = $('#cart_quantity').text();
287    if (cart_quan != 0) {
288        $('#cart_quantity').addClass('full_cart');
289        $('.o_header_cart').removeAttr('title');
290    }
291});
292
293$(document).click(function () {
294    var cart_quan = $('#cart_quantity').text();
295    if (cart_quan == 0) {
296        $('#cart_quantity').removeClass('full_cart');
297    }
298});
299
300$(function () {
301    $('.remove_item').click(
302        function () {
303            var cart_quan = $('#cart_quantity').text();
304            if (cart_quan == 0) {
305                console.log(cart_quan, 'clear_basket');
306                $('#cart_quantity').removeClass('full_cart');
307                $('.o_header_cart').attr('title', "<?php echo $cart_empty; ?>");
308            }
309        }
310    );
311});
312
313
314//function sk_popup_buy_order_send(step)
315function popup_buy_send () {
316    var ret = true;
317    ui_lead_send('popup-buy');
318}
319
320function sk_recreativ_event_cart_end () {
321    if (typeof window.cart_site == 'undefined') return false;
322    let ls = 'del=' + window.cart_site.Cart_ListIdTextGet();
323
324    recreativ_cart_end(document, '2430', ls);
325
326    function recreativ_cart_end (f, g, l) {
327        function d (a) {
328            console.error(a);
329            (new Image).src = 'https://go.rcvlinks.com/err/?setr=' + g + '&ms=' +
330                ((new Date).getTime() - m) + '&ver=' + n + '&text=' + encodeURIComponent(a);
331        }
332
333        try {
334            var e = function () {
335                    var a = f.createElement('script'), p = (new Date).getTime();
336                    a.type = 'text/javascript';
337                    a.src = c;
338                    a.onerror = function () {
339                        !h && 300 > (new Date).getTime() - p ? (h = !0, c = q + k, setTimeout(e, 10)) : (b++, 5 > b ? setTimeout(e, 10) : d(b + '!' + c)
340                        );
341                    };
342                    a.onload = function () {b && d(b + '!' + c);};
343                    f.getElementsByTagName('head')[0].appendChild(a);
344                }, n = '200804-1622', m = (new Date).getTime(),
345                h = !1, q = atob('aHR0cHM6Ly93d3cucmN2Z29vZHMuY29t'), k = '/setr/' + g + '/?' + l + '&rnd=' + Math.floor(999 * Math.random()), c = 'https://go.rcvlink.com' + k,
346                b = 0;
347            e();
348        } catch (a) {d(a.name + ': ' + a.message + '\t' + (a.stack ? a.stack.replace(a.name + ': ' + a.message, '') : ''));}
349    }
350}
351
352function sk_google_event_cart_buy () {
353    if (typeof window.cart_site == 'undefined') return false;
354    window.order_id = window.cart_site.Lead_ID_Get();
355//window.order_id='7777777777';
356    window.email = '';
357    if (typeof window.lead_client.email !== 'undefined') window.email = window.lead_client.email;
358
359    let date_g = new Date();
360    date_g.setDate(date_g.getDate() + 5);
361
362    window.date_dev = '';
363    window.date_dev = date_g.getFullYear() + '-' + ('0' + (date_g.getMonth() + 1)).slice(-2) + '-' + ('0' + date_g.getDate()).slice(-2);
364
365    if (typeof window.lead_client.email == 'undefined') window.email = window.lead_client.email;
366
367    if (typeof window.lead_client.email == 'undefined' || window.lead_client.email == '') window.email = '';
368
369    window.gapi.load('surveyoptin', function () {
370        window.gapi.surveyoptin.render(
371            {
372                'merchant_id': 125668805, // tesla
373                'order_id': window.order_id,
374                'email': window.email,
375                'delivery_country': 'UA',
376                'estimated_delivery_date': window.date_dev,
377                'opt_in_style': 'CENTER_DIALOG'
378            });
379    });
380
381}
382
383// ver TT
384function sk_data_phone_test(_phone,_reg=0)
385{
386   if (_phone.length == 0) return false;
387
388   let reg_phone = '^[\\+]{0,1}(38)[\\s]?[\\(]?(0)(3|4|5|6|7|9)[\\d]{1}[\\)]?[-\\s\\.]?[0-9]{3}[-\\s\\.]?[0-9]{2}[-\\s\\.]?[0-9]{2}$';
389   if (_reg == 1) {
390      // +7 (345) 123-56-78 - не проверего
391       reg_phone = '^[\\+](7)[\\s]?[\\(]?[0-9]{3}[\\)]?[-\\s\\.]?[0-9]{3}[-\\s\\.]?[0-9]{2}[-\\s\\.]?[0-9]{2}$';
392   }
393   if (_reg == 2) {
394               // (8) (345) 123-56-78
395       reg_phone = '^(8)[\\s]?[\\(]?[\\d]{3}[\\)]?[-\\s\\.]?[0-9]{3}[-\\s\\.]?[0-9]{2}[-\\s\\.]?[0-9]{2}$';
396   }
397
398   let uaReg = new RegExp(reg_phone, 'g');
399   let ret = uaReg.test(_phone);
400   return ret;
401}
402
403// ver TT
404function sk_data_email_test(_email)
405{
406  if (_email.length == 0) return false;
407  if (_email == '[email protected]') return false;
408
409  let reg_email='^\\w+([\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,3})+$';
410  let uaReg = new RegExp(reg_email, 'g');
411  ret = uaReg.test(_email);
412  return ret;
413}
414
415// ver TT
416//this replace onclick="phone_send('tatragarden-site','#phone-send-1','help');"
417$(document).on('click', "[data-event-ui='sk_form_send']", function () {
418sk_form_lead_send(this);
419});
420
421
422window.sk_form_prefix='';
423// ver TT
424function sk_form_lead_send(_p)
425{
426 let ret=place_info_read(_p,1);
427 if (ret==0 || window.place_info.type!='form') return;
428
429 window.sk_form_prefix='';
430 let prefix= $(_p).attr('data-form-prefix');
431 if (typeof prefix == 'undefined') return;
432 window.sk_form_prefix=prefix;
433
434 let v='';
435 v = $(_p).attr('data-form-fg-phone');
436 let fg_phone = true;
437 if (v=='false' || v=='0' || v=='') fg_phone=false;
438
439 v = $(_p).attr('data-form-fg-email');
440 let fg_email = false;
441 if (v=='true' || v=='1') fg_email=true;
442
443 v = $(_p).attr('data-form-fg-poll');
444 let fg_poll = false;
445 if (v=='true' || v=='1') fg_poll=true;
446
447 let f_success = $(_p).attr('data-form-f-success');
448 if (typeof f_success == 'undefined') f_success='sk_thank_you';
449 if (f_success=='') f_success=null;
450 
451
452 let f_close = $(_p).attr('data-form-f-close');
453 if (typeof f_close == 'undefined') f_close="sk_form_field_clear";
454 if (f_close=='') f_close=null;
455
456 window.lead_lead.marketing_creative='callback_classic';
457
458 ui_lead_send(prefix,fg_phone,fg_email,fg_poll,f_success,f_close);
459}
460
461// ver TT
462function sk_form_field_clear(timeout=700)
463{
464  let prefix=window.sk_form_prefix;
465  setTimeout(set_mask_phone, timeout);
466  function set_mask_phone()
467  {
468   let id_name = '#' + prefix + '-' + 'name';
469   let id_phone = '#' + prefix + '-' + 'phone';
470   let id_email = '#' + prefix + '-' + 'email';
471   let id_mes = '#' + prefix + '-' + 'mes';
472//  document.getElementById('kupit_v_1_click-phone').value = '';
473//  $('#kupit_v_1_click-phone').mask('+38 (000) 000-00-00');
474   $(id_name).val('');
475   $(id_phone).val('');
476   $(id_email).val('');
477   $(id_mes).val('');
478  }
479}
480
481// ver TT
482function ui_lead_send (_prefix_field, _fg_phone = true, _fg_email = false, _fg_poll = false, _f_success = null, _f_close = null) {
483    let data_valid = 1;
484
485    let id_name = '#' + _prefix_field + '-' + 'name';
486    let id_phone = '#' + _prefix_field + '-' + 'phone';
487    let id_email = '#' + _prefix_field + '-' + 'email';
488    let id_mes = '#' + _prefix_field + '-' + 'mes';
489
490//   $(id_phone).mask("+38 (099) 999-99-99");
491
492    let name = $(id_name).val();
493    if (name === undefined) name = '';
494    let phone = $(id_phone).val();
495    if (phone === undefined) phone = '';
496    let email = $(id_email).val();
497    if (email === undefined) email = '';
498    let mes = $(id_mes).val();
499    if (mes === undefined) mes = '';
500//   mes=''+i;
501    if (_fg_poll == true) {
502        let mes_k = get_results_poll(_prefix_field);
503        if (mes_k.length > 0) {
504            if (mes.length > 0) mes += ' ';
505            mes += mes_k;
506        }
507    }
508
509    name = name.trim();
510    phone = phone.trim();
511    email = email.trim();
512    mes = mes.trim();
513
514    window.lead_site.script = 'ui_lead_send';
515    window.lead_client.name = name;
516    window.lead_client.phone = phone;
517    window.lead_client.email = email;
518    window.lead_client.mes = mes;
519
520    if (_fg_phone == true) {
521        let fg_phone = 1;
522//        let mes_val = '';
523
524        let phone = window.lead_client.phone;
525        if (phone.length == 0) {
526            fg_phone = 0;
527        } else {
528            let ret=sk_data_phone_test(phone);
529            if (ret == false) {
530                fg_phone = 0;
531            }
532        }
533
534        if (fg_phone == 0) {
535            $(id_phone).addClass('input_error');
536            return;
537        }
538    }
539
540    if (_fg_email == true) {
541        let fg_email = 1;
542
543        let email = window.lead_client.email;
544        if (email.length == 0) {fg_email = 0;}
545        else {
546          ret = sk_data_email_test(email);
547          if (ret == false) {fg_email = 0;}
548        }
549
550        if (fg_email == 0) {
551            $(id_email).addClass('input_error');
552            return;
553        }
554    }
555
556    $(id_phone).removeClass('input_error');
557    $(id_email).removeClass('input_error');
558
559    // отпрвка данных
560    // инициализация функции, которая вызывается после события success при передачи данных с помощью ajax в функции sk_ajax_lead_send();
561    window.sk_ajax_lead_send_f_success=null;
562    if (typeof _f_success !== 'undefined' &&  _f_success !== null ) {window.sk_ajax_lead_send_f_success = _f_success;}
563    // отправка лида в Sellers и LeadStat
564    sk_ajax_lead_send();
565
566    // закрытие окна
567    if (typeof _f_close !=='undefined' && _f_close !== null) 
568    {
569      if (typeof _f_close === 'string')
570       {window[_f_close]();} 
571      else
572       {_f_close();}
573    }
574
575}
576
577
578
579
580function f_success_ui_lead_send () {
581}
582
583// ver TT
584function get_results_poll (_prefix) {
585    let pr = _prefix;
586    let mes = '';
587    let qw_name, check_name;
588    let qw, check;
589
590    for (let q = 1; q < 30; q++) {
591        if (q==1) 
592        {
593//         mes='';
594//         break;
595        }
596        qw_name = pr + '-qw_' + q;
597        qw = $('#' + qw_name);
598        if (qw.length == 0) break;
599
600        if (mes.length > 0) mes += '^ ';
601        text_qw = qw.text();
602        text_qw = text_qw.trim();
603        mes += text_qw + ' : ';
604        text_res = '';
605
606        for (let t = 1; t < 30; t++) {
607            res = '';
608            check_name = pr + '-qw_' + q + '_' + t;
609
610            // общая проверка
611            check = $('#' + check_name);
612            if (check.length == 0)
613            {
614             mes += text_res;
615             break;
616            }
617
618            // проверка input text + может добавить type='text'
619            check = $('input#' + check_name + ':text');
620            if (check.length == 1) {
621                res = check.val();
622                if (res=='on') res='';
623                if (res=='no') res='';
624                if (res=='yes') res='';
625            }
626
627            // проверка check + может добавить type='radio' type='checkbox'
628            check = $('input#' + check_name + ':radio');
629            if (check.length == 1) {
630             if (check.is(':checked')) {
631                l = $('label[for=\'' + check_name + '\']');
632                res = l.text();
633             }
634            }
635
636            // проверка check + может добавить type='radio' type='checkbox'
637            check = $('input#' + check_name + ':checkbox');
638            if (check.length == 1) {
639             if (check.is(':checked')) {
640                l = $('label[for=\'' + check_name + '\']');
641                res = l.text();
642             }
643            }
644
645            // проверка select
646            check = $('select#' + check_name);
647            if (check.length == 1) {
648                res = check.val();
649            }
650
651            res=res.trim();
652            if (res.length > 0) {
653                if (text_res.length > 0) text_res += ', ';
654                text_res += res;
655            }
656        }
657
658    }
659    mes=mes.trim();
660    return mes;
661}
662
663
664// sk автоотправка телефона ver TT
665$(document).ready(function () {
666    $('input[type=\'tel\']:not(.input-not-follow)').bind('keyup', function () {
667
668        let phone = $(this).val();
669        if (typeof phone == 'undefined') phone = '';
670        phone = phone.trim();
671
672        let fg_phone = 1;
673        if (phone.length == 0) {
674            fg_phone = 0;
675        } else {
676            ret = sk_data_phone_test(phone);
677            if (ret == false) {
678                fg_phone = 0;
679            }
680        }
681
682        if (fg_phone == 0) {
683            $(this).addClass('input_error');
684            $('#phone-error').css('display', 'block'); // for cart
685            return;
686        }
687
688        if (fg_phone == 1) {
689            $(this).removeClass('input_error');
690            $('#phone-error').css('display', 'none'); // for cart
691
692            if (window.lead_client.phone == phone) return;
693
694            lead_lead.marketing_creative='callback_classic';
695            if (typeof window.place_info=='undefined' || window.place_info.type=='')
696            {
697             window.place_info.type = 'input';
698             window.place_info.alias = 'phone_input_autosend';
699             window.place_info.name =  'phone_input_autosend';
700             window.place_info.abc = '';
701            }
702            window.lead_site.script = 'lead_phone_input_autosend';
703            window.lead_client.phone = phone;
704            window.lead_client.mes = 'Захват лида из формы';
705            if (typeof window.page_info!='undefined' && window.page_info.type!='')
706            {
707             window.lead_client.mes +=' страницы ' + window.page_info.type+' : '+window.page_info.alias;
708            }
709            window.sk_ajax_lead_send_f_success=null; // ++ sk 11.11.2022 отослали лид и все
710//            console.log('auto-push lead');
711            setTimeout(lead_phone_input_send(), 1);
712        }
713
714        function lead_phone_input_send () {
715            if (typeof sk_tracer_sender!=='undefined')
716            {
717             sk_tracer_sender.Event_Phone_Filled(window.lead_client.phone);
718            }
719            sk_ajax_lead_send(0);
720        }
721    });
722});
723// sk автоотправка телефона
724
725// ver TT
726function sk_set_owl_gtm(selector,name,dot_num=true)
727{
728 $(selector+' button.owl-prev').attr('data-gtm-object','button').attr('data-gtm-place',name).attr('data-gtm-name','owl_prev');
729 $(selector+' button.owl-next').attr('data-gtm-object','button').attr('data-gtm-place',name).attr('data-gtm-name','owl_next');
730
731 $(selector+' button.prev').attr('data-gtm-object','button').attr('data-gtm-place',name).attr('data-gtm-name','owl_prev');
732 $(selector+' button.next').attr('data-gtm-object','button').attr('data-gtm-place',name).attr('data-gtm-name','owl_next');
733
734 $(selector+' button.owl-dot').each(function( index ) {
735  if (dot_num==true){
736    $(this).attr('data-gtm-object','button').attr('data-gtm-place',name).attr('data-gtm-name','dot-'+index);  
737   }else{
738    $(this).attr('data-gtm-object','button').attr('data-gtm-place',name).attr('data-gtm-name','dot');  
739   }
740  });
741}
742
743

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.