PageSourceSearch

https://thriverealtyco.com/scripts/getAllTestimonials.js

js thriverealtyco.com collected 2026-09-28 09:35:40 UTC 1,632 bytes, 60 lines download raw bytes

1(function(){
2if (window.YLOPO_WIDGETS.allTestimonials !== undefined) {
3	return
4}
5window.YLOPO_WIDGETS.allTestimonials = [];
6waitFor(function(){
7	return window.YLOPO_WIDGETS && YLOPO_WIDGETS.fullSiteNav && YLOPO_WIDGETS.fullSiteNav.length > 0
8},function(hasSiteNav){
9	if (!hasSiteNav){
10		return
11	}
12
13	var allTestimonials = window.YLOPO_WIDGETS.fullSiteNav.filter(function(o){
14		if (o.collection && o.collection.typeName === 'testimonials' && o.collection.itemCount > 0){
15			return true
16		}
17	}).map(function(o){
18		return new Promise(function(resolve, reject){
19			$.ajax({
20				url:o.collection.fullUrl+'?format=json',
21				dataType: 'jsonp',
22				success: function(data){
23					if (data.items){
24					data.items.forEach(function(item){
25						item.collectionTitle = data.collection.navigationTitle || data.collection.title;
26					});
27					} else {
28						data.items = [];
29					}
30					resolve(data)
31				},
32				error: function(err){
33					console.log(err);
34					resolve({
35						items: []
36					});
37				}
38			});
39		})
40	});
41
42	Promise.all(allTestimonials).then(function(testimonials){
43		window.YLOPO_WIDGETS.allTestimonials = testimonials.reduce(function(a,o){
44			a = a.concat(o.items);
45			return a;
46		},[]);
47
48		window.YLOPO_WIDGETS.allTestimonials = window.YLOPO_WIDGETS.allTestimonials.filter(function(o){
49			return o && o.customContent && o.customContent.customType === "testimonial"
50		});
51
52		if(window.YLOPO_WIDGETS.allTestimonials.length === 0){
53			window.YLOPO_WIDGETS.allTestimonials._empty = true;
54		}else{
55			window.YLOPO_WIDGETS.allTestimonials._empty = 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.