PageSourceSearch

https://lifeyoga.ro/wp-content/plugins/timetable/js/timetable.js?ver=4.2.30

js lifeyoga.ro collected 2026-10-07 13:23:01 UTC 4,527 bytes, 124 lines download raw bytes

1jQuery(document).ready(function($){
2	$(".tt_tabs").bind("tabsbeforeactivate", function(event, ui){
3		$("html, body").animate({scrollTop: $("#"+$(ui.newTab).children("a").attr("id")).offset().top}, 400);
4	});
5	$(".tt_tabs").on("tabsactivate", function(event, ui){
6		ui.newPanel.find(".image_carousel").trigger('configuration', ['debug', false, true]);
7	});
8	
9	$(".tt_tabs").tabs({
10		event: 'change',
11		show: true,
12		create: function(){
13			$("html, body").scrollTop(0);
14		}
15	});
16	
17	//browser history
18	$(".tt_tabs .ui-tabs-nav a").click(function(){
19		if($(this).attr("href").substr(0,4)!="http")
20			$.bbq.pushState($(this).attr("href"));
21		else
22			window.location.href = $(this).attr("href");
23	});
24	$(".ui-accordion .ui-accordion-header").click(function(){
25		$.bbq.pushState("#" + $(this).attr("id").replace("accordion-", ""));
26	});
27	//tabs box navigation
28	$(".tabs_box_navigation").mouseover(function(){
29		$(this).find("ul").removeClass("tabs_box_navigation_hidden");
30	});
31	$(".tabs_box_navigation a").click(function(event){
32		if($.param.fragment()==$(this).attr("href").replace("#", "") || ($.param.fragment()=="" && $(this).attr("href").replace("#", "").substr(0, 10)=="all-events"))
33			event.preventDefault();
34		$(".tabs_box_navigation_selected .selected").removeClass("selected");
35		$(this).parent().addClass("selected");
36		$(this).parent().parent().parent().children('label').text($(this).text());
37		$(this).parent().parent().addClass("tabs_box_navigation_hidden");
38	});
39	
40	//hashchange
41	$(window).bind("hashchange", function(event){
42		var hashSplit = $.param.fragment().split("-");
43		var hashString = "";
44		for(var i=0; i<hashSplit.length-1; i++)
45			hashString = hashString + hashSplit[i] + (i+1<hashSplit.length-1 ? "-" : "");
46		if(hashSplit[0].substr(0,7)!="filter" && hashSplit[0].substr(0,4)!="page")
47			$(".tabs_box_navigation a[href='#" + decodeURIComponent($.param.fragment()) + "']").trigger("click");
48		$('.tt_tabs .ui-tabs-nav [href="#' + decodeURIComponent(hashString) + '"]').trigger("change");
49		$('.tt_tabs .ui-tabs-nav [href="#' + decodeURIComponent($.param.fragment()) + '"]').trigger("change");
50	}).trigger("hashchange");
51	
52	//tooltip
53	$(".tt_tooltip").bind("mouseover click", function(){
54		var attachTo = $(this);
55		if($(this).is(".event_container"))
56			attachTo = $(this).parent();
57		var position = attachTo.position();
58		var tooltip_text = $(this).children(".tt_tooltip_text");
59		tooltip_text.css("width", $(this).outerWidth() + "px");
60		tooltip_text.css("height", tooltip_text.height() + "px");
61		tooltip_text.css({"top": position.top-tooltip_text.innerHeight() + "px", "left": position.left + "px"});
62	});
63	
64	//upcoming events
65	$(".tt_upcoming_events").each(function(){
66		var self = $(this);
67		var autoscroll = 0;
68		var elementClasses = $(this).attr('class').split(' ');
69		for(var i=0; i<elementClasses.length; i++)
70		{
71			if(elementClasses[i].indexOf('autoscroll-')!=-1)
72				autoscroll = elementClasses[i].replace('autoscroll-', '');
73		}
74		self.carouFredSel({
75			direction: "up",
76			items: {
77				visible: (self.children().length>2 ? 3 : self.children().length),
78				height: 'variable'
79			},
80			scroll: {
81				items: 1,
82				easing: "swing",
83				pauseOnHover: true
84			},
85			prev: {button: self.next().children('#upcoming_event_prev')},
86			next: {button: self.next().children('#upcoming_event_next')},
87			auto: {
88				play: (parseInt(autoscroll) ? true : false)
89			}
90		});
91		
92		self.find("li a.tt_upcoming_events_event_container, li>span").hover(function(){
93			self.trigger('configuration', ['debug', false, true]);
94		},
95		function(){
96			setTimeout(function(){
97				self.trigger('configuration', ['debug', false, true]);
98			}, 1);
99		});
100	});
101	$(window).resize(function(){
102		$(".tt_upcoming_events").trigger('configuration', ['debug', false, true]);
103	});
104	
105	//timetable row heights
106	/*var maxHeight = Math.max.apply(null, $(".timetable:visible tr td:first-child").map(function ()
107	{
108		return $(this).height();
109	}).get());
110	$(".timetable:visible tr td").css("height", maxHeight);
111	//timetable height fix
112	$(".timetable .event").each(function(){
113		if($(this).children(".event_container").length>1)
114		{
115			var childrenHeight = 0;
116			$(this).children(".event_container").not(":last").each(function(){
117				childrenHeight += $(this).innerHeight();
118			});
119			var height = $(this).height()-childrenHeight-($(this).parent().parent().width()<=750 ? 9 : 22);
120			if(height>$(this).children(".event_container").last().height())
121				$(this).children(".event_container").last().css("height", height + "px");
122		}
123	});*/
124});

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.