1$(document).ready(function () { 2 3 // закÑÑÑие модалÑного окна 4 $(document).on('click', '.js-second-top-search', function (e) { 5 $('.js-second').removeClass('active'); 6 $('.js-burger').removeClass('active'); 7 }); 8 9 function replaceQueryParam(param, newval, search) { 10 var regex = new RegExp("([?;&])" + param + "[^&;]*[;&]?"); 11 var query = search.replace(regex, "$1").replace(/&$/, ''); 12 return (query.length > 2 ? query + "&" : "?") + (newval ? param + "=" + newval : ''); 13 } 14 15 $(document).on('click', '.language-button', function (e) { 16 e.preventDefault(); 17 var lang = $(this).closest(".language-switcher").data('language'); 18 var lang_new = lang !== 'ru' ? 'ru' : 'en'; 19 20 window.location = replaceQueryParam('user_lang', lang_new, window.location.search); 21 return false; 22 }); 23 24}); 25
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.