PageSourceSearch

https://pravkniga.ru/js/script.js

js pravkniga.ru collected 2026-10-02 10:58:11 UTC 1,694 bytes, 36 lines download raw bytes

1$(document).ready(function(){
2    $('#popup').hide();
3
4    $('#opaco').show();
5    $('#window').css('top', '50%');
6
7    $('.product .frame').click(function(){$('#popup').show();});$('#window .close,#opaco').click(function(){$('#popup').hide();});
8
9    $('#scroll li a').click(function(){i=$(this).attr('rel');$(this).parent('li').addClass('current').siblings('li').removeClass('current');$('#views p').hide();$(i).show();});
10
11    $('#push1').click(function(){$('.search2, #push2').show();$(this).hide();});
12    $('#push2').click(function(){$('.search2, #push1').show();$(this).hide();$('.search2').hide();});
13    $('#top').click(function(){$('html, body').animate({scrollTop:0},600);return false;});
14    $('.tabs a').click(function(){$('.tabs li').removeClass('current');$(this).parent('li').addClass('current');var a=$(this).attr('rel'); $('.divs .div').hide(); $('.divs #'+a).show();});
15
16    // скролл
17// при нажатии на кнопку scrollup
18    $('.scrollup').click(function () {
19        // переместиться в верхнюю часть страницы
20        $("html, body").animate({
21            scrollTop: 0
22        }, 1000);
23    });
24    // // при прокрутке окна (window)
25    $(window).scroll(function () {
26        // если пользователь прокрутил страницу более чем на 200px
27        if ($(this).scrollTop() > 400) {
28            // то сделать кнопку scrollup видимой
29            $('.scrollup').fadeIn();
30        }
31        // иначе скрыть кнопку scrollup
32        else {
33            $('.scrollup').fadeOut();
34        }
35    });
36})

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.