PageSourceSearch

https://www.borovan.cz/wp-content/themes/borovan/js/main.js?ver=1.0.1

js borovan.cz collected 2026-10-02 11:14:06 UTC 3,053 bytes, 111 lines download raw bytes

1jQuery(document).ready(function($) {
2	$('.hraci_dne_top .hrac_dne').click(function (e) {
3		var url = $(this).parent('a').attr('href')
4		window.open(url,"_self")
5		console.log(url)
6	});
7	$('.hraci_dne_archive .hrac_dne').click(function (e) {
8		var url = $(this).find('a').attr('href')
9		window.open(url,"_self")
10		console.log(url)
11	});
12
13
14	$('.sidebar').theiaStickySidebar({
15		// Settings
16		additionalMarginTop: 30
17	  });
18
19	// fix in CSS - START
20	// align arrows on the hraci_dne objects
21	//function fix_arrow(){
22	//	var w = $('.hrac_dne').width();
23	//	$('.hrac_dne span').css({
24	//		left : ( w - 65 )
25	//	})
26	//}
27	//$(window).resize(function(event) {
28		//fix_arrow();
29	//});
30
31	//setTimeout(function() {
32	//	//fix_arrow();
33	//}, 200);
34	// fix in CSS - END
35
36	var tooltipTriggerList = [].slice.call(document.querySelectorAll('.t-tip'))
37	var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
38  		return new bootstrap.Tooltip(tooltipTriggerEl)
39	});
40    // $('.t-tip').tooltip();
41
42    h_width = $('.hraci_dne_top').width();
43		
44	// function moveme(){
45	// 	setTimeout(function() {
46	// 		if(h_width <= 440){
47	// 			$('.moveable').insertAfter('.hraci_dne_top')
48	// 		}
49	// 	}, 300);
50	// }
51	// moveme();
52	
53	$('.user_box h4').click(function (e) {
54		e.preventDefault();
55		$('.user_box').toggleClass('open');
56	});
57
58	// search toggle
59	$('.searchsubmit').click(function (e) {
60		$(this).toggleClass('active');
61		$('#searchform').toggleClass('show');
62	});
63	
64
65	$(".flexslider").flexslider({
66			animation: "slide",
67			animationLoop: false,
68			//itemWidth: 210,
69			itemMargin: 0,
70			// animationLoop: true,             //Boolean: Should the animation loop? If false, directionNav will received "disable" classes at either end
71			//smoothHeight: false,            //{NEW} Boolean: Allow height of the slider to animate smoothly in horizontal mode
72			startAt: 0,                     //Integer: The slide that the slider should start on. Array notation (0 = first slide)
73			slideshow: true,                //Boolean: Animate slider automatically
74			slideshowSpeed: 7000,           //Integer: Set the speed of the slideshow cycling, in milliseconds
75			animationSpeed: 600, 
76		  });
77	
78
79		
80	
81	$('.dropdown').hover(function() {
82		  $(this).find('.dropdown-menu').stop(true, true).delay(100).fadeIn(100);
83		}, function() {
84		  $(this).find('.dropdown-menu').stop(true, true).delay(100).fadeOut(100);
85	});  
86
87	// Animated hamburger mobile menu
88	$('.navbar-toggler-button').on('click', function() {
89		$('.animated-hamburger').toggleClass('open');
90	  });
91
92	// slow scroll animation. all browsers  
93	function scrollOnPageLoad() {
94		// to top right away
95		if (window.location.hash) scroll(0, 0);
96		// void some browsers issue
97		setTimeout(scroll(0, 0), 1);
98		var hashLink = window.location.hash;
99		  if ($(hashLink).length) {
100			$(function () {
101				// *only* if we have anchor on the url
102				// smooth scroll to the anchor id
103				$('html, body').animate({
104				  scrollTop: $(window.location.hash).offset().top - 20
105				}, 2000);
106			});
107		  }
108	}
109	scrollOnPageLoad();
110	
111});

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.