1$(document).ready(function() { 2 $(".custom-select-panel .custom-select-option").click(function(){ 3 var selectActive = $(this).attr('data-value'); 4 document.location.href = $("#sidebar-menu option[value='"+selectActive+"']").attr('data-link'); 5 }); 6 7 8 var arrMonths = ["ЯнваÑÑ","ФевÑалÑ","ÐаÑÑ","ÐпÑелÑ","Ðай","ÐÑнÑ","ÐÑлÑ","ÐвгÑÑÑ","СенÑÑбÑÑ","ÐкÑÑбÑÑ","ÐоÑбÑÑ","ÐекабÑÑ",] 9 10 $('.datepicker-here').datepicker({ 11 onSelect: function(dateText, inst) { 12 13 var month = dateText.split(',')[0]; 14 var monthValue = $.inArray(month, arrMonths) +1 15 var year = $('.datepicker--nav-title').html(); 16 document.location.href = "?TIME_FILTER="+year+"-"+monthValue+""; 17 18 } 19 }); 20 21 $(document).ready(() => { 22 23 setTimeout(() => { 24 $('.datepicker-here-ext').datepicker({ 25 onSelect: function(dateText, inst) { 26 27 //console.log(dateText); 28 } 29 }); 30 31 $('#form-control-change-ext').change((e) => { 32 33 document.getElementById('form-control-instance').setAttribute( 34 'action', e.target.value 35 ); 36 }); 37 38 customSelect( 39 document.getElementById('form-control-change-ext') 40 ); 41 42 customSelect( 43 document.getElementById('form-control-select-ext') 44 ); 45 46 customSelect(document.getElementById('svg-map-select-input-ext')); 47 48 $('#svg-map-select-input-ext').change((e) => { 49 50 $('.main-map-deput-search-wrapper-block').addClass('main-map-deput-search-wrapper-block_disabled'); 51 52 $.get('/', {'district_id': e.target.value}, (obDocument) => { 53 54 let dataset = $(obDocument).find('#main-map-deput-search-list').html(); 55 56 $('#main-map-deput-search-list').html(dataset); 57 58 $('.main-map-deput-search-wrapper-block').removeClass('main-map-deput-search-wrapper-block_disabled'); 59 60 }, 'html'); 61 }); 62 }, 500); 63 }) 64 65 66 form-control-select-ext 67 $('.datepicker--button[data-action="clear"]').click(function(){ 68 document.location.href = '/news/'; 69 }); 70 71 $.extend({ 72 getUrlVars: function(){ 73 var vars = [], hash; 74 var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); 75 for(var i = 0; i < hashes.length; i++) 76 { 77 hash = hashes[i].split('='); 78 vars.push(hash[0]); 79 vars[hash[0]] = hash[1]; 80 } 81 return vars; 82 }, 83 getUrlVar: function(name){ 84 return $.getUrlVars()[name]; 85 } 86 }); 87 var byName = $.getUrlVar('TIME_FILTER'); 88 89 var yearVal = byName.split('-')[0]; 90 var MonthVal = byName.split('-')[1] - 1; 91 92 var nameMonth = arrMonths[MonthVal]; 93 94 $(".datepicker-here").val(""+nameMonth+", "+yearVal+""); 95 96});
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.