PageSourceSearch

https://bakhtiniada.ru/js/endojournals/main.js

js bakhtiniada.ru collected 2026-10-04 20:08:27 UTC 4,772 bytes, 133 lines download raw bytes

1$(document).ready(function(){
2
3	for (var i = 1; i <= categoryCount; i++) {
4		$('#rotatorBlock_' + i).cycle({ 
5		        	fx:      'scrollHorz',
6		        	timeout:  10000,
7		        	speed:    500,
8		        	pager:    '#rotatorNav_' + i,
9		        	after:    opacityFix(i),
10		        	fit:        1,
11		        	slideResize: 0,
12		        	//containerResize: 0,
13		       		next:   '#rotatorNavRight_' + i, 
14		        	prev:   '#rotatorNavLeft_' + i
15		});
16	}
17
18    function opacityFix(id){
19        $('#rotatorNav' + id + ' a').not('.activeSlide').each(function(){
20            $(this).css('opacity','0.7').attr('data-opacity', '0.7');
21        });
22        $('#rotatorNav' + id + ' a.activeSlide').css('opacity','1').attr('data-opacity', '1');
23    };
24    
25    function rotatorNavPreview(id){
26        var imgArray = [];
27        $('#rotatorBlock' + id + ' > div').each(function(){
28            var imgSrc = $(this).find('.thumb').attr('src');
29            imgArray.push(imgSrc);
30        });
31        for (var i = 0; i < imgArray.length; i++) {
32		if (imgArray[i]) {
33			var targetSrc = imgArray[i].split('.jpg');
34			$('#rotatorNav' + id + ' a:eq('+i+')').css('opacity','0.7').attr('data-opacity', '0.7').empty().html('<img src="'+targetSrc[0]+'.jpg" alt="" >');
35		}
36        }
37        $('#rotatorNav' + id + ' a.activeSlide').css('opacity','1').attr('data-opacity', '1');
38        $('#rotatorNav' + id + ' a').wrapAll('<div class="wrap"></div>');
39    }
40
41	for (var i = 1; i <= categoryCount; i++) {
42	    rotatorNavPreview(i);
43	}
44
45    $('section.leftSide section.similarJournals dl:even').addClass('even');
46    $('section.leftSide section.similarJournals dl').each(function(){
47        $(this).find('dt').css('opacity','0.8').attr('data-opacity', '0.8');
48    });
49    $('.rotatorNavLeft, .rotatorNavRight').css('opacity','0.6').attr('data-opacity', '0.6');
50    //$('header ul li').not('.active').css('opacity','0.8').attr('data-opacity', '0.8');
51    $('section.leftSide section.similarJournals dl dt, .rotatorNavLeft, .rotatorNavRight, .rotatorNav a').hover(
52            function(){
53                $(this).stop().animate({opacity:1}, 200);
54            },
55            function(){
56                var prevOpacity = $(this).attr('data-opacity');
57                $(this).stop().animate({opacity:prevOpacity}, 200);
58            }
59    );
60    
61    $('header ul li').not('.active').hover(
62        function(){
63            $(this).stop().animate({ backgroundColor:"#1c64b4" }, 300 );
64        },
65        function(){
66            $(this).stop().animate({ backgroundColor:"#0f4580" }, 300 );
67        }
68    );
69        
70    $('section.leftSide section.rotator .rotatorBlock .txt a.more, section.leftSide section.quickSearch button').hover(
71        function(){
72            $(this).stop().animate({ backgroundColor:"#3b9aff" }, 300 );
73        },
74        function(){
75            $(this).stop().animate({ backgroundColor:"#096eda" }, 300 );
76        }
77    );
78        
79    //trackbar
80    var dateObj = new Date();
81    var min_year = 1990;
82    var max_year = dateObj.getFullYear(); 
83    $('section.quickSearch .fields ul li.date .left input').val(min_year);
84    $('section.quickSearch .fields ul li.date .right input').val(max_year);
85});
86
87cookie = {
88        set: function (c, d, b) {
89                if (b) {
90                        var a = new Date;
91                        a.setTime(a.getTime() + b * 24 * 60 * 60 * 1E3);
92                        b = "; expires=" + a.toGMTString()
93                } else b = "";
94                document.cookie = c + "=" + d + b + "; path=/"
95        },
96        get: function (c) {
97                c = c + "=";
98                for (var d = document.cookie.split(";"), b = 0; b < d.length; b++) {
99                        for (var a = d[b]; a.charAt(0) == " ";) a = a.substring(1, a.length);
100                        if (a.indexOf(c) == 0) return a.substring(c.length, a.length)
101                }
102                return null
103        },
104        del: function (c) {
105                cookie.set(c, "", -1)
106        }
107};
108
109(function($) {  
110	$(function() {  
111		$('nav ul li a:not(:only-child)').click(function(e) {
112		$(this).siblings('.dropdown').toggle();
113		$('.dropdown').not($(this).siblings()).hide();
114		e.stopPropagation();
115	});
116
117	$('html').click(function() {
118		$('.dropdown').hide();
119	});
120
121	$('#closeRightSidebar').click(function() {
122		$('#sidebar').toggleClass('sidebar-closed');
123		document.getElementById('closeRightSidebar').classList.toggle('closed');
124	});
125
126  $('#navMobileLink').click(function() {
127  $('nav ul').slideToggle();
128  });
129  $('#navMobileLink').bind('click', function() {
130  this.classList.toggle('desamuvsnis');
131  });
132  });
133})(jQuery);

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.