PageSourceSearch

https://www.cabourg.fr/wp-content/themes/cabourg/assets/js/datepicker.js?ver=1720087582

js cabourg.fr collected 2026-10-02 11:20:40 UTC 801 bytes, 35 lines download raw bytes

1//
2// vanilla-datepicker.js
3// Theme module
4// https://github.com/mymth/vanillajs-datepicker
5//
6'use strict';
7
8( function ( $ ) {
9
10	var toggles = document.querySelectorAll( '[data-toggle="datepicker"]' )
11	
12	toggles.forEach( function ( toggle ) {
13
14		var defaultOptions = {
15			// stickyClass: 'sticky',
16			buttonClass: 'btn',
17			language: 'fr',
18			// format: 'mm/yyyy',
19			// startView: 1,
20			// maxView: 2,
21			// minView: 1
22		};
23
24		var options = $.extend( {}, defaultOptions, JSON.parse( JSON.stringify( toggle.dataset ) ) );
25
26		// Init
27		var datepicker = new Datepicker( toggle, options );
28
29		// Avoid to be the last item (:last-item is used form adding border-radius)
30		var $datepicker = $( datepicker.picker.element ).detach();
31		$( datepicker.element ).before( $datepicker );
32
33	} );
34
35} )( 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.