1/** 2 * User: Konstantin 3 * Date: 24.09.2015 4 * Time: 21:58 5 */ 6 7var filterHelper = { 8 baseUrl: '', 9 blockId: '', 10 makeUrl: function () { 11 var 12 link, 13 year = $(".filter-year .b-select--current span"), 14 month = $(".filter-month .b-select--current span"), 15 section = $(".filter-section .b-select--current span"), 16 sectionCode = section.data('id'), 17 yearId = year.data('id'), 18 monthId = month.data('id'); 19 20 link = this.baseUrl; 21 if (sectionCode) { 22 link += sectionCode + '/'; 23 } 24 if (yearId) { 25 link += 'year_' + yearId + '/'; 26 } 27 if (monthId) { 28 link += 'month_' + monthId + '/'; 29 } 30 return link; 31 }, 32 changeUrl: function () { 33 var block = $(this.blockId), 34 url = this.makeUrl(); 35 36 if (block.data('no_history')) { 37 this.loadData(url, block); 38 return; 39 } 40 41 if (window.history && window.history.pushState) { 42 window.history.pushState({ 43 module: "skv", 44 url: url 45 }, document.title, url); 46 this.loadData(url, block); 47 } else { 48 window.location.href = url; 49 } 50 }, 51 loadData: function (url, block) { 52 $.get(url, {ajax:'Y'}, function(data){ 53 block.html(data); 54 }); 55 } 56};
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.