PageSourceSearch

https://www.bajastays.com/bookingEngine/javascripts/be/compareFavs.js?v=35

js bajastays.com collected 2026-09-26 08:15:39 UTC 1,899 bytes, 60 lines download raw bytes

1$(document).ready(function () {
2
3  // Compare Favorites - Lazy Load
4  if ($('.lazy').length) {
5    $('.lazy').lazy({
6      effect: 'fadeIn',
7      effectTime: 1000,
8      threshold: 0,
9      afterLoad: function(element) {
10        var lazyElement = element.get(0);
11        // Add a Class to set the placeholder background to transparent
12        $(lazyElement).addClass('loaded');
13      }
14    });
15  }
16
17  // Compare Favorites - Remove From Favorites List
18  if ($('.compare-favorites-row').length) {
19  	$(document).on('click', '.compare-favorites-remove-favorite-btn', function(){
20  		// Remove from Favorites List
21  		updateFavoritesList($(this), '.compare-favorites-row', 'remove');
22  		// Remove Row
23    	$(this).closest('.compare-favorites-row').remove();
24  	});
25	}
26
27  // Compare Favorites - Send to a Friend Form
28  if ($('#sendToFriendCompare').length) {
29	  $('form#sendToFriendCompare').validate({
30			submitHandler: function(form){
31				$.ajax({
32					type: 'POST',
33					url: siteFolder + 'ajax/sendCompareFavorites' + siteURLEnding,
34					data: $('form#sendToFriendCompare').serialize(),
35					dataType: 'text',
36					success: function (response) {
37						response = $.trim(response);
38						if(response === 'success') {
39							closeModal();
40							$.fn.beToast({
41								icon: 'share-solid',
42								iconColor: 'site-color-1',
43								title: 'Send to a Friend',
44								body: 'Your email has been sent!',
45								delay: 7000
46							});
47							$('form#sendToFriendCompare div.g-recaptcha-error').html('');
48						} else if(response === "captcha fail") {
49							$('form#sendToFriendCompare div.g-recaptcha-error').html(alertMessage('alert-danger','You must complete the reCAPTCHA'));
50						} else {
51            	$('form#sendToFriendCompare div.g-recaptcha-error').html(alertMessage('alert-danger','There was an error processing your request'));
52						}
53					}
54				});
55				return false;
56			}
57		});
58  }
59
60});

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.