1jQuery(function($){var duration=500;function format_dates(dates){var formattedDates="";if(dates&&Array.isArray(dates)){formattedDates+='<ul class="event-date-list">';for(var i=0;i<dates.length;i++){for(var j=0;j<dates[i].length;j++){var date=dates[i][j];var d=date.split('||');formattedDates+='<li>'+d[0];if(d[1]&&d[0]!=d[1]){var t=d[1].split(' ');formattedDates+=' - '+t[1]} 2formattedDates+='</li>'}} 3formattedDates+='</ul>'} 4return formattedDates} 5function format_single_date(start){var date_string='';if(start){var s=moment(start,'ddd MMM DD YYYY HH:mm:ss');var start_day=(s._isValid)?s.format('dddd, MMMM Do YYYY'):!1;var start_time=(s._isValid)?s.format('h:mm A'):!1;if(start_day){date_string='<ul class="event-date-list"><li>'+start_day;if(start_time){date_string+=", "+start_time} 6date_string+='</li></ul>'}} 7return date_string} 8function modal_template(data){var temp='<div id="fru_post_modal"><div class="modal_wrapper';if(data.post_thumbnail){temp+=' featured'} 9temp+='">';temp+='<div class="modal_controls"><button type="button" class="modal_close_button" aria-label="Close Modal"><svg aria-role="presentation" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M14.545 0L16 1.455 9.454 8 16 14.545 14.545 16 8 9.454 1.455 16 0 14.545 6.545 8 0 1.455 1.455 0 8 6.546 14.545 0z"/></svg></button></div>';temp+='<div class="modal_scroll"><div class="modal_content"><article class="event">';if(data.post_thumbnail){temp+='<aside>'+data.post_thumbnail+'</aside>'} 10temp+='<div class="event-content">';if(data.post_title){temp+='<header><h2>'+data.post_title+'</h2>';if(data.start_date){temp+=format_single_date(data.start_date)}else{if(data.post_metadata.repeating_dates){temp+=format_dates(data.post_metadata.repeating_dates)}} 11if(data.post_metadata.event_sub_title){temp+='<h3>'+data.post_metadata.event_sub_title+'</h3>'} 12temp+='</header>'} 13temp+='<div class="entry-content">';if(data.post_content){temp+=data.post_content} 14if(data.post_metadata.landing_page){temp+='<div class="event-button event-rsvp"><a href="'+data.post_metadata.landing_page+'" class="btn">';temp+='<span class="label">Learn More</span><span class="icon right" aria-hidden="true">';temp+='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 34 34" enable-background="new 0 0 34 34"><style type="text/css">.st0{fill-rule:evenodd;clip-rule:evenodd;}</style><path class="st0" d="M19.8 17l-6.4 6.4 2.2 2.1 8.5-8.5-8.5-8.5-2.2 2.1 6.4 6.4zm-2.8-17c-9.4 0-17 7.6-17 17s7.6 17 17 17 17-7.6 17-17-7.6-17-17-17zm0 2.8c7.8 0 14.2 6.4 14.2 14.2 0 7.8-6.4 14.2-14.2 14.2s-14.2-6.4-14.2-14.2c0-7.8 6.4-14.2 14.2-14.2z"/></svg>';temp+='</span></a></div>'} 15temp+='</div></div>';temp+='</article>';temp+='<div></div></div></div>';return temp} 16function create_spinner(){$('body').append('<div id="fru_post_modal_loading">Loading…</div>');$('#fru_post_modal_loading').fadeIn(duration)};function remove_spinner(){$('#fru_post_modal_loading').fadeOut(duration).remove()} 17function create_modal(data){if(data){var template=modal_template(data);$('body').append(template);$('#fru_post_modal').fadeIn(duration)}};function remove_modal(){$('#fru_post_modal').fadeOut(duration).remove()};function ajax_get_post(url,start,end){if(url){create_spinner();$.ajax({type:'POST',url:ajax_vars.ajax_url,dataType:'json',data:{action:'get_post',permalink:url,start:start},dates:{start:start,end:end}}).done(function(response){var data=response;data.start_date=this.dates.start;data.end_date=this.dates.end;create_modal(data)}).fail(function(response){window.location=url}).always(function(response){remove_spinner()})}};$(document).on('click','a.post_modal',function(e){e.preventDefault();var start=$(e.target).attr('data-startdate');var end=$(e.target).attr('data-enddate');ajax_get_post(e.currentTarget.href,start,end)});$(document).on('click','button.modal_close_button',function(e){e.preventDefault();remove_modal()})})
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.