1jQuery(document).ready(function(){ 2 jQuery(document).bind('gform_post_render', function(){ 3 initRcal(); 4 }); 5 function initRcal(){ 6 var CurrentDate = new Date(); 7 var settings = { 8 formats: { 9 display: { 10 date: '%D/%M/%Y' 11 } 12 }, 13 i18n: { 14 days: { 15 abbreviation: rendezvous_data.weeks 16 }, 17 months: { 18 entire: rendezvous_data.monthLong 19 } 20 } 21 }; 22 var callback = function(rdv) {}; 23 jQuery('.ginput_container_date').each(function(){ 24 var nm = jQuery(this).find('input.gform-datepicker').attr('name'); 25 if (jQuery(this).find('.rendez-vous-' + nm).length > 0) {}else{ 26 jQuery(this).prepend('<div class="rendez-vous-'+nm+'"></div>'); 27 jQuery(".rendez-vous-"+nm).on('rendezvous-change', function(event, rdv) { 28 var dt = ( '0' + rdv.getDay() ).slice( -2 ); 29 var mn = ( '0' + rdv.getMonth() ).slice( -2 ); 30 var yr = rdv.getYear(); 31 32 var d = new Date(); 33 var month = d.getMonth()+1; 34 var day = d.getDate(); 35 var output = d.getFullYear() + '/' + 36 (month<10 ? '0' : '') + month + '/' + 37 (day<10 ? '0' : '') + day; 38 39 if( Date.parse(yr+'/'+mn+'/'+dt) < Date.now() && output!=yr+'/'+mn+'/'+dt ){ 40 jQuery(this).closest('.gfield').append('<div class="gfield_validation_message">Please Select Valid Date.</div>'); 41 jQuery(".rendez-vous-"+nm+" .rendezvous-input-date").val(''); 42 var fid = jQuery(this).closest('.gfield').find('input.gform-datepicker').attr('id'); 43 setTimeout(function(){ 44 jQuery('#'+fid).val(''); 45 jQuery('[name="'+nm+'"]').val(''); 46 },100); 47 setTimeout(function(){ 48 jQuery(".rendez-vous-"+nm).closest('.gfield').find('.gfield_validation_message').remove(); 49 },2500); 50 51 } 52 jQuery('[name="'+nm+'"]').val(dt+'/'+mn+'/'+yr); 53 }).RendezVous(settings, callback); 54 jQuery(".rendez-vous-"+nm+" input").val( jQuery('[name="'+nm+'"]').val() ); 55 } 56 }); 57 } 58 initRcal(); 59} );
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.