PageSourceSearch

https://krokus.tv/templates/krokus-news/js/libs.js

js krokus.tv collected 2026-10-02 22:34:08 UTC 2,905 bytes, 118 lines download raw bytes

1$(document).ready(function() {
2
3 $('#newsticker_reveal').newsticker( {
4              'style'         : 'reveal',
5              'tickerTitle'   : 'Події за добу:',
6              'letterRevealSpeed' : 30,
7              'transitionSpeed' : 2000,
8              'pauseOnHover'  : false,
9              'autoStart'     : true,
10              'showControls'  : true
11          });
12
13$(function() {
14	$( "#logindialog" ).dialog({
15		autoOpen: false,
16		modal: true,
17		show: {effect: 'fade', duration: 150, times: 999},
18		hide: {effect: 'fade', duration: 150},
19		width: 360
20	});
21
22$('.loginlink').click(function(){
23
24	$('body').append('<div id="mask"></div>');
25    	$('#mask').fadeIn(300);
26		$('#mask,.ui-dialog-titlebar-close').click(function() {
27			$('#logindialog').dialog('close');
28	 		$('#mask').fadeOut(300 , function() {
29					$('#mask').remove();
30        });
31	});
32
33	$('#logindialog').animate({opacity: 'show'}, 'slow'),
34		$('#logindialog').dialog('open');
35			return false;
36		});
37	});
38
39$('.mslider').mobilyslider({
40		content: '.sliderContent',
41		children: 'div',
42		transition: 'fade',
43		animationSpeed: 650,
44		autoplay: false,
45		autoplaySpeed: 10000,
46		pauseOnHover: false,
47		bullets: false,
48		arrows: true,
49		arrowsHide: true,
50		prev: 'prev',
51		next: 'next',
52		animationStart: function(){},
53		animationComplete: function(){}
54	});
55
56$('.custom-news-block:even').css('background-color' , '#f9f9f9');
57$('.world:even').css('background-color' , '#f9f9f9');
58$('.short2:even').css('background-color' , '#f9f9f9');
59$('.title-list:even').css('background-color' , '#fafafb');
60
61$('ul.tabs,ul.tabs2').delegate('li:not(.current)', 'click', function() {
62	$(this).addClass('current').siblings().removeClass('current')
63		.parents('div.section').find('div.box').hide().eq($(this).index()).fadeIn(450);
64})
65
66$('li.sublnk').click(function() {
67	$(this).find('ul.subtopmenu').slideToggle("fast");
68});
69
70$(function() {
71			var pull 		= $('#pull');
72				menu 		= $('ul#bottom_menu');
73				menuHeight	= menu.height();
74
75			var pull2		= $('#pull2');
76				menu2		= $('.tm');
77				menuHeight	= menu.height();
78
79			$(pull).on('click', function(e) {
80				e.preventDefault();
81				menu.slideToggle("fast");
82			});
83
84			$(pull2).on('click', function(e) {
85				e.preventDefault();
86				menu2.slideToggle("fast");
87			});
88
89    		$(window).resize(function(){
90        		var w = $(window).width();
91        		if(w > 959 && menu2.is(':hidden'))  {
92        			menu2.removeAttr('style');
93        		}
94        		if(w > 959 && menu.is(':hidden'))  {
95        			menu.removeAttr('style');
96        		}
97    		});
98});
99
100  $('#carousel').flexslider({
101    animation: "slide",
102    controlNav: false,
103    animationLoop: false,
104    slideshow: false,
105    itemWidth: 100,
106    itemMargin: 5,
107    asNavFor: '#slider'
108  });
109
110  $('#slider').flexslider({
111    animation: "slide",
112    controlNav: false,
113    animationLoop: false,
114    slideshow: false,
115    sync: "#carousel"
116  });
117
118});

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.