1/* 2You can use this file with your scripts. 3It will not be overwritten when you upgrade solution. 4*/ 5 6//window.onerror = function (msg, url, line, col, exception) { BX.ajax.get('/ajax/error_log_logic.php', { data: { msg: msg, exception: exception, url: url, line: line, col: col } }); } 7 8$(document).ready(function(){ 9 10 11 $(document).on('click', '.mobile_regions .city_item', function(e){ 12 e.preventDefault(); 13 var _this = $(this); 14 $.removeCookie('current_region'); 15 $.cookie('current_region', _this.data('id'), {path: '/',domain: 'next.aspro-partner.ru'}); 16 }); 17 18 $(document).on('click', '.region_wrapper .more_item:not(.current) span', function(e){ 19 $.removeCookie('current_region'); 20 $.cookie('current_region', $(this).data('region_id'), {path: '/',domain: 'next.aspro-partner.ru'}); 21 }); 22 23 $(document).on('click', '.confirm_region .aprove', function(e){ 24 var _this = $(this); 25 $.removeCookie('current_region'); 26 $.cookie('current_region', _this.data('id'), {path: '/',domain: 'next.aspro-partner.ru'}); 27 }); 28 29 $(document).on('click', '.cities .item a', function(e){ 30 e.preventDefault(); 31 var _this = $(this); 32 $.removeCookie('current_region'); 33 $.cookie('current_region', _this.data('id'), {path: '/',domain: 'next.aspro-partner.ru'}); 34 }); 35 36 $(document).on('click', '.popup_regions .ui-menu a', function(e){ 37 e.preventDefault(); 38 var _this = $(this); 39 var href = _this.attr('href') 40 if(typeof arRegions !== 'undefined' && arRegions.length){ 41 $.removeCookie('current_region'); 42 for(i in arRegions){ 43 var region = arRegions[i]; 44 if(region.HREF == href){ 45 $.cookie('current_region', region.ID, {path: '/',domain: 'next.aspro-partner.ru'}); 46 } 47 } 48 } 49 location.href = href; 50 }); 51}); 52 53$(document).ready(function () { 54 55 var pdfWidth = (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) ? '10%' : '10%'; 56 $(".gallerypdf").fancybox({ 57 maxHeight: 1000, 58 fitToView: false, 59 height: '50%', 60 width: pdfWidth, 61 autoSize: false, 62 closeClick: false 63 }); 64}); 65 66$(document).cookiePolicy();
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.