PageSourceSearch

https://www.bons-plans-voyage-new-york.com/frenchyorkers/wp-content/themes/frenchyorkers/js/calendrier.js

js bons-plans-voyage-new-york.com collected 2026-10-02 10:34:20 UTC 1,720 bytes, 66 lines download raw bytes

1(function($)
2{	
3	function ajax_refreshCalendar(target_div, year, month)
4	{
5		var url;
6		if(typeof ajax_object != "undefined") { url = ajax_object.ajax_url; } else { url = 'https://www.bons-plans-voyage-new-york.com/frenchyorkers/wp-admin/admin-ajax.php'; }
7
8		$.ajax({
9			url : url,
10			type : 'post',
11			data :
12			{
13				action : 'my_action',
14				// security : ajax_object.my_nonce,
15				year : year,
16				month : month,
17			},
18			success : function( response )
19			{
20				// console.log("ok");
21				$("#"+target_div).html(response);
22			}
23		}).fail(function (response)
24		{
25			// console.log("fail");
26			// console.log(response);
27		});
28	}
29
30
31	$(document).ready(function()
32	{
33		var currentTime = new Date()
34		var month = currentTime.getMonth() + 1;  // returns the month (from 0 to 11)
35		if(month < 10)
36			month = "0" + month;
37		var year = currentTime.getFullYear();
38
39		ajax_refreshCalendar("calendrier_wrapper", year, month);
40
41
42		$("#calendrier_wrapper").on('click', '#calender_section .calender_nav a', function(e) 
43		{
44			e.preventDefault(); // Prevent them from actually visiting the URL when clicking.
45			
46			var year = $(this).attr('year');
47			var month = $(this).attr('month');
48			var target_div = 'calendrier_wrapper';
49
50			ajax_refreshCalendar(target_div, year, month);
51		});
52
53		$('#calendrier_wrapper').on('change', '.month_dropdown', function()
54		{
55			var target_div = 'calendrier_wrapper';
56			ajax_refreshCalendar(target_div, $('.year_dropdown').val(), $('.month_dropdown').val());
57		});
58
59		$('#calendrier_wrapper').on('change', '.year_dropdown', function()
60		{
61			var target_div = 'calendrier_wrapper';
62			ajax_refreshCalendar(target_div, $('.year_dropdown').val(), $('.month_dropdown').val());
63		});
64	});
65
66})(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.