1/** 2 * Created by houghtelin on 4//27/16. 3 */ 4jQuery(document).ready(function () { 5 jQuery('#vrp-fav-loader').hide(); 6 jQuery("#resultsTabs a").click(function (event) { 7 event.preventDefault(); 8 9 if (jQuery(this).attr("id") == "vrp-favorites-view") { 10 jQuery(".tab-content").not('#vrp-list-fav-results').css("display", "none"); 11 jQuery('#vrp-fav-loader').show(); 12 get_favorites(); 13 } else { 14 var tab = jQuery(this).attr("href"); 15 jQuery(".tab-content").not(tab).css("display", "none"); 16 17 jQuery(tab).fadeIn(); 18 } 19 if (jQuery(this).attr("id") == "vrp-map-view") { 20 jQuery("#vrp-result-list-map").css("height", "300px"); 21 } else { 22 jQuery("#vrp-result-list-map").css("height",0) 23 } 24 jQuery(this).parent().addClass("current"); 25 jQuery(this).parent().siblings().removeClass("current"); 26 27 }); 28 29 30 function get_favorites() { 31 32 var vrpSearchVals = jQuery('#vrp'); 33 var arrival = vrpSearchVals.data('vrp-arrival'); 34 var depart = vrpSearchVals.data('vrp-depart'); 35 jQuery.ajax({ 36 dataType: "text", 37 contentType: "contentType: 'text/plain", 38 url: url_paths.site_url + "/vrp/favorites/json", 39 success: function (result) { 40 var data = result; 41 var favstring = (data).replace(/]|[[]/g, ''); 42 var url = url_paths.site_url + "/?vrpjax=1&act=searchjax&search[ids]=" + favstring + "&search[arrival]=" + arrival + "&search[departure]=" + depart; 43 if (typeof url !== "undefined") { 44 jQuery('#vrp-list-fav-results').load(url, function (result) { 45 jQuery('#vrp-fav-loader').hide(); 46 jQuery('#vrp-list-fav-results').fadeIn(); 47 48 }); 49 } 50 51 } 52 }); 53 } 54 55 jQuery('#vrp .add-favorite').hover(function () { 56 if (jQuery(this).hasClass('add-favorite')) { 57 jQuery(this).closest('.vrp-result-image-container').find('.fav-flyout').animate({width: 150}, 200); 58 } 59 60 }, function () { 61 jQuery(this).closest('.vrp-result-image-container').find('.fav-flyout').animate({width: 0}, 200); 62 }); 63});
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.