1$(document).ready(function(){ 2 $('div.readmore .inner').load('moreinfo.html',function(){ 3 $('div.readmore .inner code.html').chili(); 4 $('div.readmore .inner code.color').removeClass("color").addClass("html") 5 .each(function(){ 6 $(this).text( "<a " + $(this).text() + ">" ).chili() 7 t = $(this).html(); 8 $(this).html(t.substr(37,t.length-80).replace(/ /,"")) 9 }); 10 }); 11 $('a.readmore').toggle( 12 function(){$(this).html("Close").get(0).blur(); $('div.readmore').slideDown(); return false;}, 13 function(){$(this).html("Read More").get(0).blur(); $('div.readmore').slideUp(); return false;}); 14}); 15 16function checkCookies(){ 17 let cookieDate = localStorage.getItem('cookieDate'); 18 let cookieNotification = document.getElementById('cookie_notification'); 19 let cookieBtn = cookieNotification.querySelector('.cookie_accept'); 20 21 // ÐÑли запиÑи пÑо кÑкиÑÑ Ð½ÐµÑ Ð¸Ð»Ð¸ она пÑоÑÑоÑена на 1 год, Ñо показÑваем инÑоÑмаÑÐ¸Ñ Ð¿Ñо кÑкиÑÑ 22 if( !cookieDate || (+cookieDate + 31536000000) < Date.now() ){ 23 cookieNotification.classList.add('show'); 24 } 25 26 // ÐÑи клике на кнопкÑ, в локалÑное Ñ ÑанилиÑе запиÑÑваеÑÑÑ ÑекÑÑÐ°Ñ Ð´Ð°Ñа в ÑиÑÑеме UNIX 27 cookieBtn.addEventListener('click', function(){ 28 localStorage.setItem( 'cookieDate', Date.now() ); 29 cookieNotification.classList.remove('show'); 30 }) 31} 32checkCookies();
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.