PageSourceSearch

https://www.hotelducadalba.com/templates/template_2/js/jquery.datepick-en.js

js hotelducadalba.com collected 2026-10-06 15:25:00 UTC 1,655 bytes, 32 lines download raw bytes

1function convertiData(data, formato) {
2    formato = formato.replace("DD", (data.getDate() < 10 ? '0' : '') + data.getDate());
3    formato = formato.replace("MM", (data.getMonth() < 9 ? '0' : '') + (data.getMonth() + 1));
4    formato = formato.replace("YYYY", data.getFullYear());
5    return formato;
6}
7
8function anno(){
9    var anno = new Date();
10    return anno.getFullYear();
11}
12
13$(function() {
14    $("#datepicker").val(convertiData(new Date(), "DD/MM/YYYY"));
15    $(".imgCalend").click(function(){$("#datepicker").datepicker("show");});
16    $( "#datepicker").datepicker({
17            showButtonPanel: false,	//mostra i bottoni chiudi e oggi
18            changeMonth: true,	//mostra il cambio del mese
19            changeYear: true,	//mostra il cambio dell'anno
20            showAnim: "fadeIn",	//effetto apertura del calendario
21            dateFormat: 'dd/mm/yy',
22            minDate: new Date(anno(), 1 - 1, 1),	//imposta la data minima che si vuole visualizzare nel calendario
23            maxDate: new Date(anno()+1, 12, 1),	//imposta la data massima che si vuole visualizzare nel calendario
24            firstDay: 0,	//il primo giorno della settimana, 0 per domenica, 1 per Lunedì;
25            dayNamesMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
26            monthNamesShort: ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],
27            monthNames: ['January','February','March','April','May','June','July','August','September','October','November','December'],
28            closeText: 'Close',
29            currentText: 'Today' 
30    });
31    $('.ui-datepicker').addClass('notranslate');
32});

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.