PageSourceSearch

https://www.nautilusexplorer.com/wp-content/themes/twentynineteen-child/js/featured.js

js nautilusexplorer.com collected 2026-10-02 13:33:41 UTC 1,663 bytes, 74 lines download raw bytes

1
2
3
4function displayFeaturedTripsHP(data){
5	i=1;
6	max=4;
7	if(jQuery('#featuredTrips').hasClass('blog')){
8		max=2;
9	}
10	guadalupe=0;
11	socorro=0;
12	seaofcortez=0;
13	max_guadalupe=2;
14	max_socorro=1
15	max_seaofcortez=1;
16	
17	
18	trips_formated="";
19	jQuery.each(data.trips, function() {
20		if(i<=max){
21			if(this.shipId==1){
22				
23					trips_formated+=renderTripHP(this);
24					socorro++;
25					i++;
26			
27			}
28		}
29		
30	});
31	jQuery(trips_formated).insertAfter('#featuredTripsHP');
32};
33 
34function renderTripHP(trip) {
35	if(trip.visible==-1){
36		cust_availability=trip.remarks;
37	}else{
38		cust_availability=trip.custom_availability;
39	}
40  tripFormatted="<div class='trip-list-container'>"+
41				"<div class='thumbnail' style='background-image:url("+trip.img+")'></div>"+
42				"<p class='preview-text'>"+trip.brief+"</p>"+
43				"<h4>"+trip.departdate+" - "+trip.arrivedate	+"</h4>"+
44				 
45				 "<p class='ship-info'><i><strong>"+cust_availability+"</strong></i></p>"+
46
47				"<p class='ship-info'>"+trip.custom_brief.replace("<br>","")+"</p>"+
48				
49				"<a href='https://nautilusliveaboards.com/go/schedule/trip/"+trip.tripId+"' class='blue-button'>"+trip.custom_book+"</a>"+
50			"</div>"
51  return tripFormatted;
52}
53
54
55
56function getFeaturedTripsHP(){
57    // Get the json or html data and process in displayRatings
58
59	myUrl='https://nautilusliveaboards.com/go/api/gettrips/x7DcQcMns2hB2/featured';
60	
61	
62    jQuery.ajax({
63        url:myUrl, 
64        dataType:'json',
65        type:'GET',
66        success:displayFeaturedTripsHP
67    });
68};
69jQuery(document).ready(function($){
70    var comments = $('#featuredTripsHP').html();
71    if (typeof(comments) != 'undefined'){
72        getFeaturedTripsHP();
73    }
74});

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.