1$(function () { 2 3 //$.getScript('/assets/js/disabilities.js', function () {}); 4 //$.getScript('/assets/js/accordion.js', function () {}); 5 6 /*//csp blocks 7 if ($('.events_calendar').length) { 8 $.getScript('/assets/js/calendar.js', function () {}); 9 }/**/ 10 11 //UždÄda "Aktualu" ant naujienos img, jei naujiena turi tokiÄ Å¾ymÄ . 12 $('.actual_news').each(function(index, object) { 13 $(object).after(function (test) { 14 return '<div class="actual_text">Aktualu</div>'; 15 }); 16 }); 17 18 19 //fix tituliniame, kad naujienų Å¡one bÅ«tų banners widget 20 $('.news_widget+.banners_widget').each(function() { 21 $('.news_widget,.banners_widget').wrapAll('<div class="row" />'); 22 }); 23 24 25 //region home widgets 26 /*$('.slick-slider, .slick-slider_preperation').on('init', function(event, slick, direction){ 27 if (!$(this).find('.slick-prev-wr').length) { 28 $(this).find('ul.slick-dots').before('<div class="slick-prev-wr"><button class="slick-prev" aria-label="Previous" type="button">Previous</button></div>'); 29 $(this).find('ul.slick-dots').after('<div class="slick-next-wr"><button class="slick-next" aria-label="Next" type="button">Next</button></div>'); 30 } 31 //console.log($(this)); 32 });/**/ 33 $('body') 34 .on('click', '.slick-prev', function (e) { 35 $(this).parents('.slick-slider, .slick-slider_preperation').slick('slickPrev'); 36 }) 37 .on('click', '.slick-next', function (e) { 38 $(this).parents('.slick-slider, .slick-slider_preperation').slick('slickNext'); 39 }) 40 if (typeof $.fn.slick !== 'undefined') { 41 42 $('.slick-slider').each(function (index, object) { 43 var slickSliderDiv = $(this); 44 45 slickSliderDiv.slick({ 46 infinite: false, 47 slidesToShow: 5, 48 slidesToScroll: 5, 49 dots: true, 50 arrows: true, 51 responsive: [ 52 { 53 breakpoint: 1184, 54 settings: { 55 slidesToShow: 4, 56 slidesToScroll: 4, 57 } 58 }, 59 { 60 breakpoint: 976, 61 settings: { 62 slidesToShow: 3, 63 slidesToScroll: 3, 64 } 65 }, 66 { 67 breakpoint: 768, 68 settings: { 69 slidesToShow: 1, 70 slidesToScroll: 1, 71 } 72 } 73 ], 74 }); 75 76 if (slickSliderDiv.find('.slick-slide').length === 1) { 77 slickSliderDiv.find('.slick-dots').hide(); 78 } 79 }); 80 81 //intro slider 82 $('.slick-slider_intro').each(function (index, object) { 83 var slickSliderDiv = $(this); 84 85 slickSliderDiv.slick({ 86 infinite: true, 87 slidesToShow: 1, 88 slidesToScroll: 1, 89 dots: true, 90 arrows: true, 91 autoplay: true, 92 autoplaySpeed: 5000, 93 adaptiveHeight: true, 94 }); 95 96 if (slickSliderDiv.find('.slick-slide').length === 1) { 97 slickSliderDiv.find('.slick-dots').hide(); 98 } 99 }); 100 101 102 //statistics slider 103 $('.statistics_slider').each(function (index, object) { 104 var slickSliderDiv = $(this); 105 106 slickSliderDiv.slick({ 107 infinite: true, 108 slidesToShow: 1, 109 slidesToScroll: 1, 110 dots: true, 111 arrows: true, 112 autoplay: false, 113 adaptiveHeight: true, 114 }); 115 116 if (slickSliderDiv.find('.slick-slide').length === 1) { 117 slickSliderDiv.find('.slick-dots').hide(); 118 } 119 }); 120 121 122 initPrepSlider = function() { 123 if (typeof $('.slick-slider_preperation:visible').attr('data-slick-inited') === "undefined") { 124 $('.slick-slider_preperation:visible').slick({ 125 infinite: false, 126 slidesToShow: 3, 127 slidesToScroll: 3, 128 dots: true, 129 //appendArrows: $('.slick-dots'), 130 arrows: true, 131 responsive: [ 132 { 133 breakpoint: 1184, 134 settings: { 135 slidesToShow: 2, 136 slidesToScroll: 2, 137 } 138 }, 139 { 140 breakpoint: 976, 141 settings: { 142 slidesToShow: 2, 143 slidesToScroll: 2, 144 } 145 }, 146 { 147 breakpoint: 768, 148 settings: { 149 slidesToShow: 1, 150 slidesToScroll: 1, 151 } 152 } 153 ], 154 }); 155 } 156 $('.slick-slider_preperation:visible').attr('data-slick-inited', 1); 157 }; 158 $('button[data-bs-toggle="pill"]').on('shown.bs.tab', function(event) { 159 initPrepSlider(); 160 }); 161 initPrepSlider(); 162 } 163 //endregion home widgets 164 //endregion widgets 165 166 167 168 //region filter 169 //input appended btn 170 $('.clear_input').on('click', function (e) { 171 $(this).siblings('input[type="text"]').val(''); 172 result = $('body').attr('id').split('_'); 173 if (result[1]!=='general') { 174 //window.location.href = '/'+result[1];//redirect to module listing 175 window.location.href = '//' + location.host + location.pathname; 176 } 177 }).siblings('input[type="text"]').each(function (index, object) { 178 if ($(this).val().length) { 179 $(this).siblings('.clear_input').show(); 180 } 181 });
182 //autocomplete input'e rodytų X, kuris iÅ¡trina tekstÄ 183 $('input[type="text"]').on('keydown', function (e) { 184 if ($(this).val().length) { 185 $(this).siblings('.clear_input').show(); 186 } else { 187 $(this).siblings('.clear_input').hide(); 188 } 189 }); 190 191 //listing'e pasirinkus kokį nors Select. Naudojama Events, Documents, Priemones, Invitations moduliuose 192 $('.listing-top select[data-input="select2"]').each(function (index, object) { 193 194 $name = $(this).prop('name'); 195 196 if ($(`form .search_wrap_order select[name="${$name}"]`).length) { 197 $(this).on('select2:select', function(e) { 198 var selectedId = e.params.data.id; 199 var changableSelect = $(`form .search_wrap_order select[name="${$name}"]`); 200 changableSelect.val(selectedId); 201 changableSelect.parents('form').trigger('submit'); 202 }); 203 } 204 }); 205 //paspaudžia checkbox - submit'inti iÅ¡kart 206 $('#detail_filter input[type="checkbox"]').on('change', function (e) { 207 $(this).parents('form').trigger('submit'); 208 }); 209 210 $("#detail_filter .autosubmit").on('change', function (e) { 211 let $form = $(this).closest('form'); 212 if($form.length){ 213 var actionInput = document.createElement('input'); 214 actionInput.type = 'hidden'; 215 actionInput.name = 'action'; 216 actionInput.value = 'reload'; 217 $form.append(actionInput); 218 $form.attr('data-type', null).submit(); 219 } 220 }) 221 222 $('[data-table-orderable]').each(function (index, object) { 223 var that = $(this); 224 var columnName = that.data('table-orderable'); 225 var newUrlAsc = replaceUrlParam(window.location.href, 'ordering', that.data('table-orderable') + '%20asc'); 226 var newUrlDesc = replaceUrlParam(window.location.href, 'ordering', that.data('table-orderable') + '%20desc'); 227 228 var ordering = (new URL(window.location)).searchParams.get('ordering'); 229 [urlColumn, urlDirection] = []; 230 if (ordering) { 231 ordering = decodeURI(ordering); 232 [urlColumn, urlDirection] = ordering.split(' '); 233 } 234 235 if(index === 0 && !urlDirection){ 236 urlColumn = columnName; 237 urlDirection = 'asc'; 238 } 239 240 $(this).wrapInner('<div class="" />'); 241 242 // Determine the link to render based on the current state 243 let linkHtml = ''; 244 if (urlColumn === columnName) { 245 if (urlDirection === 'asc') { 246 linkHtml = `<a href="${newUrlDesc}" class="d-inline active"><i class="fas fa-sort-up"></i><span class="sr-only">Rikiuoti</span></a>`; 247 } else { 248 linkHtml = `<a href="${newUrlAsc}" class="d-inline active"><i class="fas fa-sort-down"></i><span class="sr-only">Rikiuoti</span></a>`; 249 } 250 } else { 251 linkHtml = `<a href="${newUrlAsc}" class="d-inline"><i class="fas fa-sort"></i><span class="sr-only">Rikiuoti</span></a>`; 252 } 253 254 that.append(` 255 <span class="sorting-icons my-auto ps-1"> 256 ${linkHtml} 257 </span> 258 `); 259 260 // $(this).wrapInner('<div class="" />'); 261 // that.append(` 262 // <span class="sorting-icons my-auto ps-1"> 263 // <a href="${newUrlAsc}" class="d-inline `+ (columnName === urlColumn ? 'd-none' : null) + `"><i class="fas fa-sort"></i><span class="sr-only">Rikiuoti</span></a> 264 // <a href="${newUrlAsc}" class="d-inline `+ (urlColumn && columnName === urlColumn && urlDirection === 'desc' ? 'active' : 'd-none') + `"><i class="fas fa-sort-up"></i><span class="sr-only">Rikiuoti</span></a> 265 // <a href="${newUrlDesc}" class="d-inline `+ (urlColumn && columnName === urlColumn && urlDirection === 'asc' ? 'active' : 'd-none') + `"><i class="fas fa-sort-down"></i><span class="sr-only">Rikiuoti</span></a> 266 // </span> 267 // `); 268 $(this).wrapInner('<div class="d-flex" />'); 269 });
270 /** 271 * @param {string} url 272 * @param {string} paramName 273 * @param paramValue 274 * @returns {*|string} 275 */ 276 function replaceUrlParam(url, paramName, paramValue) { 277 //https://stackoverflow.com/a/49033367 278 var href = new URL(url); 279 href.searchParams.set(paramName, paramValue); 280 return href.toString(); 281 282 //https://stackoverflow.com/a/20420424 283 if (paramValue == null) { 284 paramValue = ''; 285 } 286 var pattern = new RegExp('\\b(' + paramName + '=).*?(&|#|$)'); 287 if (url.search(pattern) >= 0) { 288 return url.replace(pattern, '$1' + paramValue + '$2'); 289 } 290 url = url.replace(/[?#]$/, ''); 291 return url + (url.indexOf('?') > 0 ? '&' : '?') + paramName + '=' + paramValue; 292 } 293 //endregion filter 294 295 296 297 //region documents preview modal 298 $('button.preview_document').on('click', function (e) { 299 $.post({ 300 url: baseHref + 'documents/getPreviewModal', 301 data: { 302 id: $(this).data('id'), 303 links: $(this).data('links'), 304 }, 305 //beforeSend: function () {}, 306 success: function (data) { 307 //Kvietimo peržiÅ«roje nÄra tokio div'o, tad sukuriam 308 if (!$('#preview_document_placement').length) { 309 $('body').append('<div id="preview_document_placement"></div>') 310 } 311 $('#preview_document_placement').html(data); 312 313 var myModal = new bootstrap.Modal(document.getElementById('documentPreviewModal'), { 314 keyboard: false 315 }).show(); 316 }, 317 /*error: function (XMLHttpRequest, textStatus, errorThrown) { 318 console.log(XMLHttpRequest, textStatus, errorThrown); 319 },/**/ 320 //complete: function (XMLHTTPRequest, textStatus) {} 321 }); 322 }); 323 //endregion documents preview modal 324 325 326 327 $('.print_link').on('click', function (e) { 328 window.print(); 329 }); 330 331 332 //region popper (Infographics module) 333 var popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]')) 334 var popoverList = popoverTriggerList.map(function (popoverTriggerEl) { 335 return new bootstrap.Popover(popoverTriggerEl, { 336 html: true, 337 }); 338 }) 339 //endregion popper (Infographics module) 340 341 342 $('[data-toggle="tooltip"],[data-bs-toggle="tooltip"]').each(function(){ 343 this.tooltip_inst = new bootstrap.Tooltip(this); 344 }); 345 346 347 348 $(document).on('events_calendar_ready', function(event) { 349 $('[data-csp-bg]').each(function (index, object) { 350 $(this).css('background-color', $(this).data('csp-bg')); 351 }); 352 $('[data-csp-bgimg]').each(function (index, object) { 353 $(this).css('background-image', $(this).data('csp-bgimg')); 354 }); 355 $('[data-csp-color]').each(function (index, object) { 356 $(this).css('color', $(this).data('csp-color')); 357 }); 358 }); 359 $(document).trigger('events_calendar_ready'); 360 361 362 //ARC tools fix 363 setTimeout(function (){ 364 $('.select2-selection__rendered[role="textbox"]').attr('role', 'option'); 365 }, 1000); 366 367 368 $('.search-widget input').on('focusin', function (e) { 369 $(this).parents('.input-group').toggleClass('input-group-focused'); 370 }).on('focusout', function (e) { 371 $(this).parents('.input-group').toggleClass('input-group-focused'); 372 }); 373 374 375 //region Event form 376 function changeEventsRegisterModalHeight() { 377 $('body#module_events #registerModal iframe').height('calc(100vh - 5rem)'); 378 } 379 //Events registration modal opened 380 $('body#module_events #registerModal').on('show.bs.modal', function (event) { 381 var btn = event.relatedTarget; 382 var formUrl = $(btn).data('form-url'); 383 384 if (formUrl) { 385 386 if (formUrl) { 387 var modalContent = $(event.currentTarget).find('.modal
387-content'); 388 389 modalContent.html(`<iframe src="${formUrl}"></iframe>`); 390 changeEventsRegisterModalHeight(); 391 } 392 } 393 394 }) 395 if ($('body#module_forms input#form_event_id').length) { 396 var input = $('body#module_forms input#form_event_id'); 397 $('body#module_forms form.nform').prepend(input); 398 } 399 //endregion Event form 400 401 //newsletters email field live validation 402 if ($('input[name="email"], input[name="email"]').length) { 403 //naudojama jquery-validate 404 $('input[name="email"]').parents('form').validate({ 405 // Specify validation rules 406 rules: { 407 // The key name on the left side is the name attribute 408 // of an input field. Validation rules are defined 409 // on the right side 410 email: { 411 required: true, 412 // Specify that email should be validated 413 // by the built-in "email" rule 414 email: true 415 }, 416 }, 417 418 showErrors: function (errorMap, errorList) { 419 $(errorList).each(function (index, object) { 420 $(object.element).parent().siblings('.invalid-feedback.d-block').html(object.message); 421 }); 422 this.defaultShowErrors(); 423 }, 424 success: function(element) { 425 element.parent().siblings('.invalid-feedback.d-block').html(''); 426 }, 427 errorPlacement: function(error, element) { 428 //error.insertAfter(element); 429 element.parent().siblings('.invalid-feedback.d-block').html(error.html()); 430 }, 431 }); 432 } 433 434 //newsletters/activate 435 $('select[data-input="bootstrap-multiselect"]').each(function (index, object) { 436 object = $(this); 437 object.multiselect({ 438 buttonClass: 'btn btn-outline-secondary', 439 buttonContainer: '<div class="dropdown" />', 440 selectAllText: ' Pasirinkti visus', 441 filterPlaceholder: 'IeÅ¡koti', 442 nonSelectedText: 'Niekas nepasirinkta', 443 nSelectedText: 'pasirinkta', 444 allSelectedText: 'Visi pasirinkti', 445 resetText: 'Atstatyti', 446 templates: { 447 //button: '<button type="button" class="multiselect dropdown-toggle" data-toggle="dropdown"><span class="multiselect-selected-text"></span></button>', 448 button: '<button type="button" class="multiselect dropdown-toggle" data-bs-toggle="dropdown"><span class="multiselect-selected-text"></span></button>', 449 option: '<button type="button" class="multiselect-option dropdown-item" data-bs-toggle="tooltip" data-bs-placement="top"></button>', 450 }, 451 onChange: function(option, checked, select) { 452 var brands = object.find('option:selected'); 453 var selected = []; 454 $(brands).each(function(index, brand){ 455 selected.push([$(this).val()]); 456 }); 457 if (selected.length) { 458 object.parents('.form-group').find('.invalid-feedback.d-block').html(''); 459 } else { 460 object.parents('.form-group').find('.invalid-feedback.d-block').html('Nieko nepasirinkus bus atsisakyta prenumerators.'); 461 } 462 }, 463 createOptionValueAfter: function(option, button) { 464 var description = option.data('description'); 465 if (description) { 466 button.attr('title', option.data('description')); 467 button.attr('data-bs-original-title', option.data('description')); 468 } else { 469 button.attr('title', ''); 470 button.attr('data-bs-original-title', ''); 471 } 472 }, 473 }); 474 }); 475 476 //Puslapio apaÄioj deÅ¡inÄj visad matomas klausimo uždavimo mygtukas visuose puslapiuose. 477 $('#faq_question').fancybox({ 478 type: 'iframe', 479 fitToView : false, 480 autoSize: true, 481 baseClass: 'faq-wrap', 482 toolbar : false, 483 iframe : { 484 preload: true, 485 css: { 486 maxWidth: '450px', 487 // width: 450, 488 // height: '70%', 489 } 490 }, 491 helpers: { 492 overlay : null 493 }, 494 beforeShow: function (){ 495 $('#faq_question').addClass('opacity-50'); 496 }, 497 afterClose: function (){ 498 $('#faq_question').removeClass('opacity-50'); 499 }, 500 501 }) 502
503 //Priemones vidiniame puslapyje paspaudÄ DUK klausimo uždavimo mygtukÄ 504 if ($('#faqModal').length) { 505 $('#faqModal').on('show.bs.modal', function (e) { 506 var modal = $(this); 507 508 $.post({ 509 url: baseHref + 'faq/submit_modal', 510 //datatype: 'json',//xml, json, script, text, html 511 //async: false 512 data: { 513 priemone: modal.attr('data-priemone'), 514 invitation: modal.attr('data-invitation'), 515 }, 516 //beforeSend: function (jqXHR, settings) {}, 517 success: function (data) { 518 $('#faqModal').html(data); 519 520 if (typeof SystemsightCaptcha !== 'undefined') { 521 SystemsightCaptcha.prototype.initialize(); 522 } 523 }, 524 //error: function (jqXHR, textStatus, errorThrown) { 525 // console.error(jqXHR, textStatus, errorThrown); 526 //}, 527 //complete: function (jqXHR, textStatus) {} 528 }); 529 530 }); 531 } 532 533 534 if (typeof $('.center-slider').slick === "function") { 535 $('.center-slider').slick({ 536 centerMode: true, 537 centerPadding: '25px', 538 slidesToShow: 1, 539 variableWidth: true, 540 prevArrow: $('.prev'), 541 nextArrow: $('.next'), 542 dots: true, 543 appendDots: $('.slick-slider-dots'), 544 545 responsive: [ 546 { 547 breakpoint: 768, 548 settings: { 549 variableWidth: false, 550 } 551 } 552 ] 553 }); 554 } 555 556 function initShowMore(){ 557 $('.desc-info-wr').each(function() { 558 var descInfoWr = $(this); 559 var descInfo = descInfoWr.find('.desc-info'); 560 var descInfoHeight = descInfo.outerHeight(); 561 var descInfoWrHeight = descInfoWr.outerHeight(); 562 563 if (descInfoHeight > descInfoWrHeight) { 564 descInfoWr.siblings('.d-flex').find('.more-link').show(); 565 descInfoWr.siblings('.d-flex').find('.less-link').hide(); 566 567 } else { 568 descInfoWr.addClass('no-buttons'); 569 descInfoWr.siblings('.d-flex').find('.more-link').hide(); 570 descInfoWr.siblings('.d-flex').find('.less-link').hide(); 571 } 572 573 descInfoWr.siblings('.d-flex').find('.more-link').click(function() { 574 descInfoWr.addClass('full-content'); 575 $(this).hide(); 576 descInfoWr.siblings('.d-flex').find('.less-link').show(); 577 }); 578 579 descInfoWr.siblings('.d-flex').find('.less-link').click(function() { 580 descInfoWr.removeClass('full-content'); 581 $(this).hide(); 582 descInfoWr.siblings('.d-flex').find('.more-link').show(); 583 }); 584 }); 585 } 586 initShowMore() 587 $('.reinit-show-more').click(function () { 588 $('.desc-info-wr').removeClass('no-buttons') 589 setTimeout(function (){ 590 591 initShowMore(); 592 },200); 593 }); 594 595 function setEqualHeight() { 596 $('.financing_slide >.d-flex').css('height', 'auto'); 597 598 let maxHeight = 0; 599 $('.financing_slide >.d-flex').each(function() { 600 let height = $(this).height(); 601 if (height > maxHeight) { 602 maxHeight = height; 603 } 604 }); 605 606 $('.financing_slide >.d-flex').height(maxHeight); 607 } 608 609 setEqualHeight(); 610 611 $(window).resize(function() { 612 setEqualHeight(); 613 }); 614 615 //Pridedamos nuorodos ir ieÅ¡koma ar paprastas link'as, ar telefono nr, ar email 616 $('.tab-pane .desc-info table tbody tr').each(function() { 617 $(this).find('td').each(function() { 618 var cell = $(this); 619 var text = cell.text().trim(); 620 if (text && !cell.find('a').length) { 621 if (text.includes('@')) {
622 cell.html('<a href="mailto:' + text + '">' + text + '</a>'); 623 } else if (/^(https?:\/\/|www\.)/.test(text)) { 624 cell.html('<a href="' + text + '" target="_blank">' + text + '</a>'); 625 } else if (/^\+?\d{7,15}$/.test(text)) { 626 cell.html('<a href="tel:' + text + '">' + text + '</a>'); 627 } 628 } 629 }); 630 }); 631 632 $('h1').each(function() { 633 if ($.trim($(this).text()) === '') { 634 $(this).remove(); 635 } 636 }); 637 638 $('th:not([scope])').attr('scope', 'col'); 639 640 $('.close-fancybox').on('click', function () { 641 parent.$.fancybox.close(); 642 }); 643 644 645 // If in admin added file, then add donwload link and file size 646 $('.form-ajax-content p a').each(function () { 647 const link = $(this); 648 const href = link.attr('href'); 649 650 if (href) { 651 // Use a regex to check if the URL points to a file 652 const isFile = /\/([^\/]+)$/.test(href); 653 654 if (isFile) { 655 // Fetch file size 656 $.ajax({
657 url: href, 658 type: 'HEAD', 659 success: function (data, status, xhr) { 660 const fileSize = xhr.getResponseHeader('Content-Length'); 661 let fileSizeText = ''; 662 663 if (fileSize) { 664 fileSizeText = formatFileSize(fileSize); 665 } 666 667 const downloadLink = $( 668 `<span class="">(${fileSizeText} 669 <a href="${href}" download class="skip_ext text-decoration-none" title="Atsisiųsti"> 670 <i class="fa fa-download"></i> 671 </a>) 672 </span>` 673 ); 674 675 link.after(downloadLink); 676 } 677 }); 678 } 679 } 680 }); 681 682 $('input[type="checkbox"].parent-input').click(function (event) { 683 const id = $(this).val(); 684 const checked = $(this).prop('checked'); 685 if (!$(this).hasClass('disable-auto-select') || !checked) { 686 $('.child-row.for-parent-' + id).each(function () { 687 $(this).prop('checked', checked).change(); 688 }); 689 } 690 }); 691 692 $('input[type="checkbox"].child-row').click(function (event){ 693 event.stopPropagation(); 694 const parentId = $(this).data('parent-id'); 695 const parent = $('input[type="checkbox"][value="'+parentId+'"].parent-input'); 696 if (!parent) { 697 return; 698 } 699 let activeChildren = $('input[type="checkbox"][data-parent-id="'+parentId+'"][checked="checked"].child-row').length 700 if ($(this).prop('checked')) { 701 activeChildren += 1; 702 } else { 703 activeChildren -= 1; 704 } 705 706 if (activeChildren <= 0) { 707 if (!$(parent).hasClass('disable-auto-select')) { 708 $(parent).prop('checked', false).change(); 709 } 710 } else { 711 $(parent).prop('checked', true).change(); 712 } 713 }); 714 715 //format file size 716 function formatFileSize(bytes) { 717 const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB']; 718 if (bytes === 0) return '0 Bytes'; 719 const i = Math.floor(Math.log(bytes) / Math.log(1024)); 720 return parseFloat((bytes / Math.pow(1024, i)).toFixed(2)) + ' ' + sizes[i]; 721 } 722 //------------------CHATBOT---------------------- 723 $('#chat-btn').on('click', function (){ 724 $('.chat-bot').addClass('active') 725 }) 726 $('#chat-close-btn').on('click', function (){ 727 $('.chat-bot').removeClass('active') 728 }) 729 // $(document).on('click', function(event) { 730 // if (!$(event.target).closest('#chat-icon').length) { 731 // if(!$(event.target).closest('#chat-container').length){ 732 // const chatContainer = document.getElementById('chat-container'); 733 // chatContainer.style.display = 'none' 734 // console.log('AAAA'); 735 // } 736 // 737 // } 738 // }); 739}); 740
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.