1$(function() { 2 var getCookiesFilter = function (cookieNameRegEx) { // ÑилÑÑÑÑÐµÑ ÐºÑки по ÑегÑлÑÑÐ½Ð¾Ð¼Ñ Ð²ÑÑÐ°Ð¶ÐµÐ½Ð¸Ñ 3 var allCookies = document.cookie, 4 arrayCookies = allCookies.split(/\s*;\s*/), 5 cookies = {}, 6 i, 7 max, 8 keyValue; 9 if (allCookies) 10 { 11 for (i = 0, max = arrayCookies.length; i < max; i += 1) 12 { 13 keyValue = arrayCookies[i].split("="); 14 if (keyValue[0].match(cookieNameRegEx)) 15 { 16 cookies[decodeURIComponent(keyValue[0])] = decodeURIComponent(keyValue[1]); 17 } 18 } 19 } 20 return cookies; 21 }, 22 objCookies = getCookiesFilter(/tabs_widget_[0-9a-z]+/); 23 24 $.each(objCookies, function(key, value) 25 { 26 $("." + key + " .elem").eq(value).addClass("tabs-current").siblings().removeClass("tabs-current") 27 .parents("div.tabs").find(".tabs-box").hide().eq(value).show(); 28 }); 29 30 $(".tabs-nav").on("click", ".elem:not(.tabs-current)", function() 31 { 32 var cookieName = $(this).parents(".tabs_widget").attr("class").match(/tabs_widget_[0-9a-z]+/).join(), 33 index = $(this).index(); 34 $(this).addClass("tabs-current").siblings().removeClass("tabs-current") 35 .parents("div.tabs").find(".tabs-box").hide().eq(index).fadeIn(300); 36 $.cookie(cookieName, index, {expires: 1, path: "/"}); 37 }); 38});
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.