1$(document).ready(function() { 2 3 let currentHash = window.location.hash; 4 5 $('.list-tabs li').removeClass('active'); 6 7 // ÐÐ°Ñ Ð¾Ð´Ð¸Ð¼ вкладкÑ, ÑÑÑ ÑÑÑлка ÑÐ¾Ð²Ð¿Ð°Ð´Ð°ÐµÑ Ñ ÑÑагменÑом URL и добавлÑем ей клаÑÑ 'active' 8 if (currentHash) { 9 // СÑавниваем ÑÑÐ°Ð³Ð¼ÐµÐ½Ñ URL Ñ href ÑÑÑлок 10 $('.list-tabs li a').each(function() { 11 if (this.hash === currentHash) { 12 $(this).parent('li').addClass('active'); 13 } 14 }); 15 } 16 17 $('.list-tabs li').click(function() { 18 // УбиÑаем клаÑÑ 'active' Ñо вÑÐµÑ ÑлеменÑов 19 $('.list-tabs li').removeClass('active'); 20 21 // ÐобавлÑем клаÑÑ 'active' ÑолÑко на ÑÐ¾Ñ ÑлеменÑ, по коÑоÑÐ¾Ð¼Ñ ÐºÐ»Ð¸ÐºÐ½Ñли 22 $(this).addClass('active'); 23 }); 24}); 25 26
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.