PageSourceSearch

https://www.smclinic-spb.ru/templates/smgreen/js/freeConsultForm.js

js smclinic-spb.ru collected 2026-09-24 20:09:35 UTC 2,413 bytes, 71 lines download raw bytes

1jQuery('#freeConsultForm').submit(function(e) {
2    jQuery('.popup_contentFree').addClass('loading');
3    e.preventDefault();
4    var data = jQuery(this).serializeArray();
5    jQuery.ajax({
6        url: '/index.php?option=com_free_consult',
7        data: data,
8
9        method: 'post',
10        success: function(r) {
11            jQuery('.popup_contentFree .wrap').html('');
12            jQuery('.popup_contentFree .wrap').append(jQuery('.contentFree-respnce'));
13            jQuery('.popup_contentFree').removeClass('loading');
14
15            dataLayer.push({'event': 'sendform'});
16            console.log('dataLayer.push sendform');
17
18            if (typeof ym != "undefined") {
19                ym(1138628, 'reachGoal', 'lead_yd');
20                console.log('reachGoal lead_yd');
21            }
22
23        }
24    });
25});
26
27jQuery.datetimepicker.setLocale('ru');
28var today = new Date();
29var dd = today.getDate();
30var mm = today.getMonth()+1;
31var yyyy = today.getFullYear();
32jQuery('#contentFree-date').datetimepicker({
33    formatTime:'H:i',
34    formatDate:'d.m.Y',
35    defaultTime:'10:00',
36    format:'d.m.Y H:i',
37    minDate:'2024/12/03',
38    allowTimes:['9:00','9:30','10:00','10:30','11:00','11:30','12:00','12:30','13:00','13:30','14:00','14:30','15:00','15:30','16:00','16:30','17:00','17:30','18:00','18:30','19:00','19:30','20:00','20:30','21:00','21:30'],
39});
40
41jQuery('.btn-consultFree-percent').click(function(e) {
42    e.preventDefault();
43    showSevenPercent();
44});
45
46function showSevenPercent() {
47    var bg = jQuery("#popup_consultFree-bg");
48    bg.css('display','block').animate({'opacity':'1'}, 200, function() {
49      var content = jQuery('#popup_contentFree');
50      content.css('margin-top', content.height() / -2).animate({'top':'50%', 'opacity':'1'}, 200);
51    });
52}
53
54function closeForm(e) {
55    var popupWindow = e.find('.popup_contentFree');
56    popupWindow.animate({'top':'-100%', 'opacity':'0'}, 200, function() {
57        e.animate({'opacity':'0'}, 200, function(){
58            e.css('display','none');
59        });
60    });
61}
62
63jQuery('#popup_consultFree-bg').click(function(e) {
64    if (!jQuery(this).find('.popup_contentFree').is(':hover')) {
65        closeForm(jQuery(this));
66    }
67});
68
69jQuery('#popup_consultFree-bg .consultFree-close_popup').click(function(e) {
70    closeForm(jQuery(this).closest('.popup_consultFree-bg'));
71});

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.