1$(document).ready(function(){ 2 $('.jsChangeLayout').click(function() { 3 if ($(this).hasClass('layoutList')) { 4 $(this).addClass('layoutGrid').removeClass('layoutList'); 5 $('.pricesBlock .price-points').each(function() { 6 $(this).closest('.pricesBlock').addClass('points-align'); 7 }); 8 $('#product_list').removeClass('grid-view'); 9 var expires = $('.hello-bar').data('hide-time') * 24 * 60 * 60; 10 var date = new Date(new Date().getTime() + expires * 7); 11 document.cookie = "listingView=list; path=/; expires=" + date.toUTCString(); 12 } 13 else { 14 $(this).addClass('layoutList').removeClass('layoutGrid'); 15 $('.pricesBlock').removeClass('points-align'); 16 $('#product_list').addClass('grid-view'); 17 var expires = $('.hello-bar').data('hide-time') * 24 * 60 * 60; 18 var date = new Date(new Date().getTime() + expires * 7); 19 document.cookie = "listingView=grid; path=/; expires=" + date.toUTCString(); 20 } 21 }); 22 23 if (document.cookie.split(';').filter(function(item) { 24 return item.indexOf('listingView=grid') >= 0 25 }).length) { 26 $('.jsChangeLayout').addClass('layoutList').removeClass('layoutGrid'); 27 $('#product_list').addClass('grid-view'); 28 } else if (document.cookie.split(';').filter(function(item) { 29 return item.indexOf('listingView=list') >= 0 30 }).length) { 31 $('.jsChangeLayout').addClass('layoutGrid').removeClass('layoutList'); 32 $('#product_list').removeClass('grid-view'); 33 34 $('.pricesBlock .price-points').each(function() { 35 $(this).closest('.pricesBlock').addClass('points-align'); 36 }); 37 } 38 39 $('#selectPrductSort').unbind().on('change', function(){ 40 var splitData = $(this).val().split(':'); 41 $('#strainfinder').addClass('loading'); 42 $('#orderby').val(splitData[0]); 43 $('#orderway').val(splitData[1]); 44 $('#submitFilterBtn').click(); 45 }); 46 47});
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.