1//hotToursCash 2window.addEventListener("load", () => { 3 if (jQuery(".tv-hot-tours").length) { 4 const interv = setTimeout(function() { 5 if (jQuery(".tv-hot-tours").hasClass("tv-loaded")) { 6 7 if (jQuery(".hot-tours-cache").length) { 8 jQuery(".hot-tours-cache").remove(); 9 } 10 var ajaxurl = "/helper/saveHotToursCache.php"; 11 var hrefCust = window.location.href.split('#')[0]; 12 hrefCust = hrefCust.split('?')[0]; 13 const isMobile = { 14 Android: function() { 15 return navigator.userAgent.match(/Android/i); 16 }, 17 BlackBerry: function() { 18 return navigator.userAgent.match(/BlackBerry/i); 19 }, 20 iOS: function() { 21 return navigator.userAgent.match(/iPhone|iPad|iPod/i); 22 }, 23 Opera: function() { 24 return navigator.userAgent.match(/Opera Mini/i); 25 }, 26 Windows: function() { 27 return navigator.userAgent.match(/IEMobile/i) || navigator.userAgent.match(/WPDesktop/i); 28 }, 29 any: function() { 30 return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows()); 31 } 32 }; 33 var eventdata = { 34 url: hrefCust, 35 htmlHotTours: jQuery(".tv-hot-tours").html(), 36 isMobile: isMobile.any() ? 1 : 0, 37 }; 38 jQuery.ajax({ 39 url: ajaxurl, 40 type: 'POST', 41 data: eventdata 42 }); 43 44 // console.log(window.location.href); 45 // console.log(jQuery(".tv-hot-tours").children().hasClass("TVHotTours")); 46 // console.log(jQuery(".tv-hot-tours").html()); 47 clearInterval(interv); 48 } 49 }, 10000); 50 } 51 if (jQuery(".hot-tours-cache").length) { 52 // jQuery(".hot-tours-cache").remove(); 53 } 54 55 if (jQuery(".tv-country").length && jQuery(".tv-country").attr('tv-type') === "hotel") { 56 // console.log(jQuery(".tv-country")); 57 const intervHotelCache = setTimeout(function() { 58 if (jQuery(".tv-country").hasClass("tv-loaded")) { 59 60 if (jQuery(".tv-country-cache").length) { 61 jQuery(".tv-country-cache").remove(); 62 } 63 var ajaxurlHotel = "/helper/saveHotelCache.php"; 64 var hrefCustHotel = window.location.href.split('#')[0]; 65 hrefCustHotel = hrefCustHotel.split('?')[0]; 66 const isMobileHotel = { 67 Android: function() { 68 return navigator.userAgent.match(/Android/i); 69 }, 70 BlackBerry: function() { 71 return navigator.userAgent.match(/BlackBerry/i); 72 }, 73 iOS: function() { 74 return navigator.userAgent.match(/iPhone|iPad|iPod/i); 75 }, 76 Opera: function() { 77 return navigator.userAgent.match(/Opera Mini/i); 78 }, 79 Windows: function() { 80 return navigator.userAgent.match(/IEMobile/i) || navigator.userAgent.match(/WPDesktop/i); 81 }, 82 any: function() { 83 return (isMobileHotel.Android() || isMobileHotel.BlackBerry() || isMobileHotel.iOS() || isMobileHotel.Opera() || isMobileHotel.Windows()); 84 } 85 }; 86 var eventdata = { 87 url: hrefCustHotel, 88 htmlHotel: jQuery(".tv-country").html(), 89 isMobile: isMobileHotel.any() ? 1 : 0, 90 }; 91 jQuery.ajax({ 92 url: ajaxurlHotel, 93 type: 'POST', 94 data: eventdata 95 }); 96 97 // console.log(window.location.href); 98 // console.log(jQuery(".tv-hot-tours").children().hasClass("TVHotTours")); 99 // console.log(jQuery(".tv-hot-tours").html()); 100 clearInterval(intervHotelCache); 101 } 102 }, 10000); 103 } 104});
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.