PageSourceSearch

https://mayak.help/wp-content/themes/mayak/js/calendar.js?1757866233

js mayak.help collected 2026-09-25 14:21:45 UTC 728 bytes, 29 lines download raw bytes

1$(function(){
2	$('body').on('click', '.calendar ._bar ._left, .calendar ._bar ._right', function(){
3		let p=$(this).parent().parent().parent(),
4			prm=p.data('data');
5		console.log(prm);
6		if ($(this).hasClass('_left')){
7			prm.month -= 1;
8		}else{
9			prm.month += 1;
10		}
11		if (prm.month < 1) {
12			prm.month = 12;
13			prm.year -= 1;
14		}
15		if (prm.month > 12) {
16			prm.month = 1;
17			prm.year += 1;
18		}
19		calendar.load(prm);
20	});
21});
22
23var calendar = {
24	load:function(param){
25		if (!param.year) param.year = new Date().getFullYear();
26		if (!param.month) param.month = new Date().getMonth()+1;
27		$('#'+param.container).data('data', param).load('/wp-content/themes/mayak/blocks/calendar.php', param);
28	}
29};

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.