//TOP MENU (function(){ $(document).on('click', e=>{ if(e.target){ // top menu if(e.target.closest('.to-sitemap')) $('#nav-box').slideToggle(); else{ if(!e.target.closest('#nav-box') && window.innerWidth search_form.removeClass('disabled'); let disableForm = (time)=>{ search_form.addClass('disabled'); setTimeout(enableForm, time); }; if(lastSubmit && delta { if(search_form.is('.disabled')){ e.preventDefault(); return false; } localStorage.setItem('azBibSearchLastSubmit', Date.now()); disableForm(LIMIT); }); })(); // Показываем панели при скролле и наведении на них (function(){ let isMobile = window.innerWidth { if(isMobile) $('.active').removeClass('active'); clearTimeout(scrollTimeout); $body.addClass('scrolling'); $body.removeClass('non-scrolling'); scrollTimeout = setTimeout(removeScrollingClass, 4000); }, removeScrollingClass = ()=>{ $body.removeClass('scrolling'); $body.addClass('non-scrolling'); }, fixMenus = e=>{$body.addClass('fixed-menus')}, unfixMenus = e=>{$body.removeClass('fixed-menus')} topMenu = $('#top_menu'); document.addEventListener('scroll', e => { let st = window.scrollY; if (st > lastScrollTop) topMenu.addClass('hidden-on-scroll'); else topMenu.removeClass('hidden-on-scroll'); if (Math.abs(st - lastScrollTop) > 5) { scrolled(); } lastScrollTop = st { if(!e.target.closest('#top_menu, #bottom_menu, #nav-box')){ scrolled(); unfixMenus(); } return true; }); //Наведение на меню $('#top_menu, #bottom_menu').mouseenter(fixMenus).mouseleave(unfixMenus); //Наверх $container = $('html, body'); $('#toTop').click(e=>{ e.preventDefault(); if ($container.is(':animated')) return; $container.animate({scrollTop: 0}, 'slow'); }); })(); function copyTextToClipboard(text) { let res = false; var textArea = document.createElement("textarea"); textArea.value = text; // Avoid scrolling to bottom textArea.style.top = "0"; textArea.style.left = "0"; textArea.style.position = "fixed"; document.body.appendChild(textArea); textArea.focus(); textArea.select(); try { res = document.execCommand('copy'); var msg = res ? 'successful' : 'unsuccessful'; console.log('Копирование ' + msg); } catch (err) { console.error('Ошибка копирования', err); } document.body.removeChild(textArea); return res; }

My-anime-girl-haku-on-pc Ch.baker.planner Com.gbs.scifiwarrior Starlight-of-aeons-on-pc At.hypertyper