PageSourceSearch

https://businesspanorama.ru/wp-content/themes/businesspanorama/library/myscripts.js?v2

js businesspanorama.ru collected 2026-10-08 07:57:36 UTC 9,184 bytes, 252 lines download raw bytes

1$(document).ready(function()
2{
3
4    var opts = {
5        lines: 11, // The number of lines to draw
6        length: 15, // The length of each line
7        width: 5, // The line thickness
8        radius: 10, // The radius of the inner circle
9        corners: 1, // Corner roundness (0..1)
10        rotate: 0, // The rotation offset
11        direction: 1, // 1: clockwise, -1: counterclockwise
12        color: '#e22f83', // #rgb or #rrggbb or array of colors
13        speed: 0.9, // Rounds per second
14        trail: 87, // Afterglow percentage
15        shadow: false, // Whether to render a shadow
16        hwaccel: false, // Whether to use hardware acceleration
17        className: 'spinner', // The CSS class to assign to the spinner
18        zIndex: 2e9, // The z-index (defaults to 2000000000)
19        top: 'auto', // Top position relative to parent in px
20        left: 'auto' // Left position relative to parent in px
21    };
22
23    $(function(){
24        var e = $(".scrollTop");
25        var    speed = 1000;
26        e.click(function(){
27            $("html:not(:animated),body:not(:animated)" ).animate({ scrollTop: 0} ,speed );
28            return false;
29        });
30        function show_scrollTop(){
31            ( $(window).scrollTop()>300 ) ? e.fadeIn(600) : e.hide();
32        }
33        $(window).scroll( function(){show_scrollTop()} ); show_scrollTop();
34    });
35
36    
37    /*$( "button.send" ).click(function() {
38       if(form.valid()) 
39       {
40           form.find('.popup_valid').show();
41           return false;
42       } 
43    });
44    $('.popup_valid div.exit').click(function(){
45        form.submit();
46        return true;
47    })*/
48    $('.li_text').click(function(){
49       if ($(this).hasClass('active'))
50        {
51            $(this).parent().find('.li_content').hide();
52            $(this).removeClass('active');
53            $(this).css('color', "#0f87de");
54            $(this).parent().css('list-style','url(images/plus.png)');
55        }
56        else{
57            $('.where__list').find('span.active').removeClass('active');
58            $('.where__list').find('span').css('color', "#0f87de");
59            $('.where__list').find('li').css('list-style','url(images/plus.png)');
60            $('.where__list').find('div.li_content').hide();
61            $(this).addClass('active');
62            $(this).parent().find('.li_content').show();
63            $(this).css('color', "#000");
64            $(this).parent().css('list-style','url(images/minus.png)');
65        } 
66    });
67    $('.attendance span').click(function(){
68       if ($(this).hasClass('active'))
69        {
70            $(this).parent().find('.attendance__img').hide();
71            $(this).removeClass('active');
72            $(this).parent().find('img.tr').attr({
73                src: "images/tr_bottom.png" });
74        }
75        else{
76            $(this).addClass('active');
77            $(this).parent().find('.attendance__img').show();
78            $(this).parent().find('img.tr').attr({
79                src: "images/tr_top.png" });
80        } 
81    });
82    $('.show').click(function(){
83       if ($(this).hasClass('active'))
84        {
85            $(this).parent().find('.pr').css('height', '100px');
86            $(this).removeClass('active');
87            $(this).html('раскрыть')
88            $(this).css('width', '50px')
89        }
90        else{
91            $(this).addClass('active');
92            $(this).parent().find('.pr').css('height', 'auto');
93            $(this).html('скрыть')
94            $(this).css('width', '37px')
95        } 
96    });
97    p = $('.popup__overlay')
98    $('.begin_now').click(function() {
99		if( 'yaCounter26109093' in window ) yaCounter26109093.reachGoal('Order');
100        p.show()
101        p.find('.popup').show();
102        $("body").css({"overflow":"hidden"});
103    });
104    p.click(function(event) {
105        e = event || window.event
106        if (e.target == this) {
107            $(p).css('display', 'none')
108            $("body").css({"overflow-y":"scroll"});
109            $('.popup').hide();
110        }
111    });
112    $('.close,.js_close').click(function(event) {
113        e = event || window.event
114        if (e.target == this) {
115            $(p).css('display', 'none')
116            $("body").css({"overflow-y":"scroll"});
117            $('.popup').hide();
118        }
119    });
120    var form=$(".form_part");
121    form.validate({
122                    rules: {
123                        part_name: {
124                            required: true,
125                            minlength: 1
126                        },
127                        part_object: {
128                            required: true,
129                            minlength: 1
130                        },
131                        part_email: {
132                            required: true,
133                            email: true
134                        }
135                    },
136                    messages: { 
137                        part_name: {
138                            required: "Please enter a username",
139                            minlength: "Your username must consist of at least 3 characters"
140                        },
141                        part_object: {
142                            required: "Please provide a password",
143                            minlength: "Your password must be at least 6 characters long"
144                        },
145                        part_email: "Please enter a valid email address"
146                    },
147                   /* errorPlacement: function(error, element) {
148                        if (element.attr("name") == "name") error.name 
149                    } */
150                    errorPlacement: function(error, element) {
151                        if (element.attr("name") == "part_name")
152                           $('input[name=part_name]').prev().css('color', '#e22f83')
153                        // error.insertBefore($("input[name=part_name]"));
154                        if (element.attr("name") == "part_object")
155                           $('input[name=part_object]').prev().css('color', '#e22f83')
156                        if (element.attr("name") == "part_email")
157                           $('input[name=part_email]').prev().css('color', '#e22f83') 
158                        if (element.attr("name") != "") $('form.form_part').find('.error_text').show()                   
159                    }
160    });
161    $( "button.send" ).click(function() {
162
163       if(form.valid()) 
164       {
165           var target = document.getElementById('foo_pop_up');
166           var spinner = new Spinner(opts).spin(target);
167
168
169           var $data=form.serialize();
170
171           $.ajax({
172               url:'/ajax.php',
173               data:$data+"&p=send_full",
174               dataType:'json',
175               type:'post',
176               success:function(response){
177                   spinner.stop();
178                   $('.error_text').hide();
179                   if(response.success)
180                   {
181                       form.find('.popup_valid').show();
182                       form.find('.form_feedback').hide();
183                   }
184                   else
185                   {
186                       $('.error_text').show();
187                   }
188               }
189           });
190           return false;
191       }
192    });
193    /*$('div.exit').click(function(){
194        form.submit();
195        return true;
196    })*/
197    var form1=$(".form_question"); 
198    form1.validate({
199                    rules: {
200                        name: {
201                            required: true,
202                            minlength: 3
203                        },
204                        email: {
205                            required: true,
206                            email: true
207                        },
208                        message: {
209                            required: true
210                        }
211                    },
212                    messages: { 
213                        name: {
214                            required: "Please enter a username",
215                            minlength: "Your username must consist of at least 3 characters"
216                        },
217                        message: {
218                            required: "Please provide a password",
219                            minlength: "Your password must be at least 6 characters long"
220                        },
221                        email: "Please enter a valid email address"
222                    }
223                    ,
224                    errorPlacement: function(error, element) {
225                        if (element.attr("name") == "name") error.name 
226                    }
227    });
228    var cur;
229    var prev_cur;
230    var c;
231  /*  var inter = setInterval(function(){
232                                prev_cur=cur;
233                                cur=$('ol.rhino-bullets').find('a.rhino-active-bullet').attr("id");
234
235
236
237
238                            }, 500);*/
239                         
240        $('.container_img').hover(function(){
241            if (!$(this).hasClass('act'))
242            $(this).css('background',' url(/wp-content/themes/businesspanorama/images/gallery_block_back.png) repeat')
243        },function(){
244            if (!$(this).hasClass('act'))
245            $(this).css('background','none')
246        });
247
248    //});
249    //});
250
251});
252

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.