PageSourceSearch

https://zan.kz/js/site.js?q=3&nocache=639258787932267383

js zan.kz collected 2026-09-24 15:35:26 UTC 14,341 bytes, 443 lines download raw bytes

1$(document).mouseup(function (e) {
2   
3    var container = $(".doc-left-menu-hint");
4    if (!container.is(e.target) && container.has(e.target).length === 0) {      
5        if ($(e.target).parents(".hint-body").length > 0) {
6            var temp1 = 0;
7        }
8        else {
9            container.hide();
10            $(".hint-body").hide();
11        }       
12    }
13
14    var regContainer = $(".region-container");
15    if (!regContainer.is(e.target) && regContainer.has(e.target).length === 0) {
16        if ($(e.target).parents(".region-container").length > 0) {
17            var temp2 = 0;
18        }
19        else {
20            regContainer.hide();
21        }
22    }
23});
24
25$(function () {
26    $(window).scroll(function () {
27        if ($(this).scrollTop() != 0) {
28            $('#toTop').fadeIn();
29        } else {
30            $('#toTop').fadeOut();
31        }
32    });
33    $('#toTop').click(function () {
34        $('body,html').animate({ scrollTop: 0 }, 800);
35    });
36});
37
38$(function () {  
39    $.fn.datepicker.defaults.language = languageUI.toLowerCase();
40    var owlDictionary = $('.dictionary-carousel');
41    owlDictionary.owlCarousel({
42        items: 1,
43        dots: false,
44        margin: 0,
45        loop: true,
46        autoplay: true,
47        autoplayTimeout: 22000,
48        autoplayHoverPause: true
49    });
50    var owlConsulting = $('.consulting-carousel');
51    owlConsulting.owlCarousel({
52        items: 1,
53        dots: false,
54        margin: 0,
55        loop: true,
56        autoplay: true,
57        autoplayTimeout: 17000,
58        autoplayHoverPause: true
59    });
60    var owlSections = $('.sections-carousel');
61    owlSections.owlCarousel({
62        items: 1,
63        dots: false,
64        margin: 0,
65        loop: true,
66        autoplay: true,
67        autoplayTimeout: 27000,
68        autoplayHoverPause: true
69    });
70    var owlMaintop = $('.maintop-carousel');
71    owlMaintop.owlCarousel({
72        items: 1,
73        dots: false,
74        margin: 0,
75        loop: true,
76        autoplay: true,
77        autoplayTimeout: 32000,
78        autoplayHoverPause: true
79    });
80   
81    $('.play').on('click', function () {
82        owl.trigger('play.owl.autoplay', [1000]);
83    });
84    $('.stop').on('click', function () {
85        owl.trigger('stop.owl.autoplay');
86    });
87    $(".authorized").click(function () {
88        if (!authorized) {
89            $("#modalLogin").modal();
90            return false;
91        }
92    });
93
94    $(".is-subscribed").click(function () {
95        if (!isSubscribed) {
96            $("#modalTarif").modal();
97            return false;
98        }
99    });
100    
101    $('#words-container').perfectScrollbar();
102    
103    $('.scroll').perfectScrollbar();
104
105    ConsultingHelper.SearchSubmit();
106    JournalHelper.SearchSubmit();
107
108    var w = parseInt($(".search-panel-logo").width())+45;
109    $(".menu-space").animate({
110        width: w+"px"
111    }, 1000);
112  
113    $(".select2").select2();
114
115    if ($(".words-container-my").length > 0)
116    {
117        var id = $(".first-id").val();
118        DictionaryHelper.ShowDescription(id);
119    }
120
121    $(".to-modal").click(function () {
122        var div = $(this).attr("cls");
123        if ($("." + div).css('display') == 'none') {
124            $("." + div).show();
125        }
126        else {
127            $("."+div).hide();
128        }
129    });
130   
131    CalendarHelper.InitProductionCalendar();
132
133	 //TODO: need remove this code 
134    $(".fa-expand").parent().click(function () {
135    	 $(".menu").css('display', 'none');
136    	 $(".side-menu").css('display', 'none');
137    	 $(".search-panel").css('display', 'none');
138    });
139
140	 //TODO: need release search func
141    $(".search-situation-tree").keyup(function () {
142        sitTreeApi.filter(null, {
143            search: $(this).val()
144        });
145    });
146  
147    $.datepicker.setDefaults($.datepicker.regional[languageUI.toLowerCase()]);
148    $(".datepicker-").datepicker({
149        format: 'dd.mm.yyyy',
150        changeMonth: true,
151        changeYear: true,
152        autoclose: true
153    });
154    $(".datepicker-").datepicker($.datepicker.regional[languageUI.toLowerCase()]).on("changeDate", function (ev) {
155        var id = $(this).attr('sync-input');
156        var date = ev.date; 
157        date.setDate(date.getDate() + 1);      
158        $('#' + id).val(date.toISOString().substring(0, 10));
159    });
160    $(".main-datepicker").datepicker({
161        format: 'dd.MM.YYYY',
162        weekStart: 1,
163        todayHighlight: true
164    });
165    $(".datepicker-").inputmask("99.99.9999");
166    if ($(".summernote").length > 0) {
167        $(".summernote").summernote({
168            height: 200,
169            'fontSize': '14',
170            toolbar: [],
171        });
172    }
173    if ($(".summernote-large").length > 0) {
174        $(".summernote-large").summernote({
175            height: 500,
176            'fontSize': '14',
177            toolbar: [],
178        });
179    }
180 
181    if ($("#statuses-charts").length > 0) {
182    	 Morris.Bar({
183    	 	 element: 'statuses-charts',
184    	 	 data: [
185				{ y: 'В силе', a: 3059 },
186				{ y: 'С истекшим сроком', a: 7 },
187				{ y: 'Утратил силу', a: 235 }
188    	 	 ],
189    	 	 xkey: 'y',
190    	 	 ykeys: ['a'],
191    	 	 labels: ['Количество']
192    	 });
193    }
194
195    $('[data-toggle="tooltip"]').tooltip();
196
197	 //Init Toast Message If not null 
198    CommonHelper.InitMessage();
199
200	 //Init Calendars law and tax types 
201    if ($("#fullcalendar-law").length > 0){
202        CalendarHelper.InitLawCalendar();
203    }
204    if ($("#fullcalendar-tax").length > 0) {
205    	 CalendarHelper.InitTaxCalendar();
206    }
207    if ($(".fullcalendar-news").length > 0) {
208        CalendarHelper.InitNewsCalendar();
209    }
210	 //On click spell element 
211    $(".spell").click(function () {
212        $(".search-text").val($(".spell").html());
213        $(".form-search-doc").submit();
214        return false;
215    });
216
217	 //Init I-Check elements 
218    $('.i-checks').iCheck({
219        checkboxClass: 'icheckbox_square-green',
220        radioClass: 'iradio_square-green'
221    });
222    
223    TemplateHelper.SearchSubmit();
224    DictionaryHelper.SearchSubmit();
225
226    $(".search-text").keypress(function () {
227        $(".current-page").val('1');
228    });
229    
230    $('.pagination').pagination({
231        prevText: '<',
232        nextText: '>',
233        currentPage: $(".current-page").val(),
234        items: $(".total").val(),
235        itemsOnPage: 10,
236        cssStyle: 'light-theme',
237        onPageClick: function (pageNumber, event) {
238            $(".current-page").val(pageNumber);
239            if ($(".form-search-dic").length > 0) {
240                $(".form-search-dic").submit();
241            }
242            if ($(".form-search-tmp").length > 0) {
243                $(".form-search-tmp").submit();
244            }
245            if ($(".lastdoc-form").length > 0) {
246                $(".lastdoc-form").submit();
247            }
248        }
249    });
250    
251	 //Init notification count in cabinet 
252    NotificationHelper.NotificationsCount();
253
254	 //Init select in forum add page
255    ForumHelper.SelectThemeChange();
256	 
257	 /*detail template*/
258    if ($(".tmp-detail").length>0)	 
259    {
260        TemplateHelper.GetBody();
261    }
262    
263    $(".owl-carousel").owlCarousel({ autoplayTimeout: 3000, items: 7, autoplay: true });
264
265    $('#select-tariff').change(function () {
266        if ($('.tariff-online').length > 0 && $('.tariff-currency').length > 0 && $('.tariff-price-month').length > 0) {
267            var tariffsum = 0;
268            var month = $(this).val();
269            switch (month) {
270                case "1":
271                    tariffsum = $('.tariff-price-month').eq(0).html();
272                    break;
273                case "6":
274                    tariffsum = $('.tariff-price-month').eq(0).html() * 0.95 * 6;
275                    break;
276                case "12":
277                    tariffsum = $('.tariff-price-month').eq(0).html() * 0.9 * 12;
278                    break;
279            }
280            $('.tariff-online').eq(0).html(tariffsum + ' ' + $('.tariff-currency').eq(0).html());
281        }
282    });
283    $('.search-text-').keyup(_.debounce(function () {
284        if ($('.form-search-dic').length > 0) $('.form-search-dic').submit();
285        else
286        DictionaryHelper.createTree('');       
287    }, 500));
288
289    if ($(".select-news").length > 0) {
290        NewsHelper.LoadMainNews(languageUI);
291    }
292
293    if ($(".form-analyticsByStatus").length > 0) {
294        AnalyticsHelper.InitByStatus();
295    }
296    if ($(".form-analyticsByRegion").length > 0) {
297        AnalyticsHelper.InitByRegion();
298    }
299});
300
301$(function () {
302    $(document).ready(function () {
303        $('#modalChangeIsSend').click(function () {
304            $.ajax({
305                url: '/' + languageUI + '/Cabinet/GetSendToEmail',
306                method: 'GET'
307            }).done(function (output) {
308                $.each(output, function (index, element) {
309                    $('input[name=Id]').val(element[0].id);
310                    element[0].isSendFavourites == true ? $('input[name=IsSendFavourites]').attr('checked', true) : $('input[name=IsSendFavourites]').removeAttr('checked');
311                    element[0].isSendComment == true ? $('input[name=IsSendComment]').attr('checked', true) : $('input[name=IsSendComment]').removeAttr('checked');
312                    element[0].isSendBookmark == true ? $('input[name=IsSendBookmark]').attr('checked', true) : $('input[name=IsSendBookmark]').removeAttr('checked');
313                    element[0].isSendConsulting == true ? $('input[name=IsSendConsulting]').attr('checked', true) : $('input[name=IsSendConsulting]').removeAttr('checked');
314                    element[0].isSendDictionary == true ? $('input[name=IsSendDictionary]').attr('checked', true) : $('input[name=IsSendDictionary]').removeAttr('checked');
315                    element[0].isSendForum == true ? $('input[name=IsSendForum]').attr('checked', true) : $('input[name=IsSendForum]').removeAttr('checked');
316                    element[0].isSendNewsLetter == true ? $('input[name=IsSendNewsLetter]').attr('checked', true) : $('input[name=IsSendNewsLetter]').removeAttr('checked');
317                });
318            });
319        });
320    });
321});
322$(function () {
323    $(document).ready(function () {
324        $('#saveIsSendEmail').click(function () {
325            var data = {
326                Id: $('input[name=Id]').val(),
327                IsSendComment: $('input[name=IsSendComment]').prop('checked'),
328                IsSendFavourites: $('input[name=IsSendFavourites]').prop('checked'),
329                IsSendBookmark: $('input[name=IsSendBookmark]').prop('checked'),
330                IsSendNewsLetter: $('input[name=IsSendNewsLetter]').prop('checked'),
331                IsSendConsulting: $('input[name=IsSendConsulting]').prop('checked'),
332                IsSendForum: $('input[name=IsSendForum]').prop('checked'),
333                IsSendDictionary: $('input[name=IsSendDictionary]').prop('checked')
334            };
335
336            $.ajax({
337                type: "POST",
338                url: '/' + languageUI + '/Cabinet/ChangeSendToEmail',
339                data: data,
340                success: function (response) {
341                },
342                error: function (xhr, textStatus, errorThrown) {
343                }
344
345            });
346        });
347    });
348});
349
350$('a#getDogovor').click(function (e) {
351    e.preventDefault(); 
352    window.location.href = '/files/tipovoidogovor.docx';
353});
354
355window.onload = function () {
356    $.ajax({
357        url: '/' + languageUI + '/Document/DataBaseState',
358        method: 'GET'
359    }).done(function (output) {
360        $.each(output, function (index, element) {
361            index == "allDocs" ? $(".footer-all-doc").html(element) : "";
362            index == "ruDocs" ? $(".footer-ru-doc").html(element) : "";
363            index == "kkDocs" ? $(".footer-kk-doc").html(element) : "";
364            index == "enDocs" ? $(".footer-en-doc").html(element) : "";
365            index == "lastUpdateDateDoc" ? $(".footer-last-doc").html(element.split(' ', 1).join(' ')) : "";
366        });
367    });
368};
369
370$(function () {
371    $('.advert-click').click(function (event) {
372        var id = $(this).find("span").text();
373        var data = {
374            AdvertId: id
375        };
376        $.ajax({
377            url: '/' + languageUI + '/Document/AdvertClick',
378            data: data
379        }).done(function (data) {
380
381        });
382    });
383});
384
385$(function () {
386    $('#advert-carousel.carousel').carousel({
387        interval: 10000,
388        pause: 'none'
389    });
390});
391
392$(document).ready(function () {
393    $('input[type=radio][name=variants]').change(function () {
394        $("#selectedAnswer").val($('input[name=variants]:checked').val());
395    });
396    $('#go').click(function () {
397        var resultAnswer = [], data = {};
398        data = {
399            SelectedAnswer: $('input[name=variants]:checked').val(),
400            SelectedId: $('input[name=questionId]').val()
401        };
402
403        resultAnswer.push(data);
404        $.ajax({
405            type: "POST",
406            url: '/' + languageUI + '/Static/UserPoll',
407            data: { resultAnswer },
408            success: function (response) {
409                if (response.result != "Error") {
410                    $(".userpoll-total-result").css("display", "none");
411                    $(".userpoll-success").css("display", "block");
412                }
413            },
414            error: function (xhr, textStatus, errorThrown) {
415                // TODO: Show error
416            }
417        });
418    });
419});
420
421$(function () {
422    $('#webinar-carousel.carousel').carousel({
423        interval: 5000,
424        pause: 'none'
425    });
426});
427
428$("#isCommentArea").on('keyup', function () {
429    if (this.value.length >= 1) {
430        $("#comment-alert").show();
431    } else {
432        $("#comment-alert").hide();
433    }
434});
435
436$('#contentSearchCheck').on("change", function() {
437    var isContentS = $('#contentSearchCheck').prop('checked');
438    if (isContentS) {
439        $(".isContentSearchJournal").val(true);
440    } else {
441        $(".isContentSearchJournal").val(false);
442    }
443});

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.